qcell-react 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/default-.10cd5844c750d502d3f9.js +2 -0
  2. package/dist/default-main.ce13a4608ca8fad9297b.js +1 -0
  3. package/dist/default-main~qcell.72212abaef2b0a173c53.js +2 -0
  4. package/dist/main.c5861704066fd7030aa2.js +1 -0
  5. package/dist/qcell-react.js +1 -0
  6. package/dist/qcell.a36a5a0578e9482fcff3.js +1 -0
  7. package/dist/{vendors.974cc061e4ad0bf4961c.js → vendors.b30d787b50e98a74d89b.js} +1 -1
  8. package/package.json +3 -3
  9. package/dist/124.051b1181e1b6b156c39c.js +0 -2
  10. package/dist/124.051b1181e1b6b156c39c.js.LICENSE.txt +0 -85
  11. package/dist/124.aff16c26785ef79a4bb3.js +0 -2
  12. package/dist/124.aff16c26785ef79a4bb3.js.LICENSE.txt +0 -66
  13. package/dist/124.db2955433183445cf3cf.js +0 -2
  14. package/dist/124.db2955433183445cf3cf.js.LICENSE.txt +0 -66
  15. package/dist/13ed1c65978f4020fa6a.png +0 -0
  16. package/dist/1b1e25d6e625a94444f7.png +0 -0
  17. package/dist/1b3e50ff32fd8cd301f8.png +0 -0
  18. package/dist/1e4ab48d0ebabfe3d60c.png +0 -0
  19. package/dist/2063e67670eabbe08666.png +0 -0
  20. package/dist/262f7047c15f67938eb0.png +0 -0
  21. package/dist/278ab06fc1417e702a7e.png +0 -0
  22. package/dist/2d6f55fd9854663f7aa0.png +0 -0
  23. package/dist/3332fcf7e2e919a02b8d.png +0 -0
  24. package/dist/3580b1faf02c1cd7994c.png +0 -0
  25. package/dist/50.ee6a95da149f1df61661.js +0 -2
  26. package/dist/543.50b98d03b276800d625d.js +0 -2
  27. package/dist/543.50b98d03b276800d625d.js.LICENSE.txt +0 -8
  28. package/dist/5b35a39c5f877ba43637.png +0 -0
  29. package/dist/5bc8277cf199d850ab1a.png +0 -0
  30. package/dist/604.4284476208a26980f313.js +0 -2
  31. package/dist/604.4284476208a26980f313.js.LICENSE.txt +0 -9
  32. package/dist/64a176ed8c98be3354b3.png +0 -0
  33. package/dist/669597e9324aec578be1.gif +0 -0
  34. package/dist/7461bf5c81f039b5349d.png +0 -0
  35. package/dist/82f655c470657e263722.png +0 -0
  36. package/dist/8b0fe626ee1f018a8d0f.png +0 -0
  37. package/dist/9b9e5601b8e92cfc15ed.png +0 -0
  38. package/dist/ae8a9da394dac0b9613c.png +0 -0
  39. package/dist/b332c225924811955b70.png +0 -0
  40. package/dist/bb549ea947a7a69e5c0c.png +0 -0
  41. package/dist/bdff706f5f3c937e20c8.png +0 -0
  42. package/dist/c0a2f0a86ad43bccd6d6.png +0 -0
  43. package/dist/c58c5719d8be44d69fc2.png +0 -0
  44. package/dist/c60516270777bee173fe.png +0 -0
  45. package/dist/cde3eb37d2e1d732a7e3.png +0 -0
  46. package/dist/cf17885bda2090955715.png +0 -0
  47. package/dist/deb42a8f9bdab8258db4.png +0 -0
  48. package/dist/df59c902592bb5f10f8b.png +0 -0
  49. package/dist/e06bce03725e8eae52ff.png +0 -0
  50. package/dist/e4949d095544f9f6339d.png +0 -0
  51. package/dist/e73f5131bb90fcc736a6.png +0 -0
  52. package/dist/f0ad30c87d846b34a0a6.png +0 -0
  53. package/dist/f5b9e4600b993d7c15a3.png +0 -0
  54. package/dist/f7f48d547e176aef16e5.png +0 -0
  55. package/dist/main.797b91ecb34b2353cc10.js +0 -1
  56. package/dist/main.f46d2cfb95e4d5e5246c.js +0 -1
  57. package/dist/main.f6c49bfc372bcfcca60d.js +0 -2
  58. /package/dist/{50.ee6a95da149f1df61661.js.LICENSE.txt → default-.10cd5844c750d502d3f9.js.LICENSE.txt} +0 -0
  59. /package/dist/{main.f6c49bfc372bcfcca60d.js.LICENSE.txt → default-main~qcell.72212abaef2b0a173c53.js.LICENSE.txt} +0 -0
  60. /package/dist/{vendors.974cc061e4ad0bf4961c.js.LICENSE.txt → vendors.b30d787b50e98a74d89b.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see main.f6c49bfc372bcfcca60d.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"));else if("function"==typeof define&&define.amd)define(["react"],e);else{var r="object"==typeof exports?e(require("react")):e(t.react);for(var i in r)("object"==typeof exports?exports:t)[i]=r[i]}}(this,(t=>(()=>{var e,r,i,o,a,s={2395:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>g});var i=r(1283),o=(r(1325),r(1163),r(706),r(6362),r(5093)),a=r.n(o),s=(r(745),r(6594));function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}t=r.hmd(t);var l=function(){return Promise.resolve().then(r.t.bind(r,4692,23))},c={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return c.Android()||c.BlackBerry()||c.iOS()||c.Opera()||c.Windows()}};c.any()&&r.e(50).then(r.t.bind(r,1050,23)),function(t){var e=new i._QHashtable,r=[[".",","],[",","."],[","," "],[".","'"]],o=[["ae","au","ca","cn","eg","gb","hk","il","in","jp","sk","th","tw","us"],["at","br","de","dk","es","gr","it","nl","pt","tr","vn"],["bg","cz","fi","fr","no","pl","ru","se"],["ch"]];function a(t,e,r){this.dec=t,this.group=e,this.neg=r}function s(t,i){0==e.size()&&function(){for(var t=0;t<o.length;t++)for(var r=o[t],i=0;i<r.length;i++)e.put(r[i],t)}();var s=".",n=",";0==i&&(-1!=t.indexOf("_")?t=t.split("_")[1].toLowerCase():-1!=t.indexOf("-")&&(t=t.split("-")[1].toLowerCase()));var l=e.get(t);if(l){var c=r[l];c&&(s=c[0],n=c[1])}return new a(s,n,"-")}t.fn.formatNumber=function(e,r,i){return this.each((function(){var o;null==r&&(r=!0),null==i&&(i=!0),o=t(this).is(":input")?new String(t(this).val()):new String(t(this).text());var a=t.formatNumber(o,e);if(r&&(t(this).is(":input")?t(this).val(a):t(this).text(a)),i)return a}))},t.formatNumber=function(e,r){for(var i=s((r=t.extend({},t.fn.formatNumber.defaults,r)).locale.toLowerCase(),r.isFullLocale),o=(i.dec,i.group,i.neg,"0#-,."),a="",n=!1,l=0;l<r.format.length;l++){if(-1!=o.indexOf(r.format.charAt(l))){if(0==l&&"-"==r.format.charAt(l)){n=!0;continue}break}a+=r.format.charAt(l)}var c="";for(l=r.format.length-1;l>=0&&-1==o.indexOf(r.format.charAt(l));l--)c=r.format.charAt(l)+c;r.format=r.format.substring(a.length),r.format=r.format.substring(0,r.format.length-c.length);var h=new Number(e);return t._formatNumber(h,r,c,a,n)},t._formatNumber=function(e,r,i,o,a){var n=s((r=t.extend({},t.fn.formatNumber.defaults,r)).locale.toLowerCase(),r.isFullLocale),l=n.dec,c=n.group,h=n.neg;null!=r.overrideGroupSep&&(c=r.overrideGroupSep),null!=r.overrideDecSep&&(l=r.overrideDecSep),null!=r.overrideNegSign&&(h=r.overrideNegSign);var d=!1;if(isNaN(e)){if(1!=r.nanForceZero)return"";e=0,d=!0}(1==r.isPercentage||r.autoDetectPercentage&&"%"==i.charAt(i.length-1))&&(e*=100);var u="";if(r.format.indexOf(".")>-1){var p=l,_=r.format.substring(r.format.lastIndexOf(".")+1);if(1==r.round)e=new Number(e.toFixed(_.length));else{var g=e.toString();g.lastIndexOf(".")>0&&(g=g.substring(0,g.lastIndexOf(".")+_.length+1)),e=new Number(g)}var f=new Number(e.toString().substring(e.toString().indexOf(".")));decimalString=new String(f.toFixed(_.length)),decimalString=decimalString.substring(decimalString.lastIndexOf(".")+1);for(var m=0;m<_.length;m++)if("#"!=_.charAt(m)||"0"==decimalString.charAt(m)){if("#"==_.charAt(m)&&"0"==decimalString.charAt(m)){if(decimalString.substring(m).match("[1-9]")){p+=decimalString.charAt(m);continue}break}"0"==_.charAt(m)&&(p+=decimalString.charAt(m))}else p+=decimalString.charAt(m);u+=p}else e=Math.round(e);var C=Math.floor(e);e<0&&(C=Math.ceil(e));var L="";L=-1==r.format.indexOf(".")?r.format:r.format.substring(0,r.format.indexOf("."));var b="";if(0!=C||"#"!=L.substr(L.length-1)||d){var E=new String(Math.abs(C)),v=9999;-1!=L.lastIndexOf(",")&&(v=L.length-L.lastIndexOf(",")-1);var y=0;for(m=E.length-1;m>-1;m--)b=E.charAt(m)+b,++y==v&&0!=m&&(b=c+b,y=0);if(L.length>b.length){var w=L.indexOf("0");if(-1!=w)for(var x=L.length-w,k=L.length-b.length-1;b.length<x;){var S=L.charAt(k);","==S&&(S=c),b=S+b,k--}}}return b||-1===L.indexOf("0",L.length-1)||(b="0"),u=b+u,e<0&&a&&o.length>0?o=h+o:e<0&&(u=h+u),r.decimalSeparatorAlwaysShown||u.lastIndexOf(l)==u.length-1&&(u=u.substring(0,u.length-1)),u=o+u+i},t.fn.parseNumber=function(e,r,i){var o;null==r&&(r=!0),null==i&&(i=!0),o=t(this).is(":input")?new String(t(this).val()):new String(t(this).text());var a=t.parseNumber(o,e);if(a&&(r&&(t(this).is(":input")?t(this).val(a.toString()):t(this).text(a.toString())),i))return a},t.parseNumber=function(e,r){var i=s((r=t.extend({},t.fn.parseNumber.defaults,r)).locale.toLowerCase(),r.isFullLocale),o=i.dec,a=i.group,n=i.neg;null!=r.overrideGroupSep&&(a=r.overrideGroupSep),null!=r.overrideDecSep&&(o=r.overrideDecSep),null!=r.overrideNegSign&&(n=r.overrideNegSign);for(var l=".-",c=r.strict;e.indexOf(a)>-1;)e=e.replace(a,"");e=e.replace(o,".").replace(n,"-");var h="",d=!1;(1==r.isPercentage||r.autoDetectPercentage&&"%"==e.charAt(e.length-1))&&(d=!0);for(var u=0;u<e.length;u++)if("1234567890".indexOf(e.charAt(u))>-1)h+=e.charAt(u);else if(l.indexOf(e.charAt(u))>-1)h+=e.charAt(u),l=l.replace(e.charAt(u),"");else{if(r.allowPostfix)break;if(c){h="NaN";break}}var p=new Number(h);if(d){p/=100;var _=h.indexOf(".");if(-1!=_){var g=h.length-_-1;p=p.toFixed(g+2)}else p=p.toFixed(2)}return p},t.fn.parseNumber.defaults={locale:"us",decimalSeparatorAlwaysShown:!1,isPercentage:!1,autoDetectPercentage:!0,isFullLocale:!1,strict:!1,overrideGroupSep:null,overrideDecSep:null,overrideNegSign:null,allowPostfix:!1},t.fn.formatNumber.defaults={format:"#,###.00",locale:"us",decimalSeparatorAlwaysShown:!1,nanForceZero:!0,round:!0,isFullLocale:!1,overrideGroupSep:null,overrideDecSep:null,overrideNegSign:null,isPercentage:!1,autoDetectPercentage:!0},Number.prototype.toFixed=function(e){return t._roundNumber(this,e)},t._roundNumber=function(t,e){var r=Math.pow(10,e||0),i=String(Math.round(t*r)/r);if(e>0){var o=i.indexOf(".");for(-1==o?(i+=".",o=0):o=i.length-(o+1);o<e;)i+="0",o++}return i}}(l);var h,d=r(1660);void 0===l.fn.inputmask&&(l.fn.inputmask=function(t,e){var r,i=this[0];if(void 0===e&&(e={}),"string"==typeof t)switch(t){case"unmaskedvalue":return i&&i.inputmask?i.inputmask.unmaskedvalue():l().val();case"remove":return this.each((function(){this.inputmask&&this.inputmask.remove()}));case"getemptymask":return i&&i.inputmask?i.inputmask.getemptymask():"";case"hasMaskedValue":return!!(i&&i.inputmask&&i.inputmask.hasMaskedValue());case"isComplete":return!!(i&&i.inputmask&&i.inputmask.isComplete());case"getmetadata":return i&&i.inputmask?i.inputmask.getmetadata():void 0;case"setvalue":l().val(e),i&&void 0===i.inputmask&&l().triggerHandler("setvalue");break;case"option":if("string"!=typeof e)return this.each((function(){void 0!==this.inputmask&&this.inputmask.option(e)}));if(i&&void 0!==i.inputmask)return i.inputmask.option(e);break;default:return e.alias=t,r=new d(e),this.each((function(){r.mask(this)}))}else{if("object"===n(t))return r=new d(t),void 0===t.mask&&void 0===t.alias?this.each((function(){void 0!==this.inputmask?this.inputmask.option(t):r.mask(this)})):this.each((function(){r.mask(this)}));if(void 0===t)return this.each((function(){(r=new d(e)).mask(this)}))}}),(h=l.datepicker).regional.en={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},h.setDefaults(h.regional.en),h.regional.en,function(t){t.regional.ko={closeText:"닫기",prevText:"이전달",nextText:"다음달",currentText:"오늘",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayNames:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],weekHeader:"주",dateFormat:"yy. m. d.",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"년"},t.setDefaults(t.regional.ko),t.regional.ko}(l.datepicker);var u=r(7063),p=r(1396),_={config:{locale:"kr"},def:{key:{ENTER:13,ESC:27,BACKSPACE:8,SPACE:32,TAB:9,SHIFT:16,CTRL:17,ALT:18,PAGEUP:33,PAGEDOWN:34,LEFT:37,UP:38,RIGHT:39,DOWN:40,F2:113,C:67,V:86,DELETE:46},which:{LEFT_BUTTON:1,MIDDLE_BUTTON:2,RIGHT_BUTTON:3}},util:{},st:{},$:l.noConflict(),_:function(){return r.e(96).then(r.t.bind(r,2543,23))}.noConflict(),s:function(){return r.e(96).then(r.t.bind(r,9604,23))},moment:a(),log:function(t,e,r,i){var o=new Date;console.log("["+o.getHours()+":"+o.getMinutes()+":"+o.getSeconds()+"]["+e+"]["+("err"===t?"ERROR][":"LOG][")+r+"()] "+i)},hasInstance:function(t,e){return!!t.storage.containsKey(e)},getInstance:function(t,e){return t.storage.containsKey(e)?t.storage.get(e):null},getInstanceIDs:function(t){return t.storage.keys()},deleteInstance:function(t,e){return!!t.storage.containsKey(e)&&(t.storage.get(e).destroy(),t.storage.remove(e),!0)},deleteAllInstances:function(t){var e=!0;return t.storage.each((function(r){!1===t.deleteInstance(r)&&(e=!1)})),e},License:{key:"RightTechLicense",value:"U2FsdGVkX19T7Nd3e2J04HRtOdB87u87FU5w0bYRWmQ="},checkLicense:function(t,e){var r=p.AES.decrypt(t,p.AES.decrypt(_.License.value,_.License.key).toString(p.enc.Utf8)).toString(p.enc.Utf8);return""!==r&&r===e},decryptLicense:function(t){return p.AES.decrypt(t,p.AES.decrypt(_.License.value,_.License.key).toString(p.enc.Utf8)).toString(p.enc.Utf8)}};_.st.asc=function(t,e){return t-e},_.st.desc=function(t,e){return e-t},_.st.eventProcess=function(t){var e=t.data.target;e&&e.tag()&&e.tag().indexOf("QBOX")>-1&&e._defaultAction.apply(e,arguments)},Array.prototype.indexOf=function(t,e){return _._.indexOf(this,t,e)},Array.prototype.lastIndexOf=function(t,e){return _._.lastIndexOf(this,t,e)},Array.prototype.swap=function(t,e){var r=this[t];this[t]=this[e],this[e]=r,r=null},Array.prototype.RT_move=function(t,e){if(t>this.length||e>this.length||t<0||e<0)return!1;var r=this.splice(t,1)[0];return this.splice(e,0,r),!0},Array.prototype.RT_insert=function(t,e){this.splice(t,0,e)},Array.prototype.RT_insertArray=function(t,e){for(var r=_._.clone(e).reverse(),i=0,o=r.length;i<o;i++)this.RT_insert(t,r[i])},Array.prototype.RT_clear=function(){for(;this.length;)this.pop()},Array.prototype.RT_clone=function(){return _._.clone(this)},Array.prototype.RT_union=function(t){for(var e=[],r=0;r<t.length;r++)-1===_._.indexOf(this,t[r],!0)&&e.push(t[r]);return this.concat(e).sort(_.st.asc)},Array.prototype.RT_intersection=function(t){for(var e=[];this.length>0&&t.length>0;)this[0]<t[0]?this.shift():(this[0]>t[0]||e.push(this.shift()),t.shift());return e},Array.prototype.RT_difference=function(t){for(var e=0,r=t.length;e<r;e++){var i=_._.indexOf(this,t[e],!0);i>-1&&this.splice(i,1)}return this},_.util._extendSortMultiple=function(){if(arguments[1]instanceof Array){for(var t=arguments[1],e=[],r=[],i=[],o=0;o<t.length;o++)e.push(t[o][0]),r.push(void 0===t[o][1]||"asc"!==t[o][1]&&"desc"!==t[o][1]?"asc":t[o][1]),i.push(void 0===t[o][2]||"string"!==t[o][2]&&"number"!==t[o][2]?"string":t[o][2]);return function(t,o,a){for(var s=0,n=0,l=e.length;0===n&&s<l;)n=_.util._extendSort(e[s],r[s],i[s])(t,o,a),s++;return n}}if("string"==typeof arguments[1]||"number"==typeof arguments[1]){var a=arguments[1],s=void 0===arguments[2]||"asc"!==arguments[2]&&"desc"!==arguments[2]?"asc":arguments[2],n=void 0===arguments[3]||"string"!==arguments[3]&&"number"!==arguments[3]?"string":arguments[3];return function(t,e,r){return _.util._extendSort(a,s,n)(t,e,r)}}},_.util._extendSort=function(t,e,r){return"asc"===e?e=1:"desc"===e&&(e=-1),"number"===r?function(r,i){var o,a;return null===(o=r[t])&&(o=""),null===(a=i[t])&&(a=""),void 0!==o&&_._.isString(o)&&(o=_.util.replaceAll(o,",","")),void 0!==a&&_._.isString(a)&&(a=_.util.replaceAll(a,",","")),o=Number(r[t]),a=Number(i[t]),isNaN(o)&&(o=""),isNaN(a)&&(a=""),void 0===o&&void 0!==a?(""-a)*e:void 0!==o&&void 0===a?(o-"")*e:(o-a)*e}:function(r,i){var o=r[t],a=i[t];return null===o&&(o=""),null===a&&(a=""),void 0===o&&void 0!==a?(""<a?-1:"">a?1:0)*e:void 0!==o&&void 0===a?(o<""?-1:o>""?1:0)*e:(o<a?-1:o>a?1:0)*e}},Array.prototype.RT_sortBy=function(){return this.sort(_.util._extendSortMultiple.apply(null,arguments))},_.util.RT_sortBy=function(t){return t.sort(_.util._extendSortMultiple.apply(null,arguments))},_.util.rAF=null,_.util.cAF=null,function(){for(var t=0,e=["ms","moz","webkit","o"],r=0;r<e.length&&!window.requestAnimationFrame;++r)window.requestAnimationFrame=window[e[r]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[r]+"CancelAnimationFrame"]||window[e[r]+"CancelRequestAnimationFrame"];_.util.rAF=window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(e){var r=(new Date).getTime(),i=Math.max(0,2-(r-t)),o=window.setTimeout((function(){e(r+i)}),i);return t=r+i,o},_.util.cAF=window.cancelAnimationFrame?function(t){window.cancelAnimationFrame(t)}:function(t){window.clearTimeout(t)}}(),_.util.inherit=function(t,e){t.prototype=new e},_.util.addMethod=function(t,e,r){var i=t[e];t[e]=function(){return r.length===arguments.length?r.apply(this,arguments):"function"==typeof i?i.apply(this,arguments):void 0}},_.util.checkType=function(t,e){var r=!1;switch(e){case"array":r=!!_._.isArray(t);break;case"boolean":r="boolean"==typeof t;break;case"element":r=!!_._.isElement(t);break;case"function":r=!!_._.isFunction(t);break;case"jquery":r=!(!t||!t.jquery);break;case"number":r="number"==typeof t;break;case"object":r="object"==n(t);break;case"string":r="string"==typeof t;break;default:r=!1}return r},_.util.addClass=function(t,e){if(!(arguments.length<2)&&e&&("string"==typeof e||_._.isArray(e))&&(_._.isElement(t)&&(t=[t]),_._.isArray(t)))for(var r="string"==typeof e?e.split(/\s+/):e,i=0,o=t.length;i<o;i++){var a=t[i];if(_._.isElement(a))if(a.className||1!==r.length){for(var s=" "+a.className+" ",n=0,l=r.length;n<l;n++)~s.indexOf(" "+r[n]+" ")||(s+=r[n]+" ");a.className=_.$.trim(s)}else a.className=e;a=null}},_.util.removeClass=function(t,e){if(!(arguments.length<1)&&(e&&("string"==typeof e||_._.isArray(e))||void 0===e)&&(_._.isElement(t)&&(t=[t]),_._.isArray(t)))for(var r,i,o="string"==typeof e?(e||"").split(/\s+/):e,a=/[\n\t\r]/g,s=0,n=t.length;s<n;s++){if(r=t[s],_._.isElement(r))if(e){i=(" "+r.className+" ").replace(a," ");for(var l=0,c=o.length;l<c;l++)i=i.replace(" "+o[l]+" "," ");r.className=_.$.trim(i)}else r.className="";r=null}},_.util.hasClass=function(t,e){if(_._.isElement(t)&&e&&("string"==typeof e||_._.isArray(e))){var r=" "+("string"==typeof e?e:e.join().replace(/,/gi," "))+" ";if(1===t.nodeType&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\t\r\n\f]/g," ").indexOf(r)>-1)return!0}return!1},_.util.bind=function(t,e,r){return!!_._.isArray(_._.isElement(t)?[t]:t)&&(_._.each(t,(function(t){t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent&&t.attachEvent(e,r)})),!0)},_.util.addMethod(_.util,"textContent",(function(t){return null==t?"":void 0===t.textContent||null===t.textContent?t.innerText:t.textContent})),_.util.addMethod(_.util,"textContent",(function(t,e){null!=t&&(void 0===t.textContent||null===t.textContent?t.innerText=e:t.textContent=e)})),_.util.empty=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},_.util.findCSSRule=function(t){return _.$.stylesheet(t).rules()},_.util.createCSSRule=function(t,e){_.$.stylesheet(t).css(null).css(e)},_.util.removeCSSRule=function(t){_.$.stylesheet(t).css(null)},_.util._CheckMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return _.util._CheckMobile.Android()||_.util._CheckMobile.BlackBerry()||_.util._CheckMobile.iOS()||_.util._CheckMobile.Opera()||_.util._CheckMobile.Windows()}},_.util.isMobile=function(){return _.util._CheckMobile.any()},_.util._dragElement=function(t){var e=document.getElementById(t),r=0,i=0,o=0,a=0;function s(t){(t=t||window.event).preventDefault(),r=o-t.clientX,i=a-t.clientY,o=t.clientX,a=t.clientY,e.style.top=e.offsetTop-i+"px",e.style.left=e.offsetLeft-r+"px"}function n(){document.onmouseup=null,document.onmousemove=null}e.onmousedown=function(t){t.target.classList.contains(_.QCELL.def.css.EXCLUDE_DRAGABLE)||((t=t||window.event).preventDefault(),o=t.clientX,a=t.clientY,document.onmouseup=n,document.onmousemove=s)}},_.util.replaceAll=function(t,e,r){return t.split(e).join(r)},_.util.strbyte={getByteLength:function(t){if(null===t||0===t.length)return 0;for(var e=0,r=0;r<t.length;r++)e+=this.charByteSize(t.charAt(r));return e},cutByteLength:function(t,e){if(null===t||0===t.length)return 0;for(var r=0,i=t.length,o=0;o<t.length;o++){if((r+=this.charByteSize(t.charAt(o)))===e){i=o+1;break}if(r>e){i=o;break}}return t.substring(0,i)},charByteSize:function(t){if(null===t||0===t.length)return 0;var e=t.charCodeAt(0);return e<=127?1:e<=2047?2:e<=65535?3:4}},_.Base=function(t){if(!1===_.util.checkType(t,"object"))return null;this._initGridProperties=function(t){var e,r=_._.clone(t);if(void 0===t.columns)return r;for(r.columns=[],e=0;e<t.columns.length;e++)r.columns.push(_._.clone(t.columns[e]));return r};var e="",r=["array","boolean","element","function","jquery","number","object","string"],o=t,a=this._initGridProperties(t),s=new i._QHashtable,n=new i._QHashtable,l=new i._QHashtable;_._.each(r,(function(t){n.put(t,new i._QHashSet)})),n.put("all",new i._QHashSet),this.log=function(){console.log.apply(console,arguments)},this.getProperties=function(){return o},this.setPropertiesColumn=function(t){o.columns=t},this.getInitProperties=function(){o.columns=[];for(var t=0;t<a.columns.length;t++)o.columns.push(_._.clone(a.columns[t]));return a},this.destroy=function(){var t=this;this._clearAttrs(),this.clear(),n.clear(),l.clear(),_._.each(_._.keys(t),(function(e){delete t[e]})),r=o=s=n=t=null},this.clear=function(){n.each((function(t,e){e.clear()})),s.clear()},this.removeAttr=function(t){if(l.containsKey(t)){var e=l.get(t);if(n.containsKey(e)){var r=n.get(e);return r&&r.contains(t)&&r.remove(t),l.remove(t),n.get("all").remove(t),s.remove(t),!0}}return!1},_.util.addMethod(this,"attr",(function(t){return s.get(t)})),_.util.addMethod(this,"attr",(function(t,e,i){try{if(null==e||_.util.checkType(e,i))if(s.containsKey(t)){if(_._.indexOf(r,i)>-1&&n.get(i).contains(t))return s.put(t,e),!0}else if(_._.indexOf(r,i)>-1)return n.get(i).add(t),s.put(t,e),n.get("all").add(t),l.put(t,i),!0;return!1}catch(t){console.log(t.message)}})),_.util.addMethod(this,"attrList",(function(){return n.get("all").values().sort()})),_.util.addMethod(this,"attrList",(function(t){return _._.indexOf(r,t,!0)>-1?n.get(t).values().sort():[]})),_.util.addMethod(this,"tag",(function(){return e})),_.util.addMethod(this,"tag",(function(t){return!!_._.isString(t)&&(e=t,!0)})),this._initTag(),this._initMOL(),this._init(t)},_.Base.prototype._initMOL=function(){_.util.addMethod(this,"_parent",(function(){return this.attr("parent")})),_.util.addMethod(this,"_parent",(function(t){}))},_.Base.prototype._initTag=function(t){this.tag("QBOX.Base")},_.Base.prototype._init=function(t){this._initAttrs(t),this._setParent()},_.Base.prototype._initAttrs=function(t){this.attr("id",t.id,"string"),this.attr("parentid",t.parentid,"string"),this.attr("parent",null,"object"),this.attr("prev_param",t,"object")},_.Base.prototype._setParent=function(){},_.Base.prototype._clearAttrs=function(){},_.Element=function(t){if(!1===_.util.checkType(t,"object"))return null;_.Base.call(this,t)},_.util.inherit(_.Element,_.Base),_.Element.prototype._initTag=function(t){this.tag("QBOX.Element")},_.Element.prototype._init=function(t){_.Base.prototype._init.call(this,t)},_.Element.prototype._initAttrs=function(t){_.Base.prototype._initAttrs.call(this,t),this.attr("element",null,"element")},_.Element.prototype._setElement=function(t){return!!_._.isElement(t)&&(this.attr("element",t,"element"),!0)},_.QCELL={name:"QCELL",log:function(t,e,r){_.log(t,this.name,e,r)},storage:new i._QHashtable,module:{},colconfig:{},config:{locale:_.config.locale},def:{msg:{},areaname:{},cssprefix:"",css:{},rowgroup:{},type:{}},st:{replaceText2HeaderText:function(t){return _._.escape(t).replace(/(\n|\r\n)/g,"<br>")}},_create:function(t){var e,r=null,i=-1;if(void 0===window[_.License.key])i=0;else if("demo"===window[_.License.key])i=2;else if(_._.isArray(window[_.License.key])){window[_.License.key].forEach((function(t){""!==(e=p.AES.decrypt(t,p.AES.decrypt(_.License.value,_.License.key).toString(p.enc.Utf8)).toString(p.enc.Utf8))&&e===window.location.hostname&&(i=1)}))}else if(_._.isString(window[_.License.key])){var o=window[_.License.key];""!==(e=p.AES.decrypt(o,p.AES.decrypt(_.License.value,_.License.key).toString(p.enc.Utf8)).toString(p.enc.Utf8))&&e===window.location.hostname&&(i=1)}else i=0;switch(_._s=i,this.module){case"basic":r=_.QCELL.BasicQCELL.create(t);break;case"normal":r=_.QCELL.NormalQCELL.create(t)}if(null!==r){if(r._createCols()&&r._create())return this.storage.put(t.id,r),r=null,!0;r.destroy()}return r=null,!1},_hasInstance:function(t){try{return _.hasInstance(this,t)}catch(t){this.log("err","hasInstance",t.message)}},_getInstance:function(t){try{return _.getInstance(this,t)}catch(t){this.log("err","getInstance",t.message)}},_getInstanceIDs:function(){try{return _.getInstanceIDs(this)}catch(t){this.log("err","getInstanceIDs",t.message)}},_deleteInstance:function(t){try{return _.deleteInstance(this,t)}catch(t){this.log("err","deleteInstance",t.message)}},_deleteAllInstances:function(){try{return _.deleteAllInstances(this)}catch(t){this.log("err","deleteAllInstances",t.message)}}},_.QCELL.create=function(t){return this._create(t)},_.QCELL.hasInstance=function(t){return this._hasInstance(t)},_.QCELL.getInstance=function(t){return this._getInstance(t)},_.QCELL.getInstanceIDs=function(){return this._getInstanceIDs()},_.QCELL.deleteInstance=function(t){return this._deleteInstance(t)},_.QCELL.deleteAllInstances=function(){return this._deleteAllInstances()},_.QCELL.def.areaname=_._.extend(_.QCELL.def.areaname,{ROOT:"root",PANEL:"panel",CONTAINER:"container",PAGINATIONPANEL:"paginationpanel",SHEETPANEL:"sheetpanel",INPUTFORM:"inputform",VIEWPORT:"viewport",FOOTERROWHEADER:"frowheader",FOOTER:"footer",EDGEHEADER:"edgeheader",ROWHEADER:"rowheader",COLHEADER:"colheader",HSCROLLBAR:"hscrollbar",VSCROLLBAR:"vscrollbar",PAGINATION:"pagination",GROUPUI:"group-ui",COLSTYLEEDITOR:"colStyleEditor",STATIC:"static",GRANDTOTAL:"grandtotal",DATEPICKER:"datepicker"}),_.QCELL.def.cssprefix="rt-qc-",_.QCELL.def.css=_._.extend(_.QCELL.def.css,{ROOT:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROOT,PANEL:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PANEL,CONTAINER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.CONTAINER,PAGINATIONPANEL:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATIONPANEL,SHEETPANEL:_.QCELL.def.cssprefix+_.QCELL.def.areaname.SHEETPANEL,INPUTFORM:_.QCELL.def.cssprefix+_.QCELL.def.areaname.INPUTFORM,INPUTFORM_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.INPUTFORM+"-inner",INPUTFORM_HEADER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.INPUTFORM+"-header",INPUTFORM_ITEM:_.QCELL.def.cssprefix+_.QCELL.def.areaname.INPUTFORM+"-item",PAGINATION_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-inner",VIEWPORT:_.QCELL.def.cssprefix+_.QCELL.def.areaname.VIEWPORT,VIEWPORT_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.VIEWPORT+"-inner",FOOTERROWHEADER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.FOOTERROWHEADER,FOOTERROWHEADER_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.FOOTERROWHEADER+"-inner",FOOTER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.FOOTER,FOOTER_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.FOOTER+"-inner",EDGEHEADER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.EDGEHEADER,EDGEHEADER_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.EDGEHEADER+"-inner",EDGEHEADER_CELL_CHECKBOX:_.QCELL.def.cssprefix+_.QCELL.def.areaname.EDGEHEADER+"-cell-checkbox",EDGEHEADER_CELL_RADIO:_.QCELL.def.cssprefix+_.QCELL.def.areaname.EDGEHEADER+"-cell-radio",ROWHEADER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER,ROWHEADER_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER+"-inner",ROWHEADER_CELL_CHECKBOX:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER+"-cell-checkbox",ROWHEADER_CELL_RADIO:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER+"-cell-radio",ROWHEADER_STATE_INIT:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER+"-state-init",ROWHEADER_STATE_INSERT:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER+"-state-insert",ROWHEADER_STATE_UPDATE:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER+"-state-update",ROWHEADER_STATE_DELETE:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER+"-state-delete",ROWHEADER_CUSTOM:_.QCELL.def.cssprefix+_.QCELL.def.areaname.ROWHEADER+"-custom",COLHEADER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.COLHEADER,COLHEADER_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.COLHEADER+"-inner",COLHEADER_CELL_CHECKBOX:_.QCELL.def.cssprefix+_.QCELL.def.areaname.COLHEADER+"-cell-checkbox",COLHEADER_CHECKBOX:_.QCELL.def.cssprefix+_.QCELL.def.areaname.COLHEADER+"-checkbox",COLHEADER_RADIO:_.QCELL.def.cssprefix+_.QCELL.def.areaname.COLHEADER+"-radio",COLHEADER_AREA:_.QCELL.def.cssprefix+_.QCELL.def.areaname.COLHEADER+"-area",HSCROLLBAR:_.QCELL.def.cssprefix+_.QCELL.def.areaname.HSCROLLBAR,HSCROLL_THUMB:_.QCELL.def.cssprefix+"hsthumb",VSCROLLBAR:_.QCELL.def.cssprefix+_.QCELL.def.areaname.VSCROLLBAR,VSCROLL_THUMB:_.QCELL.def.cssprefix+"vsthumb",CELL:_.QCELL.def.cssprefix+"cell",CELL_FOCUS:_.QCELL.def.cssprefix+"cell-focus",CELL_SELECT:_.QCELL.def.cssprefix+"cell-select",CELL_HIGHLIGHTREPEAT:_.QCELL.def.cssprefix+"cell-highlightrepeat",CELL_VIEWPORT:_.QCELL.def.cssprefix+"cell-viewport",CELL_FOOTERROWHEADER:_.QCELL.def.cssprefix+"cell-frowheader",CELL_FOOTER:_.QCELL.def.cssprefix+"cell-footer",CELL_EDGEHEADER:_.QCELL.def.cssprefix+"cell-edgeheader",CELL_ROWHEADER:_.QCELL.def.cssprefix+"cell-rowheader",CELL_COLHEADER:_.QCELL.def.cssprefix+"cell-colheader",CELL_HEADERROWS:_.QCELL.def.cssprefix+"cell-headerrows",CELL_FROZENROWS:_.QCELL.def.cssprefix+"cell-frozenrows",CELL_NORMALROWS:_.QCELL.def.cssprefix+"cell-normalrows",CELL_FROZENBOTTOMROWS:_.QCELL.def.cssprefix+"cell-frozenbottomrows",CELL_FROZENBOTTOMROWS_PANEL:_.QCELL.def.cssprefix+"cell-frozenbottomrows-panel",CELL_FOOTERROWS:_.QCELL.def.cssprefix+"cell-footerrows",CELL_HEADERCOLS:_.QCELL.def.cssprefix+"cell-headercols",CELL_FROZENCOLS:_.QCELL.def.cssprefix+"cell-frozencols",CELL_NORMALCOLS:_.QCELL.def.cssprefix+"cell-normalcols",COLHEADER_DRAG_AND_DROP_AREA:_.QCELL.def.cssprefix+"colheaderdndarea",COLMOVE_SHADOW:_.QCELL.def.cssprefix+"colmoveshadow",COLMOVELINE:_.QCELL.def.cssprefix+"colmoveline",GROUPTREEUI:_.QCELL.def.cssprefix+"gtui",GROUPTREEUI_ARROW:_.QCELL.def.cssprefix+"gtui-arrow",GROUPTREEUI_ARROW_EXPAND:_.QCELL.def.cssprefix+"gtui-arrow-expand",GROUPTREEUI_ARROW_COLLAPSE:_.QCELL.def.cssprefix+"gtui-arrow-collapse",GROUPTREEUI_FOLDER:_.QCELL.def.cssprefix+"gtui-folder",GROUPTREEUI_FOLDER_EXPAND:_.QCELL.def.cssprefix+"gtui-folder-expand",GROUPTREEUI_FOLDER_COLLAPSE:_.QCELL.def.cssprefix+"gtui-folder-collapse",GROUPTREEUI_DOT:_.QCELL.def.cssprefix+"gtui-dot",GROUPTREEUI_HEADER:_.QCELL.def.cssprefix+"gtui-header",GROUPTREEUI_FOOTER:_.QCELL.def.cssprefix+"gtui-footer",SORT_AREA:_.QCELL.def.cssprefix+"sortarea",SORT_ASC:_.QCELL.def.cssprefix+"sort-asc",SORT_DESC:_.QCELL.def.cssprefix+"sort-desc",MULTI_SORT_ORDER:_.QCELL.def.cssprefix+"multisort-order",SORTABLE:_.QCELL.def.cssprefix+"sortable",COLRESIZE_AREA:_.QCELL.def.cssprefix+"colresizearea",COLRESIZE_AREA_HOVER:_.QCELL.def.cssprefix+"colresizearea-hover",COLRESIZELINE:_.QCELL.def.cssprefix+"colresizeline",COLRESIZETOOLTIP:_.QCELL.def.cssprefix+"colresizetooltip",EMPTYMESSAGE:_.QCELL.def.cssprefix+"emptymessasge",PAGINATION_UI_CENTER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-ui-center",PAGINATION_UI_RIGHT:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-ui-right",PAGINATION_NAV:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav",PAGINATION_NAV_BTN:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav-btn",PAGINATION_NAV_INPUT:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav-input",PAGINATION_NAV_SELECT:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav-select",PAGINATION_NAV_INFO:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav-info",PAGINATION_NAV_PAGER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav-pager",PAGINATION_NAV_PAGER_NOW:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav-pager-now",PAGINATION_NAV_PAGER_SKIP:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav-pager-skip",PAGINATION_NAV_EXTEND_MOVE:_.QCELL.def.cssprefix+_.QCELL.def.areaname.PAGINATION+"-nav-extend-move",CELL_ROWHEADER_CHECKBOX:_.QCELL.def.cssprefix+"cell-rowheader-checkbox",CELL_ROWHEADER_RADIO:_.QCELL.def.cssprefix+"cell-rowheader-radio",FILTER_AREA:_.QCELL.def.cssprefix+"filterarea",FILTER_AREA_ADJUST:_.QCELL.def.cssprefix+"filterarea-adjust",FILTER_AREA_HOVER:_.QCELL.def.cssprefix+"filterarea-hover",FILTER_TITLE_AREA:_.QCELL.def.cssprefix+"filter-title-area",FILTER_TITLE_SPAN:_.QCELL.def.cssprefix+"filter-title-span",FILTER_UI_AREA:_.QCELL.def.cssprefix+"filter-ui-area",FILTER_UI_BTN:_.QCELL.def.cssprefix+"filter-ui-btn",FILTER_UI_CLOSE:_.QCELL.def.cssprefix+"filter-ui-close",FILTER_UI_ADDOPERATOR:_.QCELL.def.cssprefix+"filter-ui-addoperator",FILTER_UI_ADDOPERATOR_CLOSE:_.QCELL.def.cssprefix+"filter-ui-addoperator_close",EXCLUDE_DRAGABLE:_.QCELL.def.cssprefix+"exclude-dragable",CONTEXTMENU:_.QCELL.def.cssprefix+"contextmenu",CONTEXTMENU_AREA:_.QCELL.def.cssprefix+"contextmenu-area",CONTEXTMENU_ROOT:_.QCELL.def.cssprefix+"contextmenu-root",CONTEXTMENU_MENU:_.QCELL.def.cssprefix+"contextmenu-menu",CONTEXTMENU_SUB_MENU:_.QCELL.def.cssprefix+"contextmenu-sub-menu",CONTEXTMENU_ITEM:_.QCELL.def.cssprefix+"contextmenu-item",CONTEXTMENU_ITEM_IMG:_.QCELL.def.cssprefix+"contextmenu-item-img",CONTEXTMENU_ITEM_LABEL:_.QCELL.def.cssprefix+"contextmenu-item-label",CONTEXTMENU_ITEM_SUB:_.QCELL.def.cssprefix+"contextmenu-item-sub",CONTEXTMENU_DIVINE:_.QCELL.def.cssprefix+"contextmenu-divine",CONTEXTMENU_HOVER:_.QCELL.def.cssprefix+"contextmenu-hover",CONTEXTMENU_DISABLE:_.QCELL.def.cssprefix+"contextmenu-disable",COLSEARCH_AREA:_.QCELL.def.cssprefix+"colsearch-area",COLSEARCH_AREA_HOVER:_.QCELL.def.cssprefix+"colsearch-area-hover",COLSEARCH_UI_AREA:_.QCELL.def.cssprefix+"colsearch-ui-area",COLSEARCH_UI_BTN:_.QCELL.def.cssprefix+"colsearch-ui-btn",COLSEARCH_UI_CLOSE:_.QCELL.def.cssprefix+"colsearch-ui-close",PROGRESS_UI:_.QCELL.def.cssprefix+"progress-ui",TOOLTIP:_.QCELL.def.cssprefix+"tooltip",GROUPUI:_.QCELL.def.cssprefix+_.QCELL.def.areaname.GROUPUI,GROUPUI_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.GROUPUI+"-inner",UI_ICON:_.QCELL.def.cssprefix+"ui-icon",UI_ICON_CLOSE:_.QCELL.def.cssprefix+"ui-icon-close",EDITOR_AREA:_.QCELL.def.cssprefix+"coleditor-area",EDITOR_AREA_HOVER:_.QCELL.def.cssprefix+"coleditor-area-hover",EDITOR_UI_STYLE:_.QCELL.def.cssprefix+"coleditor-ui-style",COLSTYLEEDITOR:_.QCELL.def.cssprefix+_.QCELL.def.areaname.COLSTYLEEDITOR,COLSTYLEEDITOR_WRAP:_.QCELL.def.cssprefix+_.QCELL.def.areaname.COLSTYLEEDITOR+"-wrap",STATIC_ROW:_.QCELL.def.cssprefix+_.QCELL.def.areaname.STATIC+"-row",GRANDTOTAL:_.QCELL.def.cssprefix+_.QCELL.def.areaname.GRANDTOTAL+"-row",TYPE_DATEPICKER:_.QCELL.def.cssprefix+_.QCELL.def.type.DATEPICKER+"-type",SHEETPANEL_INNER:_.QCELL.def.cssprefix+_.QCELL.def.areaname.SHEETPANEL+"-inner",SHEETPANEL_INNER_SPAN:_.QCELL.def.cssprefix+_.QCELL.def.areaname.SHEETPANEL+"-inner-span",REMOVE_AREA:_.QCELL.def.cssprefix+"removearea"}),_.QCELL.def.rowgroup=_._.extend(_.QCELL.def.rowgroup,{FROZEN:1,NORMAL:2,FROZENBOTTOM:3}),_.QCELL.module="basic",_.QCELL.BasicQCELL=function(t){if(!1===_.util.checkType(t,"object"))return null;_.Element.call(this,t)},_.util.inherit(_.QCELL.BasicQCELL,_.Element),_.QCELL.BasicQCELL.prototype._initMOL=function(){_.Element.prototype._initMOL.call(this),_.util.addMethod(this,"_rows",(function(){return this.attr("rows")})),_.util.addMethod(this,"_rows",(function(t){return!!_._.isNumber(t)&&(this.attr("rows",t,"number"),!0)})),_.util.addMethod(this,"_cols",(function(){return this.attr("cols")})),_.util.addMethod(this,"_cols",(function(t){return!!_._.isNumber(t)&&(this.attr("cols",t,"number"),!0)})),_.util.addMethod(this,"_idx",(function(t,e){return this._idx(t,e,"current")})),_.util.addMethod(this,"_idx",(function(t,e,r){try{return this._getIdxInfo(e,t)[r]}catch(t){return-1}})),_.util.addMethod(this,"_idx",(function(t,e,r,i){try{return this._getIdxInfo(e,t)[r]=i,!0}catch(t){return!1}})),_.util.addMethod(this,"_focusCell",(function(t){var e=parseInt(t.getAttribute("data-row")),r=parseInt(t.getAttribute("data-col"));return this._focusCell(e,r,t)})),_.util.addMethod(this,"_focusCell",(function(t,e){return this._focusCell(t,e,this._getCellDOM(t,e))})),_.util.addMethod(this,"_focusCell",(function(t,e,r){if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var i=this._findNextCell(t,e,"up");t=i.row,e=i.col,r=this._getCellDOM(t,e)}if(this._updateIdx("focus",t,e)){this._clearFocusCSS(),_._.isElement(r)&&this._addFocusStyleClass(r);var o=this._getCellDOM(t,e);if(_._.isElement(o)&&_.util.hasClass(o,_.QCELL.def.css.CELL)){var a=_.QCELL.def.css;if("0"===o.getAttribute("tabindex")&&o.focus(),this._updateIdx("cursor",t,e),_.util.hasClass(o,a.CELL)){var s=parseInt(o.getAttribute("data-row")),n=parseInt(o.getAttribute("data-col"));if(_.util.hasClass(o,a.CELL_VIEWPORT))switch(this.attr("selectmode")){case"rows":void 0!==window.event&&!0===window.event.ctrlKey||this._clearSelection(),this._selectRow(s);break;case"row":this._clearSelection(),this._selectRow(s);break;case"cols":void 0!==window.event&&!0===window.event.ctrlKey||this._clearSelection(),this._selectCol(n);break;case"col":this._clearSelection(),this._selectCol(n);break;default:this._clearSelection(),this._selectCell(s,n)}}}return!0}return!1})),_.util.addMethod(this,"_headerCellValue",(function(t,e){return this.attr("headertext")[e][t]})),_.util.addMethod(this,"_headerCellValue",(function(t,e,r){try{var i=this._getCellDOM(t,e);return r=void 0===r?"":r,this.attr("headertext")[e][t]=r,_._.isElement(i)&&(i.innerHTML=this._getHeaderCellSpan(r,t,e)),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._headerCellValue",t.message),!1}})),_.util.addMethod(this,"_hiddenHeaderCellValue",(function(t,e){if(this.attr("hiddenheadertext").length>0)for(var r=0;r<this.attr("hiddenheadertext").length;r++)if(this.attr("hiddenheadertext")[r].key===e)return this.attr("hiddenheadertext")[r].title[t];return null})),_.util.addMethod(this,"_hiddenHeaderCellValue",(function(t,e,r){try{if(r=void 0===r?"":r,this.attr("hiddenheadertext").length>0)for(var i=0;i<this.attr("hiddenheadertext").length;i++)if(this.attr("hiddenheadertext")[i].key===e)return this.attr("hiddenheadertext")[i].title[t]=r,!0;return!1}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._hiddenHeaderCellValue",t.message),!1}})),_.util.addMethod(this,"_dataCellValue",(function(t,e){return this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]})),_.util.addMethod(this,"_dataCellValue",(function(t,e,r){try{var i=this._getCellDOM(t,e);return this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=r,_._.isElement(i)&&_.util.textContent(i,void 0===r?"":r),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._dataCellValue",t.message),!1}})),_.util.addMethod(this,"_cellValue",(function(t,e){var r=this.attr("headerrows"),i=this.attr("rows"),o=this.attr("headercols"),a=this.attr("cols");return t>=0&&t<r&&e>=o&&e<a?this._headerCellValue(t,e):t>=r&&t<i&&e>=o&&e<a?this._dataCellValue(t,e):void 0})),_.util.addMethod(this,"_cellValue",(function(t,e,r){var i=this.attr("headerrows"),o=this.attr("rows"),a=this.attr("headercols"),s=this.attr("cols");return t>=0&&t<i&&e>=a&&e<s?this._headerCellValue(t,e,r):t>=i&&t<o&&e>=a&&e<s&&this._dataCellValue(t,e,r)}))},_.QCELL.BasicQCELL.prototype._initTag=function(){this.tag("QBOX.QCELL.BasicQCELL")},_.QCELL.BasicQCELL.prototype._init=function(t){_.Element.prototype._init.call(this,t)},_.QCELL.BasicQCELL.prototype._initAttrs=function(t){_.Element.prototype._initAttrs.call(this,t),this.removeAttr("parent"),this.attr("locale",_.QCELL.config.locale,"string"),this.attr("msg",_.QCELL.def.msg[this.attr("locale")],"object"),this.attr("width",t.width,"string"),this.attr("height",t.height,"string"),this.attr("lineheight",3,"number"),this._initAttr("rowheight",t.rowheight,"object"),this.attr("dynamicrowheight",new i._QHashtable,"object"),this.attr("headercolwidth",50,"number"),this.attr("colwidths",[],"array"),this.attr("colwidthsperpixel",[],"array"),this.attr("scrollbarwidth",17,"number"),this.attr("layoutsize",{root:{},panel:{},sheetpanel:{},container:{},edgeheader:{},rowheader:{},colheader:{},viewport:{},footerrowheader:{},footer:{},hscrollbar:{},vscrollbar:{}},"object"),this.attr("percentwidth",t.width.indexOf("%")>-1,"boolean"),this.attr("percentheight",t.height.indexOf("%")>-1,"boolean"),this.attr("percentcolwidth",!1,"boolean"),this.attr("qcellcols",[],"array");for(var e=0;e<t.columns.length;e++)void 0!==t.columns[e].style&&void 0===t.columns[e].style_backup&&(t.columns[e].style_backup=_._.clone(t.columns[e].style));this._initAttr("colsprops",t.columns,"array"),this._initAttr("hiddencolsprops",t.hiddencolumns,"array"),this.attr("colkeys",[],"array"),this.attr("colids",[],"array"),this.attr("colkeysinfo",new i._QHashtable,"object"),this.attr("colidsinfo",{},"object"),this.attr("rows",0,"number"),this.attr("cols",0,"number"),this.attr("idxinfo",{cursor:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},drag:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},click:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},focus:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},dblclick:{row:{previous:-1,current:-1},col:{previous:-1,current:-1}},selected:{row:new i._QHashtable,col:new i._QHashtable},style:{row:new i._QHashtable,col:new i._QHashtable},hover:{row:new i._QHashtable,col:new i._QHashtable}},"object"),this.attr("syncinfo",{row:new i._QHashtable,col:new i._QHashtable},"object"),this._initAttr("selectmode",t.selectmode,"string"),this.attr("eventparam",{target:this},"object"),this.attr("mousedown",!1,"boolean"),this.attr("usereventinfo",_._.clone(t.events),"object"),this.attr("dragging",!1,"boolean"),this.attr("hdhandle",null,"number"),this.attr("vdhandle",null,"number"),this.attr("hdcount",0,"number"),this.attr("vdcount",0,"number"),this.attr("colmove",!1,"boolean"),this.attr("colmoveexecution",!1,"boolean"),this.attr("colheaderdndarea",null,"jquery"),this.attr("colmoveshadow",null,"jquery"),this.attr("colmoveline",null,"jquery"),this.attr("colresize",!1,"boolean"),this.attr("colresizearea",null,"jquery"),this.attr("colresizeline",null,"jquery"),this.attr("colresizetooltip",null,"jquery"),this.attr("sortinfo",[],"array"),this.attr("defaultsortarea",null,"jquery"),this.attr("dataindexpool",new i._QHashtable,"object"),this.attr("filterarea",null,"jquery"),this.attr("filteruiarea",null,"jquery"),this.attr("filteruivisible",!1,"boolean"),this.attr("headerrows",0,"number"),this.attr("headercols",0,"number"),this.attr("headertext",[],"array"),this.attr("hiddenheadertext",{},"object"),this._initAttr("rowheaders",t.rowheaders,"array"),this._initAttr("rowheaderstitle",t.rowheaderstitle,"array"),this._initAttr("rowheaderssort",t.rowheaderssort,"array"),this._initAttr("rowheaderstitlekey",t.rowheaderstitlekey,"array"),this._initAttr("rowheaderoptions",t.rowheaderoptions,"array"),this._initAttr("frozencols",t.frozencols,"number"),this._initAttr("frozenrows",t.frozenrows,"number"),this._initAttr("frozenbottomrows",t.frozenbottomrows,"number"),this._initAttr("frozenbottomstyle",t.frozenbottomstyle,"string"),this._initAttr("makefrozenbottomdata",t.makefrozenbottomdata,"boolean"),this._initAttr("highlightrepeat",t.highlightrepeat,"number"),this._initAttr("merge",_._.clone(t.merge),"object"),this.attr("merge_header_info",[],"array"),this.attr("merge_data_info",[],"array"),this.attr("footerrows",0,"number"),this.attr("parent",null,"element"),this.attr("elementpool",new i._QHashtable,"object"),this.attr("cellmatrix",new i._QHashtable,"object"),this.attr("focuscell",null,"element"),this.attr("currentdata",[],"array"),void 0===t.data&&(t.data={type:"object",input:[]}),this._initAttr("data",t.data,"object"),this._initAttr("original",t.original,"boolean"),this._initAttr("origindata",[],"array"),this._initAttr("originstate",{i:[],d:[]},"object"),this.attr("rowheaderdata",[],"array"),this.attr("accumulatedwheel",0,"number"),this.attr("hsinfo",{},"object"),this.attr("vsinfo",{},"object"),this.attr("adjustrow",!1,"boolean"),this.attr("adjustcol",!1,"boolean"),this._initHSInfo(),this._initVSInfo(),this.attr("timeoutid",null,"number"),this._initAttr("copy",t.copy,"boolean"),this._initAttr("paste",t.paste,"boolean"),this.attr("onloadurl",t.onloadurl,"string"),this.attr("onloadurlparam",t.onloadurlparam,"object"),this.attr("onloadurlsucesscallback",t.onloadurlsucesscallback,"function"),this.attr("onloadurlfailcallback",t.onloadurlfailcallback,"function"),this.attr("paginationinfo",t.pagination,"object"),this.attr("pagesyncorgindata",void 0!==t.pagination&&void 0!==t.pagination.syncorgindata&&t.pagination.syncorgindata,"boolean"),this.attr("groupinfo",{showpanel:t.group.showpanel,type:t.group.type,expand:_._.clone(t.group.expand),header:_._.clone(t.group.header),footer:_._.clone(t.group.footer)},"object"),this.attr("groupstate",{grouped:!1,type:"normal",data:[],columnsinfo:new i._QHashtable,nodes:new i._QHashtable,treeuirows:[],treeuirownodes:[],headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[]},"object"),this.attr("treestate",{grouped:!1,type:"tree",data:[],columnsinfo:new i._QHashtable,nodes:new i._QHashtable,treeuirows:[],treeuirownodes:[],headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[],state:{}},"object"),this.attr("hierachystate",{grouped:!1,type:"tree",data:[],columninfo:{},nodes:new i._QHashtable,headerrows:[],headerrownodes:[],footerrows:[],footerrownodes:[],state:{}},"object"),this.attr("useGroupUI",t.useGroupUI,"boolean"),this.attr("groupuiinfo",[],"array"),this.attr("emptymessage",t.emptymessage,"string"),this.attr("useemptymessage",t.useemptymessage,"boolean"),this.attr("contextmenu",t.contextmenu,"object"),this.attr("contextmenuheader",t.contextmenu.header,"object"),this.attr("contextmenudata",t.contextmenu.data,"object"),this.attr("contextmenudisable",[],"array"),this.attr("contextmenuheaderdisable",[],"array"),this.attr("contextmenudatadisable",[],"array"),this.attr("contextmneuui",null,"jquery"),this.attr("contextmenuid","","string"),this.attr("colsearcharea",null,"jquery"),this.attr("colsearchuiarea",null,"jquery"),this.attr("colsearchuivisible",!1,"boolean"),this.attr("colsearchinfo",{},"object"),this.attr("tooltipvisible",!1,"boolean"),this.attr("isscrollleft",!1,"boolean"),this.attr("colstyleeditorarea",null,"jquery"),this.attr("colstyleeditorui",null,"jquery"),this.attr("colstyleeditor",{},"object"),this.attr("groupdata",t.groupdata,"object"),this._initAttr("bottompanel",t.bottompanel,"boolean"),this._initAttr("bottompanelheight",t.bottompanelheight,"number"),this._initAttr("bottompanelstyle",t.bottompanelstyle,"string"),this.attr("bottompanelcallback",t.bottompanelcallback,"function"),this.attr("rowheadercheckboxclick",[],"array"),this._initAttr("excelexportwithformat",t.excelexportwithformat,"boolean"),this.attr("beforepastecallback",t.beforepastecallback,"function"),this.attr("additionaldataindex",t.additionaldataindex,"array"),void 0!==t.rowheaderwidth&&_._.isNumber(t.rowheaderwidth)&&this.attr("headercolwidth",t.rowheaderwidth,"number"),this._initAttr("usetooltipinellipsis",t.usetooltipinellipsis,"boolean"),this._initAttr("policy",t.policy,"string"),"sequence"===this.attr("policy")?this.attr("usedynamic",!0,"boolean"):(this.attr("useall","dynamic"!==this.attr("policy"),"boolean"),!0===_.QCELL.isForceDynamic&&(this.attr("useall",!1,"boolean"),_.QCELL.isForceDynamic=!1)),this.attr("isfirstsort",!1,"boolean"),this._initAttr("useexcelstylepanel",t.useexcelstylepanel,"boolean"),this.attr("filteruiwidth",void 0===t.filteruiwidth?0:t.filteruiwidth,"number"),this.attr("presentseqatfooter",t.presentseqatfooter,"boolean"),this._initAttr("disabletooltip",t.disabletooltip,"boolean"),this.attr("copypastemode",t.copypastemode,"string"),this.attr("losefocusonleave",t.losefocusonleave,"boolean")},_.QCELL.BasicQCELL.prototype._initAttr=function(t,e,r){this.attr(t,void 0===e?_.QCELL.config[t]:e,r)},_.QCELL.BasicQCELL.prototype._setParent=function(){var t=document.getElementById(this.attr("parentid"));this.attr("parent",_._.isElement(t)?t:null,"element")},_.QCELL.BasicQCELL.prototype._clearAttrs=function(){var t=this.attr("id");_._.each(this.attr("qcellcols"),(function(t){t.destroy()})),_._.isElement(this.attr("parent"))&&_.$(this.attr("parent")).empty(),_.$(window).off(this._getUserEventName("resize")),_.$(document).off("mouseup."+t).off("mousemove."+t)},_.QCELL.BasicQCELL.prototype._rebuild=function(t){try{var e=this.getCustomPanel(),r=this.getUserEventInfo(),i=[],o=[];if(!0===this.attr("isResizing")){for(var a=this.attr("headercols");a<this.attr("cols");a++){var s=_._.clone(this._getQCellCol(a).getProperties());s.width=this._getColWidth(a)+"",i.push(s)}o=_._.clone(this.attr("sortinfo"))}this._clearAttrs(),this._removeContextMenu(),void 0!==t&&!0===t&&(this.attr("bRebuildWithPrevData",!0,"boolean"),this.attr("bLoadurlstop",!0,"boolean"),this.attr("arrBackupData",_._.clone(this.attr("currentdata")),"array"),this.attr("objBackupIdx",_._.clone(this.attr("idxinfo")),"object"),this.attr("arrBackupDeletedrowsdata",_._.clone(this.attr("deletedrowsdata")),"array"));var n=!0===this.attr("useInitProp")||!0===this.attr("useRemoveUI")&&!0===this.attr("useRebuildAPI")?this.getInitProperties():this.getProperties();return!0===this.attr("isResizing")&&(n.columns=i),this._init(n),this.attr("usereventinfo",r,"object"),this._createCols(),this._create(),this.attr("bRebuildWithPrevData",!1,"boolean"),!0===t&&null!==this.attr("prevcontextmenu")&&this._setContextMenu(this.attr("prevcontextmenu")),o.length&&(this.attr("sortinfo",o,"array"),this._updateSingleSortIcon(o)),this.resetCustomPanel(e),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._refresh",t.message),!1}},_.QCELL.BasicQCELL.prototype._refresh=function(){try{return this._refreshRs(),this._refreshCs(),this._refreshDRs(),this._refreshDCs(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._refresh",t.message),!1}},_.QCELL.BasicQCELL.QCellCol=function(t){if(!1===_.util.checkType(t,"object"))return null;_.Base.call(this,t)},_.util.inherit(_.QCELL.BasicQCELL.QCellCol,_.Base),_.util.addMethod(_.QCELL.BasicQCELL.QCellCol,"create",(function(t){return new _.QCELL.BasicQCELL.QCellCol(this._adjustProps(t))})),_.util.addMethod(_.QCELL.BasicQCELL.QCellCol,"create",(function(t,e){return this._create(t,e)})),_.QCELL.BasicQCELL.QCellCol.prototype._initMOL=function(){_.Base.prototype._initMOL.call(this),_.util.addMethod(this,"_styleInfo",(function(t,e){return this.attr("styleinfo")[t][e]})),_.util.addMethod(this,"_styleInfo",(function(t,e,r){this.attr("styleinfo")[t][e]=r}))},_.QCELL.BasicQCELL.QCellCol.prototype._initTag=function(){this.tag("QBOX.QCELL.BasicQCELL.QCellCol")},_.QCELL.BasicQCELL.QCellCol.prototype._init=function(t){_.Base.prototype._init.call(this,t),this._initStyleInfo(),this._initStyle()},_.QCELL.BasicQCELL.QCellCol.prototype._initAttrs=function(t){_.Base.prototype._initAttrs.call(this,t),this.removeAttr("parentid"),this.attr("parent",t.parent,"object"),this.attr("styleinfo",{header:{classname:"",rule:"",css:{}},data:{classname:"",rule:"",css:{}}},"object"),this._initAttr("width",t.width,"string"),this._initAttr("title",t.title,"array"),this._initAttr("key",t.key,_._.isFunction(this.attr("parent").attr)&&"array"===this.attr("parent").attr("data").type?"number":"string"),this._initAttr("styleclassname",t.styleclassname,"object"),this._initAttr("options",t.options,"object"),this._initAttr("format",t.options.format,"object"),this._initAttr("formatstatic",{},"object"),this._initAttr("datatype",t.datatype,"string"),this.attr("sortinfoofcol",{sorttype:"none",order:0},"object"),this.attr("colsortarea",null,"jquery"),this._initAttr("tooltipcallback",t.options.tooltipcallback,"function");var e=!_._.isUndefined(t.options.wordwrap)&&t.options.wordwrap,r=!_._.isUndefined(t.options.required)&&t.options.required;if(this.attr("type","static","string"),void 0!==t.style.header&&"center"===t.style.header["text-align"]&&delete t.style.header["text-align"],void 0!==_.QCELL.config.excludeStyle){var i;if(void 0!==_.QCELL.config.excludeStyle.header&&void 0!==t.style.header)for(i in _.QCELL.config.excludeStyle.header)t.style.header[i]===_.QCELL.config.excludeStyle.header[i]&&delete t.style.header[i];if(void 0!==_.QCELL.config.excludeStyle.data&&void 0!==t.style.data)for(i in _.QCELL.config.excludeStyle.data)t.style.data[i]===_.QCELL.config.excludeStyle.data[i]&&delete t.style.data[i]}if(this.attr("usedatatextalign",!1,"boolean"),void 0!==t.style){if(void 0!==t.style_backup){var o="";if(void 0!==t.style_backup.header)for(o in t.style.header={},t.style_backup.header)t.style.header[o]=t.style_backup.header[o];if(void 0!==t.style_backup.data)for(o in t.style.data={},t.style_backup.data)t.style.data[o]=t.style_backup.data[o]}void 0!==t.style.header&&void 0!==t.style.header["text-align"]&&(this.attr("header_text_algin",t.style.header["text-align"],"string"),delete t.style.header["text-align"]),void 0!==t.style.data&&void 0!==t.style.data["text-align"]&&(this.attr("data_text_algin",t.style.data["text-align"],"string"),this.attr("usedatatextalign",!0,"boolean"),delete t.style.data["text-align"])}null===this.attr("header_text_algin")&&this._initAttr("header_text_algin",void 0,"string"),null===this.attr("data_text_algin")&&this._initAttr("data_text_algin",void 0,"string"),this._initAttr("style",t.style,"object"),this._initAttr("editor",t.editor,"boolean"),this.attr("colstyleeditorvisivle",!1,"boolean"),this.attr("colstyleeditorbdata","QCELL_COL_DATA","string"),this.attr("colstyleeditordata","","string");var a=!!_._.isUndefined(t.options.mergecol)||t.options.mergecol;this._initAttr("mergecol",a,"boolean"),this.attr("mergeref",t.options.mergeref,"string"),this.attr("exportdatatype",void 0===t.options?"":t.options.exportdatatype,"string"),this.attr("colremovearea",null,"jquery"),this._initAttr("removecallback",t.options.removecallback,"function"),this._initAttr("topmove",t.topmove,"boolean"),this._initAttr("move",t.move,"boolean"),this._initAttr("resize",t.resize,"boolean"),this._initAttr("sort",t.sort,"boolean"),this._initAttr("filter",t.filter,"boolean"),this._initAttr("search",t.search,"boolean"),this._initAttr("tooltip",t.tooltip,"boolean"),this._initAttr("required",r,"boolean"),this._initAttr("remove",t.remove,"boolean"),this._initAttr("wordwrap",e,"boolean")},_.QCELL.BasicQCELL.QCellCol.prototype._initAttr=function(t,e,r){this.attr(t,void 0===e?_.QCELL.colconfig[t]:e,r)},_.QCELL.colconfig=_._.extend(_._.clone(_.QCELL.colconfig),{title:[""],type:"static",width:"100px",key:"",styleclassname:{header:"",data:""},style:{},move:!1,resize:!1,sort:!1,search:!1,tooltip:!1,editor:!1,format:{type:"",rule:"",origin:"",callback:null},datatype:"string",options:{},header_text_align:"center",data_text_align:"left",remove:!1}),_.QCELL.BasicQCELL.QCellCol._create=function(t,e){return this._checkRequiredProps(t,e)&&this._checkValidationOfProps(t,e)?new _.QCELL.BasicQCELL.QCellCol(this._adjustProps(e)):null},_.QCELL.BasicQCELL.QCellCol._checkRequiredProps=function(t,e){var r=!0;if(_._.isObject(e)&&!1===_._.isArray(e)){for(var i=["id","parent"],o=0,a=i.length;o<a;o++){var s=i[o];if(void 0===e[s]){_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+s+'" property.'),r=!1;break}}i.RT_clear(),i=null}else _.QCELL.log("err","QCELL.create",'Please check "columns['+t+']"\'s type is "object".'),r=!1;return r},_.QCELL.BasicQCELL.QCellCol._checkValidationOfProps=function(t,e){var r=!0;return _.$.each(e,(function(e,i){return r=_.QCELL.BasicQCELL.QCellCol._checkValidationOfProp(t,e,i)})),r},_.QCELL.BasicQCELL.QCellCol._checkValidationOfProp=function(t,e,r){var i=!0,o=!0,a="";switch(e){case"width":a="string",!1===_._.isString(r)?"width"===e&&!1!==_._.isNumber(r)||(i=!1):"width"===e&&r.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0&&(_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "number" or "px" or "%" as value.'),i=!1);break;case"datatype":if(a="string",!1===_._.isString(r))i=!1;else switch(r){case"string":case"number":break;default:_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "string" or "number" as value.'),i=!1,o=!1}break;case"move":case"resize":case"editor":case"search":case"tooltip":a="boolean",!1===_._.isBoolean(r)&&(i=!1);break;case"styleclassname":a="object",_._.isArray(r)||!1===_._.isObject(r)?i=!1:!1===_._.every(_._.keys(r),(function(t){return"header"===t||"data"===t}))?(_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "header" or "data" as key.'),i=!1,o=!1):_.$.each(r,(function(r,a){!1===_._.isString(a)&&(_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+"."+r+'" property. This property\'s type is "string".'),i=!1,o=!1)}));break;case"style":a="object",_._.isArray(r)||!1===_._.isObject(r)?i=!1:!1===_._.every(_._.keys(r),(function(t){return"header"===t||"data"===t}))?(_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "header" or "data" as key.'),i=!1,o=!1):_.$.each(r,(function(r,a){!1===_._.isObject(a)&&(_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+"."+r+'" property. This property\'s type is "object".'),i=!1,o=!1)}));break;case"options":if(void 0!==r&&!1===_._.isObject(r)||!0===_._.isArray(r))a="object",i=!1;else if(void 0!==r.format&&null!==r.format)if(void 0!==r.format.type&&!1===_._.isString(r.format.type))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.type"\'s type is "'+a+'".'),i=!1,o=!1;else switch(r.format.type){case"date":void 0===r.format.origin&&!1===_._.isString(r.format.origin)?(a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.origin"\'s type is "'+a+'".'),i=!1,o=!1):void 0===r.format.rule&&!1===_._.isString(r.format.rule)&&(a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.rule"\'s type is "'+a+'".'),i=!1,o=!1);break;case"number":case"string":void 0===r.format.rule&&!1===_._.isString(r.format.rule)&&(a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.rule"\'s type is "'+a+'".'),i=!1,o=!1);break;case"custom":void 0===r.format.callback&&!1===_._.isFunction(r.format.origin)&&(a="callback",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.format.origin"\'s type is "'+a+'".'),i=!1,o=!1)}}return!1===i&&o&&_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'"\'s type is "'+a+'".'),i},_.QCELL.BasicQCELL.QCellCol._adjustProps=function(t){return _._.assign(_._.clone(_.QCELL.colconfig),_._.mapValues(t,(function(t,e){return _.QCELL.BasicQCELL.QCellCol._adjustProp(e,t)})))},_.QCELL.BasicQCELL.QCellCol._adjustProp=function(t,e){var r=null;if(void 0===e)r=this._getDefaultValueOfProp(t);else switch(t){case"width":r=_._.isNumber(e)?e+"":e;break;case"move":case"resize":case"sort":case"search":case"tooltip":case"editor":r=!0===_._.isBoolean(e)&&e;break;case"styleclassname":r={header:void 0===e.header?this._getDefaultValueOfProp("styleclassname").header:e.header,data:void 0===e.data?this._getDefaultValueOfProp("styleclassname").data:e.data};break;case"styler":r=!0===_._.isFunction(e)?e:null;break;default:r=e}return r},_.QCELL.BasicQCELL.QCellCol._getDefaultValueOfProp=function(t){var e=_.QCELL.colconfig[t];return _._.isArray(e)||_._.isObject(e)&&!1===_._.isArray(e)?_._.clone(e):e},_.QCELL.BasicQCELL.QCellCol.prototype._setSortInfoOfCol=function(t,e){var r=!1;return"asc"!==t&&"desc"!==t&&"none"!==t||e>-1&&(this.attr("sortinfoofcol",{sorttype:t,order:e},"object"),r=!0),r},_.QCELL.BasicQCELL.QCellCol.prototype._initStyleInfo=function(){var t,e,r=_.QCELL.def,i=",",o=".",a=r.cssprefix+this.attr("parent").attr("id")+"-"+this.attr("id")+"-";t=a+"header-style",this._styleInfo("header","classname",t),this._styleInfo("header","rule",o+t+i+o+r.css.CELL_COLHEADER+o+t),e=a+"data-style",this._styleInfo("data","classname",e),this._styleInfo("data","rule",o+e+i+o+r.css.CELL_FROZENCOLS+o+r.css.CELL_FROZENROWS+o+e+i+o+r.css.CELL_FROZENCOLS+o+r.css.CELL_NORMALROWS+o+e+i+o+r.css.CELL_FROZENCOLS+o+r.css.CELL_FROZENBOTTOMROWS+o+e+i+o+r.css.CELL_FROZENCOLS+o+r.css.CELL_FROZENBOTTOMROWS_PANEL+o+e+i+o+r.css.CELL_NORMALCOLS+o+r.css.CELL_FROZENROWS+o+e+i+o+r.css.CELL_NORMALCOLS+o+r.css.CELL_NORMALROWS+o+e+i+o+r.css.CELL_NORMALCOLS+o+r.css.CELL_FROZENBOTTOMROWS+o+e+i+o+r.css.CELL_NORMALCOLS+o+r.css.CELL_FROZENBOTTOMROWS_PANEL+o+e+i+o+r.css.CELL_FROZENCOLS+o+r.css.CELL_FROZENROWS+o+r.css.CELL_HIGHLIGHTREPEAT+o+e+i+o+r.css.CELL_FROZENCOLS+o+r.css.CELL_NORMALROWS+o+r.css.CELL_HIGHLIGHTREPEAT+o+e+i+o+r.css.CELL_FROZENCOLS+o+r.css.CELL_FROZENBOTTOMROWS+o+r.css.CELL_HIGHLIGHTREPEAT+o+e+i+o+r.css.CELL_FROZENCOLS+o+r.css.CELL_FROZENBOTTOMROWS_PANEL+o+r.css.CELL_HIGHLIGHTREPEAT+o+e+i+o+r.css.CELL_NORMALCOLS+o+r.css.CELL_FROZENROWS+o+r.css.CELL_HIGHLIGHTREPEAT+o+e+i+o+r.css.CELL_NORMALCOLS+o+r.css.CELL_NORMALROWS+o+r.css.CELL_HIGHLIGHTREPEAT+o+e+i+o+r.css.CELL_NORMALCOLS+o+r.css.CELL_FROZENBOTTOMROWS+o+r.css.CELL_HIGHLIGHTREPEAT+o+e+o+r.css.CELL_NORMALCOLS+o+r.css.CELL_FROZENBOTTOMROWS_PANEL+o+r.css.CELL_HIGHLIGHTREPEAT+o+e)},_.QCELL.BasicQCELL.QCellCol.prototype._initStyle=function(){return this._removeStyle("all")&&this._setStyle(this.attr("style").header,"header")&&this._setStyle(this.attr("style").data,"data")},_.QCELL.BasicQCELL.QCellCol.prototype._getStyle=function(t){return"header"===t||"data"===t?_._.clone(this._styleInfo(t,"css")):{}},_.QCELL.BasicQCELL.QCellCol.prototype._setStyle=function(t,e){var r=!1;return"header"!==e&&"all"!==e||(_._.size(t)>0&&(this.attr("usercolstyle_header",t,"object"),this._styleInfo("header","css",_._.extend(_._.clone(this._styleInfo("header","css")),t)),_.util.createCSSRule(this._styleInfo("header","rule"),this._styleInfo("header","css"))),r=!0),"data"!==e&&"all"!==e||(_._.size(t)>0&&(this.attr("usercolstyle_data",t,"object"),this._styleInfo("data","css",_._.extend(_._.clone(this._styleInfo("data","css")),t)),_.util.createCSSRule(this._styleInfo("data","rule"),this._styleInfo("data","css"))),r=!0),r},_.QCELL.BasicQCELL.QCellCol.prototype._removeStyle=function(t){var e=!1;return"header"!==t&&"all"!==t||(_._.size(this._styleInfo("header","css"))>0&&(_.util.removeCSSRule(this._styleInfo("header","rule")),this._styleInfo("header","css",{})),e=!0),"data"!==t&&"all"!==t||(_._.size(this._styleInfo("data","css"))>0&&(_.util.removeCSSRule(this._styleInfo("data","rule")),this._styleInfo("data","css",{})),e=!0),e},_.QCELL.BasicQCELL.QCellCol.prototype._initUserColStyle=function(){null!==this.attr("usercolstyle_header")&&(this._removeStyle("header"),this._setStyle(this.attr("usercolstyle_header"),"header")),null!==this.attr("usercolstyle_data")&&(this._removeStyle("data"),this._setStyle(this.attr("usercolstyle_data"),"data"))},_.QCELL.BasicQCELL.QCellCol.prototype.getStyleClassName=function(t){return this.attr("styleclassname")[t]},_.QCELL.BasicQCELL.QCellCol.prototype.setStyleClassName=function(t,e){return this.attr("styleclassname")[t]=e,!0},_.QCELL.BasicQCELL.QCellCol.prototype.setSortInfoOfCol=function(t,e){return this._setSortInfoOfCol(t,e)},_.QCELL.BasicQCELL.QCellCol.prototype.getStyleInfo=function(t,e){return this._styleInfo(t,e)},_.QCELL.BasicQCELL.QCellCol.prototype.initStyle=function(){return this._initStyle()},_.QCELL.BasicQCELL.QCellCol.prototype.getStyle=function(t){return this._getStyle(t)},_.QCELL.BasicQCELL.QCellCol.prototype.setStyle=function(t,e){return this._setStyle(t,e)},_.QCELL.BasicQCELL.QCellCol.prototype.removeStyle=function(t){return this._removeStyle(t)},_.QCELL.BasicQCELL.prototype.onKeyWidth=function(t,e,r){var i=this,o=this.getColWidth(r),a=t===_.def.key.LEFT?-20:20;setTimeout((function(){i.setColWidth(r,o+a),setTimeout((function(){_.$(i._getCellDOM(e,r)).focus()}))}))},_.QCELL.BasicQCELL.prototype.onKeyDown=function(t){try{var e,r,i,o=t.target,a=t.keyCode,s=_.QCELL.def.css,n=this._idx("row","focus"),l=this._idx("col","focus"),c=this;if((this.attr("useall")||this.attr("usetreeall"))&&!_.$(t.target).hasClass("rt-qc-ui-selectmenu-button"))if(a!==_.def.key.LEFT&&a!==_.def.key.RIGHT||t.ctrlKey){if(a===_.def.key.UP||a===_.def.key.DOWN){if(i=this.attr("vsinfo"),_.$(t.target).hasClass("rt-qc-radio-cell-style"))return;if(!0===i.bVScroll)return a===_.def.key.UP?(e=i.nTop+3*i.nLengthPerRow)>0&&(e=0):(e=i.nTop-3*i.nLengthPerRow)>i.nLength&&(e=i.nLength),setTimeout((function(){c.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",e)}),10),t.preventDefault(),void t.stopPropagation();t.preventDefault(),t.stopPropagation()}else if(a===_.def.key.TAB)return}else{if(r=this.attr("hsinfo"),_.$(t.target).hasClass("rt-qc-radio-cell-style"))return;if(!0===r.bHScroll)return a===_.def.key.LEFT?(e=r.nLeft+r.nLengthPerCol)>0&&(e=0):(e=r.nLeft-r.nLengthPerCol)>r.nLength&&(e=r.nLength),setTimeout((function(){c.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",e)}),100),t.preventDefault(),void t.stopPropagation();t.preventDefault(),t.stopPropagation()}if(-1===n&&-1===l&&this.getRows()-this.getRows("header")<=0&&(a===_.def.key.LEFT||a===_.def.key.RIGHT)&&!0===(r=this.attr("hsinfo")).bHScroll)return a===_.def.key.LEFT?(e=r.nLeft+r.nLengthPerCol)>0&&(e=0):(e=r.nLeft-r.nLengthPerCol)>r.nLength&&(e=r.nLength),void c.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",e);if(_.util.hasClass(o,s.TYPE_INPUT_EDIT_STYLE)&&(o=o.parentElement),(this.attr("useall")||this.attr("usetreeall"))&&_.util.hasClass(o,"rt-qc-container")&&-1!==n&&-1!==l&&(o=this._getCellDOM(n,l)),_.util.hasClass(o,s.CELL)){if(n>=this.attr("headerrows")&&l>=this.attr("headercols")){if(this._getQCellCol(l).attr("resize")&&!0===t.ctrlKey&&(a===_.def.key.LEFT||a===_.def.key.RIGHT))return void this.onKeyWidth(a,n,l);switch(a){case _.def.key.LEFT:this._leftKey(t.shiftKey,t.ctrlKey),t.ctrlKey&&this.onKeyWidth(a,n,l);break;case _.def.key.RIGHT:this._rightKey(t.shiftKey,t.ctrlKey),t.ctrlKey&&this.onKeyWidth(a,n,l);break;case _.def.key.UP:this._upKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case _.def.key.DOWN:this._downKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case _.def.key.PAGEUP:this._pageUpKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case _.def.key.PAGEDOWN:this._pageDownKey(t.shiftKey,t.ctrlKey),t.stopPropagation(),t.preventDefault();break;case _.def.key.TAB:!0===this._tabKey(t.shiftKey,t.ctrlKey)&&(t.stopPropagation(),t.preventDefault());break;case _.def.key.C:this.attr("copy")&&t.ctrlKey&&(this.onCopy(),t.stopPropagation());break;case _.def.key.V:this.attr("paste")&&t.ctrlKey&&(this.onPaste(),t.stopPropagation())}}}else _.util.hasClass(o,s.PAGINATION_NAV)&&_.util.hasClass(o,s.PAGINATION_NAV_INPUT)&&a===_.def.key.ENTER&&this._movePage(Number(_.$(o).val()))}catch(t){_.QCELL.log("err","QCELL.BasicQCELL.onKeyDown",t.message)}},_.QCELL.BasicQCELL.prototype.onCopy=function(){var t=this.attr("selectmode"),e=this._getSelectedRows(),r=this._getSelectedCols();if("focus"===this.attr("copypastemode")&&(t="cell",(e=[]).push(this.getIdx("row","focus")),(r=[]).push(this.getIdx("col","focus"))),e.length>0||r.length>0){var i,o,a,s,n="";switch(t){case"cell":case"cells":var l=!1;if(this._idx("row","focus","current")!==e[e.length-1]&&this._idx("col","focus","current")!==r[r.length-1]&&(l=!0),l)alert("다중 선택 범위에서는 클립보드 복사를 사용할 수 없습니다.");else{for(e.sort(_.st.asc),r.sort(_.st.asc),i=0;i<e.length;i++)for(a=e[i],i>0&&(n+="\n"),o=0;o<r.length;o++)s=r[o],o>0&&(n+="\t"),n+=void 0===this._cellValue(a,s)?"":this._cellValue(a,s);this._copy(n)}break;case"row":case"rows":var c=this.attr("headercols"),h=this.attr("cols");for(e.sort(_.st.asc),i=0;i<e.length;i++)for(a=e[i],i>0&&(n+="\n"),o=c;o<h;o++)o>c&&(n+="\t"),n+=void 0===this._cellValue(a,o)?"":this._cellValue(a,o);this._copy(n)}}},_.QCELL.BasicQCELL.prototype.onPaste=function(){if(this.attr("currentdata").length>0)if(window.clipboardData)this._paste(window.clipboardData.getData("text"));else{var t=null,e=null,r="",i=this,o=this.attr("elementpool").get("root");(t=document.createElement("div")).setAttribute("id","clipboardDataDiv"),(e=document.createElement("textarea")).style.height=e.style.width="0px",t.appendChild(e),o.appendChild(t),e.focus(),window.setTimeout((function(){if(r=e.value,o.removeChild(document.getElementById("clipboardDataDiv")),_._.isFunction(i.attr("beforepastecallback"))){var t=i._idx("row","focus","current"),a=i._idx("col","focus","current");r=i.attr("beforepastecallback")(t,a,r)}i._paste(r),i._trigger("paste",r)}),100)}},_.QCELL.BasicQCELL.prototype._copy=function(t){var e=null,r=null,i=this.attr("elementpool").get("root");window.clipboardData?window.clipboardData.setData("text",t):((e=document.createElement("div")).style.position="absolute",e.style.left=this.attr("elementpool").get("root").offsetLeft+"px",e.style.top=this.attr("elementpool").get("root").offsetTop+"px",_.util.addClass(e,"rt-qc-clipboard"),e.setAttribute("id","clipboardDataDiv"),r=document.createElement("textarea"),_.util.addClass(r,"rt-qc-clipboard-textarea"),r.style.height=r.style.width="0px",r.value=t,e.appendChild(r),i.appendChild(e),r.focus(),r.select(),window.setTimeout((function(){i.removeChild(document.getElementById("clipboardDataDiv"))}),100))},_.QCELL.BasicQCELL.prototype._paste=function(t){var e,r,i,o,a,s,n=this._idx("row","focus","current"),l=this._idx("col","focus","current"),c="focus"===this.attr("copypastemode");if(e=t.split("\n"),_._.isArray(e)){if(""===e[e.length-1]&&e.pop(),n<this.attr("headerrows")||n>=this.attr("rows"))return;if(l<this.attr("headercols")||l>=this.attr("cols"))return;for(s=/[\r\n|\n\r]$/,r=0;r<e.length;r++){for(o=e[r].split("\t"),i=0;i<o.length&&(a=o[i],i===o.length-1&&s.test(a)&&(a=a.replace(a,"")),!(l+i>=this.getCols()));i++){var h=this._getColElement(l+i);if(null!=h&&(!_._.isNull(h.attr("maxbyte"))&&!_._.isUndefined(h.attr("maxbyte"))&&_.util.strbyte.getByteLength(a)>h.attr("maxbyte")?a=_.util.strbyte.cutByteLength(a,h.attr("maxbyte")):!_._.isNull(h.attr("maxlength"))&&!_._.isUndefined(h.attr("maxlength"))&&a.length>h.attr("maxlength")&&(a=a.slice(0,h.attr("maxlength"))),"number"===this._getColDataType(l+i))){var d=a;d=d.replaceAll(",",""),isNaN(Number(d))&&(a=0)}var u=this._getQCellCol(l+i).attr("celldisabled")[n+r];if(!0!==(u=void 0!==u&&u)){var p=this._cellValue(n+r,l+i);this._cellValue(n+r,l+i,a),p!==this._cellValue(n+r,l+i)&&this._processValueChanged(n+r,l+i)}if("cells"===this.attr("selectmode")&&this._selectCell(n+r,l+i),c)return}"rows"===this.attr("selectmode")&&this._selectRow(n+r)}s=null}},_.QCELL.BasicQCELL.prototype.onMouseWheel=function(t){try{var e,r=this.attr("vsinfo"),i=this.getID();if(r.bVScroll&&(t.stopPropagation(),t.preventDefault(),t.deltaY<0&&r.nPos<r.nLastPos||t.deltaY>0&&r.nPos>0)){var o=this.attr("accumulatedwheel")+t.deltaY;r.nPos-o>r.nLastPos?o=r.nPos-r.nLastPos:r.nPos-o<0&&(o=r.nPos),this.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",r.nTop+o*r.nLengthPerRow,"",{ignorecallback:!0}),this.attr("accumulatedwheel",o,"number"),_.util.rAF((function(){var t=(e=_.QCELL.getInstance(i)).attr("accumulatedwheel");0!==t&&(r.nBeforeTop=r.nTop,r.nTop+=t*r.nLengthPerRow,r.nPos=-r.nTop/r.nLengthPerRow,e._syncVSInfo(),e._updateNRs(),e.attr("accumulatedwheel",0,"number"),(e.attr("useall")||e.attr("usetreeall"))&&(r.nTopRow>r.nStartRow?_.$("#"+e.getID()+"_vsbp").prop("disabled",!1):_.$("#"+e.getID()+"_vsbp").prop("disabled",!0),r.nBottomRow===r.nEndRow?_.$("#"+e.getID()+"_vsbn").prop("disabled",!0):_.$("#"+e.getID()+"_vsbn").prop("disabled",!1)),e._trigger("scrollmove")),e=null}))}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL.onMouseWheel",t.message)}},_.QCELL.BasicQCELL.prototype.onMouseDown=function(t){try{var e=t.target,r=_.QCELL.def.css,i=this.attr("colresizeline");if(this._removeContextMenu(),_.util.hasClass(e,r.CELL)||_.util.hasClass(e,r.TYPE_DATEPICKER)){_.util.hasClass(e,r.TYPE_DATEPICKER)&&(_.util.hasClass(e.parentNode,r.CELL)?e=e.parentNode:_.util.hasClass(e.parentNode.parentNode,r.CELL)&&(e=e.parentNode.parentNode));var o=parseInt(e.getAttribute("data-row")),a=parseInt(e.getAttribute("data-col"));if(this._isBottomPanel(e))return;if(_.util.hasClass(e,r.CELL_VIEWPORT)&&t.which===_.def.which.LEFT_BUTTON)switch(this.attr("selectmode")){case"rows":if(t.ctrlKey===t.shiftKey)this._focusCell(e),this._clearSelection(),this._selectRow(o);else if(t.ctrlKey)this._focusCell(e),this._selectRow(o);else{var s,n=this._idx("row","focus");s=n<o?_._.range(n,o+1):_._.range(o,n+1).reverse(),this._clearSelection(),this._selectRows(s)}break;case"row":this._focusCell(e),this._getSelectedRows()[0]!==o&&(this._clearSelection(),this._selectRow(o));break;case"cols":if(t.ctrlKey===t.shiftKey)this._focusCell(e),this._clearSelection(),this._selectCol(a);else if(t.ctrlKey)this._focusCell(e),this._selectCol(a);else{var l,c=this._idx("col","focus");l=c<a?_._.range(c,a+1):_._.range(a,c+1).reverse(),this._clearSelection(),this._selectCols(l)}break;case"col":this._focusCell(e),this._getSelectedCols()[0]!==a&&(this._clearSelection(),this._selectCol(a));break;case"cell":this._focusCell(e),this._clearSelection(),this._selectCell(o,a);break;case"group":this._focusCell(e),this._clearSelection(),this._selectGroup(o,a);break;default:t.ctrlKey===t.shiftKey?(this._focusCell(e),this._clearSelection(),this._selectCell(o,a)):t.ctrlKey?(this._focusCell(e),this._selectCell(o,a)):(this._clearSelection(),this._selectCellRange(this._idx("row","focus"),this._idx("col","focus"),o,a))}}if(t.which===_.def.which.RIGHT_BUTTON&&(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),this._isContextMenu()||this._createContextMenu(t)),this.attr("colresize")&&null!==i){var h=this.attr("colresizetooltip"),d=parseInt(e.parentNode.getAttribute("data-col")),u=this.attr("layoutsize").viewport.offsetLeft,p=e.parentNode.offsetLeft+u,g=this._getColWidth(d);"none"===i.css("display")&&i.css("display","block"),i.css("left",p+g-1+"px"),i.attr({"data-targetcol":d,originleft:parseInt(i.css("left")),"client-x":t.clientX}),"none"===h.css("display")&&h.css("display","block"),h.css("left",p+g-1+"px"),h.text("width : "+g+"px"),_.$(e).addClass(r.COLRESIZE_AREA_HOVER)}!1===_.util.hasClass(e,r.FILTER_AREA)&&!1===_.util.hasClass(e,r.FILTER_AREA_ADJUST)&&!1===_.util.hasClass(e,r.FILTER_UI_AREA)&&!1===_.util.hasClass(e,r.FILTER_UI_BTN)&&!1===_.util.hasClass(_.$(e).parents("."+r.FILTER_UI_AREA)[0],r.FILTER_UI_AREA)&&this.attr("filteruivisible")&&this._removeFilterUIArea(),t.which===_.def.which.LEFT_BUTTON&&this.attr("mousedown",!0,"boolean")}catch(t){_.QCELL.log("err","QCELL.BasicQCELL.onMouseDown",t.message)}},_.QCELL.BasicQCELL.prototype.onMouseUp=function(t){var e=_.QCELL.def,r=this.attr("id"),i="#"+e.areaname.SHEETPANEL+"-span-"+r,o=this.getSelectedRows(),a=this.getSelectedCols(),s=-1,n=-1,l=this.attr("headerrows"),c=this.attr("headercols"),h=this.attr("rows"),d=this.attr("cols"),u=0,p=0,g=0,f=0,m=0,C="",L=this;if(!1!==this.attr("bottompanel")&&!1!==this.attr("useexcelstylepanel")){if("excel"===this.attr("bottompanelstyle"))switch(this.attr("selectmode")){case"row":case"rows":for(f=0;f<o.length;f++)for(m=c;m<d;m++)isNaN(parseInt(L._cellValue(o[f],m)))||(p+=parseInt(L._cellValue(o[f],m)),g++),u++;C="평균 : "+parseFloat(p/g)+", 개수 : "+u+", 합계 : "+p,0===p&&(C="개수 : "+u);break;case"col":case"cols":for(m=0;m<a.length;m++)for(f=l;f<h;f++)isNaN(parseInt(L._cellValue(f,a[m])))||(p+=parseInt(L._cellValue(f,a[m])),g++),u++;C="평균 : "+parseFloat(p/g)+", 개수 : "+u+", 합계 : "+p,0===p&&(C="개수 : "+u);break;case"group":if(0===o.length&&0===a.length)s=L.getIdx("row"),n=L.getIdx("col"),C=this._cellValue(s,n);else{for(f=0;f<o.length;f++)for(s=o[f],m=0;m<a.length;m++)n=a[m],isNaN(parseInt(L._cellValue(s,n)))||(p+=parseInt(L._cellValue(s,n)),g++),u++;C="평균 : "+parseFloat(p/g)+", 개수 : "+u+", 합계 : "+p,0===p&&(C="개수 : "+u)}break;default:if(1===o.length&&1===a.length)s=o[0],n=a[0],C=this.getCellLabel(s,n);else{for(f=0;f<o.length;f++)for(s=o[f],m=0;m<a.length;m++)n=a[m],isNaN(parseInt(L._cellValue(s,n)))||(p+=parseInt(L._cellValue(s,n)),g++),u++;C="평균 : "+parseFloat(p/g)+", 개수 : "+u+", 합계 : "+p,0===p&&(C="개수 : "+u)}}else if("index"===this.attr("bottompanelstyle"))C="[ "+((s=L.getIdx("row"))-this.getRows("header")+1)+" / "+(h-this.getRows("header"))+" ]";else if("custom"===this.attr("bottompanelstyle"))s=L.getIdx("row"),n=L.getIdx("col"),C=this._cellValue(s,n);else if("board"===this.attr("bottompanelstyle"))return;null!==this.attr("bottompanelcallback")&&_._.isFunction(this.attr("bottompanelcallback"))&&(s=L.getIdx("row"),n=L.getIdx("col"),C=this.attr("bottompanelcallback").call(this,s,n,C)),_.$(i).html(C)}},_.QCELL.BasicQCELL.prototype.onClick=function(t){try{this._adjustScrollPos();var e,r,i=t.target,o=_.QCELL.def.css;if(_.util.hasClass(i,"rt-qc-colheader-area")&&_.QCELL.config.useheadersort&&this._getQCellCol(this._getColFromTarget(i)).attr("sort")&&(!1===this._getQCellCol(this._getColFromTarget(i)).attr("options").wholeselect||void 0===this._getQCellCol(this._getColFromTarget(i)).attr("options").wholeselect))this._sortProcess(t);else if(_.util.hasClass(i,o.CELL)&&!1===_.util.hasClass(i,o.SORTABLE)||_.util.hasClass(i.parentElement,o.CELL)&&"SPAN"===i.tagName){if(i.hasChildNodes()&&("checkbox"===i.childNodes[0].type&&i.childNodes[0].className===o.CELL_ROWHEADER_CHECKBOX||"radio"===i.childNodes[0].type&&i.childNodes[0].className===o.CELL_ROWHEADER_RADIO)&&(e=i.getAttribute("data-row"),r=i.getAttribute("data-col"),this.attr("rowheadercheckboxclick")[e][r]&&(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),i.childNodes[0].checked?this._rowheaderCheckboxClick(this._idx("row","cursor"),this._idx("col","cursor"),!1):this._rowheaderCheckboxClick(this._idx("row","cursor"),this._idx("col","cursor"),!0))),e=this._idx("row","cursor"),r=this._idx("col","cursor"),this._isBottomPanel(i))return;if(this._updateIdx("click",e,r),_.util.hasClass(i,o.CELL_VIEWPORT)||_.util.hasClass(i.parentElement,o.CELL_VIEWPORT)){var a,s=this.getID();if(!0!==this.attr("useall")&&!0!==this.attr("usetreeall"))if(!1===t.shiftKey&&!1===t.ctrlKey)setTimeout((function(){null!==(a=_.QCELL.getInstance(s))&&(a._idx("row","focus")===e&&a._idx("col","focus")===r||a._focusCell(e,r),a.attr("temprow",a._idx("row","focus"),"number"),a.attr("tempcol",a._idx("col","focus"),"number"),a._scrollToFocusCell(a._idx("row","focus"),a._idx("col","focus")),a.attr("isClick",!1,"boolean"),a=null)}),0),this.attr("isClick",!0,"boolean")}}else if(_.util.hasClass(i,o.SORT_AREA)||_.util.hasClass(i,o.MULTI_SORT_ORDER))this._sortProcess(t);else if(_.util.hasClass(i,o.CELL_ROWHEADER_CHECKBOX))e=null!==i.parentNode?i.parentNode.getAttribute("data-row"):this._idx("row","cursor"),r=null!==i.parentNode?i.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this.attr("rowheadercheckboxclick")[e][r]&&(this._updateIdx("click",e,r),i.checked?this._rowheaderCheckboxClick(Number(i.parentNode.getAttribute("data-row")),Number(i.parentNode.getAttribute("data-col")),!0):this._rowheaderCheckboxClick(Number(i.parentNode.getAttribute("data-row")),Number(i.parentNode.getAttribute("data-col")),!1));else if(_.util.hasClass(i,o.CELL_ROWHEADER_RADIO))e=null!==i.parentNode?i.parentNode.getAttribute("data-row"):this._idx("row","cursor"),r=null!==i.parentNode?i.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this.attr("rowheadercheckboxclick")[e][r]&&(this._updateIdx("click",e,r),i.checked?this._rowheaderCheckboxClick(Number(i.parentNode.getAttribute("data-row")),Number(i.parentNode.getAttribute("data-col")),!0):this._rowheaderCheckboxClick(Number(i.parentNode.getAttribute("data-row")),Number(i.parentNode.getAttribute("data-col")),!1));else if(_.util.hasClass(i,o.EDITOR_AREA))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(_.util.hasClass(i,o.TYPE_DATEPICKER))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(_.util.hasClass(i,o.COLHEADER_CHECKBOX))e=null!==i.parentNode?i.parentNode.getAttribute("data-row"):this._idx("row","cursor"),r=null!==i.parentNode?i.parentNode.getAttribute("data-col"):this._idx("col","cursor"),this._updateIdx("click",Number(e),Number(r));else if(_.util.hasClass(i.parentElement,o.TYPE_IMAGE_STYLE))this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));else if(_.util.hasClass(i,o.REMOVE_AREA)){var n=this;r=this._idx("col","cursor"),setTimeout((function(){n.removeColumn(r)}))}else this._updateIdx("click",-1,-1);t.target.getElementsByClassName(o.TYPE_INPUT_EDIT_STYLE).length}catch(t){_.QCELL.log("err","QCELL.BasicQCELL.onClick",t.message)}},_.QCELL.BasicQCELL.prototype.onDblClick=function(t){var e=t.target,r=_.QCELL.def.css;!1!==this.attr("isscrollleft")&&_.util.hasClass(e,r.CELL)&&this._updateIdx("dblclick",this._idx("row","cursor"),this._idx("col","cursor"))},_.QCELL.BasicQCELL.prototype.onMouseEnter=function(t){},_.QCELL.BasicQCELL.prototype.onMouseLeave=function(t){},_.QCELL.BasicQCELL.prototype.onFnTooltip=function(t,e,r,i){var o=_.$(t);if(!1===this.attr("tooltipvisible")){var a;if(e)a=this.getCellData(r,i),a=this._getQCellCol(i).attr("tooltipcallback")(r,i,a);else if(void 0===(a=this.getCellData(r,i))||""===a)return;var s=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=s.grouped?s.columnsinfo.keys(!0)[0]:"";if(!0===s.grouped&&this._getColID(i)===n){var l=this._getCellDOM(r,i);null!=l&&(a=void 0===l.textContent?"":l.textContent)}!0===this.attr("usetooltipinellipsis")?t.offsetWidth<t.scrollWidth&&this._createTooltip(o,window.event,a):this._createTooltip(o,window.event,a);var c=this.getID();o.on("mouseleave mousewheel DOMMouseScroll",(function(){var t=_.QCELL.getInstance(c);t._removeTooltip(),t=null})),o=null}else this._moveTooltip(_.$(t),window.event)},_.QCELL.BasicQCELL.prototype.onMouseMove=function(t){try{var e,r=_.QCELL.def.css,i=t.target,o=this.attr("colmoveline"),a=this.attr("colresizeline"),s=-1,n=-1;if(_.util.hasClass(i,r.CELL)?(s=parseInt(i.getAttribute("data-row")),n=parseInt(i.getAttribute("data-col")),this._idx("row","cursor")===s&&this._idx("col","cursor")===n||(this._updateIdx("cursor",s,n),0!==t.buttons&&t.which===_.def.which.LEFT_BUTTON&&this.attr("mousedown")&&null===this.attr("hdhandle")&&null===this.attr("vdhandle")&&this.onDrag(t)),this._updateIdx("hover",s,n),s>=this.attr("headerrows")&&n>=this.attr("headercols")&&(this._getQCellCol(n).attr("tooltip")&&void 0!==this._getQCellCol(n).attr("tooltipcallback")?this.onFnTooltip(i,!0,s,n):this._getQCellCol(n).attr("tooltip")&&"checkbox"!==this._getQCellCol(n).attr("type")&&"html"!==this._getQCellCol(n).attr("type")&&"image"!==this._getQCellCol(n).attr("type")&&"chart"!==this._getQCellCol(n).attr("type")&&this.onFnTooltip(i,!1,s,n))):this._idx("row","hover")===s&&this._idx("col","hover")===n||-1!==s&&-1!==n&&this._updateIdx("hover",s,n),this.attr("colmove")&&!0!==this.attr("colresize")&&null===this.attr("hdhandle")&&n>=this.attr("headercols")&&null!==o){var l=parseInt(this.attr("colmoveshadow").attr("data-col")),c=this._getColWidth(n),h=this.attr("layoutsize").viewport.offsetLeft,d=this.attr("layoutsize").container.clientX,u=i.offsetLeft+h;if(!0===this.attr("istopmove")&&0!==s&&!0!==this._getQCellCol(n).attr("topmove"))return void o.css("display","none");if(!0===this.attr("istopmove")){var p=Number(i.getAttribute("data-endcol"));for(isNaN(p)&&(p=1),c=0,e=0;e<p;e++)c+=this._getColWidth(n+e)}"none"===o.css("display")&&o.css("display","block"),t.clientX>u+c/2+d?(o.css("left",u+c-1+"px"),n>l&&(this.attr("colmoveexecution",!0,"boolean"),o.attr({"data-beforecol":l,"data-aftercol":n}))):(o.css("left",u-1+"px"),n<l&&(this.attr("colmoveexecution",!0,"boolean"),o.attr({"data-beforecol":l,"data-aftercol":n})))}if(this.attr("colresize")&&(this.attr("colmove",!1,"boolean"),null!==a)){var g=this.attr("colresizetooltip"),f=parseInt(a.attr("client-x")),m=parseInt(a.css("left")),C=parseInt(a.attr("data-targetcol")),L=parseInt(a.attr("originleft")),b=this._getColWidth(C);f-=t.clientX,"none"===a.css("display")&&a.css("display","block"),"none"===g.css("display")&&g.css("display","block");var E=m-f;a.css("left",E+"px"),a.attr({"client-x":t.clientX}),g.text("width : "+(b+(E-L))+"px")}this.attr("dragging")&&(this.attr("colmove")?this.attr("hdhandle")&&(this.attr("colmoveexecution",!1,"boolean"),null!==o&&"none"!==o.css("display")&&o.css("display","none")):!1===this.attr("colresize")&&this._MoveVScrollbarToDragging(t),!1===this.attr("colresize")&&this._MoveHScrollbarToDragging(t))}catch(t){_.QCELL.log("err","QCELL.BasicQCELL.onMouseMove",t.message)}},_.QCELL.BasicQCELL.prototype.onDrag=function(t){try{var e,r,i=this._idx("row","cursor"),o=this._idx("col","cursor"),a=i>=this.attr("headerrows")?i:this._idx("row","drag"),s=o>=this.attr("headercols")?o:this._idx("col","drag");if(this._updateIdx("drag",a,s),null===this.attr("startdragpos")&&this.attr("startdragpos",{nRow:this._idx("row","cursor","previous"),nCol:this._idx("col","cursor","previous")},"object"),!1===this.attr("colmove")&&!1===this.attr("colresize")&&this._selectDragArea(t),!1===this.attr("colmove")&&!0!==this.attr("colresize")&&1===t.which&&0===t.button&&!0===_.QCELL.config.useheadercolmove){var n,l,c=_.QCELL.def.css,h=this.attr("layoutsize"),d=[],u=this.attr("headerrows"),p=this.attr("frozenbottomrows"),g=this.attr("rows"),f=0,m=0,C=document.createElement("div");if(e=this.attr("startdragpos").nRow,r=this.attr("startdragpos").nCol,e<this.getRows("header")&&r>=this.getCols("header")&&(this._getQCellCol(r).attr("move")||this._getQCellCol(r).attr("topmove"))){if(this.attr("colmove",!0,"boolean"),this.attr("colmoveexecution",!1,"boolean"),this._getQCellCol(r).attr("topmove")){var L=this._getCellDOM(0,r),b=Number(L.getAttribute("data-endcol"));isNaN(b)&&(b=1);for(var E=null,v=0,y=0;y<b;y++){for(var w=this._getColCellDOMs(Number(r)),x=0;x<w.length;x++)E=w[x].cloneNode(!0),e=parseInt(E.getAttribute("data-row")),E.style.left=v+"px",E.style.display="block",isNaN(e)?E.style.top=parseInt(E.style.top)+m+"px":e<u?(E.style.top=f+"px",f+=parseInt(E.style.height)):(E.style.top=parseInt(E.style.top)+f+"px",e>=g-p&&(m=parseInt(E.style.top)+parseInt(E.style.height))),d.push(E);v+=this._getColWidth(r+y)}}else _._.each(this._getColCellDOMs(Number(r)),(function(t,r){E=t.cloneNode(!0),e=parseInt(E.getAttribute("data-row")),E.style.left="0px",E.style.display="block",isNaN(e)?E.style.top=parseInt(E.style.top)+m+"px":e<u?(E.style.top=f+"px",f+=parseInt(E.style.height)):(E.style.top=parseInt(E.style.top)+f+"px",e>=g-p&&(m=parseInt(E.style.top)+parseInt(E.style.height))),d.push(E)}));_._.last(d).style.borderBottomWidth="1px",l=_.$(C.cloneNode()).addClass(c.COLMOVE_SHADOW).attr("data-col",Number(r)).css({display:"none"}).append(d).appendTo(document.body),this.attr("colmoveshadow",l,"QBOX.$"),n=_.$(C.cloneNode()).addClass(c.COLMOVELINE).css({display:"none",height:h.colheader.offsetHeight+h.viewport.offsetHeight+h.footer.offsetHeight}).appendTo(this.attr("elementpool").get("container")),this.attr("colmoveline",n,"QBOX.$")}}this.attr("dragging",!0,"boolean")}catch(t){_.QCELL.log("err","QCELL.BasicQCELL.onDrag",t.message)}},_.QCELL.BasicQCELL.prototype.onDrop=function(t){!1===this.attr("colmove")&&!1===this.attr("colresize")&&this._selectDragArea(t),this.attr("dragging",!1,"boolean"),this._updateIdx("drag",-1,-1),this.attr("startdragpos",null,"object"),null!==this.attr("hdhandle")&&(clearInterval(this.attr("hdhandle")),this.attr("hdhandle",null,"number"),this.attr("hdcount",0,"number")),null!==this.attr("vdhandle")&&(clearInterval(this.attr("vdhandle")),this.attr("vdhandle",null,"number"),this.attr("vdcount",0,"number"))},_.QCELL.BasicQCELL.prototype._clickCell=function(t,e){var r=this._getCellDOM(t,e);if(_._.isElement(r)&&_.util.hasClass(r,_.QCELL.def.css.CELL)){var i={target:r,ctrlKey:!1,altKey:!1,shiftKey:!1,which:_.def.which.LEFT_BUTTON},o=this._getEventTarget("default");return r.focus(),this._updateIdx("cursor",t,e),this.onMouseDown(_._.extend(_.$.Event("mousedown"),i)),null!==o&&o.trigger(_._.extend(_.$.Event(this._getUserEventName("mousedown")),i)),this.onMouseUp(_._.extend(_.$.Event("mouseup"),i)),null!==o&&o.trigger(_._.extend(_.$.Event(this._getUserEventName("mouseup")),i)),this.onClick(_._.extend(_.$.Event("click"),i)),null!==o&&o.trigger(_._.extend(_.$.Event(this._getUserEventName("click")),i)),!0}return!1},_.QCELL.BasicQCELL.prototype._dblClickCell=function(t,e){var r=this._getCellDOM(t,e);if(_._.isElement(r)&&_.util.hasClass(r,_.QCELL.def.css.CELL)){var i={target:r,ctrlKey:!1,altKey:!1,shiftKey:!1,which:_.def.which.LEFT_BUTTON},o=this._getEventTarget("default");r.focus(),this._updateIdx("cursor",t,e);for(var a=0;a<2;a++)this.onMouseDown(_._.extend(_.$.Event("mousedown"),i)),null!==o&&o.trigger(_._.extend(_.$.Event(this._getUserEventName("mousedown")),i)),this.onMouseUp(_._.extend(_.$.Event("mouseup"),i)),null!==o&&o.trigger(_._.extend(_.$.Event(this._getUserEventName("mouseup")),i)),this.onClick(_._.extend(_.$.Event("click"),i)),null!==o&&o.trigger(_._.extend(_.$.Event(this._getUserEventName("click")),i));return this.onDblClick(_._.extend(_.$.Event("dblclick"),i)),null!==o&&o.trigger(_._.extend(_.$.Event(this._getUserEventName("dblclick")),i)),!0}return!1},_.QCELL.BasicQCELL.prototype._setInputformData=function(t){var e,r,i=this._getRowData(t),o=this.attr("id"),a=this.attr("headercols"),s=this.attr("cols");if(null!==i&&null!==this.attr("jqDialog")){for(this.attr("isInputForm",!0,"boolean"),this.attr("jqDialog").dialog("open"),e=a;e<s;e++){var n,l=this._getKeyOfCol(e);if(r=o+"_"+l+"_"+this.getColID(e),n=document.getElementById(r),"image"===this._getColType(e))n.setAttribute("src",i[l]);else if("checkbox"===this._getColType(e))n.checked=i[l];else if("datepicker"===this._getColType(e)){var c=_.moment(i[l],"YYYYMMDD").format("YYYY-MM-DD");"Invalid date"!==c&&(n.value=c)}else _.$(n).val(i[l])}this.attr("inputformdatarow",t,"number"),this.attr("inputformdata",i,"object")}},_.QCELL.BasicQCELL.prototype.onTab=function(t,e){if(_.$(e).hasClass("rt-qc-cell")||_.$(e).hasClass("rt-qc-cell-rowheader-checkbox")||_.$(e).hasClass("rt-qc-cell-rowheader-radio")||_.$(e).hasClass("rt-qc-colheader-checkbox")||_.$(e).hasClass("rt-qc-datepicker-type")){var r=_.$(e).hasClass("rt-qc-datepicker-type")?e.parentElement:e,i=parseInt(r.getAttribute("data-row")),o=parseInt(r.getAttribute("data-col"));isNaN(i)||isNaN(o)||this.clickCell(i,o)}},_.QCELL.BasicQCELL.prototype.onLongTab=function(t,e){if(_.$(e).hasClass("rt-qc-cell")||_.$(e).hasClass("rt-qc-cell-rowheader-checkbox")||_.$(e).hasClass("rt-qc-colheader-checkbox")||_.$(e).hasClass("rt-qc-cell-rowheader-radio")||_.$(e).hasClass("rt-qc-datepicker-type")){var r=_.$(e).hasClass("rt-qc-datepicker-type")?e.parentElement:e,i=parseInt(r.getAttribute("data-row")),o=parseInt(r.getAttribute("data-col"));isNaN(i)||isNaN(o)||this._setInputformData(i)}},_.QCELL.BasicQCELL.prototype.onSwipe=function(t,e,r,i,o,a){try{if("touchend"===t.type||"touchmove"===t.type){var s=this,n=0,l=0;switch(e){case"up":case"down":var c=this.attr("vsinfo");c.bVScroll&&(t.stopPropagation(),t.preventDefault(),setTimeout((function(){("up"===e&&c.nPos<c.nLastPos||"down"===e&&c.nPos>0)&&(n="down"===e?1:-1,l=Math.floor(r/3/c.nLengthPerRow)*n,c.nPos-l>c.nLastPos?l=c.nPos-c.nLastPos:c.nPos-l<0&&(l=c.nPos),s.attr("elementpool").get("$jqvscrollbar").rt_qc_mCSbar("scrollTo",c.nTop+l*c.nLengthPerRow,"",{ignorecallback:!0}),s.attr("accumTouch",l,"number"),_.util.rAF((function(){var t=s.attr("accumTouch");0!==t&&(c.nBeforeTop=c.nTop,c.nTop+=t*c.nLengthPerRow,c.nPos=-c.nTop/c.nLengthPerRow,s._syncVSInfo(),s._updateNRs(),s.attr("accumTouch",0,"number"))})))}),0));break;case"left":case"right":var h=this.attr("hsinfo");h.bHScroll&&(t.stopPropagation(),t.preventDefault(),setTimeout((function(){if("right"===e&&0!==h.nLeft||"left"===e&&Math.abs(h.nLeft)<Math.abs(h.nLength)){n="right"===e?1:-1,l=(0===Math.floor(r/h.nLengthPerCol)?1:Math.floor(r/h.nLengthPerCol))*n*h.nLengthPerCol;var t=h.nLeft;"left"===e&&Math.abs(t+l)>Math.abs(h.nLength)?t=-h.nLength:"right"===e&&t+l>0?t=0:t+=l,s.attr("elementpool").get("$jqhscrollbar").rt_qc_mCSbar("scrollTo",t)}}),0))}}else t.stopPropagation(),t.preventDefault()}catch(t){_.QCELL.log("err","QCELL.BasicQCELL.onSwipe",t.message)}},_.QCELL.BasicQCELL.prototype.onResize=function(t){try{var e=this.attr("layoutsize").root.offsetHeight,r=this.attr("layoutsize").root.offsetWidth;if(this.attr("percentwidth")||this.attr("percentheight")){clearTimeout(this.attr("timeoutid"));var i=this,o=this.getID();this.attr("timeoutid",setTimeout((function(){if(null!=(i=_.QCELL.getInstance(o))&&!0!==i.attr("isInputForm")&&!1!==i.attr("bResizeAction")){var t=i.getCustomPanel(),a=_.$(i.attr("parent")).height(),s=_.$(i.attr("parent")).width();if(e!==a||r!==s){i.attr("isResizing",!0,"boolean"),i.attr("filterarea",null,"jquery");var n,l,c=i.attr("hsinfo"),h=i.attr("vsinfo"),d=i._idx("row","focus","current"),u=i._idx("col","focus","current");if(n=c.nLeftCol,l=h.nTopRow,i._initHSInfo(),i._initVSInfo(),i._createElement()&&(i._refresh(),n!==c.nLeftCol&&i._scrollLeft(n),l!==h.nTopRow&&i._scrollTop(l),i._updateIdx("focus",-1,-1),i._focusCell(d,u),i.resetCustomPanel(t),!0===i.attr("makefrozenbottomdata"))){var p=i.attr("currentdata");!_._.isEmpty(p)&&_._.isArray(p)&&0!==p.length&&(!0!==p[p.length-1].rt_qc_fbrd?(p.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(i=_.QCELL.getInstance(o))&&i._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(i=_.QCELL.getInstance(o))&&i._trigger("frozendataupdated")}),0))}i.attr("isResizing",!1,"boolean")}}}),0),"number")}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL.onResize",t.message)}},_.QCELL.BasicQCELL.prototype._initCellMatrix=function(){try{var t=this.attr("cellmatrix");return t.containsKey("row")?t.get("row").RT_clear():t.put("row",[]),t.containsKey("col")?t.get("col").RT_clear():t.put("col",[]),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._initCellMatrix",t.message),!1}},_.QCELL.BasicQCELL.prototype._syncCellMatrix=function(t){var e=this.attr("cellmatrix");"col"===t?e.put("row",_._.unzip(e.get("col"))):e.put("col",_._.unzip(e.get("row")))},_.QCELL.BasicQCELL.prototype._getCellDOM=function(t,e){var r=this._getRowCellDOMs(t);if(void 0!==r&&r.length>0&&e>=0&&e<this.attr("cols")){var i=this.attr("headercols"),o=this.attr("frozencols");if(e<i+o)return r[e];var a=this.attr("hsinfo");if(e>=a.nLeftCol&&e<=a.nRightCol)return r[i+o+e-a.nLeftCol]}return null},_.QCELL.BasicQCELL.prototype._getRowCellDOMs=function(t){var e=this.attr("vsinfo"),r=this.attr("headerrows"),i=this.attr("frozenrows"),o=this.attr("frozenbottomrows"),a=this.attr("rows"),s=this._isPanel();if(r!==a&&!0===s&&!1===e.bVScroll&&t>e.nEndRow)return this._getCellGroupDOMs("row","frozenbottom")[t-e.nEndRow-1];if(t>=0&&t<a){if(t<r)return this._getCellGroupDOMs("row","header")[t];if(t<r+i)return this._getCellGroupDOMs("row","frozen")[t-r];if(!(t<a-o))return this._getCellGroupDOMs("row","frozenbottom")[t-e.nEndRow-1];if(t>=e.nTopRow&&t<=e.nBottomRow){for(var n=this._getCellGroupDOMs("row","normal"),l=0;l<n.length;l++){var c=n[l][0];if(Number(c.getAttribute("data-row"))===t)return n[l]}return this._getCellGroupDOMs("row","normal")[t-e.nTopRow]}}return[]},_.QCELL.BasicQCELL.prototype._getColCellDOMs=function(t){var e=this.attr("hsinfo"),r=this.attr("headercols"),i=this.attr("frozencols"),o=this.attr("cols");if(t>=0&&t<o){if(t<r)return this._getCellGroupDOMs("col","header")[t];if(t<r+i)return this._getCellGroupDOMs("col","frozen")[t-r];if(t>=e.nLeftCol&&t<=e.nRightCol)return this._getCellGroupDOMs("col","normal")[t-e.nLeftCol]}return[]},_.QCELL.BasicQCELL.prototype._getCellGroupDOMs=function(t,e){var r,i,o=this.attr("cellmatrix"),a=[];if("row"===t){var s=o.get("row"),n=this.attr("headerrows"),l=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),h=this.attr("footerrows");switch(e){case"header":r=0,i=n;break;case"frozen":r=n,i=l;break;case"normal":r=n+l,i=s.length-n-l-c-h;break;case"frozenbottom":r=s.length-c-h,i=c;break;case"footer":r=s.length-h,i=h}a=s.splice(r,i),s.RT_insertArray(r,a)}else if("col"===t){var d=o.get("col"),u=this.attr("headercols"),p=this.attr("frozencols");switch(e){case"header":r=0,i=u;break;case"frozen":r=u,i=p;break;case"normal":r=u+p,i=d.length-u-p}a=d.splice(r,i),d.RT_insertArray(r,a)}return a},_.QCELL.BasicQCELL.prototype._setCellGroupDOMs=function(t,e,r){var i,o,a=this.attr("cellmatrix");if("row"===t){var s=a.get("row"),n=this.attr("headerrows"),l=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),h=this.attr("footerrows");switch(e){case"header":i=0,o=n;break;case"frozen":i=n,o=l;break;case"normal":i=n+l,o=s.length-n-l-c-h;break;case"frozenbottom":i=s.length-c-h,o=c;break;case"footer":i=s.length-h,o=h}s.splice(i,o),s.RT_insertArray(i,r)}else if("col"===t){var d=a.get("col"),u=this.attr("headercols"),p=this.attr("frozencols");switch(e){case"header":i=0,o=u;break;case"frozen":i=u,o=p;break;case"normal":i=u+p,o=d.length-u-p}d.splice(i,o),d.RT_insertArray(i,r)}return r=null,!0},_.QCELL.BasicQCELL.prototype._isPanel=function(){return"panel"===this.attr("frozenbottomstyle")},_.QCELL.BasicQCELL.prototype._setCellGroupCSS=function(t,e){var r=_.QCELL.def.css,i=this._getCellGroupDOMs(t,e),o=[],a=[],s=this._isPanel();if("row"===t)switch(e){case"header":a=[r.CELL_FROZENROWS,r.CELL_NORMALROWS,r.CELL_FROZENBOTTOMROWS,r.CELL_FROZENBOTTOMROWS_PANEL,r.CELL_FOOTERROWS],o.push(r.CELL_HEADERROWS);break;case"frozen":a=[r.CELL_HEADERROWS,r.CELL_NORMALROWS,r.CELL_FROZENBOTTOMROWS,r.CELL_FROZENBOTTOMROWS_PANEL,r.CELL_FOOTERROWS],o.push(r.CELL_FROZENROWS);break;case"normal":a=[r.CELL_HEADERROWS,r.CELL_FROZENROWS,r.CELL_FROZENBOTTOMROWS,r.CELL_FROZENBOTTOMROWS_PANEL,r.CELL_FOOTERROWS],o.push(r.CELL_NORMALROWS);break;case"frozenbottom":a=[r.CELL_HEADERROWS,r.CELL_FROZENROWS,r.CELL_NORMALROWS,r.CELL_FOOTERROWS],o.push(r.CELL_FROZENBOTTOMROWS),!0===s?o.push(r.CELL_FROZENBOTTOMROWS_PANEL):o.push(r.CELL_FROZENBOTTOMROWS);break;case"footer":a=[r.CELL_HEADERROWS,r.CELL_FROZENROWS,r.CELL_NORMALROWS,r.CELL_FROZENBOTTOMROWS,r.CELL_FROZENBOTTOMROWS_PANEL],o.push(r.CELL_FOOTERROWS)}else if("col"===t)switch(e){case"header":a=[r.CELL_FROZENCOLS,r.CELL_NORMALCOLS],o.push(r.CELL_HEADERCOLS);break;case"frozen":a=[r.CELL_HEADERCOLS,r.CELL_NORMALCOLS],o.push(r.CELL_FROZENCOLS);break;case"normal":a=[r.CELL_HEADERCOLS,r.CELL_FROZENCOLS],o.push(r.CELL_NORMALCOLS)}if(i.length>0){var n=_._.flatten(i);return a.length>0&&_.util.removeClass(n,a),o.length>0&&_.util.addClass(n,o),!0}return!1},_.QCELL.BasicQCELL.prototype._addDynamicRows=function(t){var e=this.attr("vsinfo"),r=this.attr("cellmatrix").get("row"),i=this.attr("headerrows"),o=this.attr("footerrows");if(t>0){for(var a,s,n=_.QCELL.def.css,l=this.attr("hsinfo"),c=document.createElement("div"),h=this.attr("elementpool").get("rowheaderinner"),d=this.attr("elementpool").get("viewportinner"),u=this.attr("headercols"),p=this.attr("frozencols"),g=l.nDynamicCols,f=r.length-o===i?0:this._getSumOfRowHeight(i,r.length-o-1),m=0;m<t;m++){var C,L,b=-1===e.nEndRow||-1===e.nBottomRow?i+m:e.nBottomRow+m+1,E=this._getRowHeight(b),v=f,y=0;for(r.RT_insert(r.length-o,[]),s=0;s<u;s++)C=this._getColWidth(s),(a=this._createCell(c,!1)).style.width=C+"px",a.style.height=E+"px",this._getColWordwrap(s)?a.style.whiteSpace="pre-wrap":(a.style.display="flex",a.style.justifyContent="center",a.style.alignItems="center"),a.style.left=y+"px",a.style.top=v+"px",a.className+=" "+n.CELL_ROWHEADER+" "+n.CELL_HEADERCOLS,a.setAttribute("data-col",s),h.appendChild(a),r[r.length-o-1].push(a),y+=parseFloat(C);for(s=0;s<g;s++){var w=s<p?u+s:l.nLeftCol-p+s;C=this._getColWidth(w),L=this._getColTabindex(w),(a=this._createCell(c,L)).style.width=C+"px",a.style.height=E+"px",this._getColWordwrap(w)?a.style.whiteSpace="pre-wrap":a.style.lineHeight=E-2+"px",a.style.left=r[r.length-o-2][r[r.length-o-1].length].style.left,a.style.top=v+"px",a.setAttribute("data-col",w),a.className+=" "+n.CELL_VIEWPORT+" "+(s<p?n.CELL_FROZENCOLS:n.CELL_NORMALCOLS)+" "+this._getColStyleClassName(w,"data");var x=this._getColStyle(w,"data");switch(_._.isEmpty(x)||_._.isUndefined(x)||_._.isNull(x)||_.$(a).css(x),a.className+=" "+n.CELL_NORMALROWS,this._getColType(w)){case"input":a.className+=" "+n.TYPE_INPUT_CELL;break;case"inputbutton":a.className+=" "+n.TYPE_INPUTBUTTON_CELL;break;case"textarea":a.className+=" "+n.TYPE_TEXTAREA_CELL;break;case"selectmenu":a.className+=" "+n.TYPE_SELECTMENU_CELL;break;case"datepicker":a.className+=" "+n.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":a.className+=" "+n.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":a.className+=" "+n.TYPE_CHECKBOX_CELL;break;case"image":a.className+=" "+n.TYPE_IMAGE_CELL;break;case"html":a.className+=" "+n.TYPE_HTML_CELL;break;case"chart":a.className+=" "+n.TYPE_CHART_CELL;break;case"multicheckbox":a.className+=" "+n.TYPE_MULTICHECKBOX_CELL;break;case"number":a.className+=" "+n.TYPE_NUMBER_CELL;break;case"slider":a.className+=" "+n.TYPE_SLIDER_CELL;break;case"button":a.className+=" "+n.TYPE_BUTTON_CELL;break;case"editor":a.className+=" "+n.TYPE_EDITOR_CELL;break;default:a.className+=" "+n.TYPE_STATIC_CELL}d.appendChild(a),r[r.length-o-1].push(a)}f+=E}return this._syncCellMatrix("row"),!0}return!1},_.QCELL.BasicQCELL.prototype._removeDynamicRows=function(t){var e=this.attr("cellmatrix").get("row");if(t>0){var r=e.splice(e.length-this.attr("footerrows")-t,t);return _.$(_._.flatten(r)).remove(),this._syncCellMatrix("row"),!0}return!1},_.QCELL.BasicQCELL.prototype._addDynamicCols=function(t){var e=this.attr("hsinfo"),r=this.attr("cellmatrix").get("col"),i=this.attr("headercols"),o=this._isPanel();if(t>0){for(var a,s,n=_.QCELL.def.css,l=this.attr("vsinfo"),c=document.createElement("div"),h=this.attr("elementpool").get("colheaderinner"),d=this.attr("elementpool").get("viewportinner"),u=this.attr("highlightrepeat"),p=this.attr("rows"),g=this.attr("headerrows"),f=this.attr("frozenrows"),m=this.attr("frozenbottomrows"),C=l.nDynamicRows,L=r.length===i?0:this._getSumOfColWidth(i,r.length-1),b=0;b<t;b++){var E,v,y=-1===e.nEndCol?i+b:e.nRightCol+b+1,w=this._getColWidth(y),x=L,k=0;if(e.nEndCol===e.nRightCol&&(y=e.nRightCol),y>e.nEndCol)break;for(r.push([]),s=0;s<g;s++)E=this._getRowHeight(s),v=this._getColTabindex(y),(a=this._createCell(c,v)).style.width=w+"px",a.style.height=E+"px",this._getColWordwrap(y)?a.style.whiteSpace="pre-wrap":a.style.lineHeight=E-2+"px",a.style.left=x+"px",a.style.top=k+"px",a.className+=" "+n.CELL_COLHEADER+" "+n.CELL_HEADERROWS,a.setAttribute("data-row",s),h.appendChild(a),r[r.length-1].push(a),k+=parseFloat(E);for(s=0;s<C;s++){var S=s<f?g+s:s>=C-m?p-C+s:l.nTopRow-f+s;E=this._getRowHeight(S),v=this._getColTabindex(y),(a=this._createCell(c,v)).style.width=w+"px",a.style.height=E+"px",this._getColWordwrap(y)?a.style.whiteSpace="pre-wrap":a.style.lineHeight=E-2+"px",a.style.left=x+"px",a.style.top=r[r.length-2][r[r.length-1].length].style.top,a.setAttribute("data-row",S),a.className+=" "+n.CELL_VIEWPORT,a.className+=s<f?" "+n.CELL_FROZENROWS:s>=C-m?!0===o?" "+n.CELL_FROZENBOTTOMROWS_PANEL:" "+n.CELL_FROZENBOTTOMROWS:" "+n.CELL_NORMALROWS,u>0&&(S-g+1)%u==0&&(a.className+=" "+n.CELL_HIGHLIGHTREPEAT),d.appendChild(a),r[r.length-1].push(a)}L+=w}return this._syncCellMatrix("col"),!0}return!1},_.QCELL.BasicQCELL.prototype._removeDynamicCols=function(t){var e=this.attr("cellmatrix").get("col");if(t>0){var r=e.splice(e.length-t,t);return _.$(_._.flatten(r)).remove(),this._syncCellMatrix("col"),!0}return!1},_.QCELL.BasicQCELL.prototype._makeRowUI=function(t,e){try{var r=this.attr("vsinfo"),i=this.attr("headerrows"),o=this._isPanel(),a=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(a=!0===this.attr("hierachystate").grouped?this.attr("hierachystate"):a,!1===r.bVScroll){if(a&&!0!==a.grouped&&o){var s=this;return!0!==this.attr("isSorting")&&setTimeout((function(){s.rebuild(!0)})),!0}var n=this.attr("hsinfo"),l=n.bHScroll;if(this._initLayoutSize(),this._calculateDynamicRows(),r.bVScroll){var c=this.attr("cellmatrix").get("row"),h=this.attr("footerrows");if(c.length-i-h+t>r.nDynamicRows?this._addDynamicRows(r.nDynamicRows-(c.length-i-h)):this._addDynamicRows(t),this._adjustFrozenRowsCount(),(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop()),this._setCellGroupCSS("row","normal"),this._resizeHScrollbar(),this._updateHSInfo(),l&&n.bHScroll&&n.nPos===n.nLastPos){var d=this.attr("scrollbarwidth");_._.each(_._.flatten(this._getCellGroupDOMs("col","normal")),(function(t){t.style.left=parseFloat(t.style.left)-d+"px"}))}}else this._addDynamicRows(t),(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop())}return this._resizeVScrollbar(e),this._updateVSInfo(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._makeRowUI",t.message),!1}},_.QCELL.BasicQCELL.prototype._removeRowUI=function(t,e){try{var r=this.attr("vsinfo"),i=this.attr("currentdata"),o=this._isPanel(),a=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");a=!0===this.attr("hierachystate").grouped?this.attr("hierachystate"):a;var s=this;if(r.bVScroll){if(a&&!0!==a.grouped&&o)return!0!==this.attr("isSorting")&&setTimeout((function(){s.rebuild(!0)})),!0;var n=r.nDynamicRows,l=this.attr("hsinfo");if(this._initLayoutSize(),this._calculateDynamicRows(),!1===r.bVScroll){if(i.length<n&&this._removeDynamicRows(n-i.length),this._adjustFrozenRowsCount(),this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),o&&(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop()),l.bHScroll&&l.nPos===l.nLastPos){var c=this.attr("scrollbarwidth");_._.each(_._.flatten(this._getCellGroupDOMs("col","normal")),(function(t){t.style.left=parseFloat(t.style.left)+c+"px"}))}this._resizeHScrollbar(),this._updateHSInfo()}}else{if(this._removeDynamicRows(t),a&&!0!==a.grouped&&o)return!0!==this.attr("isSorting")&&setTimeout((function(){s.rebuild(!0)})),!0;o&&(this.attr("frozenrows")>0||this.attr("frozenbottomrows")>0)&&(this._setCellGroupCSS("row","normal"),this._adjustNormalRowsTop(),this._setCellGroupCSS("row","frozen"),this._setCellGroupCSS("row","frozenbottom"),this._adjustFrozenBottomRowsTop())}return this._resizeVScrollbar(e),this._updateVSInfo(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._removeRowUI",t.message),!1}},_.QCELL.BasicQCELL.prototype._adjustFrozenBottomRowsTop=function(){var t=this.attr("frozenbottomrows");if(t>0){var e=this,r=this._getCellGroupDOMs("row","frozenbottom"),i=this.attr("rows"),o=this.attr("layoutsize").viewport.clientHeight;return _._.each(r,(function(r,a){var s=i-t+a;_._.each(r,(function(t){t.style.top=o-e._getSumOfRowHeight(s,i-1)+"px"}))})),!0}return!1},_.QCELL.BasicQCELL.prototype._adjustNormalRowsTop=function(){if(this.attr("currentdata").length>0){var t=this,e=this._getCellGroupDOMs("row","normal"),r=0,i=this.attr("headerrows"),o=this.attr("frozenrows");return _._.each(e,(function(e,a){var s=i+o+a,n=t._getRowHeight(s),l=r;_._.each(e,(function(t){t.style.top=l+"px"})),r+=n})),!0}return!1},_.QCELL.BasicQCELL.prototype._getQCellCol=function(t){return this.attr("qcellcols")[t]},_.QCELL.BasicQCELL.prototype._getColDataMergeCol=function(t){return void 0===this._getQCellCol(t)||null===this._getQCellCol(t)||this._getQCellCol(t).attr("mergecol")},_.QCELL.BasicQCELL.prototype._getColDataMergeRef=function(t){if(void 0!==this._getQCellCol(t)&&null!==this._getQCellCol(t))return this._getQCellCol(t).attr("mergeref")},_.QCELL.BasicQCELL.prototype._getColDataType=function(t){return this._getQCellCol(t).attr("datatype")},_.QCELL.BasicQCELL.prototype._setColDataTypeNumber=function(t){return this._getQCellCol(t).attr("datatype","number","string")},_.QCELL.BasicQCELL.prototype._setColsDataType=function(t){if(!1===_._.isUndefined(t)&&t.length>0){for(var e=t[0],r=[],i=this.attr("cols"),o=this.attr("headercols"),a=this.attr("colkeys"),s=o;s<i;s++)r.push(e[a[s]]);for(var n=0;n<r.length;n++)"number"==typeof r[n]&&this._setColDataTypeNumber(n+o)}},_.QCELL.BasicQCELL.prototype._getColFormat=function(t){return this._getQCellCol(t).attr("format")},_.QCELL.BasicQCELL.prototype._getColOptions=function(t){return this._getQCellCol(t).attr("options")},_.QCELL.BasicQCELL.prototype._getColWordwrap=function(t){return this._getQCellCol(t).attr("wordwrap")},_.QCELL.BasicQCELL.prototype._showDisableText=function(t,e,r){if(!0===this._getQCellCol(r).attr("celldisabled")[e]){var i=this.getRowData(e),o=this._getKeyOfCol(r);if(void 0!==i["_rt_qc_d_"+o])return _.util.textContent(t,i["_rt_qc_d_"+o]),!0}return!1},_.QCELL.BasicQCELL.prototype._showDataFormat=function(t,e,r,i){var o="";try{if(!0===this._getQCellCol(e).attr("celldisabled")[t]){var a=this.getRowData(t),s=this._getKeyOfCol(e);if(void 0!==a["_rt_qc_d_"+s])return a["_rt_qc_d_"+s]}var n=this._getColFormat(e);if(""===_.$.trim(r)||_._.isUndefined(r)){if(!_._.isUndefined(n)&&!_._.isNull(n)){if("custom"===n.type&&!0===n.allowemptydata)return n.callback(String(r));if(void 0!==n.invalidchar)return n.invalidchar}o=r}else if(_._.isUndefined(n)||_._.isNull(n))o=r;else{var l=!1;switch(void 0===i&&void 0!==n.beforeformat&&_._.isFunction(n.beforeformat)&&(r=n.beforeformat(r,this.getRowData(t,e)),l=!0),n.type){case"string":if(_._.isString(r))for(var c=n.rule.split("@"),h=0;h<c.length;h++)""!==c[h]&&(r=_.util.replaceAll(r,c[h],""));o=n.rule.replace("@",r);break;case"number":var d={format:n.rule,locale:void 0===n.locale?this.attr("locale"):n.locale};if(o=_.$.formatNumber(_.util.replaceAll(r+"",",",""),d),void 0!==n.invalidchar&&"0"===o&&isNaN(Number(r))){o=n.invalidchar;break}if("#,###.##"===d.format){if("0"!==o&&-1!==(r+"").indexOf(".")&&-1===o.indexOf(".")){var u=d.format.split(".");""===o&&(o="0"),o+=".";for(var p=0;p<u[1].length;p++)o+="0"}else(""===o&&"0"===r||""===o&&0===r)&&(o="0");"0"===o&&isNaN(Number(r))&&!0===n.useinvaliddata&&(o=r)}else"0"===o&&isNaN(Number(r))&&!0===n.useinvaliddata?o=r:(_._.isNumber(r+"")?o=0:0!==r&&"0"!==r&&""!==r||(o=_.util.replaceAll(o,".",""),o=_.util.replaceAll(o,"0",""),o+="0"),-1!==n.rule.indexOf(".")&&0===o.indexOf(".")&&0!==n.rule.indexOf(".")&&(o="0"+o));break;case"date":_.moment.locale(void 0===n.locale?"kr"===this.attr("locale")?"ko":this.attr("locale"):n.locale),"Invalid date"===(o=_.moment(r,n.origin).format(n.rule))&&(o="");break;case"custom":o=n.callback(String(r));break;default:o=r}if(void 0===i&&void 0!==n.afterformat&&_._.isFunction(n.afterformat)&&(o=n.afterformat(o,this.getRowData(t,e))),!0===l){var g=this._getKeyOfCol(e);if(null!=g){var f=this.attr("currentdata")[t-this.attr("headerrows")];if(void 0!==f)f["_rt_qc_bf_"+g]=o}}0}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._showDataFormat",t.message),o=""}return o},_.QCELL.BasicQCELL.prototype._getColFormatStatic=function(t){return this._getQCellCol(t).attr("formatstatic")},_.QCELL.BasicQCELL.prototype._showDataFormatStatic=function(t,e){var r="";try{if(""===_.$.trim(e)||_._.isUndefined(e))r=e;else{var i=this._getColFormatStatic(t);if(_._.isUndefined(i)||_._.isNull(i))r=e;else{switch(i.type){case"string":r=i.rule.replace("@",e);break;case"number":var o={format:i.rule,locale:void 0===i.locale?this.attr("locale"):i.locale};r=_.$.formatNumber(e+"",o),0===parseInt(e+"")&&(r=0);break;case"date":_.moment.locale(void 0===i.locale?"kr"===this.attr("locale")?"ko":this.attr("locale"):i.locale),r=_.moment(e,i.origin).format(i.rule);break;case"custom":r=i.callback(String(e));break;default:r=e}0}}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._showDataFormatStatic",t.message),r=""}return r},_.QCELL.BasicQCELL.prototype._getColWidth=function(t){return this.attr("colwidthsperpixel")[t]},_.QCELL.BasicQCELL.prototype._setColWidth=function(t,e){try{var r=this.attr("colwidths"),i=this.attr("colwidthsperpixel"),o=this.attr("hsinfo"),a=o.bHScroll,s=o.nDynamicCols,n=this.attr("headercols");if(e===i[t])return!1;if(e<15)e=15;else{var l=this.attr("frozencols"),c=this.attr("layoutsize").viewport.offsetWidth,h=0;e>c-(h=t<n+l?this._getSumOfColWidth(n,t-1):this._getSumOfColWidth(n,n+l-1))&&(e=c-h)}i[t]=e;for(var d=n,u=this.attr("cols");d<u;d++)r[d]=i[d]+"px";if(this.attr("percentcolwidth",!1,"boolean"),this._initLayoutSize(),this._calculateDynamicCols(),s>o.nDynamicCols?this._removeDynamicCols(s-o.nDynamicCols):s<o.nDynamicCols&&this._addDynamicCols(o.nDynamicCols-s),this.attr("frozencols")>0&&this._setCellGroupCSS("col","frozen"),this._setCellGroupCSS("col","normal"),this._resizeHScrollbar(),this._updateHSInfo(),this._clearDynamicCSS("col","data"),a!==o.bHScroll){this._createElement();var p=this.getID();setTimeout((function(){var t=_.QCELL.getInstance(p);null!==t&&null!==t.attr("_backGT")&&t.setGrandTotal(t.attr("_backGT"))}))}return this.resize(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._setColWidth",t.message),!1}},_.QCELL.BasicQCELL.prototype._getKeyOfCol=function(t){return this.attr("colkeys")[t]},_.QCELL.BasicQCELL.prototype._setKeyOfCol=function(t,e){if(t<this.getCols("header")||this.attr("colkeys").length<=t)return!1;this.attr("colkeys")[t]=e;var r=this._getQCellCol(t);r&&r.attr("key",e,"string"),this.getProperties().columns[t-this.getCols("header")].key=e;for(var i=this.attr("vsinfo"),o=i.nTopRow;o<=i.nBottomRow;o++){var a=this._getCellDOM(o,t);if(null!=a){var s=this.getCellData(o,t),n=this._showDataFormat(o,t,void 0===s?"":s);_.util.textContent(a,n)}}return!0},_.QCELL.BasicQCELL.prototype._getKeyOfColID=function(t){var e=this.attr("colidsinfo");return _._.has(e,t)?this._getKeyOfCol(e[t]):-1},_.QCELL.BasicQCELL.prototype._getColsOfKey=function(t){var e=this.attr("colkeysinfo");return e.containsKey(t)?e.get(t).values():[]},_.QCELL.BasicQCELL.prototype._getColID=function(t){return this.attr("colids")[t]},_.QCELL.BasicQCELL.prototype._getColFilltered=function(t){return this._getQCellCol(t).attr("fillter_prev")},_.QCELL.BasicQCELL.prototype._setColFilltered=function(t,e){this._getQCellCol(t).attr("fillter_prev",e,"object")},_.QCELL.BasicQCELL.prototype._getColOfID=function(t){return this.attr("colidsinfo")[t]},_.QCELL.BasicQCELL.prototype._moveColsSub=function(t,e,r,o){var a,s,n,l=this,c=this.attr("qcellcols"),h=this.attr("colkeysinfo"),d=this.attr("hsinfo"),u=d.nDynamicCols,p=this.attr("cols"),g=this.attr("headercols"),f=t<r?t:r,m=t<r?r:t;for(n=f;n<=m;n++)this._removeColStyleClassName(n);var C,L,b,E=[],v=this._getQCellCol(t).attr("style"),y=this.attr("rows");if(!_._.isEmpty(v)){if(_._.isObject(v.header))for(b=Object.keys(v.header),C=0;C<b.length;C++)for(n=0;n<this.attr("headerrows");n++)null!==(L=this._getCellDOM(n,t))&&_.$(L).css(b[C],"");if(_._.isObject(v.data))for(b=Object.keys(v.data),C=0;C<b.length;C++)for(n=this.attr("headerrows");n<y;n++)null!==(L=this._getCellDOM(n,t))&&_.$(L).css(b[C],"")}if(!0===this.attr("useRemoveUI")){var w=this.getProperties().columns[t-g];for(t>r?(this.getProperties().columns.splice(t-g,1),this.getProperties().columns.RT_insert(r-g,w)):(this.getProperties().columns.RT_insert(r+1-g,w),this.getProperties().columns.splice(t-g,1)),n=0;n<this.getProperties().columns.length;n++)E.push(_._.clone(this.getProperties().columns[n]))}_._.each([c,this.attr("colsprops"),this.attr("colwidths"),this.attr("colwidthsperpixel"),this.attr("colkeys"),this.attr("colids"),this.attr("headertext")],(function(i){i.RT_insertArray(r-(t<r?e-1:0),i.splice(t,e))})),!0===this.attr("useRemoveUI")&&(this.attr("colsprops",E,"array"),this.setPropertiesColumn(E)),h.clear(),_._.each(this.attr("colkeys"),(function(t,e){!1===h.containsKey(t)&&h.put(t,new i._QHashSet),h.get(t).add(e)}));for(var x=_._.map(c,(function(t){return t.attr("id")})),k=_._.range(0,p),S=[],Q=0;Q<x.length;Q++)S.push([x[Q],k[Q]]);this.attr("colidsinfo",_._.fromPairs(S),"object"),this._calculateDynamicCols(),u>d.nDynamicCols?this._removeDynamicCols(u-d.nDynamicCols):u<d.nDynamicCols&&this._addDynamicCols(d.nDynamicCols-u),this.attr("frozencols")>0&&this._setCellGroupCSS("col","frozen"),this._setCellGroupCSS("col","normal"),this._resizeHScrollbar(),this._updateHSInfo(),this._clearDynamicCSS("col","data");var q=this._getSyncInfo("col"),T=this._popColSyncInfos(t,e);if(t<r){var A=_._.range(t+e,r+1);this._pullColSyncInfo(_._.filter(A,(function(t){return q.containsKey(t)})),e),a=_._.range(r-(e-1),r+1),this._putColSyncInfos(a,T)}else{var R=_._.range(r,t).sort(_.st.desc);this._pushColSyncInfo(_._.filter(R,(function(t){return q.containsKey(t)})),e),a=_._.range(r,r+e),this._putColSyncInfos(a,T)}for(this._refreshDCs(),o||(_._.each(a,(function(t){s=_._.union(s,_._.flatten(l._getColCellDOMs(t)))})),_.$(s).effect("bounce",{distance:"5",times:1})),this._resetAriaLabel(),n=f;n<=m;n++)this._setRoleTitle(n);return setTimeout((function(){l._trigger("aftermovecol",{beforecol:t,cound:e,aftercol:r})})),!0},_.QCELL.BasicQCELL.prototype._moveCols=function(t,e,r,i){var o=this,a=_._.range(t,t+e),s=this.attr("cols"),n=this.attr("headercols");if(t!==r&&(r<t||r>=t+e)&&_._.every(a,(function(t){return t>=n&&t<s&&(!!i||o._getQCellCol(t).attr("move"))})))return this._moveColsSub(t,e,r,i);if(t!==r&&(r<t||r>=t+e)&&_._.every(a,(function(t){return t>=n&&t<s&&(!!i||o._getQCellCol(t).attr("topmove"))}))){var l=this._getCellDOM(0,t),c=0;if(c=Number(null===l?o.attr("colmoveshadow").attr("data-endcol"):l.getAttribute("data-endcol")),!0!==this._getQCellCol(t).attr("topmove")||!0!==this._getQCellCol(r).attr("topmove"))return!1;if(!isNaN(c)){if(t<r&&r<t+c)return!1;e=c}if(t<r){var h=this._getCellDOM(0,r),d=Number(h.getAttribute("data-endcol"));isNaN(d)||(r+=d,r--)}return this._moveColsSub(t,e,r,i)}return!1},_.QCELL.BasicQCELL.prototype._setFormatStatic=function(t,e){var r,i=!0;try{if(void 0!==e.type&&!1===_._.isString(e.type))r="string",_.QCELL.log("err","QCELL.create",'Please check "formatstatic.type"\'s type is "'+r+'".'),i=!1;else switch(e.type){case"date":void 0===e.origin&&!1===_._.isString(e.origin)?(r="string",_.QCELL.log("err","QCELL.create",'Please check "formatstatic.origin"\'s type is "'+r+'".'),i=!1):void 0===e.rule&&!1===_._.isString(e.rule)&&(r="string",_.QCELL.log("err","QCELL.create",'Please check "formatstatic.rule"\'s type is "'+r+'".'),i=!1);break;case"number":case"string":void 0===e.rule&&!1===_._.isString(e.rule)&&(r="string",_.QCELL.log("err","QCELL.create",'Please check "formatstatic.rule"\'s type is "'+r+'".'),i=!1);break;case"custom":void 0===e.callback&&!1===_._.isFunction(e.origin)&&(r="callback",_.QCELL.log("err","QCELL.create",'Please check "formatstatic.origin"\'s type is "'+r+'".'),i=!1)}i&&(this._getQCellCol(t).attr("formatstatic",e,"object"),this._refreshDCs()),i=!0}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._setCellLabel",t.message),i=!1}return i},_.QCELL.BasicQCELL.prototype._getColExportDataType=function(t){try{return this._getQCellCol(t).attr("exportdatatype")}catch(t){return""}},_.QCELL.BasicQCELL.prototype._getHeaderTextAlign=function(t){return this._getQCellCol(t).attr("header_text_algin")},_.QCELL.BasicQCELL.prototype._getDataTextAlign=function(t){return void 0===this._getQCellCol(t).attr("data_text_algin")||null===this._getQCellCol(t).attr("data_text_algin")?"left":this._getQCellCol(t).attr("data_text_algin")},_.QCELL.BasicQCELL.prototype._useDataTextAlign=function(t){return this._getQCellCol(t).attr("usedatatextalign")},_.QCELL.BasicQCELL.prototype._getColPrevProperty=function(t){return void 0===this._getQCellCol(t)||null===this._getQCellCol(t)||this._getQCellCol(t).attr("prev_param")},_.QCELL.BasicQCELL.prototype._getColTabindex=function(t){return this._getQCellCol(t).attr("tabindex")},_.QCELL.BasicQCELL.prototype._removeContextMenu=function(){if(!1===_._.isNull(this.attr("contextmneuui"))){if(void 0===this.attr("contextmneuui"))return;this.attr("contextmneuui").off("mousemove"),this.attr("contextmneuui").off("mouseleave"),this.attr("contextmneuui").remove(),this.attr("contextmneuui",null,"jquery"),this.attr("contextmenuid","","string"),_.$("rt-qc-contextmenu-root").remove()}var t=document.getElementsByClassName("rt-qc-contextmenu-root");if(null!=t)for(var e=0;e<t.length;e++)t[e].remove()},_.QCELL.BasicQCELL.prototype._initContextMenu=function(){var t=this.attr("id")+"._setContextMenu";try{return this._removeContextMenu(),this.attr("contextmenu",{},"object"),this.attr("contextmenuheader",{},"object"),this.attr("contextmenudata",{},"object"),this.attr("contextmenudisable",[],"array"),this.attr("contextmenuheaderdisable",[],"array"),this.attr("contextmenudatadisable",[],"array"),!0}catch(e){return _.QCELL.log("err",t,e.message),!1}},_.QCELL.BasicQCELL.prototype._setContextMenu=function(t){var e=this.attr("id")+"._setContextMenu";try{return this.attr("contextmenu",t,"object"),this.attr("contextmenuheader",t.header,"object"),this.attr("contextmenudata",t.data,"object"),this.attr("prevcontextmenu",_._.clone(t),"object"),this._createContextMenu(),!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._createContextMenu=function(t){var e=this,r=this.attr("layoutsize").container.clientX,i=this.attr("layoutsize").container.clientY,o=this.attr("layoutsize").colheader.offsetHeight,a=this.attr("layoutsize").colheader.offsetLeft,s=this.attr("layoutsize").root,n=s.offsetWidth+r,l=s.offsetHeight+i,c=_.QCELL.def.css,h=this.attr("contextmenuheader"),d=this.attr("contextmenudata"),u=this.getID();_.$(document).bind("contextmenu",(function(t){if(e=_.QCELL.getInstance(u),_.$(t.target).hasClass("rt-qc-colheader-area")){if(_._.isNull(h)||_._.isUndefined(h))return!0;if(t.target.className.indexOf(c.CONTEXTMENU)>-1)t.preventDefault();else{if(_.$(t.target).hasClass("rt-qc-cell")){if(t.target.id.split("_")[0]!==u)return}else if(_.$(t.target).hasClass("rt-qc-colheader-area")&&t.target.parentElement.id.split("_")[0]!==u)return;if(t.preventDefault(),t.stopPropagation(),e._removeContextMenu(),e._initLayoutSize(),_._.isNull(e.attr("contextmneuui"))||void 0===e.attr("contextmneuui")){var s=document.createElement("ul").cloneNode();s.id=h.id,s.className+=c.CONTEXTMENU_AREA+" "+c.CONTEXTMENU_ROOT,e.attr("contextmneuui",_.$(e._createContextMenuContents(s,h.contents,1,h.id+"-")),"jquery")}e._calculateContextMenuPosition(t,e.attr("contextmneuui")),e.attr("contextmneuui").appendTo(e.attr("parent")),e.attr("contextmneuui").on("mousemove",(function(t){var r=t.target.parentNode;_.util.hasClass(r,c.CONTEXTMENU_MENU)||_.util.hasClass(r,c.CONTEXTMENU_SUB_MENU)?e.attr("contextmenuid",_.$(r).attr("id"),"string"):(r=r.parentNode,(_.util.hasClass(r,c.CONTEXTMENU_MENU)||_.util.hasClass(r,c.CONTEXTMENU_SUB_MENU))&&e.attr("contextmenuid",_.$(r).attr("id"),"string"))})),e.attr("contextmneuui").on("mouseleave",(function(t){e.attr("contextmenuid","","string")}))}}else{if(!(t.pageY>o+i&&t.pageY<l&&t.pageX>a+r&&t.pageX<n))return!0;if(_._.isNull(d)||_._.isUndefined(d))return!0;if(t.target.className.indexOf(c.CONTEXTMENU)>-1)t.preventDefault();else{if(_.$(t.target).hasClass("rt-qc-cell")&&t.target.id.split("_")[0]!==u)return;if(e._removeContextMenu(),t.preventDefault(),(_._.isNull(e.attr("contextmneuui"))||void 0===e.attr("contextmneuui"))&&e.attr("contextmneuui",e._createContextMenuLayout(document.createElement("ul"),t),"jquery"),void 0===e.attr("contextmneuui")||null===e.attr("contextmneuui"))return;e._calculateContextMenuPosition(t,e.attr("contextmneuui")),e.attr("contextmneuui").appendTo(e.attr("parent")),e.attr("contextmneuui").on("mousemove",(function(t){var r=t.target.parentNode;_.util.hasClass(r,c.CONTEXTMENU_MENU)||_.util.hasClass(r,c.CONTEXTMENU_SUB_MENU)?e.attr("contextmenuid",_.$(r).attr("id"),"string"):(r=r.parentNode,(_.util.hasClass(r,c.CONTEXTMENU_MENU)||_.util.hasClass(r,c.CONTEXTMENU_SUB_MENU))&&e.attr("contextmenuid",_.$(r).attr("id"),"string"))})),e.attr("contextmneuui").on("mouseleave",(function(t){e.attr("contextmenuid","","string")}))}}}))},_.QCELL.BasicQCELL.prototype._calculateContextMenuPosition=function(t,e){if(void 0!==e){var r,i,o=_.QCELL.def.css,a=this.attr("layoutsize").container.clientX,s=this.attr("layoutsize").container.clientY,n=this.attr("layoutsize").root.offsetHeight+s,l=this.attr("layoutsize").root.offsetWidth+a,c=_.$("."+o.CONTEXTMENU_ROOT).height()+this.attr("layoutsize").hscrollbar.offsetHeight,h=_.$("."+o.CONTEXTMENU_ROOT).width()+this.attr("layoutsize").vscrollbar.offsetWidth,d=parseInt(t.pageY),u=parseInt(t.pageX),p=0;(this.attr("useall")||this.attr("usetreeall"))&&(p=a),i=l<u+h?l-h+"px":u-p+"px",r=n<d+c?n-c+"px":d-s+this.attr("layoutsize").root.offsetTop+"px",e.css({left:i,top:r})}},_.QCELL.BasicQCELL.prototype._createContextMenuLayout=function(t,e){var r=_.QCELL.def.css,i=t.cloneNode(),o=this.attr("contextmenu"),a=this.attr("contextmenudata"),s=e.target,n=parseInt(s.getAttribute("data-col"));if(i.id=void 0===o.id?this.getID()+"_contextmenu":this.getID()+"_"+o.id,i.className+=r.CONTEXTMENU_AREA+" "+r.CONTEXTMENU_ROOT,(_._.isNull(a.except)||_._.isUndefined(a.except))&&!_._.isNull(a.base)&&!_._.isUndefined(a.base))return _.$(this._createContextMenuContents(i,a.base.contents,1,a.base.id+"-"));if(!_._.isNull(a.except)&&!_._.isUndefined(a.except)){for(var l=null,c=!1,h=0;h<a.except.length;h++){var d=a.except[h];if(n===d.col){c=!0,l=d;break}}return c?_.$(this._createContextMenuContents(i,l.contents,1,l.id+"-")):_.$(this._createContextMenuContents(i,a.base.contents,1,a.base.id+"-"))}},_.QCELL.BasicQCELL.prototype._createContextMenuContents=function(t,e,r,i){var o=_.QCELL.def.css,a=t.cloneNode(),s=this.attr("contextmenudisable"),n=1;a.style.zIndex=r;for(var l=0;l<e.length;l++){var c=e[l],h=document.createElement("li"),d=document.createElement("span"),u=d.cloneNode(),p=d.cloneNode(),g=i+n;if(!0===c.disabled&&!1===_._.contains(s,g)&&s.push(g),!1===_._.isUndefined(c.divine))_._.isBoolean(c.divine)&&!0===c.divine&&(h.className+=o.CONTEXTMENU_DIVINE);else{if(n++,h.id=g,h.className+=o.CONTEXTMENU_ITEM,d.className+=o.CONTEXTMENU_ITEM_IMG,u.className+=o.CONTEXTMENU_ITEM_LABEL,p.className+=o.CONTEXTMENU_ITEM_SUB,!1===_._.isUndefined(c.icon)?d.appendChild(this._createFontAwesomeElementImg(c.icon)):d.appendChild(document.createTextNode(" ")),!1===_._.isUndefined(c.label)?u.appendChild(document.createTextNode(c.label)):u.appendChild(document.createTextNode(" ")),p.appendChild(document.createTextNode(" ")),h.appendChild(d),h.appendChild(u),h.appendChild(p),!1===_._.isUndefined(c.callback)&&(_._.isFunction(c.callback)?this._addContextMenuClickEvent(h,c.callback,c):_._.isString(c.callback)&&this._addContextMenuStringClickEvent(h,c.callback,c)),this._addContextMenuClickEventInit(h),!0===_._.isUndefined(c.items))h.className+=" "+o.CONTEXTMENU_MENU;else{var f=document.createElement("ul");f.className+=o.CONTEXTMENU_AREA,f=this._createContextMenuContents(f,c.items,r+1,g+"-"),h.className+=" "+o.CONTEXTMENU_SUB_MENU,h.appendChild(f)}for(var m=0;m<s.length;m++)g===s[m]&&(h.className+=" "+o.CONTEXTMENU_DISABLE,!1===_._.isUndefined(c.callback)&&_._.isFunction(c.callback)&&_.$(h).off("click",c.callback),_.$(h).off("click"));this._addContextMenuMouseMoveEvent(h,o)}a.appendChild(h)}return a},_.QCELL.BasicQCELL.prototype._createFontAwesomeElementImg=function(t){var e,r="</i>";if(t.indexOf("<i")>-1&&t.indexOf(r)>-1){var i=t.substr(t.indexOf("<i"),t.lastIndexOf(r))+r,o=i.slice(i.indexOf('"')+1,i.lastIndexOf('"'));(e=document.createElement("i")).className+=o}else(e=document.createElement("img")).src=t;return e},_.QCELL.BasicQCELL.prototype._addContextMenuClickEvent=function(t,e,r){_.$(t).on("click",this.attr("eventparam"),(function(t){e(r)}))},_.QCELL.BasicQCELL.prototype._addContextMenuStringClickEvent=function(t,e,r){_.$(t).on("click",this.attr("eventparam"),(function(t){window[e](r)}))},_.QCELL.BasicQCELL.prototype._addContextMenuClickEventInit=function(t){var e=this;_.$(t).on("click",this.attr("eventparam"),(function(t){e._removeContextMenu()}))},_.QCELL.BasicQCELL.prototype._addContextMenuMouseMoveEvent=function(t,e){var r,i;_.$(t).mouseenter((function(t){var o=_.$(this.parentNode).width(),a=_.$(this).parent().children(),s=0;for(r=_.$(this).children(),i=0;i<a.length;i++)if(a[i]===_.$(this).get(0)){i<a.length-1&&(s=-1);break}for(i=0;i<r.length;i++){var n=_.$(r[i]);n.hasClass(e.CONTEXTMENU_AREA)&&("auto"===n.css("left")&&n.css({left:o+"px",top:s+"px"}),n.css({display:"inline-block"}))}})),_.$(t).mouseleave((function(t){for(r=_.$(this).children(),i=0;i<r.length;i++){var o=_.$(r[i]);o.hasClass(e.CONTEXTMENU_AREA)&&o.css({display:"none"})}}))},_.QCELL.BasicQCELL.prototype._setDisableContextmenu=function(t){var e,r=this.attr("contextmenudisable"),i=[];for(t=t.sort().reverse(),e=0;e<r.length;e++)for(var o=t.length;o>-1;o--)r[e]===t[o]&&i.push(t[o]);if(i.length>0)for(e=0;e<i.length;e++)t.splice(i[e],1);for(e=0;e<t.length;e++)r.push(t[e]);return r.sort(),this._removeContextMenu(),!0},_.QCELL.BasicQCELL.prototype._setAbleContextmenu=function(t){var e,r=this.attr("contextmenudisable"),i=[];for(t=t.sort().reverse(),e=0;e<r.length;e++)for(var o=t.length;o>-1;o--)r[e]===t[o]&&i.push(t[o]);for(e=0;e<t.length;e++)r.splice(i[e],1);return this._removeContextMenu(),!0},_.QCELL.BasicQCELL.prototype._getContextmenuId=function(){return this.attr("contextmenuid")},_.QCELL.BasicQCELL.prototype._isContextMenu=function(){try{return _._.isEmpty(this.attr("contextmenu").data)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._isContextMenu",t.message),!1}},_.QCELL.BasicQCELL.prototype._createCols=function(){var t,e,r=!0,i=this.attr("colsprops"),o=i.length,a=this.attr("qcellcols"),s=this.attr("rowheaders").length;for(t=0;t<s;t++){if(null===(e=this._createHeaderCol({key:"array"===this.attr("data").type?-1:""}))){r=!1;break}a.push(e)}if(r){for(t=0;t<o;t++){if(null===(e=this._createCol(t,i[t]))){r=!1;break}a.push(e)}r&&this._setHSRange()}return r},_.QCELL.BasicQCELL.prototype._createHeaderCol=function(t){try{return _.QCELL.BasicQCELL.QCellCol.create(_._.extend(_._.clone(t),{parent:this,id:"col_"+this.attr("qcellcols").length,width:this.attr("headercolwidth")+"px",move:!1}))}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createHeaderCol",t.message),null}},_.QCELL.BasicQCELL.prototype._createCol=function(t,e){try{return _.QCELL.BasicQCELL.QCellCol.create(t,_._.extend(_._.clone(e),{parent:this,id:"col_"+this.attr("qcellcols").length}))}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createCol",t.message),null}},_.QCELL.BasicQCELL.prototype._create=function(){if(this._initProps()&&this._initData()&&this._initRowheaderData()&&this._createElement()){void 0!==this.attr("groupdata")&&this.setGroup(this.attr("groupdata"));var t=this;return!0!==this.attr("bRebuildWithPrevData")&&setTimeout((function(){t._trigger("aftercreated")}),0),setTimeout((function(){t._trigger("viewport_changed")}),0),!0}return!1},_.QCELL.BasicQCELL.prototype._createElement=function(){try{return this._createHeaderMergeInfo()&&this._removeElement()&&this._createLayout()&&this._initLayoutSize()&&this._adjustFrozenCount()&&this._calculateDynamicCols()&&this._calculateDynamicRows()&&this._createFlesh()&&this._resizeHScrollbar()&&this._resizeVScrollbar()&&this._updateHSInfo()&&this._updateVSInfo()&&this._createDataMergeInfo()&&this._updateMerge()}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createElement",t.message),!1}},_.QCELL.BasicQCELL.prototype._removeElement=function(){try{return!!this._removeScrollbarUI()&&(_.$(this.attr("parent")).empty(),this.attr("elementpool").clear(),this.attr("cellmatrix").clear(),this.attr("focuscell",null,"element"),!0)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._removeElement",t.message),!1}},_.QCELL.BasicQCELL.prototype._removeScrollbarUI=function(){try{var t=this.attr("hsinfo"),e=this.attr("vsinfo"),r=this.attr("elementpool");return t.bHScroll&&r.containsKey("$jqhscrollbar")&&r.get("$jqhscrollbar").rt_qc_mCSbar("destroy"),e.bVScroll&&r.containsKey("$jqvscrollbar")&&r.get("$jqvscrollbar").rt_qc_mCSbar("destroy"),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._removeScrollbarUI",t.message),!1}},_.QCELL.BasicQCELL.prototype._setRoleTitle=function(t){if(this.attr("useall")||this.attr("usetreeall")){var e=void 0!==t?t:this.attr("elementpool").get("viewportinner");if(_._.isElement(e)){e.setAttribute("role","grid");var r,i="",o="",a=this.attr("rowheaderstitle");if(null!=a)for(r=0;r<a.length;r++)""!==i&&(i+=","),i+=o=a[r];for(r=this.getCols("header");r<this.getCols();r++)""!==(o=this._getTitleHeader(r))&&(""!==i&&(i+=","),i+=o);i="그리드 테이블 "+i,e.setAttribute("aria-label",i)}}},_.QCELL.BasicQCELL.prototype._createLayout=function(){var t=this.attr("parent");if(_._.isElement(t)){if(t.appendChild(this._createRoot(document.createElement("div"))),this._initEvent())return!0;_.$(t).empty()}return!1},_.QCELL.BasicQCELL.prototype._createRoot=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.ROOT,o.setAttribute("id",i.areaname.ROOT+"-"+r),o.appendChild(this._createPanel(t)),o.appendChild(this._createContainer(t)),o.appendChild(this._createPaginationPanel(t)),o.appendChild(this._createSheetPanel(t)),e.put("root",o),e.put("$root",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createPanel=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.PANEL,o.setAttribute("id",i.areaname.PANEL+"-"+r),o.appendChild(this._createGroupUIArea(t)),e.put("panel",o),e.put("$panel",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createGroupUIArea=function(t){var e=this.attr("id"),r=_.QCELL.def,i=t.cloneNode();return i.className+=r.css.GROUPUI,i.setAttribute("id",r.areaname.GROUPUI+"-"+e),_.$(i).droppable({hoverClass:"hover"}),i.appendChild(this._createGroupUIInner()),i},_.QCELL.BasicQCELL.prototype._createGroupUIInner=function(){var t=document.createElement("ol"),e=this.attr("id"),r=_.QCELL.def,i=r.css.GROUPUI_INNER+"-"+e,o=this;return t.className+=r.css.GROUPUI_INNER,t.setAttribute("id",i),t.appendChild(this._createGroupUIPlaceholder()),_.$(t).sortable({axis:"x",containment:"parent",stop:function(t,e){if(!e.item.hasClass(".placeholder")){var r=Number(e.item.attr("data-col")),i=o.attr("colkeys")[r];if(o.attr("groupuiinfo",[],"array"),_.$(this).find("li.placeholder").remove(),_.$(e.item).hasClass(_.QCELL.def.css.CELL)&&_.$(e.item).remove(),0===_.$(this).find("li[data-column="+i+"]").length){var a=_.$("<span></span>").addClass(_.QCELL.def.css.UI_ICON+" "+_.QCELL.def.css.UI_ICON_CLOSE).on("click",(function(e){var r=e.target.parentNode,i=t.target;_.$(r).remove(),0===_.$(i).find("li").length?(i.appendChild(o._createGroupUIPlaceholder()),o._clearGroup()):(o.attr("groupuiinfo",[],"array"),o._setGroupUIInfo(_.$(i).find("li").not(".placeholder")))})),s=_.$("<li></li>").attr("data-column",i).attr("data-col",r).append(a).append(e.item[0].innerText);_.$(t.target).append(s)}o._setGroupUIInfo(_.$(this).find("li").not(".placeholder"))}}}),t},_.QCELL.BasicQCELL.prototype._createGroupUIPlaceholder=function(){var t=document.createElement("li");return t.className="placeholder",t.innerHTML="이곳에 그룹화할 컬럼을 드롭해 주십시오",t},_.QCELL.BasicQCELL.prototype._createContainer=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.CONTAINER,o.setAttribute("id",i.areaname.CONTAINER+"-"+r),o.setAttribute("tabindex","0"),o.appendChild(this._createViewPort(t)),o.appendChild(this._createFooterRowHeader(t)),o.appendChild(this._createFooter(t)),o.appendChild(this._createEdgeHeader(t)),o.appendChild(this._createRowHeader(t)),o.appendChild(this._createColHeader(t)),o.appendChild(this._createHScrollbar(t)),o.appendChild(this._createVScrollbar(t)),e.put("container",o),e.put("$container",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createSheetPanel=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=" "+i.css.SHEETPANEL,o.setAttribute("id",i.areaname.SHEETPANEL+"-"+r),o.appendChild(this._createSheetPanelInner(t)),e.put("sheetpanel",o),e.put("$sheetpanel",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createSheetPanelInner=function(t){var e=_.QCELL.def,r=this.attr("id"),i=t.cloneNode(),o=document.createElement("span");return o.className+=" "+e.css.SHEETPANEL_INNER_SPAN,o.setAttribute("id",e.areaname.SHEETPANEL+"-span-"+r),i.appendChild(o),i.className+=" "+e.css.SHEETPANEL_INNER,i},_.QCELL.BasicQCELL.prototype._createPaginationPanel=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode(),a=this.attr("paginationinfo");if(o.className+=i.css.PAGINATIONPANEL,o.setAttribute("id",i.areaname.PAGINATIONPANEL+"-"+r),e.put("paginationpanel",o),e.put("$paginationpanel",_.$(o)),!1===_._.isUndefined(a.pageunit)){var s=this._calculatePaginationInfoCreate();o.appendChild(this._createPaginationInner(t)),s&&(this._updateCurrentData(_._.clone(a.result)),this._initRowheaderData())}return o},_.QCELL.BasicQCELL.prototype._createPaginationInner=function(t){var e=_.QCELL.def,r=t.cloneNode();return r.className+=e.css.PAGINATION_INNER,r.style.width=r.style.height="100%",r.appendChild(this._createPaginationCenterUI(t.cloneNode())),r.appendChild(this._createPaginationRightUI(t.cloneNode())),r},_.QCELL.BasicQCELL.prototype._createPaginationCenterUI=function(t){var e,r,i,o,a,s,n,l,c,h=_.QCELL.def,d=this.attr("eventparam"),u=this.attr("paginationinfo"),p=t.cloneNode(),g=document.createElement("input"),f=g.cloneNode(),m=document.createElement("span"),C=document.createElement("select"),L=Math.floor((u.pageindex-1)/u.pagecount),b=Math.floor(u.lastindex/u.pagecount),E=L*u.pagecount,v=L*u.pagecount+u.pagecount>u.lastindex?u.lastindex:L*u.pagecount+u.pagecount,y="container-"+this.getID();r=(e=this.attr("usedynamic")?document.createElement("button"):document.createElement("span")).cloneNode(),i=e.cloneNode(),o=e.cloneNode(),a=e.cloneNode();var w="",x=" ";if(this.attr("usedynamic")&&(r.setAttribute("tabindex","0"),i.setAttribute("tabindex","0"),o.setAttribute("tabindex","0"),a.setAttribute("tabindex","0"),w=" rt-qc-pagination-nav-btn-button",x=" rt-qc-pagination-nav-pager-button "),s=function(t){var e=t.data.target,r=parseInt(t.target.getAttribute("movepage")),i=t.target.getAttribute("movestate");e&&(e._movePage(r),e._trigger("movepage",i),null!=(c=document.getElementById(y))&&c.focus())},n=function(t){var e=t.data.target;e&&(e._movePage(e.attr("paginationinfo").pageindex,Number(_.$(t.target).val())),null!=(c=document.getElementById(y))&&c.focus())},p.className+=h.css.PAGINATION_UI_CENTER,r.appendChild(document.createTextNode("<<")),r.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,r.style.color="#ffffff",r.setAttribute("id","rt-qc-pagination-nav-first"),u.firstpage?(r.style.cursor="pointer",r.setAttribute("movepage",1),r.setAttribute("movestate","move-first"),_.$(r).on("click",d,s)):r.style.opacity="0.3",i.appendChild(document.createTextNode("<")),i.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,i.style.color="#ffffff",i.setAttribute("id","rt-qc-pagination-nav-prev"),u.prevpage?(i.style.cursor="pointer","simple"===u.mode?i.setAttribute("movepage",u.pageindex-1):L>0&&i.setAttribute("movepage",E),i.setAttribute("movestate","move-prev"),_.$(i).on("click",d,s)):i.style.opacity="0.3",o.appendChild(document.createTextNode(">")),o.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,o.style.color="#ffffff",o.setAttribute("id","rt-qc-pagination-nav-next"),u.nextpage?(o.style.cursor="pointer","simple"===u.mode?o.setAttribute("movepage",u.pageindex+1):L<b&&o.setAttribute("movepage",v+1),o.setAttribute("movestate","move-next"),_.$(o).on("click",d,s)):o.style.opacity="0.3",a.appendChild(document.createTextNode(">>")),a.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_BTN+w,a.style.color="#ffffff",a.setAttribute("id","rt-qc-pagination-nav-last"),u.lastpage?(a.style.cursor="pointer",a.setAttribute("movepage",u.lastindex),a.setAttribute("movestate","move-last"),_.$(a).on("click",d,s)):a.style.opacity="0.3",p.appendChild(r),p.appendChild(i),"simple"===u.mode)g.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_INPUT,g.setAttribute("value",u.pageindex),g.setAttribute("size",String(u.lastindex).length),g.setAttribute("maxlength",String(u.lastindex).length),g.style.textAlign="right",_.$(g).on("keydown",d,_.st.eventProcess),m.className+=h.css.PAGINATION_NAV,m.style.color="#ffffff",m.appendChild(document.createTextNode(" / "+u.lastindex)),p.appendChild(g),p.appendChild(m);else if(u.pageindex>0)for(var k=E;k<v;k++)(l=e.cloneNode()).appendChild(document.createTextNode(k+1)),l.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_PAGER+" "+x,u.pageindex===k+1?l.className+=h.css.PAGINATION_NAV_PAGER_NOW:(l.style.cursor="pointer",l.setAttribute("movepage",k+1),l.setAttribute("movestate","move-"+(k+1)),l.setAttribute("tabindex","0"),_.$(l).on("click",d,s)),p.appendChild(l);else(l=e.cloneNode()).appendChild(document.createTextNode(1)),l.className=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_NOW_BTN,p.appendChild(l);return p.appendChild(o),p.appendChild(a),!1===_._.isUndefined(this.attr("paginationinfo").unitlist)&&_._.isArray(this.attr("paginationinfo").unitlist)&&(C.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_SELECT,C.title="QCELL Datas in Page",C.setAttribute("tabindex","0"),_._.each(this.attr("paginationinfo").unitlist,(function(t){var e=document.createElement("option");e.setAttribute("value",t),e.appendChild(document.createTextNode(t)),t===u.pageunit&&e.setAttribute("selected",!0),C.appendChild(e)})),_.$(C).on("change",d,n),p.appendChild(C)),!0===u.extendmove&&"extend"===u.mode&&(f.className+=h.css.PAGINATION_NAV+" "+h.css.PAGINATION_NAV_INPUT+" "+h.css.PAGINATION_NAV_EXTEND_MOVE,f.setAttribute("value",0===u.pageindex?1:u.pageindex),f.setAttribute("size",String(u.lastindex).length),f.setAttribute("maxlength",String(u.lastindex).length),f.style.textAlign="right",_.$(f).on("keydown",d,_.st.eventProcess),p.appendChild(f)),p},_.QCELL.BasicQCELL.prototype._createPaginationRightUI=function(t){var e=_.QCELL.def,r=this.attr("paginationinfo"),i=t.cloneNode(),o=document.createElement("span"),a=(r.pageindex>0?r.pageunit*(r.pageindex-1)+1:r.pageindex)+" - "+(r.pageindex*r.pageunit>r.datacount?r.datacount:r.pageindex*r.pageunit)+" of "+r.datacount;return i.className+=e.css.PAGINATION_UI_RIGHT,o.className+=e.css.PAGINATION_NAV+" "+e.css.PAGINATION_NAV_INFO,o.appendChild(document.createTextNode(a)),i.appendChild(o),i},_.QCELL.BasicQCELL.prototype._createViewPort=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.VIEWPORT,o.setAttribute("id",i.areaname.VIEWPORT+"-"+r),e.put("viewport",o),e.put("$viewport",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createFooterRowHeader=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.FOOTERROWHEADER,o.setAttribute("id",i.areaname.FOOTERROWHEADER+"-"+r),e.put("footerrowheader",o),e.put("$footerrowheader",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createFooter=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.FOOTER,o.setAttribute("id",i.areaname.FOOTER+"-"+r),e.put("footer",o),e.put("$footer",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createEdgeHeader=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.EDGEHEADER,o.setAttribute("id",i.areaname.EDGEHEADER+"-"+r),(this.attr("useall")||this.attr("usetreeall"))&&o.setAttribute("aria-hidden","true"),e.put("edgeheader",o),e.put("$edgeheader",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createRowHeader=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.ROWHEADER,o.setAttribute("id",i.areaname.ROWHEADER+"-"+r),(this.attr("useall")||this.attr("usetreeall"))&&o.setAttribute("aria-hidden","true"),e.put("rowheader",o),e.put("$rowheader",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createColHeader=function(t){var e=this.attr("elementpool"),r=this.attr("id"),i=_.QCELL.def,o=t.cloneNode();return o.className+=i.css.COLHEADER+" "+i.css.COLHEADER_AREA,o.setAttribute("id",i.areaname.COLHEADER+"-"+r),e.put("colheader",o),e.put("$colheader",_.$(o)),o},_.QCELL.BasicQCELL.prototype._createHScrollbar=function(t){var e,r=this.attr("elementpool"),i=this.attr("id"),o=_.QCELL.def;return(e=t.cloneNode()).className+=o.css.HSCROLLBAR,e.setAttribute("id",o.areaname.HSCROLLBAR+"-"+i),r.put("hscrollbar",e),r.put("$hscrollbar",_.$(e)),e.appendChild(this._createJqHScrollbar(t)),e},_.QCELL.BasicQCELL.prototype._createVScrollbar=function(t){var e,r=this.attr("elementpool"),i=this.attr("id"),o=_.QCELL.def;return(e=t.cloneNode()).className+=o.css.VSCROLLBAR,e.setAttribute("id",o.areaname.VSCROLLBAR+"-"+i),r.put("vscrollbar",e),r.put("$vscrollbar",_.$(e)),e.appendChild(this._createJqVScrollbar(t)),e},_.QCELL.BasicQCELL.prototype._createJqHScrollbar=function(t){var e=this.attr("elementpool"),r=t.cloneNode();return e.put("jqhscrollbar",r),e.put("$jqhscrollbar",_.$(r)),r},_.QCELL.BasicQCELL.prototype._createJqVScrollbar=function(t){var e,r=this.attr("elementpool");return e=t.cloneNode(),r.put("jqvscrollbar",e),r.put("$jqvscrollbar",_.$(e)),e},_.QCELL.BasicQCELL.prototype._createHScrollThumb=function(t){try{var e=this.attr("elementpool"),r=_.QCELL.def,i=e.get("jqhscrollbar"),o=t.cloneNode();return o.className+=r.css.HSCROLL_THUMB,o.style.height="1px",e.put("hscrollthumb",o),e.put("$hscrollthumb",_.$(o)),i.appendChild(o),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createHScrollThumb",t.message),!1}},_.QCELL.BasicQCELL.prototype._createVScrollThumb=function(t){try{var e=this.attr("elementpool"),r=_.QCELL.def,i=e.get("jqvscrollbar"),o=t.cloneNode();return o.className+=r.css.VSCROLL_THUMB,o.style.width="1px",e.put("vscrollthumb",o),e.put("$vscrollthumb",_.$(o)),i.appendChild(o),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createVScrollThumb",t.message),!1}},_.QCELL.BasicQCELL.prototype._createFlesh=function(){try{var t=!1;if(this._initCellMatrix()){var e=this.attr("headercols"),r=this.attr("footerrows"),i=[],o=document.createDocumentFragment(),a=this.attr("elementpool"),s=document.createElement("div"),n=a.get("root"),l=a.get("container"),c=a.get("paginationpanel");o.appendChild(l),e>0&&(i.push("edgeheader"),i.push("rowheader")),i.push("colheader"),i.push("viewport"),r>0&&(e>0&&i.push("footerrowheader"),i.push("footer")),i.push("hscrollthumb"),i.push("vscrollthumb");for(var h=0,d=i.length;h<d;h++){var u=i[h];if("edgeheader"===u?t=this._createEdgeHeaderInner(s):"rowheader"===u?t=this._createRowHeaderInner(s):"colheader"===u?t=this._createColHeaderInner(s):"viewport"===u?t=this._createViewPortInner(s):"footerrowheader"===u?t=this._createFooterRowHeaderInner(s):"footer"===u?t=this._createFooterInner(s):"hscrollthumb"===u?t=this._createHScrollThumb(s):"vscrollthumb"===u&&(t=this._createVScrollThumb(s)),!1===t)break}t&&(this._syncCellMatrix("row"),n.insertBefore(o,c))}return t}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createFlesh",t.message),!1}},_.QCELL.BasicQCELL.prototype._createEdgeHeaderInner=function(t){try{var e=this.attr("layoutsize"),r=this.attr("elementpool"),i=_.QCELL.def.css,o=r.get("edgeheader"),a=t.cloneNode();return a.className+=i.EDGEHEADER_INNER,a.style.width=e.edgeheader.clientWidth+"px",a.style.height=e.edgeheader.clientHeight+"px",r.put("edgeheaderinner",a),r.put("$edgeheaderinner",_.$(a)),!!this._createEdgeHeaderCells(t)&&(o.appendChild(a),!0)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createEdgeHeaderInner",t.message),!1}},_.QCELL.BasicQCELL.prototype._createRowHeaderInner=function(t){try{var e=this.attr("layoutsize"),r=this.attr("elementpool"),i=_.QCELL.def.css,o=r.get("rowheader"),a=t.cloneNode();return a.className+=i.ROWHEADER_INNER,a.style.width=e.rowheader.clientWidth+"px",a.style.height=e.rowheader.clientHeight+"px",r.put("rowheaderinner",a),r.put("$rowheaderinner",_.$(a)),!!this._createRowHeaderCells(t)&&(o.appendChild(a),!0)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createRowHeaderInner",t.message),!1}},_.QCELL.BasicQCELL.prototype._createColHeaderInner=function(t){try{var e=this.attr("layoutsize"),r=this.attr("elementpool"),i=_.QCELL.def.css,o=r.get("colheader"),a=t.cloneNode();return a.className+=i.COLHEADER_INNER+" "+i.COLHEADER_AREA,a.style.width=e.colheader.clientWidth+"px",a.style.height=e.colheader.clientHeight+"px",a.setAttribute("id","colheader_inner_"+this.getID()),r.put("colheaderinner",a),r.put("$colheaderinner",_.$(a)),!!this._createColHeaderCells(t)&&(o.appendChild(a),!0)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createColHeaderInner",t.message),!1}},_.QCELL.BasicQCELL.prototype._createViewPortInner=function(t){try{var e=this.attr("layoutsize"),r=this.attr("elementpool"),i=_.QCELL.def.css,o=r.get("viewport"),a=t.cloneNode();return a.className+=i.VIEWPORT_INNER,a.style.width=e.viewport.clientWidth+"px",a.style.height=e.viewport.clientHeight+"px",a.setAttribute("id","viewport_inner_"+this.getID()),0!==_._s&&-1!==_._s&&void 0!==_._s||(a.style.backgroundImage="url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXYAAAGkCAYAAAFSrz7XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFxAAABcQARhhEdsAAHYGSURBVHhe7Z0HfBzF+fdvyzVVF3XJkqUrKpZs2RhTDTgkIYH0ENKAkJ6QQAoJqW/AIY0ECAnpBQglBVKoIflTDAnF4CLZVr0iybK6XGSVq1veZ04jReX67fXn++HwPM+e7vZmn/3NM7Ozs6p4YLdPyOTV23vsk9QVFxj6b8zs2bOHr67e5KXmKgyGEsW+awFFPpDUMi0GRZaZM43G4v3UjJmYdj7cnV6JUkchqg+xWkdvZlnuJmpGTaw/IuI/DlXbdXXFLMMwi++xWsdeZVl2BzVXIUnyUZOpdCM1IyLsnQ+20zqdN7eystJBzYAE+wxBcFXV11cPUzMsQu481Nw/oebeTM1VRHroe3qGP6pWq39HzVVE8nks/TcgsOOFtLiKaGK2oaHy9xAsZdSMiZA7H4hYTjaDoWxclmWBmlET1c6H2nGbbfQym21ijJp+MRpL1bQYNVHXfCDISckw3BMMoyol5T17+nV00yrgPd+ixaiIeOclSXiSFpdBdtSfmlRX5zoDqUxdXckttBgVEe+8yVTxFlqMiJ6eY7+kRcVQPGwSCe68P4gixSKn4RD3mic/wOORNlNTUSLe+UDKMT7uyqHFVTQ2lh1paNjwaWoqhmI1f+651U5Sy9ByzlFXSAJVRLhEtfMWy+hrtLgKaDnz4h3rC0S18xzHnUmLSSXqsIn1kCtByJ2HEDiPFleh9A8QBM+HaTEswo5Ni+V4AcdJp6m5ilBxDufJIITbBkmSfmkylV1LfEt/fDTnScR/AD2rHuig1FMzasjOkp2P5eSO+g9jDZmVHfVoiHrnF4j0R4ii8KzZXPF6asZEzDtPsFpHN7Es10HNgMQSIv5Q9MPs9nEvfCRPzUWU3mkEiYFlsbhyjH16+vRPt241fY6ay1ipMk5nsba5mfGQcjAFGhoavKugoPjXBQV63wnu73xY+HtBENvq68u3+Zx+WEwPyB+svDhQUFB4/codgZbyO/52Tq+fdAfb6Xjg2/mlXwq/1peXT01N3Uddy7ZDE/8NWvTVGnmJouSiLlVX19HFcciF7UtfF164/Xq6OWaWJWbkw+Ew+XpEZ5xh/hCxfRuA7u5jdy39EUu3mc1lepfLeQXxNTXVfIy64w7b1ma7nZb9Ioqi7zKMRqP9rM8BLN3xBTZtqnmYFhchP3bli25SBFaSxKto2S8ez4ldtJhysBDDzbTsF72+ZIYWF+noGPwALQaFHKGVL7pJEdjWVuMELatstnGf1C0wOjqaS4u+HXE4HH8gZb1e96DPuYSFsOjsPGqlrrjjq4kjR/qvzcnJ/bnPE4CFWgsVt+R9od4zPe1sXtD5aFjYF5/atLTU/mJ2dvYdpLwSp9O5c+nhJmXoDfnduaXvSwR+v2xlzSV6pxSB/IiOjqNBwwlJZ8gRXnjt379/8VrVyvAlts028V9qhh63SQQLIjA4WKzevn27d+GHkG1dXcPbFuz+ftvHfX9ASYmd98f/REIKeGk/ZXd+AchY82gRQZRA8ZYTpOxhhlFdTsrxbpkV+/AFafNHvH5EzB/a03PsFrVa+01qBkXpHxH1h8myzPb1TYrUDBv4O7fRWBpwMkUkRLXzwUIkXNxuR0VT08ZRakZFRDsfaqehVr8Htbo4NNLdPVmh0chB543FEkph/SEoyKWgIH6nqhDC2QGbbeQTDMP/mpqriOZHhEwPSG0H2vH77vs5F+6XGo0Vvwn2XvI95DyiZliE/OJAoRLL4Q70mXV1xRzDMBI1QxJVYiaKgq8RipZYfvhSotp5s7nib7Tol1AnNgHy93fSYtREHDbBruLZbOMibFtWIaHinBZ9xD1s/O14b+/IBWRHVu44gfit1tHFrpuSRBU2K+F5/gVa9AvLcufT4jLU6sBzdMJBkZ2PlurqaictRkVSdz5W4rbz5ESVJHnxikk8iGvNm0yl+mBqY7GMRjRFZSWK7HyoRifQdo7j7qbFqIh450H27qTFZZAdDPUjlCbinQfZ83tddgHyA5zOCS01AxJOKxyKqMIm1Bc3Nzcvu8ISL6KOeUgF3LSYNELuPCRQPbS4DEgFNEoc+qVEktcQwj7Bgu0opMifhkzzV9T0y8LfL5zUSz8v2hM94j9SsrbhqN5tMpV9lJoRE9Uv7u8fL5MkJqaevxKyGtMHQMd8Dvq3EWWGSrYFinxQOKGkxFTElShWCwR/P0KW5ZNGY+l6aiJIslkW8729w7M8r14204MWl3HkyMCDOTk5i9NWIK4liGuOlPftO2JYt67U5tvgB/KZKxuslYTavoAvPdizR+bJHyzdcQLxkeEMavogvqU7TiCjBgtfmEh8O19dPbk4q+/EiTED/OLFnIfs2IED1utIeekOer3ed5CaIRJIXavUhmxf+aKbFGFZjZEP37Fjcx8UffPavV6Pb07MmjWFPyX/LkC2NTRUPkrKRLuJ7XK5XlR650KxWGv+vrihoaqFFlUvv3zo+7Tol02bqnfS4iKkYpa+2tv/N3NKCRZ3PhRFRcXvpcWUYXHnQTFWTR1fislUbqDFsCFHc+mrtbU87BvAwoFMTfSpSV/f/07aBZaeD0vzkqV+QkfH4H8WQoO6EoIvzkN96dLzIdh7BUEYnZ4+sTOYzk9Ojn+juLj0u9RcxfT09H0FBQVXU3MVS/fFFzZLHStZuS3Qex0Ox/n19RUV1AwIywbPLE+ePB52P2HVjhw+3Hd9bm7eT6ipmptzbt+8ueYANdODm26Sk9JqIolkQamWHunnn993KSSA/dT0sTISwm6k4smCCJB/V/6IlfZSUmLnVxJA0Vb5UnLn/QG1H9FoGoIEwG9Tnwr09Y2eJcvcXmoGJdIr56lASlU8uWUFKjCmBYegW/IXo7H0fdRMWZJa8QMDE+XQERqhZlw4cOB5/oorroh4DmK8SXjF22xjgwzDbqBmQhEE79fr6yuDDoEkirhXvNU6tIFlNYPUTCmS2TbEpeItlrEOjmM3UTNCxLcaDOVPUCMibLaJuxhGtXjXaySIovfzZnPlYrc93ihS8eS+TYeDm6VmRAiC8ER9fcVbqakoZHIBRLSGmhERaHBHKWL+cOjavAT/nDtvhU+8f9hSor3aHU8pSnjflVxBSWSlE2prS8fId0qS8CHqSjoJq3hZlnxXfYCkjRyaTBX3JfqgByIhFS/LKofRWBbVd/X3y7qFsbKlL6t1/Gb6lohJhcpPiMZH+kNDrXu9EuitytBbjfjAkgNIi35Ja40nmk6LIVmI5kgqnUD0a+FvI1m8FuQvaasJxL3ik6npoQD5iyrnV4K4Vzzin7SreNJeyLL4CDXTlrSMeKOx/J3kAJAXtCFBZ6ekKnGveItlJOwbNsmkQFoMG2hDxIWDQF719VW+5V7DYeVcv0QS94rnOH7VUmyBIDMxFypQFMWo1p0LtzG3208WwnuTdsYn5ItD5cv+MJvLf780kqlbEeDM4lQqYYqaSSFhRzyayl+Kkgegr28y5oexxEpCT7X5Tk7y7wNLBZKgcfP3sKXCjXjJRFHtjFZOQHMfgIY16NKkkQIHdhY+0+96YcH2ExKrTujRBl1pVAkUrfilhFr6JRQsyzTW1hb7vfNzJZCyfgGypzuoGQB+jcGwzveEgpUVL4psodlcNE3NhBC3il9JtGdDPJAkyWkylcW0qEWsJKzil2Kzjd0HKbSi0hIaT73BUGWhRtJJSsUvBfQ9qkXPQkF6waRDRs2UI+kVvxKbbfQ3DMMtW7I0XCTJ83aTqeoxaqY0KVfxK7FYRg9wHOf36QSSJP/GZCqN66OVEQRRgqRJzeHDR9fSoqqlpXoq2KgiNJTMwMBUwCcAB2PjxjWz8Nm+sZn+/lNrfE5Kbe3asAfKVv4tfO4MGZKmZsT4rfhIcm6Px31LY+OGoM+g7ekZLlKr1ZPUDIkgCCfr6ysWF6EIdcN+MMjTbshzV9rajm5a+SSESAbdVtZJqCfjhGLpF5Mr9VFPZYBOiQidkmVXg7q7R7ZrNPw+akYMRDoZo2f8Vfz4+Ni/aTEoIyNHf3z55W/9d0pW/KFDfbfl5eXd4PMsIdiOQbbRBdlGIzUXWfib3t7hMZ5Xl/qclFC59f79PUVr165bPDMcDseLLS0bd/qr+EiHiFOt4n2jkysr3ev1LntuiD/M5vImf+8hO7h/v71wZaV7PExBqA7N9u0Nx8lnLrxIpdNNGQfb1mY9SsuLNDRUvkiLIRkdPVFAi4tAZLXT4iKNjcWrnh0UC+QAh3opvXiFkrA5OblDtBwVeXmaz9DiInNzjqBLrSFU40l0+KwlhJIaQm/vUCvPa9qo6cPlch7etKlmS7Sf2d09dESj0TRDttQN2VIT8WWsxvvbgYXTtbPz2FnUtUhv78g42bay0iENnCKVTsrBPpPcVtnRMWikblVn5+A9C9tIpROfRqNtJHZX10DUPy6VWVY5EG2vwA8/m5oRESh6LBaLluPWRLxyLxzE45DLF5NyLHk84cSJia+r1fmPrYz4cBkY6Lt148a6r1AzYvzVzbJrro2NVeeQN5GXx+M5SN0hgTRx1XI9C5jNZvfCZ5JZX1ChAa/0TE+fvm7hvQuVngroAVpUDL9RGoiODnu1Xp+/KgsiFUWLCJLaYKRSenvHfUnBSurrSw/R4iKvvHLQVFxc9V2v12MHef4adS9j4fPUavVUXd26VSqRhHk1qQmpYPJiWbmN55n2kZGSzoVK7++f2EpepNzTM/yjwUHr0PDw0d8NDNgX54UufQ/h2DH7meRzJEl4gLqWgRUfBpKkOkheNtvYNPTqv1xaWrerqqrm3/D623//u/8zL7xw4LMnTpxoIu8hKTD8SUglwYqPAKOxbNXwSEVF9c+qqjbcdcYZDX+kLtXgoKTIk8cQBEFiJOXTSZtttJlhuCPU9CFJUq8s8zsSPd9RKVK20u128jj90GuTSZL4R5Op/IPUTAtSrtIhsh+ByH47NcMG8u6ttbWlqy68pCIpU+kWy7iB45ioRx0XiOeaA0qR9Eonc2T6+iYVrST4TMWe2hsPklrp5OIHRGVMa0oGQ5alv0EHJ6aHoMaDpFS6xTJ6C8dxYT0sWwkEga2qry8K+iTlRJLQSu/tPV7J81JMF9BjgSzTEmw6YKJIWKXTwaGkAzn+gMlUVkvNpBD3SrfZxo4xDFtFzZRBkoRvmkwVAR+KEU/iVuk9PcNfVavVUS8TCxnIlFbLtWzYUBRQjqzW0ffCAb0/lsaY41QVGzeWxPSAv0hRvNKHh4dzXC51VA+2gWxjDLKNcmpGxPj4eN7MjGoaDkBUvymR14IV/aJodRuiehTy6pCPmgkXSEWlaCofDvoxOOjV1IwbilzUIOsCR1vh9933c07JCifA57FENqgZNiBVG8jvIDcfU1dciDnSo61syCKmIItYvLsjXsSSNcVLcpJy+Q4yhycTUeEEUnEgXymRri6Q8EqHCn8CUrW3UDMhELlJpYpPaKWDpJyCCo/LcuOhIBVPi0knoTsCkrKOFpMCGfalxaSSsEpXq11JXeGCAFmkJIrCc9RMGgmpdEmSndXV1U5qRgXJvUkmcvToZEzppdlccTEtJo2EVLrJVBp1lENX/xVS2QudHUGQh8kB8G2MEq/X+05aTApxr3RIGqKqIKt1/E2kslmWW3VDAzkAZJvNNhbVs54aGiqTupRt3CtdFN0RdatffnlQP1/ZzFPUFRDoQZaT9/b0HHsddYUNBMNJWkw4ce+RRtKri/XyndM5oW1ubvZQMyhQ6SGvzWZUj9QfUOFzsVQ4Qa8vCXu5Q/iupHWW4lrpkJ49SYvIEuJa6Wo1F9ViyYlCllUxpbHREtdKJ89DosWUBJLQ39FiQkkZTU8SSVnyNq0qHTKOgPe1phNpVelOp9eQyGuZ8SKulU4eLkiLijJf8ZLf2xMjARrSVSt/JIK4VrokMR+hRcUxGMoOk8qXJOnv1BUx0JAqfpt6OMRZXuSbaCFumExl7yaVH+0YTzKIc6WH/+BYQRA+R4tRYTSWcgcOpMfjgFKmIW1oqPwdjdh+6oqYK64If91Fm20iaQ8pj3ulw4+LaMoaRGxdIjIU0POv0mLCiXulw4+LKoMhFS+KRXG5mwLOpqReK02IvFitoz+mxYgwm1nfQj6SJNxDXYqQ7Ef+xHwahxpPXyARkhEO/f39ayQp9xQ1gxKvfU5YQ2q3j0e85lc88Hrz/T6FJpEkMHthtFDx76ZGVpPASicwf33ooYdS9lkYiSLBla5SnXHGRUK2V3zCK51AKp48IpOaWUfMlR79/EBhClLJ+6mRcsQz24q50hmGkcgOer1CxA+lYlnuSpJyAoqecXb76A6rdXxxGdpIyMkR8+Kd3ir+4VbrWDfLsg3UjIhYF1Ow2SZM0ANe9nSwlRVosRyv4jjpGDUXEUXPR8zmKkU7YYGI2xENt9PkH/kRg6E0rPmGg4NT6zwe9zgcrIAjjJIkO0ymUt867CsrHc4yh9E4vy1RxPU0gh9YAD/Q9yTGVAAq/1eyzH13odLjLSOBSMiXdncPf06jUd9JzRRgZo3BYEhaMCT0SNts406QgaStwwJS8juQkqieu6ckCT+9SKYSjyc/BmOppqcCSdE0QlfXQLlWmxPV/PJISJXlRpaStEpfAFLMuyHF/DA1FUOtlk3V1dE/iSCeJL3SF4DOjINlmZinREiS9JrJVLbquR+pRMpUOiE2vZcFyO3jth6YkiRlwCsQC0MKguD9AHWFhU7nzU2XCiekVKSvxGYba4FdPAQHY9V+wlnh1Wi42urq1FkQDUEQBEGQBJCU7AUyD+bIkcHFB29v3lwTdPLPyod0R8LCw8BXfkZOjkcoLS2dpWZQSP9hYGBq2UNJInnI+EoCVvqBA73fXrNm7f+j5jJEUfRCblwYycoWHR0dGq22yAVd/oDfOTV16ttnnFG/ak57LBdEFsbMV36Gw+GYamnZGNaSVs89t/eympq6J6jpI5ax+FWdoyNH+q4mOxiowgkcx6m9Xp0j3MqwWscc5G7mYBVOgO/8FvlMssYidWUkyyodKseZk5P3B2qGBakk8rh7aq6CbIfKjmhMZXaWmenoGIh4kYV0YTHyYr3A4O+icrhnQiAmJ6cKzz7bPL3ycyRJmpucnAjrGdrnnrv5TeTflZ+RTHnx/WF7u/0t+fn5j/s8K5idnf3Zli1115Hyyy93GIuLizohcv3e1rJ0R3p7Rzp4nt9EzUWgPThlNpcvW8uro6PvbXp93qPUXAb5zJUVBg3bUaOxdCM1wyKVKt0nL/4qfG5u9s/kgxcqnHDuuc02k6lMSy4MUNcyurqOvUaLKn8V7vV6i1dWOKG5ue4x8l0Qwcsq5tQpb8o+ST0W2H37ut5Py4vMzEz/ePPmulX+BUBGZH9HWqvVnkn+PXJkYNVthqdPT21qaKg8Tk2/wAH1HUxS2eTzt2+vdPg2ZBjsunVFiw++W6C11fhFWgyKw+FatcoFyWlzcnJWzVnZts3cRYtByeTKXmCVTDgcc7fQYkhaWqp/T4uLdHQcXfVcTkEQfkCLigBnWg3R6FAv+vaUY1Wlt7TUfosWo0Kv161aYbS+vsLvk2uzFb8NYixAD3+V1pOZXrSIAKsq/bXXumO6RWV6emo/LS4yN3fqT7SIAKsqff369X+lxZC0t7evSuny8vI/TYuLFBQUXkqLIbHbx0ppMSAkTycNbqgXfXvKwbrdrsO0vEhn5zETLQYlP79i1Sgd6Hf37OzMqqlr3d3HnqfFELBjpBHs7u7Op46Mg21qql61bopOp7VANAVd3MBmG191Ayz8jW95pi1bDKvWxtJotBcGq3iSai7NODSa9b7u//79w0lfGFlpfPICHcFV93j29U16rdbxVZF88OBAE6kMSNtW3fYCXfPFsZvZ2blzaHERUvHkb3t6Rn5CXWSSkZEsghlovksm5uyLurc0yqJhbm72CujFLj5fn2C1js6wLBf1MO3CPMRY943oeyyfcfRo31tWjr2EC2Rzrzcai5+lpo/FhjSWhsfhcFy+ssIJJlN5PhkRpGZEDA4Wq0mFUzOjWJa9RFrxoihNkL9padn4N+pahclUlud0usJeVooMepHP3LWLSeqiCfFkVcpIfvDsrHsDNYPCcWxJOKdtc3P1PeRzp6ZOfYq6ViEI4vTgYKd6YdArkwkZ2f39sk4QxuZAmwNWRqRnSLYTMqpqaxkXaDNHKlYQhHHqXmRm5vT7aBGJJ21t1l8QWYk1q0CiYM+e/pR9eDaCLAMbQEpv77jfZWTr60sP0eIiNtvEQ+Rfo7HkCp9jBVbriQ2SJPiuBfv7e6x0SqD2yV9mtvDeQFlbW5utq6CgoJGU/b0n43PicCGVs7SCFmyylkB//8RWMvB27NjxKhn69UNDRy8hL/pWMlinIe+hpmrrVmMTLfoFKz0Es7MnHpUk1cG1a9VzHo9vTQGmqqrm3+RFtpOo7+ubdJP3kHJv78g08QcDKz0C/M1iGxo6dt3IyNCXBMHrG5HleT7kdQCs9LBhDqyscEJV1Ya7KiqqbuN5ddijqVjpYXLs2MB9tOiXSJaoxUpXCI47nhKLfSIIgiAIgigPDnhFCVnlVJKYh1iWraGuiJFl6W6DofTj/jpdiPJgsIcJuXOT5/kRCMy4recjCN7P1ddX/pSaiMJgsAfBYhn7HMexSVk/VZIki0ajO7umZk1Yj05BQoPBvoT51SPWt7EsF/QSUDIQBPH6+vryu6iJREHWB3tf38QFsqx6gZppgSiKtpycnLOrqgpPUBcSBlkX7BaLpFWpJg5AerJqKYN0xesVbmhoqLiDmkgAsiLYbbbR1zEM+xT83LCfDZyuyLJkd7mONzU3N3uoC6FkZLDLsqy22cafYFn2jdSVtUBdnG80lr5EzawmY4Ldbh97A/ycJ7JBvaMFcv0DKtXMeWaz2XfzdbaRtsFO7ni32cb+j2W5i6krqUAn17dYqSQJD7Asv+omdIaRPyrLjBr+5cBKgSURZDfDiJfU1VWkVec8FtIq2Pv7RzdKEtubaPWGE0uWJPEFhuE+bjLF53kzZE3WuTnmC/BVX4Lfl/Ali0RR+jf8tssYOAOoK+NI6WAnz03euvX874FS3khdCQEO/B6OU73fYChbdWNtIiGtV1/fxLug1XgQgjCBJ7js9nikhsbG8gHqyAhSLth7e8fqeJ7pTqR6Q1C5vF6pMdUPLgl+SN32QOp2AXUlBGjVnjUay96Y7nN4UiLYrdaRH4B6f4WaCQECR2ZZsRZy1qPUlVaQ3bdax/7Dcdx51JUQ4Hs9UG/mdKy3pN8oY7dPvJTIQBdF8Z/33fdzzmgsZdM10AlEZc3m8vPJXbGi6DSSk5duiisknZJlfoCcbNSVNiRd2Umwwz/nzlvxQxSFJ83mirdQMyPp6Ogv0+lyyMzMuB9XfzfgpjpZcAukfIyoX6YHOqG5uXaMtFiQZZdRF7KEjA120qyr1a71BkNpNXVlDWQUiZzgZLiUuhAgI4MdUpZnicJVV1efpK6sxGQqv0gUZSM1s56MC3ZJkr4BKcvrqZkUoFFhenuH/9zTM3w+dSUNs7nUft99xRxp6agra8moDqogeN5QX1/1DDUTSl/fSI0kcW3QafP7WDc4CZ8zmcqSOrXBZhv3wv4FfZBBuKRjBzVjgl2S5OtNptKE3clD1NtmG7uDZbnPU1cEyG6WVZ1dW1vaTh0JQ6mAx2CPAiWCnYydm83ll1EzbvT0jNZyHHOQZdmon5rtD1D9F0D1L6JmXCEnaV/fZMxBisEeBbEGO2SiDqOxJG4PP7VaR+5kGO56OLAJqSsIRo8se40mUxVZvTMuWK1Db2NZjd8n94YLBnsUxK7s3hqDoXKQGopgtY4PsCwT9XowSiLL0majsewINRUD0hnFn02e6qT7aMxxpQOdABpeTItJRxC819KiokCL2EKLWUO6B/uP6b9IhMRrXn4qk9bBzrLy3bSIRAGou5MWs4K0Dvba2tIxWkSiANK1n9NiVpBxV1ARJBAY7HHE4fBUy7J4I16qTw3SOtghhlJ+/43G8h+RSWnzN1mwhbDPKXPrnySJl9JiVpDWwd7TM2yixbTAbC6ahsCvJYE/PwVX+HIyVZ9lOQMtZgVpHexqteZ5WkxLTKaK2xZU3+M5USDLUsI63BbLsSr4RztvZQdpHewMoyoj661QM61pbGycMRrLyhdUHwI/rpPaGIZ/mhazhrQOdsLMDGOlRcUAtc0ll8Mhp32AuhIOBP71JOgbGjZ8mroUw24/WQgpTAM1s4a0D3ai7nb7+OXUVAwy78NkKr9qQWkFQTJAdr1qWbv0xJvUxZ+SRdoH+zzMw/FOZ+rry/qMxpJ8EvhkKQ5IM4I++DdVsVpH74f6yqpcfYEMCXaVanaWmSHL5VEzruzevVuCNONDC6oviuJHkzmqEi5W69i9kL5cSc2sI2OCnXDGGRcJiQr4pZjN5XcvjKpArs9LktRNN6UM84HOfoiaWUnG3Ja3gnoIPAstZz0Wy/EqjpMUvRkE57OnDr2gZHtpGUF8ZGqwq6DJPgtaDdlqHdpAXUiWk7HBvgDLagZttnF3MnJ5JLXI+GAnQG6pIZ1XDPrsJunBLgjCr2kx7iwEPUlv+vrGt1A3EiGyLDvSrXNKSPpozFKGh6eLnE7nIFSknrriDhw4jyRxBrO5aIi6Mg4lRmMkSbrXaCz9CBybtJ2bn1LBvpSbbrqJvfLKT93PstwHqCshQEvzqfr6ioS1NuEwODi1zu12tUGne3FFYlmW2mZn5Z2treVz1BWQaIJdkmQnx3m31tVV9VJX2pOywb4Sm22sRZaZ11g2+rVOokGWxUfVav0Xa2rW9FFXXIGWhrNax6/nOOaHcHjCXqZOkrzvNJkqH6HmMsINdgjwI0ZjyZZ0Vu9gpE2wLwUCgoW8+z44KB+kriQh/wl25XZR9DqgNQjrqung4OA6p5Mv5Xn+y5AavA7UWvHFmCRJbDcay7YtBG2wYBdF4XKzueJv1Mxo0jLYV0JUH37KPji4WTnBKRQQ0J/hON63kgCcCKDeZRmr3sHIiGBfClF9m238ZXJRibqyHkkSrjaZKu6nZtaSccG+kt7ekQ9BynAvNbMCUO/DeXmqc8vLQ3des4mMD/alUNXvANVvpK6MAfoNV5rNlQ9SE/FDVgX7SiyW0Y9yHPsbqIa0u5Isy9LM7KxcHs7QIzJPVgf7UiyW4wUqlfASBH8zdaUU0CpBh1L+OXQur6MuJEIw2APQ2zt6Dc9z91AzKUiSPMXzmtra2rVT1IXEAAZ7GExOTuafPi0NMQwD6h8/iHpDenKnyVT+RepCFASDPQoslpErWZa7B4I/5gdxQXSfUKvlHTU1ZQm5QpvNYLArBLlJRJb5CyD12U5sCOKP+TaoZCfDsL5REjg3fqLROCYqKysdvk0IgiAIgiAIgiAIgmQfMY3GvPhid35BgebtgiC+Mycn9yxBEAr0en0+2ebxuB0sy07Btn5Jkv8qy6o/bN5cc8r3hwlClmWmo+PYdlkWb9FqdRfxPBd0CjDsq8vtdj9/6tTMJy68sCWiO3v27TtiWLcu8Y9bPHZs4GcXXbRj8apqZ+fRTTqdvoOafnE4HKdbWjYq+kh6wtNPv/qWurrax6npF6jjtvr68m3UTChhBzsEDnf4cN8DeXn576OumHA6nf8pKGDeVF1drdjjCeeDe/CnOTn6z1JXzMBnynNzs9/cssXwPeryS7KCfWho8K4LL9x+PTVVbW1HNxUUhAz2KQj2tdRUjOee23tZTU3dE9T0SzKDPegEKBLg3d1DHfN3408KSgU6AVqAC7xenWN+IaOxIfiuqCdjHTkycB7dR0nJQCcwAPzu75LPt9nGpY6Oo+fTTUia4TfA9uzZw0MAekiAazSaTdQdNyDdqYTvEiGYxJ6e4SLqDklPz8i1JAhzcnJepK64QgIfTtL/ku/s6hq8kLqRNGFVGgNKfggCfDM1k4IkScdNprJiaq6io6NDo9MVOyH2ImoNoPWAlzQ+PX36X6DWJ4hvZma6ZM2adW+Gz1rve1MEiKLkNJlKc+Fv5XDSGPj+o0Zj6UZqxgVMYwKzLNiJYtFiSKDT6ZqddZyzdWttO3UFpa3NugsC7GlQ8bBW5CKBefDgC/wVV1whUpeP3t7xLTzPhPWd8BmywzH33s2b6x6mrrBoa7NcWVCwJqzb2GZmZh5pbTW8E4M9jXL2cAPd6Zy7gaxDDoqmDzfQCVu3mvaAWvPkb6GyQ67LAmq5ar31gwctxeEEOgSVpNVqi8ia6ZEGOmHrVvMDZD+PHz++KqWCjvUrMzMjeWQ7eZFAp5uQFMcX7JC6hJwvDfHjJge3ubn2DuqKGlCVTw0OFqtJUFJXQLZuvWCGFlUFBYUhH53ocrn2QpBzVVWFvjQlFs46q+kE+c1qtStnIbibm2vObW1txbuD0hAGAv1cyNHJAwECAjm0AKqspqaCyIzdPhky4MfGRi/keV5VVFT8AnX5RRTF42ZzecBcP56Ek8ZAPZ6YnZ39IzWjhmUZFbRYnyN9BepaBNOYwDCdnYMHdDpd0C8XRaHEbK6YpKaiWCzjl3McEzTVgBbgJATKBMcFf5wh5M/1kFYk5YkbiR5nn5kR8/zdf4rBHhgWmv2QHaZ4BTohP196ihYDAsGug/+HXPYuWYGOpAcspAfHaTkge/bIMd+RE4i+vvFcWgwINNvC+PjYHmoGZO/eQ2fTIoKsgj15cupmWg5IWdnIAC0qzvr1RSFHV0RR+o0gSDdSMyDr15cm5OJS9Mhe6FeMKPHasqXMRT8UCRPfOHs4w45ut2dPU1PV66ipCFbr6CGW5YJewIIURiZDiKTc2zs8wvPqct+GAJDONLxfC503RRbLh68ni6gKsiwdh+I5ZnOpnW5aBo6zp8k4+9DQ0QqfFQStVrPLah2Dgx57SjM6OppLpgaECnTCyZMzi++pr6+spMWAsCzLk6kHBw9av05dUQOd9yfIZ8GJw8C+FkNH2kaEgbw6Oo4e7O7u9s3wRNIDX7BfeOGZo6dOnXiTzxMEcvUTDr6XHGwy+Yq6w6az074TThjJ4eBmSfxQd0Dm5mbfu2OHcalKyadODWpAvUO2RIWFhQuTtzzt7Zat1B2Srq5j77LZxny/UafTXUbdq9Dr9Vs1mvXTFsuYEwQgpqnSSGJYdpDIJCy1Wh3xyAsJPlEUxjhO/ejJk5OPzs7OOWpqat8HwXpRTk5OA5wkEQfD3JxzXbD57xbL6AGO45LSHC4wNzf3h82ba68h5XRKYwTB6xkdHVa0M9/R8Zq1qWn7haHSGOh/dY6MDF5FTUUoKsrpbG5u9lAzIH6D0GIZeY7j+F3UTChw4txjMpV9hJpBsVgsWpYtnIZWQkNdCQEOmMtkKs2B711sYRI9zr6SEycmvr5jR/P3wwn2eDAw0Hcrw6j+GyrY4wE0rK83GoufpWZA/KYSZnPF68ilcTioIcfAlcDr9YxPT8+tJd8ZbqATzGazm3RGyd95vd4j1B03JEk8ZDAUs2ZzmX5poCPpQdC8GQ7qpSSQDhx4nne5nAeoW1FAyR0QN2/furU2pvUMGxoqN5N9rasr5iF9ivmS/AJO59wDJMDnT8TyVmgMMcjTlKg6Vh0dsoZhhj/C88xXeV6tyDOBRFE8ZTaXr6OmokCuzHV3H2ucnj59zfr1xW9zu93k/kvfXB9oej1qteY0dNAfzc3NfXBycqBj165dAtkWCQcOdFfk5RUkbZz/1KnTN599dtN9pLPc1zf2YepOGNAP+DfDuGY4Lv9y6koYPK//R03NmpD3Nys+imCzTVwqit4/w0kQ9rAcHCAPSUeoiSBxQfFgX0l/f7/O5VLv0Wg0fnv/siyJRmNZ3KYjIEjSIA/zfe21rvdZrWNem20cRB3HqBEEQRAEiQZMIZBlkGkStBgWZPrG9u3bvdQMyPPP77t0w4aaJ6lJJqMNtLRsrKVmWLS12boKCgqWPelQllUvGo0lO6kZlJDzU5DsQpbZdy9/kQeXLUV+z9LtZ5xxRsTDtNGSn1949czMTMib9QOByo4EhUzcWzq3idwov2sXsyzADx7sPVBYuHZxntKJEyd+tm7duk8zDONbGaKurph74YX9bwqk7F1dxy7TaDSP+ZscKAjClEZTXl5by/jm7z/zzMsfq601/ta3EUBlR5LK+vXrP7sQ6G63++TNNwe+P6i3d3hGq9U+sRDoLpfzFZfL82nfRoDn+TWSNEnWA41ZmDHYkbhA1JxMsWhq2rB+9+7dAW+kqa+vzHe7PW+FbMn3Hp1Of45Op/mlb6PCYLAjinP06MAtoNRh3SlGFovVajWPLyg7uYeBnCS+jQqDwY4oDqT4IW/iX8KywM7Jyf2zvxEh8MV8myUGO5JUjMZSRpbFFsjth4kNCs94PO5RWWa2Q2azGdKbvQ7HbD95+f4AQRAEQRAEQRAEQRAESRNwbkyMDA4OrnM4+Gs4jr2eZdmg9+PKsuqvKpW422gsT/hSFwgGe1TIsszZ7eP3MAwb9WI/oihaWJa53Ggsi/sSIMg8GOwRQJbu3rBh7GGG4d5BXTEDJ45bFD1n1ddvOERdSJzAYA8Ti2XoWxyn2U1NxYGgd8Hnl9fWro1p/RwkMBjsIbBax85hGOYFeMXhmVKrkSTpVaOx9Dz4vmWPxERiB4M9APv3y+rCwgmSV8d1IdJAeL2ez9bXV/4Cgh5XIFMIDPYVQDrB2O0Tj0CQvY26kgZJbXieOW/jxpKD1IXEAAb7Enp7h3fyvPo/1EwZRFG06XT6s6qr15ykLiQKMNiB/v7xMlFUDSYqL48WWZYePnjwP+9f+Yh7JDyyOtjJ+u4qVcEBjmM3UVdaIIrS583msp9QEwmTrLx5gyzB19s7+m2OW+NKt0AnwD7fabONu+z24zuoCwmDrFN2q3X0IpblQj5TNV2QJNGek5N7dmVlQSS3wmUlWRPsvb2DlTyv7YOfnNBH0iQKWRYfMRjK3oVDlYHJ+GAnS2aLov4fDMOGfBpgJiCKwqfN5opfURNZQkYHu8Uy8i2O4+N2iT9VIfNtXC7Hxubm2jHqQoCMDHabbexi+OcpUPOUHkqMN6IoHjCZys6F1CbkYxOzgYwKdovlWBXLal6Gg7uBuhAAgv6rDz5Y9qPdu5V5xH26khHBDs222m6feBKC/A3UhfjnAoOh5L+0nHWkfbD39g5/m+fV/4+aSAhIPu/1uuoaG2tGqCtrSNtg7+kZblCr+UPwE1JgKFF2yzLjlGXJBf2Ee6lzEUHwroMT8op5Sy6EFijp9S5J0lOyXPJOs5l1U1fGk3bBvn//cM6aNXwvxEsVdSUY2Q2BslcQxDt0OvVrtbWlEY94gLqyQ0MnKtxukSzNfC38FvJc1qQgScI3TaaK71Izo0mbYH/ooYe41tbzvs9x6i9TVwKRT8P/fqDTCT+trKx0zPuUpbd3pJFl2Xsg8HckWvmhRfLACfgmk6k8Y64s+yMtgt1mG3kzw/D/pGZCgINPrkTeqdcL34xXgAfCah19D6RDv4SYX09dCUGS5EGed9TX1tb6nnKRaaR0sPf0jNaq1WxPIvNyCHGXJInvefDBX/0z2CL6iYBMPRYE6R8sy/l9YHK8gN//tNFY9iY42TJqqDIlg729fTQ3J4d5NZEzEomSi6Lwwfr6yj9RV8owPj6eNzOj6ofgK6KuhAD1cbPZXJExV6BTaorvQw/JnMUy8sP8fG42kYEOnbQn7r//F3wqBjqhtLR01mgsLZZltxnOyYRdDeU4/mabbdzd3z+alPtwlSZllN1mm7gMumVPUDMhQOC4WFZsqKurOEpdaYHFMvoCx3EXUDMhQF0NaTRuc3V1NXmYV1qSdGUnqmG1jo0kOtBFUXwK1Dw33QKdYDaXXwidSRNJvagr7kAKVeX16hwWy/B34GvT8qafpCp7R0eHRq8vSfhFDa/Xc0VDQ9XD1ExbSNBBizjDskwOdSUI+XmDoXQXNdKGpJ6hGk1TQk+2eSX01mRCoBPIaInRWJIvSeKL1IUEIWvuQSWB7vF4iw2GykHqyghIwJtM5TshLcOAD0FWBPtCoDc1VZ2growD8vidoPBZO6MxHDI+2LMh0BcAhb8AFB4DPgBZEOzemmwI9AVA4S8Ahd9PTWQJGR3sgiC822SqOkbNrMFoLDsLGrQ5aiKUjA12CPTH6+sr/k7NrGJ+TotUR1I46kKAjAx2OMQOaM7fTs2sxGgsnxBF6SPURICMDHaXy7UB1C3rVa2+vvxeEPdT1Mx6Mi7YoXP29+bmalzamTI7K23AdGaeDAt2WYLO2eXUSBp2+/j5vb0jD5LpENSVNFpby6GjKt1Ozawm04L9kmSmL/39ss5mGxuGLuJ/eZ7/AJn3Y7WOJn0+OOTvXwZxF6iZtWRMsJNOqcFQ9gw1EwoEEgNBfYckTToZhq2gbh8sy32LLC/d3z/eSl1JAWL9PbSYtWRMsIuiJymjL1br+CV2+4QAQf0F6loFtDZaSWLaiOqThVapO6GYTJWPZLu6Z0Sww0GU6uurEqrqZB4+KPZJlmX+BcEcVj0S1ZekXKfFMpKUu/izXd0zJNilb9Ji3Hn55UG91Tq2V5I4ck/oWuqOCI7jL4ITRYJWIaH5PFX3rB2ZyYhg53nXj2kxbpC8HBT5J6WlOgfLsmdRd9TAicJAq/Atu33cZbEMbaXuBCD/khayjrQPdgjCwXivc0LWrSF5OSjy9dSlIIyW4zQHQen7EzFUyXHMLbSYdWSAsksfpgXF6egYz4MgnCQLNIWbl0cLfP5GMlQJSh9X5SXL9YFAZGVHNe2DneNcL9OiYpCUBfLy1/R6ZgaCMKFrtUDYfwoCXiAPOqOOOCD/mhayinQP9uNKpzDkQWOQsoiQl59JXUmA4cgT/SDo4zI9Gc7lO2kxq0jzYJcVf1CWKLK5pPNIzSQTn5WKjcYSOy1mFWke7MJvaQGJADiXyQBkRi5eGoy0DnaW9UzQIhIhsizuo8WsIa2DPVOXVk4ELMu8SotZQzoH+yT9F4kCSVL/lBazhjTP2REkfNI22GVZyjplUhKjcd0QLWYNaRvsDMPirWYxQEZkaDFrwDQGyRow2JGsAYM9Tsjksg2SUmCwxwnoQM+J4pQOYn6AupAkg8EeR8xms9toLK2VJLFZkmS8AJZk0jbYvV6hlBZTHpOpvNNkKtULgnhjqqQ3FsvxAlrMGtI22NVq/n20mDbU15f/6NixLg2o/D+oK2kwDFNIi1lD2gY7CCRPi2nFrl27BFD5d0E+XyhJUtLyeYbxrqHFrCFtgx2UKao7+1MFyOenTaayWq/XvSUZ+TzDqK6mxawhrTuodvtY2uTtgWho2HCY5POSJHyJuhKCLDOfpsWsIa2DXRSlnbSY9phMFbfX1RXzsiw+Ql1xBVrGpKxMlkzSOtgZhk2oGsYbCEDRaCx/p9Mp58cztbHbT5LOKTdvZQ9pHewsyyi+uFBjY6VdlqVuaiaF5ubSWZLa6HTeXOpSFFl2v4sWs4q0DnbQQo3Sefu8upY1iaLTKCd5fZXKykoHLSqKJKm+QotZRZoHOwlO7kO0qChmc43daCxVS5L349SVMXAcV0+LWUXaBzukHHFdzs1kqvwddBw5URT/QF1pTW/vsS20mHWkfbDHI5VZCaQ2ktlcfg3Lzukhtemn7rSEYfiHaTHryIBg9+Wgj9FiXCGrGUBqUycITkOy8/logH2GDIYzUTPryIhgZ1l2x0MPPZSwobT6+pq++XxeTPrzkiLBZhv/PS1mJRkR7IRt2y78ES0mDJOp/ObBwU4I+uQOVYYDUXUQhbh05tOFjAl2yKu/kEh1X2B+YldZE8MIGyGg5qg75ch2VSdkTLATtm7deRstJpy6uoqjkNrkiaLnoxD0KXVLHqr6PBkV7CzLfX58fDyPmknBbK6622Ao4YaGelJmViaoehctZjUZFeyEmRlV0u/5hJRKJukNNZMOw7BxWfo63ci4YIdAW2+xjCT9ke5I6pFxwU7gOP7hZKczSOqRkcFOmJ1VHadFBPGRscEOCY3Wah1towaCZHKww49judaenuHPUxPJcjI62AlqtfrHFsvw56iJZDEZH+wEjlPfiQGPZEWwEzDgkawJdgIJ+J6ewRupiWQZSQ12k4nxyLLspGZCUKt1t5JRmmRMGssUvF7vL2kxrUiJJzlDevFBUN0HqJkQ4CSDE81rNJmq4vLI9FTCZpuYYxhVDjWjRpLkjrw86ezy8vKUnd0ZjBR5bPk8oLgPsiz3AWomBFkWHzAay6+iZkYSa7CDMDhYlt1WV1fcS11pSUoFOwEqlrXZxjuhchuoK+4QlRdF1Y76+tJD1JVywD5ydvtYDxyy/zMYSj9LJpvRTSGJJdgFQbimvr4iI242T7lgX8BmG2uRZeY1lk3cMm2SJFlYVrPDYFh3mrpSAotl5Ascx99BTR/QIr0fWqQ/UzMo0QQ71MW9RmPpRyI5qVKdlA32BWy2kU8wDP9raiYEURStWi3zppqasj7qSjhEyaEv83me1wS8IQVyaMfsrKNy69baKerySyTBTlKW3FypJF3z8mCkfLATSGpjt0/cByrzQepKCPPpjXi92Vz+W/huibrjCgSmCb75x/B9l1FXSCRJbDcay7YFUuFwg10UhcvN5oq/UTPjSItgX4A8GoVhhFcTmc//D9kNqcP1DOP8i8FgUDTN6e+fbBBF6bZIAtwfsiz9EoL+WmouEirY4e/uhr/7KDUzlrQK9gWSkc+vBHLaXqi+F0BV72QYzbDZXDRNNwWlt3ekEU7WNbDv18Hfv5+6FUWSvO80mSoXl74OFOyw70cgyLcEahEyjbQM9gUgcD7J8/yvqIksgeTzLDtbQVqhlcFO8nJJ4srDPUEzhbQOdgLJ50Hp70/0+Hy6AC1QO8Ow5oVgz/S8PBhpH+wLkHyeZcVxaJKz7okS4QB5+e8hZfkYNbOSjAn2BUg+D0p2mJpZD8nL8/JU52TiUGKkZFywL2C1jj4AqU1ChypTCZKXQyu31WAosVBX1pOxwU6g+XwXBH1WLb7v9QpXNzRU3E9NhJLRwb5AKgxVJgJJkn9jNJZ8KluGEiMlK4J9Aat15GqG4e6FYMio3y2KwuH8fOZczMuDk1XBvoDVOnZvJiz0CWkaKDhTD2pupS4kCFkZ7IT5qQfeVyCfb6KutEIQPNfU11dlxNTbRJG1wb6AzTbarFKxr0Fmo6eulEaSxKeNxrJLMC+PnKwP9gUg6D8M+fzd1ExB5NMsq9lYW7s26HReJDAY7EsgQ5V2+8SvQTVT5koj7JMoy8K7TabKR6kLiRIMdj+QfF6l8r7IcVwLdSUc0vmE7udPTaZSXL5PITDYgzAwcLzJ6xX3s2xi83kQ870GQ9m5mJcrCwZ7GPT0DH2G59V3QfDFtb4kSTrldLoNmzfXnKIuREEw2MMEcgoy9QBUnttKXYpBEhZJEq40myv/SF1IHMBgj5DJycn8U6fE5zmO3UZdUePLylXy7QZD6Y2YssQfDPYoIUE/PS1+Q5aZ6yFQI8rpIcaPw/8/AUH+CAZ54sBgVwAIXnZgYKpalgXfKsGCIFzAcZzZt1ElP8gwrFOSPP/huJy22tq1SX+aH4IgCIIgCIIgCIIgCIIgCIIgCIIgCJLtZNV0gb17LQU5OdpVj4TU6XLFWFe0JTd8qNVcwh+1ufI2vf7+fp1KtSbo+jjxurUPvnsNfDe1/JPM2wpjCvZXXjlcqtGor83PX3u1IHhz1Wp1Ecuyvs90uVwnwJ49derkH7Va7rdbttQfZRL09IoF9u+3F3KcfJ1er/8U7EsldQfE6xWGnM7Z23NzVb80m81u6g4Li2V0iuO4QmomDIOhZNkxtFrHnaEWg7LZRvIuuaRV8TVmrNYxaeH4B6KurphLdBwsEHGwHz7c38Dz3F+0Wt1m6gobOCEGJEn8VGNj9b+pKy4cOTJ4pkbDPc7z6lLqihiv13N0evrUzh07WsJ6TioGe+oHe9jNbmfn0U29vSMzubm53dEEOgGCb6NGo/sXBIa7s7P/UupWjPZ2WwkJupwc3WuxBDpBrdbUrF9fOtjdfQxe3fnUjaQxIYN9zx6Z7+kZtul0+g6e5/OoOyZAATWQJz/Z2zs8Dp9dRN1RI8sy09Ex8Iv8/IJxpdVVo9Fu0GjWT3d0HP0qdSFpStBgt1hGmqqrJ72Q7xqoS1FAfUvgsyeh1biCuiKGBDq0OIN6fc6nqSsuQN7/fWimu8j3UReSZgQM9o6O/hs4ju+kZlyBVuMvFsvYX6gZNoODkr6vb8IFJ0wVdcUVyEcb4cQaw4BPT/wGO6QEX9HrcwM+bDYecBx7RU/PyN+pGRIScF7v5BT0sTXUlRDgxCqBgB/BgE8/Vh2w7u6hT2k0ml9SM+HMzEx/rrXV+FNq+oUEGnRE+6APsZG6Eo7T6fhHc/PGd1EzrNGYycnxZyVJFqipADJ77rlb3kgNHzgaE5hlO3bgwNGKNWv0w9RMGg7HbGtLS90haq6is3PwxzqdLuKVsgRBdExPT72Sk5PTBR1Pp8vlzoGAOR8+qwkOUsQtxMzM3JtbW2v/RcrhBPvcnHNdvNeEwWAPzLI0pqBAG/HNwB6Pu+fUqePnsKx6LRnzXXiJolBy+vTMG8mFGvrWsNHpcg6AevtNsfbv7ymKJNDhc1SzszN/zsuT8+vry3PPPLPx9Zs21VxvMpV9paWl5rqWlo1boax1u1UVLpfrefpnYZGbq/+nxSJpqYmkOIsBdfhw33fgrFRTMyQOx8xDcJbyjY0bGrdvb9q78jKw2VwxuW2b4emGhooNojilczgcL9BNIYH94I4cGfC7YFB+fkHYT8Jzu13dLpcqf8sWw/tLS0tnqdsvTU0lo5s2Ve+amRHzRFE8Qd1BgfPI/eqrD2KwpwmLwZ6bm/cNWgyKJElel0vY2NJieC80RyJ1B4VcegcFvcjhcO2Avw9rnZTc3Nz32u32ZWnBvn1d5ZCnl1MzKILg/WtTU3VTc3PwIF9Ja2v5nNlcXuR0Ov9JXauQZck9N+d4i9lcpr/qqquy6inR6Ywv2Nvb+77rs0IAgeoeGurO2bSp4ih1RURLS/W+06fFPPicsHI2p5Nb9sS3vLyC/9JiUCA3f7i+vvI91IyK5uaay6BleJWaPmC3PTMzM28zGst0mzdvfJK6kTTBF+z5+Xlf91lBgNxXhkDP27VrV0yjCdu3VzrGxibCumqq0+nfQouqjo4ODRDy4pYgCBOQm0d9kWopkKKdAwHuXVByktu3thoep5uRNIM9dMgS1gWZ6enZN8Ya6Avs3Ln5lNvt/iE1AwJpErN/v+XseSv/mvl/gyNJaiMtxgx8vazVegpRyTMDVqfL+x0tBwTUzQmdzWeoqQiNjVVfDSed4TjmB+RftVr9BZ8jCC6Xc19jY/EMNRWhurraSYtImsNYrWMiC1DbLw7H3K6WltqIhuXCoaPj6Bf0ev0d1PSLJIluk6lcZ7GMeDiODzpadOLEKcOOHfV91Ewo4Y2zz/5CFKWwOvXBcDhmHznvvNbnqLkMHGcPDGO3TwQdHSG5utFYGvRkiJb9+4dz1q5Vh6x0Mm6fzP0Mh3CCXSnIBWSjsdjvI+ox2AMTMji8Xq+iacFSSGcVMpmQQ5G9vUOttBgQiHUcAkSCEjLYIRiP0GJcgM+302JAZmbmQt48cfz4ZDstIohfQga7TqeNq2LyPBfyXk+32xVy3go0jV5aRBC/hAx2QZB4WowLkMWE3AeNRhOyU1dQUFhLiwjil5CB5nQ66mgxLni9npAXmHQ63TgtBoTn+QpaRBC/hAz2vLy8uCkmdCoZrVZXTM2A/PWvG3tpMSAcx+nh80L+HiR7CRkckAuz/f3jZdRUlLY2a0hVhwBW7d7NSG63O6S6Hz48cDUtpiTQGR8RRTHml9M543eMHQkO0919bEKj0QZVV4/H+2xjY+XrqakYFstoGyhy0GFFCPYZo7G04NVXO+8oKioOehVVliWP0Vim6JRb0lrcfLPKd8JRl1/w5o00GGcHxfwZLQdEo1FfDAdd0Y7q4cNH14YKdILX6/VNZ5Ak8VafIwjQCGkOH+77JDUVoatr8M6rrpoQLJbh2266CdOkdIa1WAxhTe/t7h6y0KIiaLXqMFcumLmJ/P+cczaPQxoQUhFycnJ/1dHRr0jadfiwvVSn018HSsRwnPoGCHrvwYOWD9DNSJrBXnEFI3q9npBXSbVabS3kxN+hZkyAWv46nJswID893djYuLhvMzPT36fFgEBckqnBQ3b7yZgu3ZPFm3Jy8kap6YP0XwoL1zxos4152ttt76NuJE3wNcszM453+6wQ5ObmfOPw4f5bqBkV0Ef4uVar+wQ1g+J2uz5Ciz4kaXo3LQYFYpKTZe+pcKcvrwTUuwlOxgmi6NS1DPh8dX5+wZ8gRxWgFfkRdSMpji/YzzzT/DRkCGHNVc/Nzf1mT8+QNdIcHt7PdHUdew06w9dSV1Dg/Z6Wltpl68hs377d63K5QubuBBKoeXlrjkErsod0Mqk7KOPj43mwj6+CencGCvSlQGeMEwTxKWoiKc5iEEAqE/Zoi1qtMfb1TXp7e4f/HCroyXrhnZ2DP7DbJ0RIhc6k7pAcPz6xgxaXsWlT9VchvXFQMyTQilwE+ypC0FtefbXrHLKOOt3kgwQ4WX6PbJ+dZWZgH/1+rz8EwTvW2mrEYcA0YZl6wQE/CMGxlZphI0myY2bm9P8VFKwZOnrU+qcNGwxvcLkcDdBZfCsIZC59W9hA+tLe1FQdcD/ISE5urv4kNZMCnOTy1JSQR2ZuEjudhh7JfbRTUyciXuIkGBddtKMtnKHHoaGjZ5C6o2bMyLJa3rVra1iTAJftGOwDSzpf0DqvejpFogDVdppMZblwkgStkEOH+s/Oy8t9hZoJZ3Z27pwtW2r3UjOh89n9sbBOezjBHg/q6oohdsbJjUAh0z+lWfjtoViWy0KASaIoxeVqaTjAySZxnKM8VKATSKBBC3AzNROK1+u+eGmgI77YUUyt48WqjltDQ+Vxt9uR8ElVoOgnXa5JvcFgOE1dIYFUZzfkzWGtd6MU0EG+sKFhA+bpaYjfUYqmpo2jLCuXS6Dz1BVX5uZmbzKby9c3Nzd7qCts6usrv0fWhlQyD/SHBB0Tj0fYDh3k/1AXkmYEHJKrrS0dMxrLNG63u5u6FGdqauqnkOtpNm+u+zZ1RQVZBFWSTuvJupPUpSher7d3aKhU09hYcYC6kDQkYLATSA7f1LShaXp6+l3hXKqPlDVr1lzf2zv8J/IoG+qKGrLEHll30uVyNkNwKnJ3lSCIpz0e12ZI7Rp27WIUXGoaSQZBg32BrVuN/zAaS9UzMzM3QMwrmtqo1Zp3k0fZHDpkj/jJG/7YtKmmE4KzcGRkbJ3XK7RRd0RA/6F9fHxifX19+ZrGxuq43oOLJI6ohomOHBnawPOqB3ieO0+pYUqPx9PQ2FgV8iaNaGhvb89Vq9depdVqPwEnQLEoCrmQ4mtYlnHD/s/xvPokdHR/4XafeLC1Nbqprz09QwegJVxLzYRCRkLM5grf0oAWy7GzOY5v8m1IIAZD+d022+iHGSa6mIoW0quE/t7d1AxKzDtGpr1+8INDFZLEPAoqvY26IwICzwEtR8QXnxAkEhQ9C/fs6ddVVGieAqW8iLrCwu2ee1dTU+0/qIkgcSEuTQ5R+8svP3pbTk5OyPUZQdW9oOoJfQgYkp3EPb9qa7O+Jy8v/0E2wFM9pqamPnLGGeZ7qIkgcSNhnYm2tv6NOTnafTzPL95kTS4EGQwl5J7ElL/UjKQ/YQ09KsHWrbUD9fUVxadODea63Z59xDc3N3cPBjqS8ezfv18Nwp6wlgVBEARBEARB0hTMmZFFBgYmyt1uuYSaIdHp5JmamrKwHutjt0+S+5UXB0QMhmLyHN2IBid6e8e30OIi9fWlAR/7vxIMdmQRq3X8TyzLhL0ejtPpONbcvLGamkGx2cYlCO7FeItmGTx/jxoK95Y8QsKGHhEk2WCwI4tAVvE9yDTevfCam5tb+azanqXb9fqcD1J/QiDfSYtRgWkMEpCnn9779rq6ukeoSWiHtGHVEif9/RPLfLW1Jb77CF5++fCFJSWlbzAaS7/5/PP73rB0+u+FF575f7S4iMUysVVNJ5V4PNLp+vrV/YGVqUwkaQwGOxKQcIN9ZQAKgvcFnldfOG/J+w2G0jMD5ezQadV0dw/v02o1m+mmRWAb/J/5vtFY8vV5T2zBjmkMojj/C/TQWCwjJ/wFOoGcG/Df1/r7JxuoKyYw2JG44na7+2lxFX19J2vgxMijpg+Xy3kF/DMxb80jSbJvjf5YwWBH4oLX67mCpBhNTdUkeP2i1a6dHBo6dt3Ca2xs5LtqteYa2LRyrF+RdBuDHVEcURT/0dBQ9TA1A1JZyTjKy/N/W1ZWdnVV1Ya7ysoqvsFx3KV0s+JgsCOKYzKVvYcWQ8JxhQ5IZZat7izLoR/xHw0Y7IjiQMcyrOVW2tqskOIwizEILYJERmkgLP9NXYqCwY4kjfz8Ncse5cmy3GtkONLjcddQlw9JknJoMSYw2JGkMTNz+nFa9MEwqrPJeLxWq22kLh8sy7babBMvUTNqMNiRpLF1q/HX8vyVo0VA2eN2oRODHUkqRmMp6/F4/0xNHx6P5xEybHn69Omvw6mw1+GY7YfUJi6rxSEIgiAIgiAIgiAIgiAIgiAIgiAIgiAIgiBIJoBLaSBJYXBwap3H425UqeRPSpJ8Acdxy+awK40kSb0Mo3qJYaRfFRZqeouKihR5MDSCpCIo7Ejc2bNnD19R0XAGy7JfAXF9C8Mwfp8ll2hkWXbLsvQ3lmVurasr7SA3SdFNCJLWoLAjigOCyfX3j22XZfYrspw6Qh4K2G8XCP3fOY79YW1tyREUeiRdQWFHFAFEkbfZhs+Ef34LwriJutMaMnwDQv8TtVr/p9ratVPUjSApDwo7EhUg5Mzo6EzR9PT0tTyv/ka6ZOXRMp/Ny4/wPPOFjRtLxuH3xmXFMgRRAhR2JGxA2NR2+8gOlYq/Ecw3Z7qYBwOyeYssC7cOD1vv27Vrl0DdCJISoLAjQYGsvGRmZvojDMN9imXZuM5cSVdINi8I4jdA7P/Q2Fh5ErN5JNmgsCPLAJHiLZaRc1iWuxEE6pJszsqjRRTFfSzLX2swFLVD/WE2jyQcFHZE1d8/XiYI0ochHEhWHtZj2ZHwgIbSLYreb8oyc299fcUJzOaRRIDCnoXs379fvW5d9TmSJJOx8jdiVp44SDbPcarPnjo13LZ9+3YvdSOIoqCwZwkDAxPlXq/wEZWK/QRm5akBzeb/H8Ow95pM5ccxm0eUAoU9QyFZ+fr1NecJgngjyzIXw6HW0E1IiiJJ0j5ZVl1vMpUeAJHHbB6JGhT2DKK/v18nCNrPqlTcdSDmmJWnMbIs2eH1SxD4+w2GsknM5pFIQGFPY6Arz/b1TRrJ3ZFw4r8Os/LMhAzZQDb/b4ZhbzUaS16FYx3WE/KR7AWFPc3o75d1ojh+HhRBzDPj1n0kMkDk+yGB/yUU/2A0lk/MexHkf6CwpzgkK7fZhivhn09zHHcDZuXIUkg2D///P1kWPvPAA78d3r17Ny5chqCwpyKDg4N6l4s7X6XifpwpC2ohiQGEvl8QhN+o1dw9BkPZOHUjWQYKewowP1Y+UiWKzKcwK0eUgmTz8HqGZdlb6+qKX8ax+ewBhT1JDA5KekGY3CkI4h0cx2NWjsQdEPkBWZZul+XS35rNrJu6kQwEhT1BkKy8v390gyAwH4MM6hrInqropiyEZJIqJ9SJC0LwIaiLOeKVJPEVvV7d5nsLAI2eEMkSuaSOe3qOl+XlMSx1qZxOTwHU93tUKlYL29eyLPNu+JfcaZsLn5vFd9ySmTbycywrfqqurmII6gLH5jMIFPY40tHRodFq170OROXLDKPayTBsVggJCKcMv3daFOU2nmdeEgTpVZVK3Zab6z5ZWVnpoG9LCcbHx/NOn+bWMIz3XI5jN8M+vx7EvxEannwQu6w5P6BRhWPFf1Glmt1bW1sLDS6SzqCwK4zdPlwNieMnQMxJVl5J3RkLaDhkfuIrHMf9W5JUf83JEUZSTbyjhYi+w8FWiaL4HhD6y0Dwt8IpkwXXP2S3IAg/gCT+dyZT1Qhm8+kHCnuMkKxcpyu5GE4GkpWfl8knPogbZHLSScjH7+Z56ff33vurwWybXgcNGdvXN2yUZfUn4Vh/kGHktZl9zGWPLEsvQGz/gONcL2M2nx6gsEdBX99IjSCoPskw7IdYlq2g7oyDCLkkCa9Apnq7Xi/tyZRMXGnmh3PEN0FmewPExDb4N4OFXjomSdLvIYm/22isHMZsPjVBYQ8DmpW/HoKaLKh1TqZmaGRsHP4/Bv/8Dhquu//85+zLyGOFZPR2+6RBksRPQqP/IXCtB/HL2PMMfmc7nBNfVqs9L1VXVzupG0kyKOwB6Os7WSOKrk8xDHc1nJcZnJUTMVeNiqLwpbw81aOYlStLR8d4nk6neqMoil/nOI5k8xl7zkHiMwThdDfLSr/HmTbJBYWdAgHJWSyjZsiyfgUZyNmZmpUT5sVcBjGXb5iZkR7bvh3FPBEQkddqhfczDP9dMIsyW+TJ2Lz8oiwzt5pMJc/CT8WboxJI1gt7d/dQPc9zf2dZrom6MhZJkqZA0u/MydH/rKqq8AR1I0mgq2ugXKvVfU6SGLLEcg51ZyyQzQ97veIPGxoq7gKRxyWI40xWC7vFImk57vhzUDx33pN50Ox8BET98w8++Ou/45h5agGHh7Vax65hGPb7kL8XZ3IWD7/2+bq6kovhJ2IMxhkU9gwVdiLoIOZP5eSIV1dVVWF2ngaQh4p7vdLDLMuel5kCj8KeKBZvvUYyAyLooig86fF4i83m8stQ1NOH2trSMThmO10uRwUcwxfJsaSbECQiUNgzhOWCXvGWpiYU9HSlubkWBL5iJ8PI5aIo/hcFHokUFPY0BwU9cyHrqUMGfwEReElCgUfCB4U9jZEk6RRkdJebTOVvRUHPXIjAwzG+AHT9nfDyrYSJIMFAYU9DSOYGov4No7F0fX19xd8ZnD6WFZhMZY8aDCUF0Ee7ncQAdSPIKlDY0ww4n49JElcNJ/n3UNCzDzKjxGgs/5IkqUwQC6eoG0GWgcKeJkCOTsbS/6HRuOvN5qIh6kayFLO51J6bK22AmNiD2TuyEhT2NECSZKckiZeYzRXvwoWWkAXKy8vnTKby14ui+GHQdoG6EQSFPdUhQy+yzJnN5sqnqQtBFiFDM/X1FX9Qq+V6HJpBFkBhT2EgS39arXZtyeahFxArprNzpMZiGb3dZhs7abdPyORls427wPdMb+94K31rVlNTU9YH8VIvSeQxhEi2g0sKpOiSAtC9fkqtLntXbS2TdU+sIWJusYycz7Lc91mWORPCNOhKm/B+MsY8AML2YY/n5CvNzc2e+S3ZR3v7aG5urvwMy/JnU1cKgUsKJAoU9hQU9mwUdbKkrUYj7eY49kqQ6ZgWw5IkeQL+/2tJ8v66vr56mLqzhuFhOWdubuwZjuPOoa4UAYU9UaCwp5iwZ4uoL2TlDMPeCgJ0Brjisv49fI8IQv9faDC+5XROvJot2TwR99nZ0Wd5PpUydxT2RIHCnkLCLsvSMY2GP6e6uigjs8z5B01I3wYxvxLMJD1oQp4QRem3KpXwK7N5Q0ZfuxgeHobMnXmO4/izqCvJoLAnChT21BH24y6XsH3Tpoqj1E57SFbe1zd5PiTNP1Sp2DPghFbTTSkByebh/y+KIvstr3dibyZm8z09o7UcxxxkWXYNdSURFPZEgcKeAsIOAiOxrOrzdXWld1FX2kKz8ltoVp5WD3KG4zApSSSbV/8yk2YiWa3Db2cY/q9wKHjqShIo7IkChT0lhF38rsFQ9v8g4NPuDkKSlVssg7Usq/kOiPnl8BtSKiuPFvhd5Jmde6HN/Va6z7Qhx8huH/8ZHJ9rqStJoLAnCpzHnnwmOI6Fky59RP3llwf1NtvIpVbr2Gt2+4TA83o7y3LvzxRRJ8Bv0bAsewHH8c/rdMUum21i1GodvYUkA/QtaQOJLY5jboFG6iR1IRkOCnsSgUxKgnPuO+TJOdSVkpCMr7d3rM5mG/upzTZ+qrRU54Be/ZMgfGeCaGR8DMFvBFRl0Hh9E3p4IPLjbhD5/1osQ1vpW1IeGmN3wrHEdWWyABT25DLo8Qh/ouWUpbt72AQZ3xHQ8OtA4VLgIlxygTqAbJ47n+M0B3t6htLmuggcw9/CP5i1ZwEo7EmCZOssq7qjoaHyOHUhaYmc5AuS4TOftcs/waw980FhTx4noHv/MC0jSEKQZfW90OfIumUqsg0U9iQB3fk7U31sHck8TKb1xxhG+jk1kQwFhT0JQE/YIUniK9REkIQiCPLzEIO4fnsGg8KeBCBbn+N5tpuaCJJQWFZzGKLQS00kA0FhTwJer/c1r7cYH4qAJAWeF0DUJQc1kQwEhT0JqNXqV8xm1k1NBEko5NoOw7D3UBPJQFDYEQRBMgwUdgRBkAwDhR1BECTDQGFH0g5ZlmYFQXyLJEmPgyVSN4IgFBR2JO0gd8R7POJhk6nsbQZDKa9S8WtkWbwRhB5v+EIQAIUdSXsMhnWnjcbyH4HQlw8Odqq9XmEHZPU2XBMFyVZQ2JMAiM5n7faxUmoiCrJr1y6hoaFin9FYZjIaS1lRZAuhvu+SJBnXR6FYrSc2QJP3GWoiGQgKexJgGJZj2fR5ZFw6YzYXTYPIX28ylepJNi/LzJkqFWbzSGaDwp4U5GJRVH2IGkiCINm80Vi832CYz+Y9HqYgG7N5hhGvhbRCT00kA0FhTwqMSpLECkgasf6TSGNj8cxCNl9XV8zLspDx2fxDD8kcNGbl1EQyFBSWJEGeETowMFFCTSTJMJDGGo0Vi9m8KAqboPH9e6Zl81u3nqxgGPYKaiIZCgp7kgAhKZYk5iPURFIMs7miy2QqfzfJ5p3OCa0kCTdAIt+f7tk8w3ivx2GYzAeFPbl8rr9/vIyWUxaO4wUQg6xdv7u5udljMlXcAZl83cGDJWpZFlsgm/8bmTfP8+r/0relPGQ2DJzyOBsmC0BhTy4lgiB9FZLAlD4O9fVlfQZDaaFa7coRReFmyFln6aas44oryJBNeQdk85eTefNGY9kf6aaUh2XF6zBbzw5Q2JMMw7BX9/cPm6iZ0lRXVzvN5ordRmNJ/uBgsdrr9X5clqVulUqW6FuQFKW399gWOE7XUxPJcFDYkwzDMGtFkb1vfHw8j7rSgl27GKGhofJ3kLE2QTbPeTxirSiKf8jmbD5VsdtPFrIs/xeINi11IRkOCnsKACfdjtlZ1XdSfUgmGI2N5QNmc/k1JJuvqysGofc0SJJ8GDJ6vBEoyciy8FWW5eqpiWQBKOypw6dttrF303JaA70QqbGxqtdkKt0CGT3LMPxGSZLuBaGfo29BEoTdPvoRkPYbqYlkCSjsKQOjYVn2Aat19D3UkTHU1a07ajKVfRiEPo/c1i+K3o+B0Hen+9TBVIeMq8sy9zNoaPE8zzLwgKcUjAbOwV/a7RNm6sg4yG39ZnPl70Hom+6//xe81yvWiaJ4H2h81k6njAdE1DlO+wrOgslOUNhTDMiu1oPIvdzdPZTxY6K7d++WGhrK+83m8g8ZjaWQyU/pQOQ/Cr9/gL4FiQIUdQSFPQUh4q5Wq1/KBnFfitlsdoPI3w0iX1tXV8ySbF6SpD+oVJjNhwuKOkJAYU9RiLhrNOpDFsvI5dSVVcDvl0k2bzKVXWMwlKqdzmItCPxuSRLHYevBnBz3NH0rQrFYRj/K85r9KOpIVq8JbrFIWo47/hwUz533pCKyRxSFG9vbX/rZFVdcgc/3RPxisRyvYlmpF0Q9h7pSEPn5urqSi6HRxhva4gxm7CkPo+E49Z1btpx/+0MPPcRRJ4IgSEBQ2NMEnuc/19q686DVOrSBuhAEQfyCwp5GcBy3mWXVNotl+HOYvSMIEggU9rRjfmhm69adB+aXYUUQBFkOCnuawrLcFpYVB63Wsb3ptoAYgiDxBYU9zWFZ9qyZGdUJHJ5BEGQBFPYMgGHmh2e2bbvQgQKPIAgKewaBAo8gCAGFPQNZKvA9PcOfR4FHkOwChT2DIQKvVqt/DALvtVpH23AOPIJkB1kt7GYz677vvp/vlGVpsySJf5Rl2Uk3ZRQg8AzLcq0sqxm028ddZJgGfis26khCkCS5QxSFy+vqSl4HoYjLCSSArF4rxh8Wy/EClvW8D3TvCyzLNlB3RiJJkkWWhVtNpsp78YRLb1JprRhIGhyQLD28Zg1/XXFx8Qx1IwkEhT0IJKuFDHcT/PtV6Ny8i2UZHd2UcaDIK8/g4NQ6QXDk19aWD0KdxvVpUckWdoifDhDzm02m8r/H+7cioUFhjwCSzcuy+0Mcx98KwZvBS6PKbllWPSxJnq+ZzRuGqBMJA6t13Aj1dyskAW+D04unbpIkzMH//8Bxzm/U1tZOUbdiJFrY57Ny+SFZnv6c2WzGJZRTDBT2KFnI5iFT+RUIfQov+xs7kiRaJEm+g+d1fzYY1p2mbgQgWbnb7bgGenSfY1m2mrpDIorCcwzDfdJoLLErkeEmQtgxK08fUNgVwmYbLYGT+w7IdN+dyUM288xn9KLouc1srjoCJ3lWDN1AY8719Y2dAafNV2SZeRv87sWMPBag4TwEgvnD3NyKRyorGQd1R0Q8hJ1m5X+BBusHdXXFVhTz9AGFPQ6QbL63d/SDHMd+PdMvwP4Pn9g/Bf8+pVbrnqmuLhxIV8EnAm63T9bJsqdYpeK+xDDsW5US8VBAVuwEcb4XGo47IsnmlRJ26Jkdgf7EbXl5zN/Ky8vnqBtJM1DYE0B2ZfOrAbHqhUbugNcrvKDRqP+Tn8+MFBUVJXVclgyhiKK3xOv1vpnn+e2iKJ0HjXAN3ZwyQDbfDvX3w7y8ikeDZfPRCjvJyuH/f4bG61bMyjMHFPYEQ7J5i2XoSo5Tfw1OpizJ5sMDBKyHZbk2avoAYXsOhPclagZFFIU3Mgx3FjV9wN+fA4K9kZppDWTTRNjvg9ftK7P5SIQd6uQIfNZtTifzt9ZWzMozERT2JGO3j5VCt/t2KL4bTtSsy+aR6IGGsB2E/Id6vfjo3Jx2XSBhBxF3QkrxJ2jgMCvPElDYUwiSzdtso1eqVL6x+XrqRpCQQOyQu6a1INq+O4pB9Dvg/z+am8OsPBtBYU9RiMjTm6O+AucqZvNISATB+zzPqz+JWTmCwp4mWHw3R3neD5k8WeoAs3nEd+FTkryfzc/nHsIZLMhSUNjTEJLN9/YONXMcfyNk85dDdqalm5AMRxTFIxABu/EmISQYKOwZwPHjxwtOnPBeQy6OZeN0ykyGzIRhGNWDMzOOG7duVX4pAiQzQWHPMBbG5qH4ZTi878Gx+fQCjh9k4fIhUZRuMZvL/4FZORINKOwZDhmbZxj3e1Uq9ossy+G8+RRElqVZEPAHWNbxtXgsEIZkHyjsWcRCNg///oZh2LNATPD4JwVZAsj6MLc5HOyjOB0RURo8sbOY+Zk2ZBli9fdB4nOpG4kDIOIzsqy6n2G8dxoMVTYcYkHiCQo74oNk81br6AdUKvYrLMs0gfDgo/NiBLLy/ZIk3O50co9jVo4kEhR2xC9dXQPlGo3uFhD690I2n0fdSBCgcZyB/5OVGX+q1DrrCBINKOxISOaz+ZH3QxJ/I8uymyBsOLopq4F6IeyD0u1zc6onMStHUgUUdiRi5rN57W4In/eB2OdTd1YwP1Yu363RsHdVV5f0YVaOpCIo7EhMgMiRbJ4I/Jfh1QJCl1HZvC8nl8V9sqz6UW5u+T+jfcIRgiQSFHZEMeZFfrQBxP16EPmr4F/FHtOWSOB3CKIoPgtt1GdMJszKkfQDhR2JG5OTk/knTnjfwXEMWbisBcItIY+XixSSk8M/J+F1r1ot/6K6urQfxRxJZ1DYkYRBhP7UKe/bIexA6LlGkFQdCGgSYlD2gpSfhn/vFUXVL81mFHIks0BhR5IKEfvjx8WNajX7AVmWSkFg3wFhqQHRJQ+NiCrDhwTcC5/hIWXyzFCOY/fLsvCCKGpfM5vXj6CII5kOCjuSNpBGYHZWWE9NHx6P12s2b0CxRhAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEQRAEWUXKLCmwZ88eXqstLnC7XawoermZmdOa+vqm82EXS1mWrP/BkjX4xNHR4aedzrnTZWXlgk4nSC5g+/btWb9GdkdHh2Zy0lVQUFBo0mjU58/NzW1Yt27t6xiG00PthXGcyS35kmtq6vTTen3OMUHwvup2u7vXruVnzWazm74p7hw40F2Rn7/mMZZl1lBXRjM+Pn7Heedt+QU1V7F3796C/Pzyv2i1WhN1RYXb7RmdmLC/YdeuXS7qSmleeungmSUlFQ8yjCqmZ+/Ozs7e39pq/DYUs2rJiYQK+969lgJZdm3kef69eXn5l4KrgufVRSww/47oIaoPYnQKPuoUiNoTDMM+zfPOlzdt2jTFMIxE35b2EAGfmuKKcnL49+fk5FwDAljDcXxcn2JElrWFxvaE2+09KEnik9D4PrRjx6bxeKzPsm/fEUNhYdEBjuMKqSujGRoavOvCC7dfT81VtLUd3ZSXp9sPx1lHXVHhcDimRkamqi65pDUtHt/33HN7L9uwYePjcD7HpFGCILaZzWXbM0kDwiFuwg5awB06ZG+E4tcgA7wUxDxpGZgkSQ7IWF6Bf3/s8aj3bN9emTYZPhFyWdZvgcz7SxqN5s3xFvFwmRd78QQ0po84HHPf2r69cUwJoUdhXw4KOwp7NMScKS+lvX2gtqOj/3cWy8h0X9+kkJ9fcAReH0imqBMgOHL0et3Fubk5T6xdq56zWMac3d3HHm9r698I+qRoHSgBEfO2Nuuunp7hXp2u2JWTk/8aNI5XpIqoE+BEYeC4Ful0+o+tW1c0YrdPCF1dQ88ePtx/DtRpQnuCCIIsJ2ZR6+7u39jRMfAHq3XMk5+f06fX5340lQTIHxzH6jQa7VsKCnL7QZC8XV3Hnu7sHKlJpsgTMezosO/o7R05otUWuQoKCp9Tq9VmIqD0LSkN7Car1Wpel5ub+zKpU4iJv9jtY6Uo8giSeKISMnKhs6dn6NMg5ic1mtx+yCavhqxYTTenFfOCpH29TscPwO85DVnydyDzXLbmdzzZv384p7d3+DqLZXRSr89/FbLg5li7n8kG6pQjPQwIrzGrdfQY9I4uQoFHkMQRkbDv2SPzR44M3LhhQ+OcWq35BQjQWropI+A4Lg+y5G9oNOoJEPi/wauIblIcIug9PSPfXbuWP8Xz6p+CoCesMUkk0HurhN7RHuiJjLW3D7wOBR5B4k9Ywk4y9I6O/i9WVY3P5eTk3ApJroZuykhIFg8C/y4Q2/He3tGHLJbjBXRTzBBhg8bxvLw81YBazX8dvi2j63IBqM+S/PycZy2WMWtbW28ldSMIEgdCZk8HD9pMOTn6vXBirqOurEMURYfL5fhES0vdn0D0o766ToZ4eJ57FnoGW6grK4HGTXK73b9Xq6uuM5vZZXPkFZwVY1ep+DMMhnWnqZ2W4KwYnBUTDQEzdpKlt7f331lYWGBJlKiDgLrgdcrj8diOH5/869TUyT/Mzs78Gl6/mpmZ/u3JkyfuB//jcLCOwfumJEn0zv9lfAGRgY5K3gNdXYPP2u0nIxYckqV3dh7dCZ8zGG9RlySZ3LPVDq8fjI1NbhMEV1VdXTFnMJQwgV46nTfX5Zrd6HA43wav30L9DkmS5HsYdDwgPSKdTvdxlWqsi9yQRN2KAnXOz83NJO1iOIIkE7+tYVfXRDnDeJ7TaDQN1KU4IMrTTqfrKUGQbud53rZ5c80puilCZObVVztL1WpNCzRAX9FqdeeBeMaU3QSDNDxzc9Ov27q1vp26gkJE/fDh/i/l5ub+gAgadSsGSX6hIXwWhPzLW7eaepTMTNrbR3M1GvdFsqz6qkajPZtlOZ5uUgyv1ztls/W0vuUtFx8ltlIZO9T7UYfDtTX6uEoNMGPHjD0aVgnNoUOWKhD1zniIusfj7oIu+Icgg+RNpvLCzZtr37dtm2FfbCcfI591VvPYtm3mp1taal9vNpfrT53y5s7NzX1NELxj9E2KAYKzNje34OUjRwbeTV0BAXFRd3UduzcvL++HSoo6fC4Zyvj38eMT5UZjma6pqfoy+P1dSgdva2v5XFPTxic3bdq4E75H43I53wANyAH4/phuRIJG3e10Op53ueYunZ1VVS6IOoIgyrBMbMhFLa1W3w6irthsFzI0MDs7+9XBwU51Y+OGTU1NG+4DARLp5rhA7iyFRuMHZnNFhdvtqACR/z1okWLfCeKu1+t1f+zoGHw/da0Cvo85cMDyZa1WexV1xQwRdEEQHoJXKdTjm0iDRjfFHThm8qZNNc9s2lS9/cSJE8VOp/Of4Qo8GdaB9788NXX67TMzI3nQqOuamzfu2rSp9ql0ugsYQdKFRWEfGJgo1+ly96vVWkWm3UFWJhBBNxpL8rZsqbt1165dAt2UMIgYQcY5CiL/sakpoQC6o/eEK0ahIDODtFr1r6AxbKWuZRw50v/xwsLCW2AfYp7eR/YZMtxniKDX11e8t6Gh8jjdlBTOOqvpRHNzzWVwjHdBV3eSuhchQg6Z/SszMzNvJb0nk6lMC+8/74wzTI+1tqbHUACCpDOLwu5weB6ATL2MmjHhdrs73W7XBiLo8c7Ow4VkhiAuH3W7584BgVRkpgTLcgXQw3mwra1/2ZIJHR39ZRqNdjcLUFfUQJLuBYH8KGTLlyRb0FcCPaIXZmakjS6X+x9wzP8L/16qVrtyiJBDZn9ua6vhCczIESTx+IRn377uD5DbwX2eGPF4PE82NlZtaW6uTdgwQbjMDyfUvcrzuhpB8B6h7pgAAW/S69W3UNM3BAPZ9VfUanXMjSTJfKGX8cGtW433wL6n5MUfItybNm14V1PThgvg36eqq6uddBOCIEmCLHLO6/U5/4/aMQFi+RhklW9PlSw9EGRuM8+7dioh7mSkheP4Kzs7bb71sp9//sD63NyCgGPv4QKiLjidcx/ZvLnuYepCIoIRc3Pzs2omBIIswLz88uF3lpaW/Z3aUQNZ6uFNm2q2pbqoL6Wra7AZRPm/fMyrT8ogxKofm0ylX2xrs32loKDgB3RD1Jw+ferxrVvN70jVTD1eZPKyvZIkd2i1xTuqq9mwezU43RGnO0YDW1RU/EVajhrI+iUQ9i+nk6gTmpo2dELAxyzC0D6qpqenziQ3dTkcs2QN+pgQRdHpcjm+k23BmOmQC+4nT47HfN0FQULBulzOmGfBzM7OdJ95ZtP/UTONYGRRFH4PdbBqZkekrFmzZnNFRcMZxcUlF1BX1Hg8nqGCgoouaiIIgkQEKwhCzMKel5c3RItph04nuDQabcyzTSRJxUHWrodizNMboaE82txcOktNBEGQiCAXT2NeRz2dhwzWr18vs2zs+09mw4iiqEg3W4ljgiBI9sKCKMc8Pc3pdKbtuux2+xTr9QpaakYNy6qknBytE/Q95nnbRUXFre3tdjM1EQRBIoI8PWiClqNGp9Of0dMzciY104rS0vXkQdsGakaNLKvc+flFoydPHn+UuqIGGtvCnByy+iGCIEjksIIgPkvLUQNCpGZZ5uvUTBuGh4dzZFm6EfY/5nFxj8f9r9ratQMMwz0mikJMS97O7w77kX37LDE3OAiCZB8sCNG/aTkmWJZ92/79ve+kZspDxsRPnfJ+GBqkrdQVNaIouaampn8xb/FdYNvny9HDcdw6yNofimb9d8TXgxoUBMngdnuKUuV18OB4C1kxk+4igsQNX6ba0zP8ilqtPtvniQEQS48geC9taKiKuRcQT4iod3QMXKTV6v4FAhrzo+lcLue+oiLd60pL52eyHDpk/1hubu6vGSb2tWLcbvc+t1t449attVPUlXL09h6tYxjNPyVJ/BeI6c8efnhD3+7d0V2QxvXYl4M3KOENStHgEx7ykAYJzkqfJwag8jQ8r36qvd3+VupKOYio9/YOf0qv1z+jhKhLkuxwu52fWRB1gtd76g9wIsV8Ny9Bq9WemZentx46ZGuhrpTiyJGBtzCM9jDUZb1arfmcXq+zXnXVhGCxjI5BwnDb/v09cXsgOIIg/vEJe2ur4cW5udnFhaxiAcRdnZ+f/1h39/Az+/fvT6lpex0d43mdnUf/AQL0CyWyaWgkZK/X/dtt2xr2UZeP7du3e51O16e8Xq+VumICspai3Nz8Qz09I0/Y7faUGJo5eNBSDHX5LDSQj3Ecm0vdPiAGGBD6UugF3rB27bpJq3XMC+9ta2+3vre7uzufvg1BkDixKG6trcbdkLkrdveoRqO+eM2aDXNHjvTfDPqn+CPVIoE84q2nZ+gunU41pdfnvJ26Y8bpdD76l7/83u+SDGTNcsjnLyeP0qOumCBiqVbzl8ly3gnocfwTGilFlliOFItlhAj6UwUFheM6nf51ZL/opoBAw8TDe1vz8wv/rNGsnyZC39ExcPjAAcuVTz+9H68hIIjCLMtaOzs3XOpyOV+gZswQLcrJyb3Jbp9wdnYOPtbZecy3AmKimM/QB+/Jy2NPQ5b+Wdgfjm6KGbfb9SrPO6/evXt3wLG7hoYNhyVJuAjE/SR1xQz5DTyvfjM0UqNdXcf6Dx3q+1C8s/ju7sn8w4f7P2yxjB5nWW4CRPpN4Qh6IIjQQwPbsmbNmvvr6qqnentHujs6BhPywHQEyQaWCfsVVzBiU1P1xS6X+2nqUgTQAMjYdG/V6bQWi2XM2dU19NcjRwbPVDqTJ+PnnZ19NUeODNwGYnFar2dm4HuvUVLQ4VtIpv4Uw8y9obGxcYY6A0LE3eM5YfJ6vR3UpQhEV7Va7ca8vLx7Var8KajXWRDfx7u6ht8fq9ATIe/sHHoPNBwv2Wzjbo1Gns7Nzb2b47j1Mei5X5zOuccZZra1ublascYPQbIdv2cpCCR7+HDfzXl5+Yqs0x4M+C6H0+nYx3Hqx1wux78gw58I50lB/f39utlZVS2I2+Uej/diEPDt4M4B4VFWeZYgSZLsdrt/uWlTNcn+I3rEHrneoNUWfR/284uxXukPF1mW3LCf5HmjY9CwHNFotDNqtdoNXy/Cb+HJHbfQ8yiYf1iIrhx+np5k0/TP4wrsm+h0ur7W3Fxz29K6xFkxy8FZMTgrJhqCVlpX1+CFarX2n1C3OdSVcCRJFGVZRQ4KQ0QnjrodFEEQpkAI3w+Z5b+oKyp6eo5tho7F4xqNppq6sg6oS4vb7bxg82bDOHUtopywSzMzM7PPkwaEulIeOM9kaIxuP/fclpeoSzFhJ0BdeCTJdy6lLJBo/B0a+yv37Hn1UiWEHRp4ko/FdMNgIuB59pK6upL/UDNmQlYayd67u4/dotXq0u7OUiUggQH//cRoLLsh0iw9ECR7Lyys/BLLcjeBGfM6NemCKAon3G7P2+HEfTlQXWbygzbC4cSJia/v2NH8fWoqKuzpwMBA360XX3z2V5XK2NMFSPZebzQWK3b/T8gpf6QL09RU/Q2Wlcs9Hvcr1J3xQE8Bshv5Nwwzu85kKv+iUqJOINMh4TO/L4pThR6Pdzc0HimfUcQCpEwOqMtvezzlFS0tG19Ssi4RBFlN2HO5a2tLxxobN5zrdjsq3G73y9SdUYDAytAVfNHr9Z4PGbrOZCr9pMFgOE03K47ZbHY3NlbebDCU5Lhcs2fD947QTRkB/J4hiJVzoB7z4HVTczOT0Q0YgqQKYQv7Ak1NG0ebmjacx7Jz+tnZuS9ANuaim9ISUZTmQMwfnpubKQOB5aB3srOhoTKhWSV8l7hpU92r8L2VJIt3OOZ+BvUq0M1phSCITtj/n6tUM2saGiqqIVb2wi/EDB1BEkjEwr5AbW2ta8uW2jtNpjI9yeJnZmZ/B2KUNhmZx+OZcru994KwXzQ+vuED5EJeKgwRQBY/3dJSex3Uq/rUqcE1Dsfs7YIgxK3XoASQmU+cOnX8ayoVv6a+vjwX9v+z8z0dFHQESQZRC/tSSBbf2lr3cRAj7fi4LWd6+vR1IEZjdHNKotFo1mi16ms0Gn5fdfWk12Ybd3R0HP1nW5t1V0/PcEqsb7J9+/bTLS11X6qvr1hTV1fMz8xMt4DQ3yMI3hFyqZ++LaGQ7yXf73A47oV9aR0c7FRDT6N0+/amHxgM60gDhGKOIEkm7lecyXzz6Wn5EhDSG1iWa+B5rphuSknIOLsoCj+ur6+8gbpSFlK3U1OCQRTlN2g06ou0Wk0rHNIynudjnmkjCKIbZHzM7fYckSTxaY5jX8jLY3qhpwb++Il3ts+KmZwc/8bZZ7d8j5qqw4eP1kEC0gbHtIC6Mhro/T0Dicwlzz239001NXWPQy9akeQz1VF6VkxSphJ1dMgaSOjVubnsztnZWSMI6ba1a9eeDQJSCOJfQd+WcEDTVS6X+1ebNm24NhNmblgsklanG2JPnjzJDgzMskVF61XQm2LU6hnG682XCwoE2etdI3s8gtzYuE5yuaoks5klw2lJ++1wDJhXXnlFp9HUZMU0t+WMqs444wwXxF5W3UyDKE9KnjwkE3U4uDexLPtVyFS2wb8JWSXS6/U8n59feVllZezPLUUQBEkWaZEVdXR0aBhmXbnX6/y6Xq+/HMRe8QWjXC7XXq9X/Xp8wg2CIOlOWnZ3b7pJZj/4waGKuTnne7Ra3YfUak0zZPVRL/QFot4ty9M7mpubFx+WgSAIkq5kzDgmGU92u4+9URA879brc9+hVvNhXXwTBHFybm7uvG3bjIo8FANBECTZZOwFqptuuol9z3uurpIk9lqNRv1ejuNrVq47IQjCqbm52fO3bTN3UReCIEjak7HC7g+LxaJ1udSXqtXqL4Kob5iaOvn2nTu3HaKbEQRBEARBEARBEARBEARBEARBEATJYrLq4imCIOFjs03cr1LJ76Om4rhcjmMvvXSi/pOf3O6lrph5/vl9l1ZVVT/BANS1DIfDMdDcXGOI97IN7e22Q3l5+U3UDMaLRmPpLlpWjKxYYAdBkMiRZZk8YzhuL8gr+TPOoF+WYciySu3vN698kTqgf6IoKOwIgiAZBg7FIAgSFU8/vfftGzdu/EeQB063Dw4Wn7lrF5Owp4Hddddd6zdt2n4DSJvffZqbm7O+9a0X3wPFhKxg+swzL3+sttb4W2quAjL7F43Gkp3UVAwUdgRBokJJYT940PpqQUFBwIGZ4eGhz69fr/0NwxS+nuPYa0G2L+Q4Pofxrdcu76+rKzkLytLzz7/25qqq6scDCbvTOTfQ3FxrIu+lrkVkWda0t9suLSgovGp2drY1Nze3hm5ahihKHq/X+7JarT6s0zE/q6kp66ObVpEsYcehGARBUgCJjDlzgV6lpWXf0+tL3Dqd9kkQ1Mt4Xp0Hfj/6RQSdYck2fy+QvFV/Y7NNfNNunxD6+ibdIOr/ANe78vLy6uD9fveF5zm9Xq+7GP79giCwdpttXILP+NH8p6UGKOwIgqQ8IOb5tKgoFsvoU9AU3ALFqFeHBbEHVF86eLA3ZZ66hsKOIEhaIUmi2+v1kimN73A6XesXhmHo5rCx24/vYFn2EmquQhRF+Exmh8FQwgiC3CpJ0jDd5JfCwrXvgn9SYngbhR1BkLQAhNXjdM590Ggs0zc0VL61rq740ebm6pPRiDrBYCh6zWgsZYlwk5coTuncbsdbZVl+zOl02EH0VbIsvWq3T8g8z7SDXUn/NOVBYUcQJOUhog7J8K7m5to/gpArNqOFrPja1zf+XZttXOS4NS6tNoc8QPtten0OuYmJjMun5QQTFHYEQVIeSZJfMBpL9lJTEfr7RzfKct6ALDNfJyJO3csgwzGCIBx2Op03qFTyHupOeVDYEQRJecbHR8mYuqLLAIgi+zOe58uouQoQ9QMmUxlfX1+xpbm55g5oANx0U8qDwo4gSMojSSItKUko+ZPrOzuPfaCzc/jtPT3DrzKM6k10QyDOtVhGXrHZxr9L7aSBwo4gSFbCMDJ5ktppaq6C4/g8vV73gE6nfkStVu+g7qDA35wFn3wRNZMGCjuCIFmJwVBi0evLyl0uz7Ug8NPUHRQy1XJ2dua2cN+fLNLyii+CIMmnv79fJ8s5F4ii/wSRZdkTdXVF+5kwZrH09h5vZFnR7y38BFnmXjabi0KK6eDgoF4QtGSf/Gobw7CTRmPxAWquhBkelvVu98mdoigs+/s1a9iXioqKZlf+FlmWA3zP/PuGh4dzHA7+Ap/TDzyvGqutLW2nJoIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCJI1qFT/H6IeRd28R6cMAAAAAElFTkSuQmCC')",a.style.backgroundPosition="right bottom",a.style.backgroundRepeat="no-repeat",a.style.backgroundSize="6%"),r.put("viewportinner",a),r.put("$viewportinner",_.$(a)),!!this._createViewPortCells(t)&&(o.appendChild(a),!0)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createViewPortInner",t.message),!1}},_.QCELL.BasicQCELL.prototype._createFooterRowHeaderInner=function(t){try{var e=this.attr("layoutsize"),r=this.attr("elementpool"),i=_.QCELL.def.css,o=r.get("footerrowheader"),a=t.cloneNode();return a.className+=i.FOOTERROWHEADER_INNER,a.style.width=e.footerrowheader.clientWidth+"px",a.style.height=e.footerrowheader.clientHeight+"px",r.put("footerrowheaderinner",a),r.put("$footerrowheaderinner",_.$(a)),!!this._createFooterRowHeaderCells(t)&&(o.appendChild(a),!0)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createFooterRowHeaderInner",t.message),!1}},_.QCELL.BasicQCELL.prototype._createFooterInner=function(t){try{var e=this.attr("layoutsize"),r=this.attr("elementpool"),i=_.QCELL.def.css,o=r.get("footer"),a=t.cloneNode();return a.className+=i.FOOTER_INNER,a.style.width=e.footer.clientWidth+"px",a.style.height=e.footer.clientHeight+"px",r.put("footerinner",a),r.put("$footerinner",_.$(a)),console.log(a),console.log(o),!!this._createFooterCells(t)&&(o.appendChild(a),!0)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createFooterInner",t.message),!1}},_.QCELL.BasicQCELL.prototype._createCell=function(t,e){var r,i=_.QCELL.def.css;return(r=t.cloneNode()).className+=i.CELL,!0!==this.attr("useall")&&!1!==e&&!0!==this.attr("usetreeall")&&r.setAttribute("tabindex","0"),r},_.QCELL.BasicQCELL.prototype._getHeaderCellSpan=function(t,e,r){var i=_.QCELL.def.css,o=_.$("<span></span>"),a=this._getColHtml(r);return o.addClass(i.COLHEADER_AREA),null!==a&&_._.isFunction(a.header)?(t=a.header(this,e,r,!0===_._.isUndefined(t)?"":t),o.html(t)):o.html(_.QCELL.st.replaceText2HeaderText(t)),o[0].outerHTML},_.QCELL.BasicQCELL.prototype._createEdgeHeaderCells=function(t){try{for(var e,r,i=_.QCELL.def.css,o=this.attr("elementpool"),a=this.attr("cellmatrix").get("row"),s=o.get("edgeheaderinner"),n=this.attr("headerrows"),l=this.attr("headercols"),c=this.attr("rowheight").header,h=this.attr("headercolwidth"),d=this.attr("rowheaders"),u=this.attr("rowheaderstitle"),p=this.attr("rowheaderssort"),g="msie"===_.$.browser.name?0:2,f=this.attr("id"),m=function(t){var e=Number(t.target.getAttribute("data-col"));v._trigger("rowheader_checkbox_all_changed",{status:t.target.checked,col:e})},C=0;C<n;C++){var L=null;a.push([]);for(var b=0;b<l;b++){if(0===C){if((L=this._createCell(t,!1)).style.width=h+"px",L.style.height=c*n+"px",L.style.lineHeight=c*n-g+"px",L.className+=" "+i.CELL_EDGEHEADER+" "+i.CELL_HEADERROWS+" "+i.CELL_HEADERCOLS,L.setAttribute("data-row",0),L.setAttribute("data-col",b),L.setAttribute("id",f+"_cell_0_"+b),L.style.left=h*b+"px","checkbox"===d[b]){var E=document.createElement("input");E.setAttribute("type",d[b]),E.setAttribute("name",this.attr("id")+"_rowheader_col_"+b+"_checkbox_all"),E.setAttribute("data-row",C),E.setAttribute("data-col",b),"checkbox"===d[b]?E.className+=i.CELL_ROWHEADER_CHECKBOX:E.className+=i.CELL_ROWHEADER_RADIO;var v=this;E.onchange=m,L.appendChild(E),"checkbox"===d[b]?L.className+=" "+i.EDGEHEADER_CELL_CHECKBOX:L.className+=" "+i.EDGEHEADER_CELL_RADIO}else if("custom"===d[b])this._setRowheaderCustom(L,0,b);else{if(void 0!==u){var y=u[b];e=document.createElement("span"),r=document.createTextNode(y),e.appendChild(r),L.appendChild(e)}if(void 0!==p){var w=p[b];void 0!==w&&!0===w&&(null===this.attr("defaultsortarea")&&this.attr("defaultsortarea",this._createDefaultSortArea(t),"jquery"),null===this._getQCellCol(b).attr("colsortarea")&&this._getQCellCol(b).attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),L.appendChild(this._getQCellCol(b).attr("colsortarea").get(0)))}}s.appendChild(L)}a[C].push(L)}}return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createEdgeHeaderCells",t.message),!1}},_.QCELL.BasicQCELL.prototype._isBottomPanel=function(t){return!!_.util.hasClass(t,"rt-qc-cell-frozenbottomrows-panel")},_.QCELL.BasicQCELL.prototype._getRowGroupOfDynamicRows=function(t){var e=_.QCELL.def.rowgroup,r=this.attr("frozenrows"),i=this.attr("frozenbottomrows"),o=this.attr("vsinfo").nDynamicRows;return!0===("panel"===this.attr("frozenbottomstyle"))&&o-1===t?e.FROZENBOTTOM:o<r?e.FROZEN:o<r+i?t<r?e.FROZEN:e.FROZENBOTTOM:t<r?e.FROZEN:t>=o-i?e.FROZENBOTTOM:e.NORMAL},_.QCELL.BasicQCELL.prototype._createRowHeaderCells=function(t){try{var e,r=this,i=_.QCELL.def.rowgroup,o=_.QCELL.def.css,a=this.attr("elementpool").get("rowheaderinner"),s=this.attr("cellmatrix").get("row"),n=this.attr("rowheaders"),l=this.attr("headerrows"),c=this.attr("headercols"),h=this.attr("rowheight").data,d=this.attr("layoutsize").rowheader.clientHeight,u=this.attr("headercolwidth"),p=this.attr("vsinfo").nDynamicRows,g=this.attr("currentdata").length,f="panel"===this.attr("frozenbottomstyle"),m=this.attr("id"),C=function(t){var e=Number(t.target.getAttribute("data-row")),i=Number(t.target.getAttribute("data-col"));_._.isNumber(e)&&_._.isNumber(i)&&(r._deselectRow(r._getSelectedRow()),r._clearFocus(),r._selectRow(e,!0))};for(p>g&&(p=g),e=0;e<p;e++){var L=this._getRowGroupOfDynamicRows(e),b=e+l,E=this.attr("paginationinfo");s.push([]),L===i.FROZENBOTTOM&&(b=g+l-(p-e));for(var v=0;v<c;v++){var y,w=this._createCell(t,!1),x=v;w.style.width=u+"px",w.style.height=h+"px",this._getColWordwrap(v)?w.style.whiteSpace="pre-wrap":(w.style.display="flex",w.style.justifyContent="center",w.style.alignItems="center"),w.style.left=u*v+"px",w.className+=" "+o.CELL_ROWHEADER+" "+o.CELL_HEADERCOLS,w.setAttribute("data-row",b),w.setAttribute("data-col",x),w.setAttribute("id",m+"_cell_"+b+"_"+x),w.onclick=C,a.appendChild(w),(this.attr("useall")||this.attr("usetreeall"))&&w.setAttribute("aria-hidden","true"),L===i.FROZENBOTTOM?(w.style.top=d-h*(p-e)+"px",!0===f?(w.className+=" "+o.CELL_FROZENBOTTOMROWS_PANEL,"sequence"!==n[v]&&"reverse"!==n[v]||_.util.textContent(w,void 0!==this._getRowData(b).rt_qc_seq?this._getRowData(b).rt_qc_seq:"")):(w.className+=" "+o.CELL_FROZENBOTTOMROWS,_._.isObject(E)&&_._.isEmpty(E)?"sequence"===n[v]||"reverse"===n[v]?_.util.textContent(w,"reverse"===n[v]?g+l-b:b-l+1):"checkbox"===n[v]||"radio"===n[v]?(y=this._createRowheaderCheckbox(w,b,x,n[v]),w.appendChild(y),"checkbox"===n[v]?w.className+=" "+o.ROWHEADER_CELL_CHECKBOX:w.className+=" "+o.ROWHEADER_CELL_RADIO):"state"===n[v]?w.className+=" "+o.ROWHEADER_STATE_INIT:"custom"===n[v]&&(w.className+=" "+o.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,b,x)):"sequence"===n[v]||"reverse"===n[v]?_.util.textContent(w,"reverse"===n[v]?E.datacount-(E.pageindex-1)*E.pageunit-b+l:b-l+1):"checkbox"===n[v]||"radio"===n[v]?(y=this._createRowheaderCheckbox(w,b,x,n[v]),w.appendChild(y),"checkbox"===n[v]?w.className+=" "+o.ROWHEADER_CELL_CHECKBOX:w.className+=" "+o.ROWHEADER_CELL_RADIO):"state"===n[v]?w.className+=" "+o.ROWHEADER_STATE_INIT:"custom"===n[v]&&(w.className+=" "+o.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,b,x)))):(w.style.top=h*e+"px",_._.isObject(E)&&_._.isEmpty(E)?"sequence"===n[v]||"reverse"===n[v]?_.util.textContent(w,"reverse"===n[v]?g-e:b-l+1):"checkbox"===n[v]||"radio"===n[v]?(y=this._createRowheaderCheckbox(w,b,x,n[v]),w.appendChild(y),"checkbox"===n[v]?w.className+=" "+o.ROWHEADER_CELL_CHECKBOX:w.className+=" "+o.ROWHEADER_CELL_RADIO):"state"===n[v]?w.className+=" "+o.ROWHEADER_STATE_INIT:"custom"===n[v]&&(w.className+=" "+o.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,b,x)):"sequence"===n[v]||"reverse"===n[v]?_.util.textContent(w,"reverse"===n[v]?E.datacount-((E.pageindex-1)*E.pageunit+e):(E.pageindex-1)*E.pageunit+(e+1)):"checkbox"===n[v]||"reverse"===n[v]?(y=this._createRowheaderCheckbox(w,b,x,n[v]),w.appendChild(y),"checkbox"===n[v]?w.className+=" "+o.ROWHEADER_CELL_CHECKBOX:w.className+=" "+o.ROWHEADER_CELL_RADIO):"state"===n[v]?w.className+=" "+o.ROWHEADER_STATE_INIT:"custom"===n[v]&&(w.className+=" "+o.ROWHEADER_CUSTOM,this._setRowheaderCustom(w,b,x)),w.className+=" "+(L===i.FROZEN?o.CELL_FROZENROWS:o.CELL_NORMALROWS)),s[l+e].push(w)}}return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createRowHeaderCells",t.message),!1}},_.QCELL.BasicQCELL.prototype._createRowheaderCheckbox=function(t,e,r,i){i=void 0===i?"checkbox":i;var o=this.attr("rowheadercheckboxclick"),a=document.createElement("input"),s=this._getQCellCol(r).attr("cellinvisible")[e];if(a.setAttribute("type",i),a.setAttribute("name",this.attr("id")+"_rowheader_col_"+r+"_checkbox"),a.setAttribute("data-row",e),a.setAttribute("data-col",r),void 0!==this.attr("rowheaderstitlekey")&&null!==this.attr("rowheaderstitlekey")){var n=this.attr("rowheaderstitlekey");if(n.length>r){var l=this.getRowData(e);if(void 0!==n[r]&&!0===_._.isFunction(n[r])){var c=n[r](e,r,l);void 0!==c&&""!==c&&a.setAttribute("title",c)}void 0!==n[r]&&""!==n[r]&&void 0!==l[n[r]]&&""!==l[n[r]]&&a.setAttribute("title",l[n[r]])}}a.className+="checkbox"===i?_.QCELL.def.css.CELL_ROWHEADER_CHECKBOX:_.QCELL.def.css.CELL_ROWHEADER_RADIO,!0===this._getRowheaderData(e,r)?a.checked=!0:a.checked=!1,_._.isUndefined(o[e])||o[e][r]?a.removeAttribute("disabled"):a.setAttribute("disabled","disabled");var h=this;return a.onchange=function(t){h._trigger("rowheader_checkbox_changed",{status:t.target.checked,row:e,col:r})},_._.isUndefined(s)||(s?_.$(a).css({visibility:"hidden"}):_.$(a).css({visibility:"visible"})),!0===this._getQCellCol(r).attr("celldisabled")[e]&&a.setAttribute("disabled","disabled"),a},_.QCELL.BasicQCELL.prototype._removeEmptymessage=function(){var t=_.QCELL.def.css,e=document.getElementsByClassName(t.EMPTYMESSAGE+"_"+this.getID());if(e.length>0)for(var r=0;r<e.length;r++){e[r].parentNode.removeChild(e[r])}return!0},_.QCELL.BasicQCELL.prototype._createEmptymessage=function(t){var e=_.QCELL.def.css,r=0,i=0,o=this.attr("hsinfo").nDynamicCols,a=this.attr("layoutsize").viewport.clientHeight,s=this.attr("layoutsize").viewport.clientWidth,n=this.attr("rowheaders").length,l=this.attr("emptymessage");for(i=n;i<=o;i++)r+=_._.isUndefined(this._getColWidth(i))?0:this._getColWidth(i);return t.style.width=r>s?"100%":r+"px",t.style.height=a+"px",t.style.lineHeight=a-2+"px",t.className+=" "+e.CELL_VIEWPORT+" "+e.EMPTYMESSAGE+" "+e.EMPTYMESSAGE+"_"+this.getID(),_.util.textContent(t,l),t},_.QCELL.BasicQCELL.prototype._createFooterRowHeaderCells=function(t){try{for(var e=this.attr("elementpool"),r=_.QCELL.def.css,i=e.get("footerrowheaderinner"),o=this.attr("cellmatrix").get("row"),a=this.attr("footerrows"),s=this.attr("rowheight").footer,n=this.attr("headerrows"),l=this.attr("headercols"),c=this.attr("vsinfo").nDynamicRows,h=this.attr("headercolwidth"),d="msie"===_.$.browser.name?0:2,u=0;u<a;u++){o.push([]);for(var p=0;p<l;p++){var g=this._createCell(t);g.style.width=h+"px",g.style.height=s+"px",g.style.lineHeight=s-d+"px",g.className+=" "+r.CELL_FOOTERROWHEADER+" "+r.CELL_FOOTERROWS+" "+r.CELL_HEADERCOLS,g.setAttribute("data-col",p),g.style.left=h*p+"px",g.style.top=s*u+"px",i.appendChild(g),o[n+c+u].push(g)}}return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createFooterRowHeaderCells",t.message),!1}},_.QCELL.BasicQCELL.prototype._createFooterCells=function(t){try{for(var e,r=this.attr("hsinfo"),i=_.QCELL.def.css,o=this.attr("elementpool"),a=this.attr("cellmatrix").get("row"),s=this.attr("footerrows"),n=this.attr("rowheight").footer,l=this.attr("headerrows"),c=this.attr("headercols"),h=this.attr("frozencols"),d=this.attr("vsinfo").nDynamicRows,u=o.get("footerinner"),p="msie"===_.$.browser.name?0:2,g=0;g<s;g++){var f=0;void 0===a[l+d+g]&&a.push([]);for(var m=0;m<r.nDynamicCols;m++){e=this._getColTabindex(m);var C=this._createCell(t,e),L=m+c,b=this._getColWidth(L);C.style.width=b+"px",C.style.height=n+"px",this._getColWordwrap(L)?C.style.whiteSpace="pre-wrap":C.style.lineHeight=n-p+"px",C.style.left=f+"px",C.style.top=n*g+"px",C.className+=" "+(m<h?i.CELL_FROZENCOLS:i.CELL_NORMALCOLS)+" "+i.CELL_FOOTER+" "+i.CELL_FOOTERROWS,C.setAttribute("data-col",L),C.setAttribute("data-footer",!0),u.appendChild(C),a[l+d+g].push(C),f+=parseFloat(b)}}return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._createFooterCells",t.message),!1}},_.QCELL.BasicQCELL.prototype._getColHeaderDragDropArea=function(){if(null===this.attr("colheaderdndarea")){var t=document.createElement("div");this.attr("colheaderdndarea",this._createColHeaderDragDropArea(t),"jquery")}return this.attr("colheaderdndarea").clone(!0).get(0)},_.QCELL.BasicQCELL.prototype._createColHeaderDragDropArea=function(t){var e=_.QCELL.def.css;return _.$(t.cloneNode()).addClass(e.COLHEADER_DRAG_AND_DROP_AREA).on("mousedown",this.attr("eventparam"),(function(r){var i,o,a=r.target,s=r.data.target,n=s.attr("layoutsize"),l=[],c=s.attr("headerrows"),h=s.attr("frozenbottomrows"),d=s.attr("rows"),u=a.parentNode.getAttribute("data-col"),p=0,g=0;s.attr("colmove",!0,"boolean"),s.attr("colmoveexecution",!1,"boolean");var f,m=0;if(s._getQCellCol(u).attr("topmove")){var C=s._getCellDOM(0,Number(u));m=Number(C.getAttribute("data-endcol")),isNaN(m)&&(m=1);for(var L=null,b=0,E=0;E<m;E++){var v=s._getColCellDOMs(Number(u)+E);p=0,g=0;for(var y=0;y<v.length;y++)L=v[y].cloneNode(!0),f=parseInt(L.getAttribute("data-row")),L.style.left=b+"px",L.style.display="block",isNaN(f)?L.style.top=parseInt(L.style.top)+g+"px":f<c?(L.style.top=p+"px",p+=parseInt(L.style.height)):(L.style.top=parseInt(L.style.top)+p+"px",f>=d-h&&(g=parseInt(L.style.top)+parseInt(L.style.height))),l.push(L);b+=s._getColWidth(Number(u)+E)}}else _._.each(s._getColCellDOMs(u),(function(t,e){var r=t.cloneNode(!0);f=parseInt(r.getAttribute("data-row")),r.style.left="0px",r.style.display="block",isNaN(f)?r.style.top=parseInt(r.style.top)+g+"px":f<c?(r.style.top=p+"px",p+=parseInt(r.style.height)):(r.style.top=parseInt(r.style.top)+p+"px",f>=d-h&&(g=parseInt(r.style.top)+parseInt(r.style.height))),l.push(r)}));_._.last(l).style.borderBottomWidth="1px",i=_.$(t.cloneNode()).addClass(e.COLMOVE_SHADOW).attr("data-col",u).css({display:"none"}).append(l).appendTo(document.body),s._getQCellCol(u).attr("topmove")&&i.attr("data-endcol",m),s.attr("colmoveshadow",i,"jquery"),o=_.$(t.cloneNode()).addClass(e.COLMOVELINE).css({display:"none",height:n.colheader.offsetHeight+n.viewport.offsetHeight+n.footer.offsetHeight}).appendTo(s.attr("elementpool").get("container")),s.attr("colmoveline",o,"jquery")}))},_.QCELL.BasicQCELL.prototype._getColResizeArea=function(){if(null===this.attr("colresizearea")){var t=document.createElement("div");this.attr("colresizearea",this._createColResizeArea(t),"jquery")}return this.attr("colresizearea").clone(!0).get(0)},_.QCELL.BasicQCELL.prototype._createColResizeArea=function(t){var e=_.QCELL.def.css,r=0;return _.$(t.cloneNode()).addClass(e.COLRESIZE_AREA).on("mousedown",this.attr("eventparam"),(function(i){i.preventDefault(),r++;var o,a,s=i.target,n=i.data.target,l=n.attr("layoutsize");if(setTimeout((function(){r=0}),400),2===r){var c=_.$(s).parent().attr("data-col"),h=n.attr("headertext")[c],d=n._getColData(c),u=0,p=0,g=0;for(g=0;g<h.length;g++){try{h[g]=void 0===h[g]?"":h[g],h[g]=""+h[g],p=13*h[g].length}catch(t){p=0}p>u&&(u=p)}for(g=0;g<d.length;g++){try{d[g]=void 0===d[g]?"":d[g],d[g]=""+d[g],p=13*d[g].length}catch(t){p=0}p>u&&(u=p)}return c=parseInt(c),u=parseInt(u),void setTimeout((function(){n.setColWidth(c,u)}),0)}n.attr("colresize",!0,"boolean"),o=_.$(t.cloneNode()).addClass(e.COLRESIZELINE).css({display:"none",height:l.colheader.offsetHeight+l.viewport.offsetHeight+l.footer.offsetHeight}).appendTo(n.attr("elementpool").get("container")),n.attr("colresizeline",o,"jquery"),a=_.$(t.cloneNode()).addClass(e.COLRESIZETOOLTIP).css({display:"none"}).appendTo(n.attr("elementpool").get("container")),n.attr("colresizetooltip",a,"jquery")}))},_.QCELL.BasicQCELL.prototype._createInputForm=function(){var t,e,r,i,o=this.attr("elementpool").get("root"),a=this.attr("id"),s=_.QCELL.def,n=this;null!==document.getElementById(s.areaname.INPUTFORM+"-root"+a)&&o.removeChild(document.getElementById(s.areaname.INPUTFORM+"-root"+a)),null!==this.attr("jqDialog")&&this.attr("jqDialog").dialog("destroy"),(i=document.createElement("div")).setAttribute("id",s.areaname.INPUTFORM+"-root"+a),(t=document.createElement("div")).setAttribute("id",s.areaname.INPUTFORM+"-"+a),t.className+=s.css.INPUTFORM_INNER;var l,c=document.createElement("form"),h=document.createElement("fieldset"),d=this.attr("headercols"),u=this.attr("cols"),p=this.attr("headerrows");for(l=d;l<u;l++){var g,f=document.createElement("label"),m=document.createTextNode(this._cellValue(p-1,l)),C=this._getKeyOfCol(l);switch(r=a+"_"+C+"_"+this.getColID(l),this._getColType(l)){case"input":g=document.createElement("input");break;case"checkbox":(g=document.createElement("input")).setAttribute("type","checkbox");break;case"textarea":g=document.createElement("textarea");break;case"datepicker":(g=document.createElement("input")).setAttribute("type","date");break;case"image":g=document.createElement("img");break;case"selectmenu":g=document.createElement("select");for(var L,b,E,v=this._getColElement(l)._getDataArray(),y=0;y<v.length;y++)L=document.createElement("option"),b=v[y].label,E=v[y].value,L.setAttribute("value",E),L.innerHTML=b,_.$(g).append(L),L=null;break;default:g=document.createElement("output")}g.setAttribute("name",r),g.setAttribute("id",r),g.className+=s.css.INPUTFORM_ITEM,f.appendChild(m),f.setAttribute("for",r),f.className+=s.css.INPUTFORM_HEADER,h.appendChild(f),h.appendChild(g),h.appendChild(document.createElement("br"))}t.setAttribute("title","Input Form"),c.appendChild(h),t.appendChild(c);var w=document.createElement("input");w.setAttribute("type","submit"),w.setAttribute("tabindex","-1"),i.appendChild(t),o.appendChild(i);var x=_.$(t).dialog({autoOpen:!1,height:"auto",width:"80%",modal:!0,buttons:{적용:function(){var t=n.attr("inputformdata");if(null!==t&&-1!==n.attr("inputformdatarow")&&null!==n.attr("inputformdatarow")){for(l=d;l<u;l++){var e=n._getKeyOfCol(l);r=a+"_"+e+"_"+n.getColID(l);var i=document.getElementById(r),o=_.$(i).val();if("checkbox"===n._getColType(l))i.checked!==t[e]&&n.setCellDataEx(n.attr("inputformdatarow"),e,i.checked);else{if("datepicker"===n._getColType(l))o=_.util.replaceAll(o,"-","");else if("image"===n._getColType(l))continue;_._.isNumber(t[e])?t[e]!==parseInt(o)&&n.setCellDataEx(n.attr("inputformdatarow"),e,parseInt(o)):t[e]!==o&&n.setCellDataEx(n.attr("inputformdatarow"),e,o)}}n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean"),n.attr("jqDialog").dialog("close")}},취소:function(){n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean"),n.attr("jqDialog").dialog("close")}},beforeClose:function(){n.attr("inputformdatarow",-1,"number"),n.attr("inputformdata",null,"object"),n.attr("isInputForm",!1,"boolean")},close:function(){e[0].reset(),setTimeout((function(){n.onResize()}),0)}});e=x.find("form").on("submit",(function(t){t.preventDefault()})),this.attr("jqDialog",x,"jquery")},_.QCELL.BasicQCELL.prototype._initData=function(){var t=!0;try{var e=this.attr("onloadurl"),r=this;if(!1===_._.isUndefined(e)&&!1===_._.isNull(e)&&_._.isString(e))if(!0!==this.attr("bLoadurlstop"))setTimeout((function(){_.$.ajaxSetup({async:!1});var t=function(t){var e=null;if(_._.isArray(t))e=t;else if(_._.isObject(t)){var i=[];i.push(t),e=i}else try{e=JSON.parse(t)}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._initData",t.message),e=[]}null!==r.attr("onloadurlsucesscallback")&&_._.isFunction(r.attr("onloadurlsucesscallback"))&&(e=r.attr("onloadurlsucesscallback")(e)),r._setColsDataType(e),r._setCurrentData(e,!0),r.attr("original")&&r.attr("origindata",_.$.extend(!0,[],JSON.parse(t)),"array")},i=function(){null!==r.attr("onloadurlfailcallback")&&_._.isFunction(r.attr("onloadurlfailcallback"))&&r.attr("onloadurlfailcallback")()};null!==r.attr("onloadurlparam")?_.$.post(e,r.attr("onloadurlparam"),t).fail(i):_.$.post(e,t).fail(i)}),0);else{var i=this.attr("arrBackupData");_._.isArray(i)&&(this._setColsDataType(i),this._updateCurrentData(i),this.attr("arrBackupData",null,"array"),this.attr("idxinfo",this.attr("objBackupIdx"),"object"),this.attr("deletedrowsdata",this.attr("arrBackupDeletedrowsdata"),"array"),this.attr("objBackupIdx",null,"object"),this.attr("arrBackupDeletedrowsdata",null,"array"),i=[])}else{var o=!0===this.attr("bLoadurlstop")?this.attr("arrBackupData"):this.attr("data").input;this._setColsDataType(o),this._updateCurrentData(o),!0===this.attr("bLoadurlstop")&&(this.attr("arrBackupData",null,"array"),this.attr("idxinfo",this.attr("objBackupIdx"),"object"),this.attr("deletedrowsdata",this.attr("arrBackupDeletedrowsdata"),"array"),this.attr("objBackupIdx",null,"object"),this.attr("arrBackupDeletedrowsdata",null,"array"),this.attr("bLoadurlstop",!1,"boolean")),this.attr("original")&&this.attr("origindata",_.$.extend(!0,[],this.attr("data").input),"array")}t=!0,this.attr("bLoadurlstop",!1,"boolean")}catch(e){_.QCELL.log("err","QCELL.BasicQCELL._initData",e.message),t=!1}finally{_.$.ajaxSetup({async:!0})}return t},_.QCELL.BasicQCELL.prototype._updateCurrentData=function(t){this.removeAttr("currentdata");var e,r=this.getID();if(!_._.isEmpty(t)&&_._.isArray(t)&&0!==t.length)setTimeout((function(){try{null!=(e=_.QCELL.getInstance(r))&&e._removeEmptymessage()}catch(t){return!1}})),!0===this.attr("makefrozenbottomdata")&&(!0!==t[t.length-1].rt_qc_fbrd?(t.push({rt_qc_fbrd:!0}),setTimeout((function(){try{null!=(e=_.QCELL.getInstance(r))&&e._trigger("frozendatacreated")}catch(t){return!1}}),0)):setTimeout((function(){try{null!=(e=_.QCELL.getInstance(r))&&e._trigger("frozendataupdated")}catch(t){return!1}}),0));else if(_._.isEmpty(t)||_._.isArray(t)||0===t.length){var i=this.attr("emptymessage");_.$.trim(i).length>0&&!1!==this.attr("useemptymessage")&&setTimeout((function(){try{if(null!=(e=_.QCELL.getInstance(r))){e._removeEmptymessage();var t,i=document.createElement("div"),o=e.attr("elementpool").get("viewportinner");t=e._createEmptymessage(i),o.appendChild(t)}}catch(t){return!1}}))}this.attr("currentdata",void 0!==t&&_._.isArray(t)?t:[],"array"),this.attr("rows",this.attr("headerrows")+this.attr("currentdata").length,"number"),this._setVSRange(),setTimeout((function(){if(null!=(e=_.QCELL.getInstance(r))){var t=e.getCustomPanel();e.resetCustomPanel(t)}}))},_.QCELL.BasicQCELL.prototype._setCurrentData=function(t,e,r){if(_._.isArray(t)){var i,o,a=this,s=this.attr("hsinfo"),n=this.attr("vsinfo"),l=n.bVScroll;if(i=this.attr("currentdata").length,this._updateCurrentData(t),this._initRowheaderData(),o=this.attr("currentdata").length,this._clearFocus(),this._clearSelection(),this._clearCellStyles(),i<o?this._makeRowUI(o-i,r):i>o&&this._removeRowUI(i-o,r),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._refreshDRs(),l!==n.bVScroll)!0===(!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate")).grouped?this._refreshDCs():this.resize();return e&&(s.bHScroll&&0!==s.nPos&&setTimeout((function(){a._scrollLeft(s.nStartCol)}),200),n.bVScroll&&0!==n.nPos&&setTimeout((function(){a._scrollTop(n.nStartRow)}),200)),!0}return!1},_.QCELL.BasicQCELL.prototype._setData=function(t){this.getID();return!!_._.isArray(t)&&(this.attr("data").input=t,this.attr("isResizing",!1,"boolean"),this._rebuild(),!1===_._.isEmpty(this.attr("paginationinfo"))&&(this.attr("bRebuildWithPrevData",!0,"boolean"),this._movePage(1),this.attr("bRebuildWithPrevData",!1,"boolean")),!0!==this.attr("event_datachanged")&&(this.attr("event_datachanged",!0,"boolean"),this._trigger("datachanged"),this.attr("event_datachanged",!1,"boolean")),!0)},_.QCELL.BasicQCELL.prototype._getRowData=function(t){var e=this.attr("currentdata")[t-this.attr("headerrows")];return void 0!==e&&(e=_._.clone(e)),e},_.QCELL.BasicQCELL.prototype._getRowDataWithFormat=function(t){var e=this.attr("currentdata")[t-this.attr("headerrows")];if(void 0!==e)for(var r in e=_._.clone(e)){var i=this.getColsOfKey(r);i.length>0&&(e[r]=this._getCellLabel(t,i[0]))}return e},_.QCELL.BasicQCELL.prototype._setRowData=function(t,e){var r,i=this,o=!1;this.attr("currentdata")[t-this.attr("headerrows")]=e=_._.clone(e);for(var a=this.attr("headercols"),s=this.attr("cols");a<s&&(r=void 0===e[this._getKeyOfCol(a)]?"":e[this._getKeyOfCol(a)],!1!==(o=this._cellValue(t,a,r)));a++);return setTimeout((function(){i._trigger("rowdatachanged")}),0),o},_.QCELL.BasicQCELL.prototype._setRowDataEx=function(t,e){var r,i=this,o=!1;this.attr("currentdata")[t-this.attr("headerrows")]=e=_._.clone(e);for(var a=this.attr("headercols"),s=this.attr("cols");a<s;a++){r=void 0===e[this._getKeyOfCol(a)]?"":e[this._getKeyOfCol(a)];var n=void 0!==a?i._getColFormat(a):void 0;if(o=this._cellValue(t,a,r),void 0===n||!0!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_header&&!0!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_footer||(r=this._showDataFormat(t,a,r),e[this._getKeyOfCol(a)]=r),!1===o)break}return setTimeout((function(){i._trigger("rowdatachanged")}),0),o},_.QCELL.BasicQCELL.prototype._getColData=function(t,e){var r=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),i=r.grouped?r.columnsinfo.keys(!0)[0]:"",o=_._.pluck(this.attr("currentdata"),this._getKeyOfCol(t));if(!0===e&&r.grouped&&i===this._getColID(t))for(var a,s=this.attr("currentdata"),n=0;n<s.length;n++){var l=s[n],c=o[n];if(void 0===l)return;if(void 0===(a=l[r.level]))return[];var h=r.columnsinfo,d=h.keys(!0),u="",p=!1,g="";"parentchild"===r.mode?(p=h.get(d[0]).showLabel,g=h.get(d[0]).label,u=-1===this._getKeyOfColID(d[0])?d[0]:this._getKeyOfColID(d[0])):(p=h.get(d[a-1]).showLabel,g=h.get(d[a-1]).label,u=-1===this._getKeyOfColID(d[a-1])?d[a-1]:this._getKeyOfColID(d[a-1]),void 0===p&&(p=!0),void 0===g&&(g=u)),!0===p&&(c=l[g]),void 0===c&&(c=""),o[n]=c}return o},_.QCELL.BasicQCELL.prototype._setColData=function(t,e){for(var r=!0,i=this.attr("headerrows"),o=this.attr("currentdata").length,a=0,s=e.length;a<s&&!(!1===r||a>=o);a++)r=this._cellValue(a+i,t,e[a]);return r},_.QCELL.BasicQCELL.prototype._getCellLabel=function(t,e,r){return this._showDataFormat(t,e,this._cellValue(t,e),r)},_.QCELL.BasicQCELL.prototype._setCellLabel=function(t,e,r){var i=!1,o=this._getCellDOM(t,e);try{this._cellValue(t,e,r),null!==o&&_.util.textContent(o,r),i=!0}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._setCellLabel",t.message),i=!1}return i},_.QCELL.BasicQCELL.prototype._showProgressUI=function(t,e){var r=_.QCELL.def.css,i=this.attr("parent"),o=_.$(i).attr("id"),a=_.$(i).parent(),s=_.$(document.createElement("div")).attr("id",r.PROGRESS_UI).addClass(r.PROGRESS_UI).css({width:_.$(i).css("width"),height:_.$(i).css("height")});t?_.$(a).find("#"+o).before(s):_.$(a).find("."+r.PROGRESS_UI).fadeOut(void 0===e?500:e,(function(){_.$(this).remove()}))},_.QCELL.BasicQCELL.prototype._resetData=function(){var t=!1;try{this.attr("original")&&this._setData(_.$.extend(!0,[],this.attr("origindata"))),t=!0}catch(e){_.QCELL.log("err","QCELL.BasicQCELL._resetData",e.message),t=!1}return t},_.QCELL.BasicQCELL.prototype._getFocusRowData=function(){var t=this._getIdxInfo("focus","row"),e=t.current>-1?t.current:-1;return-1===e?{}:this._getRowData(e)},_.QCELL.BasicQCELL.prototype._checkData=function(t){var e,r=this.attr("currentdata");if(t.length!==r.length)return!1;if(0===t.length)return!1;for(e=0;e<t.length;e++)if(!_._.isEqual(t[e],r[e]))return!1;return!0},_.QCELL.BasicQCELL.prototype._findRowSub=function(t,e,r){var i,o=this.getRows();for(i=e;i<o;i++)if(this.getRowData(i)[r]===t)return i;return-1},_.QCELL.BasicQCELL.prototype._getColStyleEditorArea=function(){if(null===this.attr("colstyleeditorarea")){var t=document.createElement("div");this.attr("colstyleeditorarea",this._createColStyleEditorArea(t),"jquery")}return this.attr("colstyleeditorarea").clone(!0).get(0)},_.QCELL.BasicQCELL.prototype._createColStyleEditorArea=function(t){var e=_.QCELL.def.css;return _.$(t.cloneNode()).addClass(e.EDITOR_AREA).on("mousedown",this.attr("eventparam"),(function(t){var r=t.target,i=t.data.target,o=parseInt(r.parentNode.getAttribute("data-col")),a=document.createElement("div"),s=document.createElement("textarea"),n=a.cloneNode(),l=i.attr("id")+"_"+o+"_colStyleEditorArea",c=i.attr("id")+"_"+o+"_colStyleEditorWrap";if(i._getQCellCol(o).attr("colstyleeditorvisivle"))i._removeColStyleEditor(o);else{i._allRemoveColStyleEditor(),_.$(this).addClass(e.EDITOR_AREA_HOVER),i._getQCellCol(o).attr("colstyleeditorvisivle",!0,"boolean"),s.style.width="606px",s.style.height="306px",s.setAttribute("id",l),s.value=i._getQCellCol(o).attr("colstyleeditorbdata"),n.appendChild(s),n.setAttribute("id",c),_.util.addClass(n,e.COLSTYLEEDITOR_WRAP),_.$(n).appendTo(i.attr("elementpool").get("container"));var h=document.getElementById(l);window.sceditor.create(h,{locale:"ko",plugins:"undo",format:"xhtml",icons:"monocons",style:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/themes/content/default.min.css",emoticonsRoot:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/",toolbar:"bold,italic,underline,strike,subscript,superscript,left,center,right,justify,font,size,color,removeformat,cut,copy,paste,pastetext,source",fonts:"Arial,Arial Black,Comic Sans MS,Courier New,Georgia,Impact,Sans-serif,Serif,Times New Roman,Trebuchet MS,Verdana, NanumGothic, Dotum"}),_.$(n).css(i._calculateColStyleEditorPosition(t,606,306));var d=window.sceditor.instance(h);i.attr("colstyleeditorui",_.$(n),"jquery"),i.attr("colstyleeditor",d,"object"),window.sceditor.instance(h).keyPress((function(t){i._colStyleEditorOnKeyDown(t,i,o)}),!1,!0).keyUp((function(t){i._colStyleEditorOnKeyUp(t,i,o)})),window.sceditor.instance(h).keyPress((function(t){i._colStyleTextAreaOnKeyDown(t,i,o)}),!0,!1).keyUp((function(t){i._colStyleTextAreaOnKeyUp(t,i,o)}),!0,!1)}}))},_.QCELL.BasicQCELL.prototype._colStyleTextAreaOnKeyDown=function(t,e,r){var i=t.keyCode,o=e.attr("colstyleeditor"),a=e._getQCellCol(r);i!==_.def.key.ENTER&&i!==_.def.key.TAB||(a.attr("colstyleeditordata",o.getSourceEditorValue(),"string"),e._hideColStyleEditor(r,"save",o),t.stopPropagation(),t.preventDefault())},_.QCELL.BasicQCELL.prototype._colStyleTextAreaOnKeyUp=function(t,e,r){var i=t.keyCode,o=e.attr("colstyleeditor"),a=e._getQCellCol(r);!1===t.altKey?i===_.def.key.ENTER||i===_.def.key.TAB?(a.attr("colstyleeditordata",o.getSourceEditorValue(),"string"),e._hideColStyleEditor(r,"save",o),t.stopPropagation(),t.preventDefault()):i===_.def.key.ESC&&e._hideColStyleEditor(r,"cancel",o):i!==_.def.key.ENTER&&10!==i||o.sourceEditorInsertText("\r")},_.QCELL.BasicQCELL.prototype._colStyleEditorOnKeyDown=function(t,e,r){var i=t.keyCode,o=e.attr("colstyleeditor"),a=e._getQCellCol(r);if(i===_.def.key.ENTER||i===_.def.key.TAB){var s=o.getWysiwygEditorValue();o.setSourceEditorValue(s),a.attr("colstyleeditordata",o.getSourceEditorValue(s),"string"),e._hideColStyleEditor(r,"save",o),t.stopPropagation(),t.preventDefault()}},_.QCELL.BasicQCELL.prototype._colStyleEditorOnKeyUp=function(t,e,r){var i=t.keyCode,o=e.attr("colstyleeditor"),a=e._getQCellCol(r);if(!1===t.altKey)if(i===_.def.key.ENTER||i===_.def.key.TAB){var s=o.getWysiwygEditorValue();o.setSourceEditorValue(s),a.attr("colstyleeditordata",o.getSourceEditorValue(s),"string"),e._hideColStyleEditor(r,"save",o),t.stopPropagation(),t.preventDefault()}else i===_.def.key.ESC&&e._hideColStyleEditor(r,"cancel",o);else if(i===_.def.key.ENTER||10===i){t.stopPropagation(),t.preventDefault();var n=o.getRangeHelper();if("msie"===_.$.browser.name){var l=document.createElement("br");n.insertNode(l);for(var c=l.parentNode.childNodes,h=0,d=0;d<c.length;d++)c[d].isEqualNode(l)&&h++;1===h&&n.insertNode(l.cloneNode())}else n.insertHTML("<br><br>")}},_.QCELL.BasicQCELL.prototype._calculateColStyleEditorPosition=function(t,e,r){var i=t.target,o=t.data.target,a=o.attr("layoutsize").viewport.offsetLeft,s=i.parentNode.offsetLeft+a,n=o.attr("layoutsize").viewport.offsetTop,l=parseInt(i.parentNode.getAttribute("data-col")),c=this._getColWidth(l);return{left:s+e>o.attr("layoutsize").root.offsetWidth?s+c-e+"px":s+"px",top:n+"px"}},_.QCELL.BasicQCELL.prototype._allRemoveColStyleEditor=function(){for(var t=this.attr("cols"),e=this.attr("headercols");e<t;e++)this._getQCellCol(e).attr("colstyleeditorvisivle")&&this._removeColStyleEditor(e)},_.QCELL.BasicQCELL.prototype._removeColStyleEditor=function(t){var e=_.QCELL.def.css;_.$("."+e.EDITOR_AREA).removeClass(e.EDITOR_AREA_HOVER),this.attr("colstyleeditorui").remove(),this.attr("colstyleeditorui",null,"jquery"),this._getQCellCol(t).attr("colstyleeditorvisivle",!1,"boolean")},_.QCELL.BasicQCELL.prototype._hideColStyleEditor=function(t,e,r){if("save"===e){var i=this._getQCellCol(t),o="QCELL_COL_DATA";i.attr("colstyleeditordata").indexOf(o)>-1&&-1===i.attr("colstyleeditordata").replace(o,"").indexOf(o)&&(i.attr("colstyleeditorbdata",i.attr("colstyleeditordata"),"string"),"normal"===_.QCELL.module&&this.attr("qcellcols")[t].attr("colelement").attr("editcellcol",!1,"boolean"),this._refresh())}r.destroy(),this._removeColStyleEditor(t)},_.$(window).on("resize."+_.QCELL.name,_._.debounce((function(t){_._.each(_.QCELL.getInstanceIDs(),(function(e){_.QCELL.getInstance(e)._defaultAction(t)}))}),300)),_.QCELL.BasicQCELL.prototype.onFocusIn=function(t){if(_.$(t.target).hasClass("rt-qc-container")){var e,r,i,o=this.getIdx("row","focus");if(this.getRows()-this.attr("headerrows")<=0)return;if(-1===o)return;if(r=o,i=this.getIdx("col","focus"),null===(e=this._getCellDOM(r,i))){var a=this.getID();return this._scrollToFocusCell(r,i),void setTimeout((function(){var t=_.QCELL.getInstance(a);if(null!=t)if(null!==(e=t._getCellDOM(r,i)))t._focusCell(r,i),_.$(e).focus();else{var o="container-"+a,s=document.getElementById(o);null!=s&&s.focus()}}),300)}null!==e&&(this._focusCell(r,i),_.$(e).focus())}},_.QCELL.BasicQCELL.prototype._getEventTarget=function(t){try{var e,r=this.attr("elementpool");switch(t){case"mousewheel":case"DOMMouseScroll":e=r.get("$edgeheader").add(r.get("$colheader")).add(r.get("$rowheader")).add(r.get("$viewport"));break;case"resize":e=_.$(window);break;default:e=r.get("$container")}return e}catch(t){return null}},_.QCELL.BasicQCELL.prototype._initEvent=function(){var t,e,r=this.attr("elementpool"),i=this;if(_._.isFunction(r.containsKey)&&r.containsKey("$sheetpanel")&&r.containsKey("$edgeheader")&&r.containsKey("$colheader")&&r.containsKey("$rowheader")&&r.containsKey("$viewport")){var o=this.attr("id"),a=this.attr("eventparam"),s=this._getEventTarget("mousewheel");return null!==s&&s.on("mousewheel DOMMouseScroll",a,_.st.eventProcess),null!==(s=this._getEventTarget("default"))&&s.on("mousedown mouseup click dblclick mouseenter mouseleave mousemove mouseover keydown change focusin",a,_.st.eventProcess),"msedge"!==_.$.browser.name&&"msie"!==_.$.browser.name&&r.get("$root").on("selectstart",(function(t){return!1})),_.util.isMobile()&&(this._createInputForm(),r.get("$root").swipe({swipeDown:function(t,e,r,o,a,s,n){i.onSwipe(t,e,r,o,a,s)},swipeUp:function(t,e,r,o,a,s,n){i.onSwipe(t,e,r,o,a,s)},swipeRight:function(t,e,r,o,a,s,n){i.onSwipe(t,e,r,o,a,s)},swipeLeft:function(t,e,r,o,a,s,n){i.onSwipe(t,e,r,o,a,s)},longTab:function(t,e){i.onLongTab(t,e)},tab:function(t,e){i.onTab(t,e)},threshold:25})),_.$(r.get("$sheetpanel")).on("selectstart",(function(t){return r.get("$root").off("selectstart"),!0})).off("selectstart",(function(t){return r.get("$root").on("selectstart",(function(t){return!1})),!1})),_.$(document).on("mouseup."+o,a,(function(r){var i=r.data.target,o=i.attr("vsinfo").nTopRow;if(i){if(i.attr("dragging")){var a,s,n=_.QCELL.def.css,l=r.target;if(_.util.hasClass(l,n.CELL_VIEWPORT))a=parseInt(l.getAttribute("data-row")),s=parseInt(l.getAttribute("data-col")),i._updateIdx("drag",a,s);i.onDrop(r)}if(i.attr("colmove")){var c=i.attr("colmoveshadow"),h=i.attr("colmoveline");if(i.attr("colmoveexecution")){var d=parseInt(h.attr("data-beforecol")),u=parseInt(h.attr("data-aftercol"));i._moveCols(d,1,u,!1)}null!==c&&(c.remove(),i.attr("colmoveshadow",null,"jquery")),null!==h&&(h.remove(),i.attr("colmoveline",null,"jquery")),t=i.getID(),!0===i.attr("makefrozenbottomdata")&&(e=i.attr("currentdata"),!_._.isEmpty(e)&&_._.isArray(e)&&0!==e.length&&(!0!==e[e.length-1].rt_qc_fbrd?(e.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(i=_.QCELL.getInstance(t))&&i._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(i=_.QCELL.getInstance(t))&&i._trigger("frozendataupdated")}),0)))}if(i.attr("colresize")){var p=i.attr("colresizeline"),g=i.attr("colresizetooltip"),f=parseInt(p.attr("data-targetcol")),m=parseInt(p.attr("originleft")),C=i._getColWidth(f);i._setColWidth(f,C+(parseInt(p.css("left"))-m)),null!==p&&(p.remove(),i.attr("colresizeline",null,"jquery")),null!==g&&(g.remove(),i.attr("colresizetooltip",null,"jquery")),i._scrollTop(o),t=i.getID(),!0===i.attr("makefrozenbottomdata")&&(e=i.attr("currentdata"),!_._.isEmpty(e)&&_._.isArray(e)&&0!==e.length&&(!0!==e[e.length-1].rt_qc_fbrd?(e.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(i=_.QCELL.getInstance(t))&&i._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(i=_.QCELL.getInstance(t))&&i._trigger("frozendataupdated")}),0)))}i.attr("colmove",!1,"boolean"),i.attr("colresize",!1,"boolean"),i.attr("mousedown",!1,"boolean"),i.attr("istopmove",!1,"boolean")}})).on("mousemove."+o,a,(function(t){var e=t.data.target;if(e&&e.attr("colmove")){var r=e.attr("layoutsize"),i=e.attr("colmoveshadow"),o=parseInt(i.attr("data-col"));if(null!==i){var a=e._getColWidth(o);if(e._getQCellCol(o).attr("topmove")){e.attr("istopmove",!0,"boolean");var s=i.attr("data-endcol");a=0;for(var n=0;n<s;n++)a+=e._getColWidth(o+n)}"none"===i.css("display")&&i.css({display:"block",width:a+"px",height:r.container.offsetHeight+"px"}),i.css({left:t.clientX+5+"px",top:t.pageY+"px"})}}})),this._bindUserEvents(),!0}return!1},_.QCELL.BasicQCELL.prototype._defaultAction=function(t){switch(t.type){case"mousewheel":case"DOMMouseScroll":this.onMouseWheel(t);break;case"mousedown":this.onMouseDown(t);break;case"mouseup":this.onMouseUp(t);break;case"click":this.onClick(t);break;case"dblclick":this.onDblClick(t);break;case"mouseenter":this.onMouseEnter(t);break;case"mouseleave":this.onMouseLeave(t);break;case"mousemove":this.onMouseMove(t);break;case"keydown":this.onKeyDown(t);break;case"resize":this.onResize(t);break;case"focusin":this.onFocusIn(t)}},_.QCELL.BasicQCELL.prototype._bindUserEvents=function(){var t=this;return _.$.each(this.attr("usereventinfo"),(function(e,r){t._bind(e,r,!1)})),!0},_.QCELL.BasicQCELL.prototype._getUserEventName=function(t){var e=_.s(t).trim().toLowerCase().value();if("resize"===e)e+="."+this.attr("id")+".user";else e+=".user";return e},_.QCELL.BasicQCELL.prototype.getParameter=function(t){return this.attr("eventparam_"+t)},_.QCELL.BasicQCELL.prototype._bind=function(t,e,r,i){if(""!==t&&_._.isFunction(e)){var o,a=this.attr("usereventinfo"),s=this.attr("eventparam"),n=_.s(t).trim().value().replace(/\s\s+/g," ").split(" ");if(n.length>0){for(var l=0,c=n.length;l<c;l++){var h=this._getEventTarget(n[l]),d=this._getUserEventName(n[l]);if(!_._.isUndefined(i)&&_._.isObject(i)){for(o in i)s[o]=i[o];this.attr("eventparam_"+t,i,"object")}_.QCELL.config.usebuttonclickcallback&&"buttonclick.user"===d?this.attr("buttonclickcallback",e,"function"):null!==h&&h.off(d).on(d,s,e),r&&(a[n[l]]=e)}return!0}}return!1},_.QCELL.BasicQCELL.prototype._unbind=function(t,e){if(""!==t){var r=this.attr("usereventinfo"),i=_.s(t).trim().value().replace(/ +/g," ").split(" ");if(i.length>0){for(var o=0,a=i.length;o<a;o++){var s=this._getEventTarget(i[o]),n=this._getUserEventName(i[o]);null!==s&&s.off(n),e&&delete r[i[o]]}return!0}}return!1},_.QCELL.BasicQCELL.prototype._trigger=function(t,e){var r=!1;try{var i=this._getEventTarget("default");if(null===i)return r;if("redrawed"===t){var o=this;setTimeout((function(){i.trigger(o._getUserEventName(t))}))}else void 0===e?i.trigger(this._getUserEventName(t)):i.trigger(this._getUserEventName(t),e),r=!0}catch(e){_.QCELL.log("err","QCELL.BasicQCELL.prototype._trigger","event=["+t+"] message=["+e.message+"]")}return r},_.QCELL.BasicQCELL.prototype._filedowntrigger=function(t,e){return this._getEventTarget("default").trigger({type:t,filedownresult:e}),!0},_.QCELL.BasicQCELL.prototype._orderbyExportInfo=function(t,e){var r,i=[],o=this.attr("rowheaders").length;if(o>0)for(r=0;r<o;r++)i.push(t[r]);for(r=0;r<e.length;r++){var a=Number(e[r]);i.push(_._.clone(t[a]))}return i},_.QCELL.BasicQCELL.prototype._exportCellInfoURLHuge=function(t){var e,r,i,o,a,s,n,l,c,h={},d=[],u=[],p=[],g=this.attr("cols"),f=this.attr("colwidthsperpixel"),m=this.attr("headertext"),C=this.attr("qcellcols"),L=this.attr("colkeys"),b=this.attr("layoutsize").colheader.clientWidth,E=[],v=[],y=this.attr("rowheaders").length,w=null;try{if(t.huge=!0,t.label=!0,t.border=!0,t.headershow=!0,t.colwidth=!0,t.progressui=!0,h.header={},h.header.title=[],h.header.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).header,h.data={},h.data.colskey=[],h.data.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).data,h.data.data=[{}],h.style=[],h.widths=[],!1===_._.isUndefined(t)&&!1===_._.isUndefined(t.orderColumns)&&_._.uniq(t.orderColumns).length===g-y&&(m=this._orderbyExportInfo(m,t.orderColumns),L=this._orderbyExportInfo(L,t.orderColumns),f=this._orderbyExportInfo(f,t.orderColumns)),!1===_._.isUndefined(t)&&!1===_._.isUndefined(t.delColumns)){var x=_._.clone(t.delColumns);for(x.sort().reverse(),g-=x.length,e=0;e<x.length;e++){var k=Number(x[e]);m.splice(k,1),L.splice(k,1),f.splice(k,1)}}if(!1===_._.isUndefined(t)&&!1===_._.isUndefined(t.addColumns)){for(g+=t.addColumns.length,a=0,s=t.addColumns.length;a<s;a++)_._.isUndefined(t.addColumns[a].position)?v.push(_.$.extend(!0,[],t.addColumns[a])):E.push(_.$.extend(!0,[],t.addColumns[a]));if(_._.isEmpty(E)||(E=_._.sortBy(E,"position")),E.length>0)for(a=0,s=E.length;a<s;a++)m.splice(Number(E[a].position),0,E[a].title),L.splice(Number(E[a].position),0,E[a].key),c=_._.isUndefined(E[a].width)?100:(c=E[a].width).indexOf("%")>-1?Math.ceil(b*(Number(c.replace("%",""))/100)):Number(c),f.splice(Number(E[a].position),0,c);if(v.length>0)for(n=0,l=v.length;n<l;n++)m.push(v[n].title),L.push(v[n].key),c=_._.isUndefined(v[n].width)?100:(c=v[n].width).indexOf("%")>-1?Math.ceil(b*(Number(c.replace("%",""))/100)):Number(c),f.push(c)}if(y>0){for(e=y;e<m.length;e++)for(d.push([]),r=0;r<m[e].length;r++)d[e-y].push(m[e][r]);for(e=0,i=d[0].length;e<i;e++){for(r=0,o=d.length;r<o;r++)u.push(d[r][e]);p.push(_.$.extend(!0,[],u)),u.RT_clear()}for(h.header.title=_.$.extend(!0,[],p),d.RT_clear(),d=null,p.RT_clear(),p=null,u.RT_clear(),u=null,e=y;e<g;e++)h.data.colskey.push(L[e]),h.widths.push(f[e]),C.length>e?(void 0!==(w=_._.isNull(C[e].attr("styleinfo"))?{}:C[e].attr("styleinfo")).data&&void 0!==w.data.css&&this._useDataTextAlign(e)&&(w.data.css["text-align"]=this._getDataTextAlign(e)),h.style.push(w)):h.style.push({})}else{for(e=0,i=m[0].length;e<i;e++){for(r=0,o=m.length;r<o;r++)u.push(m[r][e]);p.push(_._.clone(u)),u.RT_clear()}for(h.header.title=_._.clone(p),p.RT_clear(),p=null,u.RT_clear(),u=null,h.data.colskey=L,h.widths=f,e=0;e<g;e++)C.length>e?(void 0!==(w=_._.isNull(C[e].attr("styleinfo"))?{}:C[e].attr("styleinfo")).data&&void 0!==w.data.css&&this._useDataTextAlign(e)&&(w.data.css["text-align"]=this._getDataTextAlign(e)),h.style.push(w)):h.style.push({})}return h}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._exportCellInfoURLHuge",t.message),{}}},_.QCELL.BasicQCELL.prototype._excelDownloadURLHuge=function(t){var e=_._.clone(this);return e._showProgressUI(!0),!!(_.$.browser.msie&&_.$.browser.version<10)&&(!(!e._excelDownload_checkRequiredProps(t,"url")||!e._excelDownload_checkValidationOfProps(t))&&e._excelDownloadURLHuge(t))},_.QCELL.BasicQCELL.prototype._excelDownloadURLHuge=function(t){var e=this.attr("id")+"._excelDownloadURLHuge";try{var r=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",i=t.filename+r,o=_.$("<input>").attr("type","hidden").attr("name","filename").val(i),a=_.$("<input>").attr("type","hidden").attr("name","info"),s=_.$("<input>").attr("type","hidden").attr("name","properties"),n=_.$("<input>").attr("type","hidden").attr("name","param"),l=this;return a.val(JSON.stringify(this._exportCellInfoURLHuge(t))),s.val(JSON.stringify(t)),n.val(JSON.stringify(t.param)),_.$.fileDownload(t.url,{httpMethod:"POST",data:{filename:o.val(),info:a.val(),properties:s.val(),param:n.val()}}).done((function(){l._showProgressUI(!1),setTimeout((function(){l._filedowntrigger("afterurlexceldown","success")}),0)})).fail((function(){l._showProgressUI(!1),setTimeout((function(){l._filedowntrigger("afterurlexceldown","fail")}),0)})),!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._exportCellInfo=function(t){var e,r,i,o,a,s,n,l,c,h,d={},u=[],p=[],g=[],f=this.attr("cols"),m=_.$.extend(!0,[],this.attr("colwidthsperpixel")),C=_.$.extend(!0,[],this.attr("headertext")),L=_.$.extend(!0,[],this.attr("qcellcols")),b=_.$.extend(!0,[],this.attr("colkeys")),E=_.$.extend(!0,[],this.attr("currentdata")),v=void 0!==t&&t.huge,y=void 0!==t&&t.label,w=void 0!==t&&t.totaldata,x=this.attr("layoutsize").colheader.clientWidth,k=[],S=[],Q=this.attr("staticrowsinfo"),q=this.attr("rowheaders").length,T=0;(!0===this.attr("makefrozenbottomdata")||this._isPanel())&&(T=1);var A=null;try{d.header={},d.header.title=[],d.header.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).header,d.data={},d.data.colskey=[],d.data.mergeType=JSON.parse(JSON.stringify(this.attr("merge"))).data;var R=t.useorgindata;if(Q.length>0&&(h=!0),!0===y&&("normal"===_.QCELL.module||"basic"===_.QCELL.module)){var O=function(t){return t.nRow===r};for(e=this.attr("headercols");e<f;e++)if("selectmenu"===L[e].attr("type")||"static"===L[e].attr("type")||"input"===L[e].attr("type")||"inputbutton"===L[e].attr("type")||"textarea"===L[e].attr("type")||"datepicker"===L[e].attr("type")||"number"===L[e].attr("type"))for(r=this.attr("headerrows");r<this.attr("rows")-T;r++){if(!0===h)if(void 0!==_._.find(Q,O)){E[r-this.attr("headerrows")][b[e]]=this._cellValue(r,e);continue}var D=!0===R?this._getCellLabel(r,e,!1):this._getCellLabel(r,e);0!==D||_._.isUndefined(this._cellValue(r,e))||(D=this._cellValue(r,e)),!0!==E[r-this.attr("headerrows")].rt_qc_footer&&(E[r-this.attr("headerrows")][b[e]]=D)}}if(!0===t.usehtmltype)for(e=this.attr("headercols");e<f;e++)if("html"===L[e].attr("type")){var B=this._getColHtml(e);if(_._.isFunction(B.data))for(r=this.attr("headerrows");r<this.attr("rows")&&!0!==E[r-this.attr("headerrows")].rt_qc_fbrd;r++)try{var I=B.data(this,r,e,this._cellValue(r,e),E[r-this.attr("headerrows")],!0);E[r-this.attr("headerrows")][b[e]]=I}catch(t){E[r-this.attr("headerrows")][b[e]]=""}}if(!1===_._.isUndefined(v)&&!0===v?d.data.data=[{}]:d.data.data=E,!1===_._.isUndefined(w)&&!0===w&&(d.data.data=_._.clone(this.attr("data").input)),d.style=[],d.widths=[],!1===_._.isUndefined(t)&&!1===_._.isUndefined(t.orderColumns)&&_._.uniq(t.orderColumns).length===f-q&&(C=this._orderbyExportInfo(C,t.orderColumns),b=this._orderbyExportInfo(b,t.orderColumns),m=this._orderbyExportInfo(m,t.orderColumns)),!1===_._.isUndefined(t)&&!1===_._.isUndefined(t.delColumns)){var N=_._.clone(t.delColumns);for(N.sort().reverse(),f-=N.length,e=0;e<N.length;e++){var P=Number(N[e]);C.splice(P,1),b.splice(P,1),m.splice(P,1)}}if(!0===t.usesequence){!0===_._.isUndefined(t.addColumns)&&(t.addColumns=[]);for(var M=void 0===t.sequencetitle?"":t.sequencetitle,H=[],U=0;U<this.getRows("header");U++)H.push(M);t.addColumns.push({key:"rt_qc_seq",width:"50",title:H,position:q+""}),d.style.push({})}var F={},z={};if(d.objPos=F,d.objStyle=z,!1===_._.isUndefined(t)&&!1===_._.isUndefined(t.addColumns)){for(f+=t.addColumns.length,a=0,s=t.addColumns.length;a<s;a++)_._.isUndefined(t.addColumns[a].position)?S.push(_.$.extend(!0,[],t.addColumns[a])):(k.push(_.$.extend(!0,[],t.addColumns[a])),z["c_"+t.addColumns[a].position]=t.addColumns[a].styleclassname);if(!_._.isEmpty(k)){for(a=0;a<k.length;a++){if(k[a].position=Number(k[a].position),isNaN(k[a].position))return{};F["c_"+k[a].position]=!0}k=_._.sortBy(k,"position")}if(k.length>0)for(a=0,s=k.length;a<s;a++)C.splice(Number(k[a].position),0,k[a].title),b.splice(Number(k[a].position),0,k[a].key),c=_._.isUndefined(k[a].width)?100:(c=k[a].width).indexOf("%")>-1?Math.ceil(x*(Number(c.replace("%",""))/100)):Number(c),m.splice(Number(k[a].position),0,c);if(S.length>0)for(n=0,l=S.length;n<l;n++)C.push(S[n].title),b.push(S[n].key),c=_._.isUndefined(S[n].width)?100:(c=S[n].width).indexOf("%")>-1?Math.ceil(x*(Number(c.replace("%",""))/100)):Number(c),m.push(c)}var W,j=q;if(q>0){for(e=q;e<C.length;e++)for(u.push([]),r=0;r<C[e].length;r++)u[e-q].push(C[e][r]);for(e=0,i=u[0].length;e<i;e++){for(r=0,o=u.length;r<o;r++)p.push(u[r][e]);g.push(_.$.extend(!0,[],p)),p.RT_clear()}for(d.header.title=_.$.extend(!0,[],g),u.RT_clear(),u=null,g.RT_clear(),g=null,p.RT_clear(),p=null,e=q;e<f;e++)d.data.colskey.push(b[e]),d.widths.push(m[e]),!0!==F["c_"+e]?(void 0!==(A=_._.isNull(L[j].attr("styleinfo"))?{}:L[j].attr("styleinfo")).data&&void 0!==A.data.css&&this._useDataTextAlign(j)&&(A.data.css["text-align"]=this._getDataTextAlign(j)),void 0!==t.textalignclass&&(W=L[j].getStyleClassName("data"),void 0===A.data&&(A.data={css:{}}),void 0===A.data.css&&(A.data.css={}),null!=W&&(void 0!==t.textalignclass.left&&t.textalignclass.left===W&&(A.data.css["text-align"]="left"),void 0!==t.textalignclass.center&&t.textalignclass.center===W&&(A.data.css["text-align"]="center"),void 0!==t.textalignclass.right&&t.textalignclass.right===W&&(A.data.css["text-align"]="right"))),d.style.push(A),j++):void 0!==z["c_"+e]&&null!=(W=z["c_"+e].data)?(void 0===(A={}).data&&(A.data={css:{}}),void 0===A.data.css&&(A.data.css={}),void 0!==t.textalignclass.left&&t.textalignclass.left===W?(A.data.css["text-align"]="left",d.style.push(A)):void 0!==t.textalignclass.center&&t.textalignclass.center===W?(A.data.css["text-align"]="center",d.style.push(A)):void 0!==t.textalignclass.right&&t.textalignclass.right===W?(A.data.css["text-align"]="right",d.style.push(A)):d.style.push({data:{css:{"text-align":"center"}}})):d.style.push({data:{css:{"text-align":"center"}}})}else{for(e=0,i=C[0].length;e<i;e++){for(r=0,o=C.length;r<o;r++)p.push(C[r][e]);g.push(_._.clone(p)),p.RT_clear()}for(d.header.title=_._.clone(g),g.RT_clear(),g=null,p.RT_clear(),p=null,d.data.colskey=b,d.widths=m,e=0;e<f;e++)!0!==F["c_"+e]?(void 0!==(A=_._.isNull(L[j].attr("styleinfo"))?{}:L[j].attr("styleinfo")).data&&void 0!==A.data.css&&this._useDataTextAlign(j)&&(A.data.css["text-align"]=this._getDataTextAlign(j)),void 0!==t.textalignclass&&(W=L[j].getStyleClassName("data"),void 0===A.data&&(A.data={css:{}}),void 0===A.data.css&&(A.data.css={}),null!=W&&(void 0!==t.textalignclass.left&&t.textalignclass.left===W&&(A.data.css["text-align"]="left"),void 0!==t.textalignclass.center&&t.textalignclass.center===W&&(A.data.css["text-align"]="center"),void 0!==t.textalignclass.right&&t.textalignclass.right===W&&(A.data.css["text-align"]="right"))),d.style.push(A),j++):void 0!==z["c_"+e]&&null!=(W=z["c_"+e].data)?(void 0===(A={}).data&&(A.data={css:{}}),void 0===A.data.css&&(A.data.css={}),void 0!==t.textalignclass.left&&t.textalignclass.left===W?(A.data.css["text-align"]="left",d.style.push(A)):void 0!==t.textalignclass.center&&t.textalignclass.center===W?(A.data.css["text-align"]="center",d.style.push(A)):void 0!==t.textalignclass.right&&t.textalignclass.right===W?(A.data.css["text-align"]="right",d.style.push(A)):d.style.push({data:{css:{"text-align":"center"}}})):d.style.push({data:{css:{"text-align":"center"}}})}var G,V=[];if(void 0!==t.exceltitle&&_._.isString(t.exceltitle)&&void 0!==d.header&&void 0!==d.header.title&&_._.isArray(d.header.title)){for(G=0;G<d.data.colskey.length;G++)V.push(t.exceltitle);d.header.title.RT_insert(0,V)}if(void 0!==t.excelfooter&&_._.isString(t.excelfooter)){V=[];var K={};for(G=0;G<d.data.colskey.length;G++)K[d.data.colskey[G]]=t.excelfooter;d.data.data.push(K)}return d}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._exportCellInfo",t.message);var Y=this;return setTimeout((function(){Y._trigger("exceldownloadfail")})),{}}},_.QCELL.BasicQCELL.prototype._excelDownload=function(t){var e=!0,r=_._.clone(this);if(void 0!==t.progressui&&!0===t.progressui&&r._showProgressUI(t.progressui),!1===(e=_.$.browser.msie&&_.$.browser.version<10?!(!r._excelDownload_checkRequiredProps(t,"url")||!r._excelDownload_checkValidationOfProps(t))&&r._excelDownloadURL(t):_._.isUndefined(t.url)?!(!r._excelDownload_checkRequiredProps(t,"loc")||!r._excelDownload_checkValidationOfProps(t))&&r._excelDownloadLOC(t):!(!r._excelDownload_checkRequiredProps(t,"url")||!r._excelDownload_checkValidationOfProps(t))&&r._excelDownloadURL(t))){var i=this;setTimeout((function(){i._trigger("exceldownloadfail")}))}return e},_.QCELL.BasicQCELL.prototype._excelDownload_checkRequiredProps=function(t,e){var r=!0;if(_._.isObject(t)&&!1===_._.isArray(t)){for(var i,o=0,a=(i="loc"===e?["filename"]:["filename","url"]).length;o<a;o++){var s=i[o];if(void 0===t[s]){_.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkRequiredProps",'Please check "'+s+'" property.'),r=!1;break}}i.RT_clear(),i=null}else _.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),r=!1;return r},_.QCELL.BasicQCELL.prototype._excelDownload_checkValidationOfProps=function(t){var e=!0,r=this;return _.$.each(t,(function(t,i){return e=r._excelDownload_checkValidationOfProp(t,i)})),e},_.QCELL.BasicQCELL.prototype._excelDownload_checkValidationOfProp=function(t,e){var r=!0,i=!0,o="";switch(t){case"filename":case"fileExt":case"url":o="string",!1===_._.isString(e)&&(r=!1);break;case"border":case"headershow":case"colwidth":case"progressui":case"huge":case"label":o="boolean",!1===_._.isBoolean(e)&&(r=!1);break;case"addColumns":o="object",!1===_._.isObject(e)?r=!1:_.$.each(e,(function(e,a){_.$.each(a,(function(e,a){switch(e){case"width":case"key":case"num":if(o="string",!1===_._.isString(a))return _.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+"."+e+'" property. This property\'s type is "'+o+'".'),r=!1,i=!1,!1;break;case"title":if(o="object",!1===_._.isObject(a))return _.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+"."+e+'" property. This property\'s type is "'+o+'".'),r=!1,i=!1,!1}}))}));break;case"delColumns":case"orderColumns":o="array",!0!==_._.isUndefined(e)&&!1!==_._.isArray(e)||(r=!1)}return!1===r&&i&&_.QCELL.log("err","QCELL.BasicQCELL._excelDownload_checkValidationOfProp",'Please check "'+t+'" property\'s type is "'+o+'".'),r},_.QCELL.BasicQCELL.prototype._excelDownloadURL=function(t){var e=this.attr("id")+"._excelDownloadURL";try{var r=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",i=t.filename+r,o=_.$("<input>").attr("type","hidden").attr("name","filename").val(i),a=_.$("<input>").attr("type","hidden").attr("name","info"),s=_.$("<input>").attr("type","hidden").attr("name","properties"),n=_.$("<input>").attr("type","hidden").attr("name","param"),l=this;return a.val(JSON.stringify(this._exportCellInfo(t))),s.val(JSON.stringify(t)),n.val(JSON.stringify(t.param)),_.$.fileDownload(t.url,{httpMethod:"POST",data:{filename:o.val(),info:a.val(),properties:s.val(),param:n.val()}}).done((function(){void 0!==t.progressui&&!0===t.progressui&&l._showProgressUI(!1),setTimeout((function(){l._filedowntrigger("afterurlexceldown","success")}),0)})).fail((function(){void 0!==t.progressui&&!0===t.progressui&&l._showProgressUI(!1),setTimeout((function(){l._filedowntrigger("afterurlexceldown","fail")}),0)})),!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._excelDownloadLOC=function(t){var e=this.attr("id")+"._excelDownloadLOC";try{var r,i,o,a,s=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".xlsx",n=t.filename+s,l=[],c=[],h=[],d=this._exportCellInfo(t),u=!1!==_._.isUndefined(t.delColumns)&&!1!==_._.isUndefined(t.addColumns);if(t.usesequence&&(u=!0),void 0!==t.totaldata&&_._.isBoolean(t.totaldata)&&t.totaldata&&(d.data.data=_._.clone(this.attr("data").input)),!0===this.attr("excelexportwithformat"))for(i=0;i<this.attr("cols");i++)if(null!=(o=this._getKeyOfCol(i))&&""!==o&&(a=this._getColFormat(i),!_._.isUndefined(a)&&!_._.isNull(a)))for(r=0;r<d.data.data.length;r++)d.data.data[r][o]=this._showDataFormat(r,i,d.data.data[r][o]);return void 0!==t.headershow&&_._.isBoolean(t.headershow)&&t.headershow?(c=this._excelMerge(d.header,"header",!1,t),h=this._excelMerge(d.data,"data",u,t),l=this._unionMergeInfo(d.header.title.length,c,h),this._exportToExcel(d,n,l,t)):(l=this._excelMerge(d.data,"data",u,t),this._exportToExcel(d,n,l,t)),void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._exportToExcel=function(t,e,r,i){var o=this._SetWorkbook(t,r,i),a=u.write(o,{bookType:"xlsx",bookSST:!0,type:"binary",compression:!0}),n=e;try{(0,s.saveAs)(new Blob([this._s2ab(a)],{type:"application/octet-stream"}),n)}catch(t){"undefined"!=typeof console&&console.log(t,a)}return a},_.QCELL.BasicQCELL.prototype._s2ab=function(t){var e,r=0;if("undefined"!=typeof ArrayBuffer){e=new ArrayBuffer(t.length);var i=new Uint8Array(e);for(r=0;r<t.length;++r)i[r]=255&t.charCodeAt(r);return e}for(e=new Array(t.length),r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e},_.QCELL.BasicQCELL.prototype._SetWorkbook=function(t,e,r){var i={SheetNames:[],Sheets:{}},o="Sheet";i.SheetNames.push(o);var a,s={},n=t.data.data.length,l=t.data.colskey.length,c=0;void 0!==r.headershow&&_._.isBoolean(r.headershow)&&r.headershow&&(c=t.header.title.length);var h={s:{c:0,r:0},e:{c:l-1,r:(a=c+n)-1}};s["!ref"]=u.utils.encode_range(h),s["!merges"]=e;var d=[],p=this.attr("presentseqatfooter");if(void 0!==r.headershow&&_._.isBoolean(r.headershow)&&r.headershow)for(var g=0,f=t.widths.length;g<f;g++){var m=parseInt(t.widths[g]);void 0!==r.defaultColumnSize&&0===m&&(r.defaultColumnSize=_.util.replaceAll(r.defaultColumnSize,"px",""),r.defaultColumnSize=_.util.replaceAll(r.defaultColumnSize,"%",""),m=parseInt(r.defaultColumnSize)),isNaN(m)&&(m=0),d.push({wpx:.75*m})}s["!cols"]=d;var C=0,L=0,b="",E={},v=void 0!==r.exceltitle,y=void 0!==r.excelfooter,w={fill:{patternType:"none",fgColor:{rgb:"000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}},x={fill:{patternType:"none",fgColor:{rgb:"000000"},bgColor:{rgb:"#FFFFFF"}},font:{name:"맑은 고딕",sz:12,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"center"}};for(C=0;C<c;C++){var k=t.header.title[C];for(L=0;L<l;L++)w={fill:{patternType:"none",fgColor:{rgb:"FF000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!0,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}},w=this._cellStyleSetting(w,"header",r),b=u.utils.encode_cell({c:L,r:C}),(E={}).v=k[L],E.t="s",E.s=!0===v&&0===C?x:w,E.z="@",s[b]=E,E={}}for(;C<a;C++){var S=C-c,Q=t.data.data[S],q=t.data.colskey;for(L=0;L<l;L++){var T={fill:{patternType:"none",fgColor:{rgb:"FF000000"},bgColor:{rgb:"FFFFFFFF"}},font:{name:"맑은 고딕",sz:10,color:{rgb:"#000000"},bold:!1,italic:!1,underline:!1},alignment:{vertical:"center",horizontal:"left"}};if(!0!==r.forcebasicstyle&&(T=this._cellStyleSetting(T,"data",r)),y&&C+1===a&&(T.alignment.horizontal="center"),b=u.utils.encode_cell({c:L,r:C}),E={},"rt_qc_seq"===q[L])!1===p&&!0===Q.rt_qc_footer?(E.v="",E.s=w,E.t="s",E.z="@"):void 0!==r.excelfooter&&Q.rt_qc_seq===r.excelfooter?(E.v=r.excelfooter,E.s=w,E.t="s",E.z="@"):(!0===Q.rt_qc_fbrd?E.v=void 0===Q.rt_qc_seq?" ":Q.rt_qc_seq:E.v=S+1,E.s=w,E.t="n",E.z="0_ ");else{if(E.v=_._.isUndefined(Q[q[L]])||_._.isNull(Q[q[L]])?"":""+Q[q[L]],"string"===r.datatype)E.t="s",E.z="@";else if("string"===this._getColExportDataType(this._getColsOfKey(q[L])[0]))E.t="s",E.z="@";else{var A=0===this._getColsOfKey(q[L]).length?-1:this._getColsOfKey(q[L])[0],R=-1===A?null:this._getColFormat(A);if(null!=R)if("number"===R.type){var O=_.util.replaceAll(E.v,",","");isNaN(Number(O))?(E.t="s",E.z="@"):(E.v=Number(O),E.t="n",E.z=R.rule)}else E.t="s",E.z="@";else _._.isString(E.v)&&""===E.v.trim()?(E.t="s",E.z="@"):_._.isNumber(E.v)||!isNaN(Number(E.v))?(E.t="n",E.v=Number(E.v),E.z="0_ "):(E.t="s",E.z="@")}E.s=T}s[b]=E,E={}}}return i.Sheets[o]=s,i},_.QCELL.BasicQCELL.prototype._cellStyleSetting=function(t,e,r){return"header"===e&&(t.fill.bgColor.rgb="FFf8f8f8",t.fill.fgColor.rgb="FFf8f8f8",t.fill.patternType="solid",t.font.color.rgb="FF707070",t.font.bold=!0,t.alignment.horizontal="center"),void 0!==r.border&&_._.isBoolean(r.border)&&r.border&&(t.border={top:{style:"thin",color:{auto:1}},right:{style:"thin",color:{auto:1}},bottom:{style:"thin",color:{auto:1}},left:{style:"thin",color:{auto:1}}}),t},_.QCELL.BasicQCELL.prototype._unionMergeInfo=function(t,e,r){if(r.length>0)for(var i=0,o=r.length;i<o;i++)r[i].s.r=r[i].s.r+t,r[i].e.r=r[i].e.r+t;return _._.union(e,r)},_.QCELL.BasicQCELL.prototype._excelMerge=function(t,e,r,i){var o=t.mergeType,a=[];if("header"===e)a=t.title;else for(var s=t.colskey,n=t.data,l=this.attr("presentseqatfooter"),c=0,h=n.length;c<h;c++){for(var d=[],u=0,p=s.length;u<p;u++)"rt_qc_seq"===s[u]?void 0!==i.excelfooter&&c===h-1?d.push(i.excelfooter):!1===l&&!0===n[c].rt_qc_footer?d.push(""):d.push(c+1):d.push(n[c][s[u]]);a.push(d)}return this._mergeInfoSetting(o,a,e,r,i)},_.QCELL.BasicQCELL.prototype._mergeInfoSetting=function(t,e,r,i,o){var a,s,n,l,c,h,d,u,p,g,f=0,m=0,C=0,L=0,b={},E=0,v=0,y=0,w=0,x=e.length,k=!0===_._.isEmpty(e)?this.attr("cols")-this.attr("rowheaders").length:e[0].length,S=[],Q=this.attr("rowheaders").length,q=0,T=0,A=!0===o.usesequence?1:0;if("header"===r&&void 0!==o.exceltitle?(q=1,b.s={r:0,c:0},b.e={r:0,c:k-1},b.s.c!==b.e.c&&S.push(b),b={}):"data"===r&&void 0!==o.excelfooter&&(T=1,b.s={r:x-1,c:0},b.e={r:x-1,c:k-1},b.s.c!==b.e.c&&S.push(b),b={}),"row"===t)for(v=0;v<x-T;v++)for(E=0;E<k;E++)!1===this._getColDataMergeCol(E+Q)&&i||(0===E&&(m=0,L=0),(y=(d=E+Q)+1)>=k&&(y=d),e[v][d]===e[v][y]?L=y:(b.s={r:v,c:m},b.e={r:v,c:L},b.s.c!==b.e.c&&S.push(b),m=y,L=y,b={}),E+1===k&&(b.s={r:v,c:m},b.e={r:v,c:L},b.s.c!==b.e.c&&S.push(b),b={}));else if("col"===t){for(E=A;E<k;E++)if(!1!==this._getColDataMergeCol(E-A+Q)||!i)for(v=0;v<x-T;v++)0===v&&(f=0,C=0),d=E,(w=v+1)>=x&&(w=v),e[v][d]===e[w][d]?C=w:(b.s={r:f,c:d},b.e={r:C,c:d},b.s.r!==b.e.r&&S.push(b),f=w,C=w,b={}),v+1===x&&(b.s={r:f,c:d},b.e={r:C,c:d},b.s.r!==b.e.r&&S.push(b),b={})}else if("rowandcol"===t&&"header"===r)for(v=q;v<x;v++)for(f=v,C=v,E=0;E<k;E++)0===E&&(m=0,L=0),(y=E+1)>=k&&(y=E),e[v][E]===e[v][y]?L=y:(f===(C=this._excelFindEndRow(f,m,L,e))&&m===L||this._checkMerge(f,m,S)||(b.s={r:f,c:m},b.e={r:C,c:L},S.push(b),b={}),m=y,L=y,C=f),E+1===k&&(f===(C=this._excelFindEndRow(f,m,L,e))&&m===L||this._checkMerge(f,m,S)||(b.s={r:f,c:m},b.e={r:C,c:L},S.push(b),b={}));else if("colandrow"===t&&"header"===r)for(E=q;E<k;E++)for(m=E,L=E,v=0;v<x;v++)0===v&&(f=0,C=0),(w=v+1)>=x&&(w=v),e[v][E]===e[w][E]?C=w:(L=this._excelFindEndCol(m,f,C,e,k),f===C&&m===L||this._checkMerge(f,m,S)||(b.s={r:f,c:m},b.e={r:C,c:L},S.push(b),b={}),f=w,C=w,L=m),v+1===x&&(L=this._excelFindEndCol(m,f,C,e,k),f===C&&m===L||this._checkMerge(f,m,S)||(b.s={r:f,c:m},b.e={r:C,c:L},S.push(b),b={}));else if("group"===t){for(l=[],u=0;u<Q;u++)l[u]=[];for(E=A;E<k;E++)if(!1!==this._getColDataMergeCol(E+Q)||!i)if(l[E]=[],E===A)for(v=0;v<x-T;v++)0===v&&(f=0,C=0),(w=v+1)>=x&&(w=v),e[v][E]===e[w][E]?C=w:(b.s={r:f,c:E},b.e={r:C,c:E},b.s.r!==b.e.r&&l[E].push(b),f=w,C=w,b={}),v+1===x&&(b.s={r:f,c:E},b.e={r:C,c:E},b.s.r!==b.e.r&&l[E].push(b),b={});else if(void 0===l[E-1]&&(l[E-1]=[]),l[E-1].length>0)for(a=0,p=l[E-1].length;a<p;a++)for(h=(c=l[E-1][a]).s.r,g=c.e.r;h<g;h++)h===c.s.r&&(f=c.s.r,C=c.s.r),w=h+1,e[h][E]===e[w][E]?C=w:(b.s={r:f,c:E},b.e={r:C,c:E},b.s.r!==b.e.r&&l[E].push(b),f=w,C=w,b={}),h+1===g&&(b.s={r:f,c:E},b.e={r:C,c:E},b.s.r!==b.e.r&&l[E].push(b),b={});if(l.length>0)for(s=0;s<l.length;s++)if(l[s].length>0)for(n=0;n<l[s].length;n++)S.push(l[s][n])}else if("groupandrow"===t){for(l=[],u=0;u<Q;u++)l[u]=[];var R,O=[];for(E=A;E<k;E++)if(!1!==this._getColDataMergeCol(E+Q)||!i)if(l[E]=[],E===A)for(v=0;v<x-T;v++){if(0===v&&(f=0,C=0),(w=v+1)>=x&&(w=v),e[v][E]===e[w][E])C=w;else{if(b.s={r:f,c:E},b.e={r:C,c:E},b.s.r!==b.e.r)l[E].push(b);else{for(R=E+1;R<k&&e[v][E]===e[v][R];R++);E+1!==R&&(b.s={r:f,c:E},b.e={r:C,c:R-1},O.push(b))}f=w,C=w,b={}}if(v+1===x){if(b.s={r:f,c:E},b.e={r:C,c:E},b.s.r!==b.e.r)l[E].push(b);else{for(R=E+1;R<k&&e[v][E]===e[v][R];R++);E+1!==R&&(b.s={r:f,c:E},b.e={r:C,c:R-1},O.push(b))}b={}}}else if(void 0===l[E-1]&&(l[E-1]=[]),l[E-1].length>0)for(a=0,p=l[E-1].length;a<p;a++)for(h=(c=l[E-1][a]).s.r,g=c.e.r;h<g;h++){if(h===c.s.r&&(f=c.s.r,C=c.s.r),w=h+1,e[h][E]===e[w][E])C=w;else{if(b.s={r:f,c:E},b.e={r:C,c:E},b.s.r!==b.e.r)l[E].push(b);else{for(R=E+1;R<k&&e[h][E]===e[h][R];R++);E+1!==R&&(b.s={r:f,c:E},b.e={r:C,c:R-1},O.push(b))}f=w,C=w,b={}}if(h+1===g){if(b.s={r:f,c:E},b.e={r:C,c:E},b.s.r!==b.e.r)l[E].push(b);else{for(R=E+1;R<k&&e[h][E]===e[h][R];R++);E+1!==R&&(b.s={r:f,c:E},b.e={r:C,c:R-1},O.push(b))}b={}}}if(l.length>0)for(s=0;s<l.length;s++)if(l[s].length>0)for(n=0;n<l[s].length;n++)S.push(l[s][n]);if(O.length>0)for(n=0;n<O.length;n++)S.push(O[n])}return S},_.QCELL.BasicQCELL.prototype._excelFindEndCol=function(t,e,r,i,o){var a,s=t,n=i[e][t],l=!0,c=0,h=0;for(h=t,a=o;h<a;h++){if(i[e][h]!==n){c=h;break}c=h}for(h=t,a=c;h<=a;h++){for(var d=e,u=r;d<=u;d++){if(i[d][h]!==n){s=--h,l=!1;break}s=h}if(!l)break}return s},_.QCELL.BasicQCELL.prototype._excelFindEndRow=function(t,e,r,i){for(var o=t,a=i[t][e],s=!0,n=t,l=i.length;n<l;n++){for(var c=e,h=r;c<=h;c++){if(i[n][c]!==a){o=--n,s=!1;break}o=n}if(!s)break}return o},_.QCELL.BasicQCELL.prototype._checkMerge=function(t,e,r){var i=!1;if(r.length>0)for(var o=0,a=r.length;o<a;o++)t>=r[o].s.r&&t<=r[o].e.r&&e>=r[o].s.c&&e<=r[o].e.c&&(i=!0);return i},_.QCELL.BasicQCELL.prototype._getMergeInfo=function(t,e,r){var i={};if(r.length>0)for(var o=0,a=r.length;o<a;o++)if(t>=r[o].s.r&&t<=r[o].e.r&&e>=r[o].s.c&&e<=r[o].e.c){i=r[o];break}return i},_.QCELL.BasicQCELL.prototype._convertHtmlColorCode=function(t){var e="";switch(t.toLowerCase()){case"indianred":e="#cd5c5c";break;case"lightcoral":e="#f08080";break;case"salmon":e="#fa8072";break;case"darksalmon":e="#e9967a";break;case"lightsalmon":e="#ffa07a";break;case"crimson":e="#dc143c";break;case"red":e="#ff0000";break;case"firebrick":e="#b22222";break;case"darkred":e="#8b0000";break;case"pink":e="#ffc0cb";break;case"lightpink":e="#ffb6c1";break;case"hotpink":e="#ff69b4";break;case"deeppink":e="#ff1493";break;case"mediumvioletred":e="#c71585";break;case"palevioletred":case"tomato":e="#db7093";break;case"coral":e="#ff7f50";break;case"orangered":e="#ff4500";break;case"darkorange":e="#ff8c00";break;case"orange":e="#ffa500";break;case"gold":e="#ffd700";break;case"yellow":e="#ffff00";break;case"lightyellow":e="#ffffe0";break;case"lemonchiffon":e="#fffacd";break;case"lightgoldenrodyellow":e="#fafad2";break;case"papayawhip":e="#ffefd5";break;case"moccasin":e="#ffe4b5";break;case"peachpuff":e="#ffdab9";break;case"palegoldenrod":e="#eee8aa";break;case"khaki":e="#f0e68c";break;case"darkkhaki":e="#bdb76b";break;case"lavender":e="#e6e6fa";break;case"thistle":e="#d8bfd8";break;case"plum":e="#dda0dd";break;case"violet":e="#ee82ee";break;case"orchid":e="#da70d6";break;case"fuchsia":case"magenta":e="#ff00ff";break;case"mediumorchid":e="#ba55d3";break;case"mediumpurple":e="#9370db";break;case"rebeccapurple":e="#663399";break;case"blueviolet":e="#8a2be2";break;case"darkviolet":e="#9400d3";break;case"darkorchid":e="#9932cc";break;case"darkmagenta":e="#8b008b";break;case"purple":e="#800080";break;case"indigo":e="#4b0082";break;case"slateblue":e="#6a5acd";break;case"darkslateblue":e="#483d8b";break;case"greenyellow":e="#adff2f";break;case"chartreuse":e="#7fff00";break;case"lawngreen":e="#7cfc00";break;case"lime":e="#00ff00";break;case"limegreen":e="#32cd32";break;case"palegreen":e="#98fb98";break;case"lightgreen":e="#90ee90";break;case"mediumspringgreen":e="#00fa9a";break;case"springgreen":e="#00ff7f";break;case"mediumseagreen":e="#3cb371";break;case"seagreen":e="#2e8b57";break;case"forestgreen":e="#228b22";break;case"green":e="#008000";break;case"darkgreen":e="#006400";break;case"yellowgreen":e="#9acd32";break;case"olivedrab":e="#6b8e23";break;case"olive":e="#808000";break;case"darkolivegreen":e="#556b2f";break;case"mediumaquamarine":e="#66cdaa";break;case"darkseagreen":e="#8fbc8b";break;case"lightseagreen":e="#20b2aa";break;case"darkcyan":e="#008b8b";break;case"teal":e="#008080";break;case"aqua":case"cyan":e="#00ffff";break;case"lightcyan":e="#e0ffff";break;case"paleturquoise":e="#afeeee";break;case"aquamarine":e="#7fffd4";break;case"turquoise":e="#40e0d0";break;case"mediumturquoise":e="#48d1cc";break;case"darkturquoise":e="#00ced1";break;case"cadetblue":e="#5f9ea0";break;case"steelblue":e="#4682b4";break;case"lightsteelblue":e="#b0c4de";break;case"powderblue":e="#b0e0e6";break;case"lightblue":e="#add8e6";break;case"skyblue":e="#87ceeb";break;case"lightskyblue":e="#87cefa";break;case"deepskyblue":e="#00bfff";break;case"dodgerblue":e="#1e90ff";break;case"cornflowerblue":e="#6495ed";break;case"mediumslateblue":e="#7b68ee";break;case"royalblue":e="#4169e1";break;case"blue":e="#0000ff";break;case"mediumblue":e="#0000cd";break;case"darkblue":e="#00008b";break;case"navy":e="#000080";break;case"midnightblue":e="#191970";break;case"cornsilk":e="#fff8dc";break;case"blanchedalmond":e="#ffebcd";break;case"bisque":e="#ffe4c4";break;case"navajowhite":e="#ffdead";break;case"wheat":e="#f5deb3";break;case"burlywood":e="#deb887";break;case"tan":e="#d2b48c";break;case"rosybrown":e="#bc8f8f";break;case"sandybrown":e="#f4a460";break;case"goldenrod":e="#daa520";break;case"darkgoldenrod":e="#b8860b";break;case"peru":e="#cd853f";break;case"chocolate":e="#d2691e";break;case"saddlebrown":e="#8b4513";break;case"sienna":e="#a0522d";break;case"brown":e="#a52a2a";break;case"maroon":e="#800000";break;case"white":e="#ffffff";break;case"snow":e="#fffafa";break;case"honeydew":e="#f0fff0";break;case"mintcream":e="#f5fffa";break;case"azure":e="#f0ffff";break;case"aliceblue":e="#f0f8ff";break;case"ghostwhite":e="#f8f8ff";break;case"whitesmoke":e="#f5f5f5";break;case"seashell":e="#fff5ee";break;case"beige":e="#f5f5dc";break;case"oldlace":e="#fdf5e6";break;case"floralwhite":e="#fffaf0";break;case"ivory":e="#fffff0";break;case"antiquewhite":e="#faebd7";break;case"linen":e="#faf0e6";break;case"lavenderblush":e="#fff0f5";break;case"mistyrose":e="#ffe4e1";break;case"gainsboro":e="#dcdcdc";break;case"lightgray":e="#d3d3d3";break;case"silver":e="#c0c0c0";break;case"darkgray":e="#a9a9a9";break;case"gray":e="#808080";break;case"dimgray":e="#696969";break;case"lightslategray":e="#778899";break;case"slategray":e="#708090";break;case"darkslategray":e="#2f4f4f";break;default:e="#000000"}return e},_.QCELL.BasicQCELL.prototype._htmlDownload=function(t){var e=_._.clone(this);return void 0!==t.progressui&&!0===t.progressui&&e._showProgressUI(t.progressui),!(_.$.browser.msie&&_.$.browser.version<10)&&(!(!e._htmlDownload_checkRequiredProps(t)||!e._excelDownload_checkValidationOfProps(t))&&e._htmlDownloadLOC(t))},_.QCELL.BasicQCELL.prototype._htmlDownload_checkRequiredProps=function(t){var e=!0;if(_._.isObject(t)&&!1===_._.isArray(t)){for(var r,i=0,o=(r=["filename"]).length;i<o;i++){var a=r[i];if(void 0===t[a]){_.QCELL.log("err","QCELL.BasicQCELL._htmlDownload_checkRequiredProps",'Please check "'+a+'" property.'),e=!1;break}}r.RT_clear(),r=null}else _.QCELL.log("err","QCELL.BasicQCELL._htmlDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},_.QCELL.BasicQCELL.prototype._htmlDownloadLOC=function(t){var e=this.attr("id")+"._htmlDownloadLOC";try{var r=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".html",i=t.filename+r,o=[],a=[],s=[],n=this._exportCellInfo(t),l=!1!==_._.isUndefined(t.delColumns)&&!1!==_._.isUndefined(t.addColumns);if(void 0!==t.totaldata&&_._.isBoolean(t.totaldata)&&t.totaldata&&(n.data.data=_._.clone(this.attr("data").input)),void 0!==t.headershow&&_._.isBoolean(t.headershow)&&t.headershow){if(a=this._excelMerge(n.header,"header",!1),s=this._excelMerge(n.data,"data",l),o=this._unionMergeInfo(n.header.title.length,a,s),!0===t.export)return this._exportToHtml(n,i,o,t);this._exportToHtml(n,i,o,t)}else{if(o=this._excelMerge(n.data,"data",l,l),!0===t.export)return this._exportToHtml(n,i,o,t);this._exportToHtml(n,i,o,t)}return void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._exportToHtml=function(t,e,r,i){var o=this.attr("id")+"._exportToHtml";try{i.headershow=!0;var a,n,l=this._SetWorkbook(t,r,i),c=u.write(l,{charset:"utf-8",bookType:"html",type:"string",filename:e,cellDates:!0,cellStyles:!0}),h=this,d=_.$.parseHTML(c,!0),p=_.$(d),g="",f="";p.each((function(){if(_.$(this).is("title"))_.$(this).text(e.replace(".html","")),g=_.$(this);else if(_.$(this).is("table")){var r=t.header.title.length,i=_.$(this).find("tr"),o=h.attr("rowheight"),s=t.style,l=function(e,r){var i=parseInt(r.getAttribute("data-row")),a=_.$(r);_._.isEmpty(s[e])||_._.isUndefined(s[e].data)||a.css(s[e].data.css),a.css(h.getCellStyle(i,e)),a.css("width",t.widths[e]),a.css("height",o.data)},c=function(e,r){var i=parseInt(r.getAttribute("data-row")),a=_.$(r);a.removeAttr("style"),a.addClass("rt-qc-header rt-qc-th"),_._.isEmpty(s[e])||_._.isUndefined(s[e].header)||a.css(s[e].header.css),a.css(h.getCellStyle(i,e)),a.css("height",o.header),a.css("width",t.widths[e])};for(a=0;a<i.length;a++)n=_.$(i[a]),_.$(n).children("td").each(l);for(a=0;a<r;a++)(n=_.$(i[a])).removeClass("rt-qc-cell"),_.$(n).children("td").each(c);f=_.$(this)}}));var m=g.html(),C=c.indexOf("<title>"),L=c.indexOf("</title>"),b=c.substring(0,C+7),E=c.substring(L);c=b.concat(m,E);var v=f.html(),y=c.indexOf("<table"),w=c.indexOf("</table>"),x=c.substring(0,y+53),k=c.substring(w);c=x.concat(v,k);0;var S=c.indexOf("</head>"),Q=c.substring(0,S),q=c.substring(S);return c=Q.concat("<style>body{font-family: NanumGothic, Dotum, sans-serif !important; background-color: #fff;} .rt-qc-table, .rt-qc-cell {border-width: 1px; border-style: solid; border-color: #d3d5df; border-collapse: collapse; background-color: #fff;} .rt-qc-table {border-spacing: 0px; } .rt-qc-cell {padding: 0px; border-spacing: 0px; font-family: NanumGothic, Dotum, sans-serif !important; } .rt-qc-header {text-align: center; font-weight: bold; background-color: #7b7d87; border-color: #93959f; color: #fff;} .rt-qc-cell {font-size: 13px; } </style>",q),!0===i.export?c:((0,s.saveAs)(new Blob([c],{type:"text/html"}),e),!0)}catch(t){return _.QCELL.log("err",o,t.message),!1}},_.QCELL.BasicQCELL.prototype._pdfDownload=function(t){var e=_._.clone(this);setTimeout((function(){e._showProgressUI(!0)}),0),setTimeout((function(){return!(_.$.browser.msie&&_.$.browser.version<10)&&(!(!e._pdfDownload_checkRequiredProps(t)||!e._excelDownload_checkValidationOfProps(t))&&e._pdfDownloadLOC(t))}),300)},_.QCELL.BasicQCELL.prototype._pdfDownload_checkRequiredProps=function(t){var e=!0;if(_._.isObject(t)&&!1===_._.isArray(t)){for(var r,i=0,o=(r=["filename"]).length;i<o;i++){var a=r[i];if(void 0===t[a]){_.QCELL.log("err","QCELL.BasicQCELL._pdfDownload_checkRequiredProps",'Please check "'+a+'" property.'),e=!1;break}}r.RT_clear(),r=null}else _.QCELL.log("err","QCELL.BasicQCELL._pdfDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},_.QCELL.BasicQCELL.prototype._pdfDownloadLOC=function(t){var e=this.attr("id")+"._pdfDownloadLOC";try{var r=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".pdf",i=t.filename+r,o=[],a=[],s=[],n=this._exportCellInfo(t),l=!1!==_._.isUndefined(t.delColumns)&&!1!==_._.isUndefined(t.addColumns);return void 0!==t.totaldata&&_._.isBoolean(t.totaldata)&&t.totaldata&&(n.data.data=_._.clone(this.attr("data").input)),void 0!==t.headershow&&_._.isBoolean(t.headershow)&&t.headershow?(a=this._excelMerge(n.header,"header",!1),s=this._excelMerge(n.data,"data",l),o=this._unionMergeInfo(n.header.title.length,a,s),this._exportToPDF(n,i,o,t)):(o=this._excelMerge(n.data,"data",l),this._exportToPDF(n,i,o,t)),!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._exportToPDF=function(t,e,r,i){var o,a=this.attr("id")+"._exportToPDF";try{i.headershow=!0;var s,n,l=this._SetWorkbook(t,r,i),c=u.write(l,{charset:"utf-8",bookType:"html",type:"string",filename:e,cellDates:!0,cellStyles:!0}),h=this,d=_.$.parseHTML(c,!0),p=_.$(d),g="",f="";p.each((function(){if(_.$(this).is("title"))_.$(this).text(e.replace(".html","")),g=_.$(this);else if(_.$(this).is("table")){var r=t.header.title.length,i=_.$(this).find("tr"),o=h.attr("rowheight"),a=t.style,l=function(e,r){var i=parseInt(r.getAttribute("data-row"));_._.isEmpty(a[e])||_._.isUndefined(a[e].data)||_.$(r).css(a[e].data.css),_.$(r).css(h.getCellStyle(i,e)),_.$(r).css("width",t.widths[e]),_.$(r).css("height",o.data)},c=function(e,r){var i=parseInt(r.getAttribute("data-row"));_.$(r).removeAttr("style"),_.$(r).addClass("rt-qc-th"),_._.isEmpty(a[e])||_._.isUndefined(a[e].header)||_.$(r).css(a[e].header.css),_.$(r).css(h.getCellStyle(i,e)),_.$(r).css("height",o.header),_.$(r).css("width",t.widths[e])};for(s=0;s<i.length;s++)n=_.$(i[s]),_.$(n).children("td").each(l);for(s=0;s<r;s++)(n=_.$(i[s])).addClass("rt-qc-header"),_.$(n).children("td").each(c);f=_.$(this)}}));var m=g.html(),C=c.indexOf("<title>"),L=c.indexOf("</title>"),b=c.substring(0,C+7),E=c.substring(L);c=b.concat(m,E);var v=f.html(),y=c.indexOf("<table"),w=c.indexOf("</table>"),x=c.substring(0,y+53),k=c.substring(w);c=x.concat(v,k);0;var S=c.indexOf("</head>"),Q=c.substring(0,S),q=c.substring(S);c=Q.concat("<style>html, body{ background: #fff; background-color: #fff; margin: 0; padding: 0;}body{font-family: NanumGothic, Dotum, sans-serif !important;} .rt-qc-table {margin: auto; } .rt-qc-table, .rt-qc-cell {border-width: 1px; border-style: solid; border-color: #d3d5df; border-collapse: collapse;} .rt-qc-table {border-spacing: 0px; } .rt-qc-cell {padding: 0px; border-spacing: 0px; font-family: NanumGothic, Dotum, sans-serif !important; } .rt-qc-header {text-align: center; font-weight: bold; background-color: #7b7d87; border-color: #93959f; color: #ffffff;} .rt-qc-cell {font-size: 13px;} .rt-qc-td {background-color: #fff; color: #000; } .rt-qc-th {background-color: #7b7d87 !important; color: #fff !important;} </style>",q);var T=_.$(c).filter("#rt-qc-tbl"),A=_.$('<div id="editor"></div>');A.css({display:"none"}),A.append(T),_.$(document.body).append(A);var R="rt-qc-ifrm",O=document.createElement("iframe");O.setAttribute("frameborder","0"),O.style.width="100%",O.style.height="100%",O.style.visibility="hidden",O.id=R,document.body.appendChild(O);var D=document.getElementById(R);(D=D.contentWindow||D.contentDocument.document||D.contentDocument).document.open(),D.document.write(c),D.document.close(),_.$("#"+R).load((function(){window.html2canvas(_.$("#"+R).contents().find("body"),{scale:3,allowTaint:!1,logging:!1,background:"#fff",onrendered:function(t){t.style.background="#FFFFFF";var r=t.toDataURL("image/jpeg",1),i=210,o=296.94,a=t.height*i/t.width,s=a,n=new window.jsPDF({orientation:"p",unit:"mm",format:"a4",compress:!0}),l=0;for(n.addImage(r,"JPEG",0,l,i,a,"","FAST"),s-=o;s>=20;)l=s-a,n.addPage(),n.addImage(r,"JPEG",0,l,i,a,"","FAST"),s-=o;n.save(e),setTimeout((function(){_.$(A).remove(),_.$("#"+R).remove()}),1e3)}})})),o=!0}catch(t){_.QCELL.log("err",a,t.message),o=!1}finally{this._showProgressUI(!1)}return o},_.QCELL.BasicQCELL.prototype._txtDownload=function(t){var e=_._.clone(this);void 0!==t.progressui&&!0===t.progressui&&setTimeout((function(){e._showProgressUI(!0)}),0),setTimeout((function(){return!(_.$.browser.msie&&_.$.browser.version<10)&&(!!e._txtDownload_checkRequiredProps(t)&&e._txtDownloadLOC(t))}),300)},_.QCELL.BasicQCELL.prototype._txtDownload_checkRequiredProps=function(t){var e=!0;if(_._.isObject(t)&&!1===_._.isArray(t)){for(var r,i=0,o=(r=["filename"]).length;i<o;i++){var a=r[i];if(void 0===t[a]){_.QCELL.log("err","QCELL.BasicQCELL._txtDownload_checkRequiredProps",'Please check "'+a+'" property.'),e=!1;break}}r.RT_clear(),r=null}else _.QCELL.log("err","QCELL.BasicQCELL._txtDownload_checkRequiredProps",'Please check first parameter\'s type is "object".'),e=!1;return e},_.QCELL.BasicQCELL.prototype._txtDownloadLOC=function(t){var e=this.attr("id")+"._txtDownloadLOC";try{var r,i,o,a,n,l=void 0!==t.fileExt&&0!==t.fileExt.length?"."+t.fileExt:".txt",c=t.filename+l,h=void 0===t.colsep?",":t.colsep,d=void 0===t.rowsep?"\n":t.rowsep,u=void 0!==t.headershow&&t.headershow,p=void 0!==t.label&&t.label,g=t.addColumns,f="",m="";if(u)for(r=0;r<this.getRows("header");r++){if(m="",!0===t.usesequence)m+=void 0===t.sequencetitle?" ":t.sequencetitle;for(i=this.getCols("header");i<this.getCols();i++){if(void 0!==g&&_._.isArray(g)){for(a="",n=0;n<g.length;n++)if(o=g[n],i===Number(o.position)){""!==m&&(m+=h),a+=o.title[r];break}m+=a}""!==m&&(m+=h),m+=this._cellValue(r,i)}if(void 0!==g&&_._.isArray(g)){for(a="",n=0;n<g.length;n++)o=g[n],this.getCols()===Number(o.position)&&(""!==m&&(m+=h),a+=o.title[r]);m+=a}""!==(f+=m)&&(f+=d)}for(r=this.getRows("header");r<this.getRows();r++){m="";var C=this.getRowData(r);for(!0===t.usesequence&&(!0===C.rt_qc_fbrd?m+=void 0===C.rt_qc_seq?" ":C.rt_qc_seq:m+=r),i=this.getCols("header");i<this.getCols();i++){if(void 0!==g&&_._.isArray(g)){for(a="",n=0;n<g.length;n++)if(o=g[n],i===Number(o.position)){""!==m&&(m+=h),a+=void 0===this.getCellDataEx(r,o.key)?"":this.getCellDataEx(r,o.key);break}m+=a}if(""!==m&&(m+=h),!0===C.rt_qc_fbrd)m+=void 0===this.getCellData(r,i)?"":this.getCellData(r,i);else if(!0===t.usehtmltype&&"html"===this._getColType(i)){var L,b=this._getColHtml(i);if(L=this._cellValue(r,i),L=this._showDataFormat(r,i,L),_._.isFunction(b.data)){var E=b.data(this,r,i,!0===_._.isUndefined(L)?"":L,this.getRowData(r,i),!0);_._.isString(E)?m+=E:m+=" "}else m+=L}else m+=!0===p?void 0===this._getCellLabel(r,i)?"":this._getCellLabel(r,i):void 0===this.getCellData(r,i)?"":this.getCellData(r,i)}if(void 0!==g&&_._.isArray(g)){for(a="",n=0;n<g.length;n++)o=g[n],this.getCols()===Number(o.position)&&(""!==m&&(m+=h),a+=void 0===this.getCellDataEx(r,o.key)?"":this.getCellDataEx(r,o.key));m+=a}""!==(f+=m)&&(f+=d)}return void 0!==t.footer&&_._.isString(t.footer)&&(f+=t.footer+d),(0,s.saveAs)(new Blob([f],{type:"text/txt"}),c),void 0!==t.progressui&&!0===t.progressui&&this._showProgressUI(!1),!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._createDataIndexPool=function(){var t=this,e=_._.filter(_._.range(0,this.attr("cols")),(function(e){return t._getQCellCol(e).attr("filter")}));e.length>0&&this._createDataIndex(e),null!==this.attr("additionaldataindex")&&this._createDataIndexEx(this.attr("additionaldataindex"))},_.QCELL.BasicQCELL.prototype._createDataIndex=function(t){var e=this.attr("data").input,r=this.attr("colids"),o=this.attr("colkeys"),a=this.attr("dataindexpool"),s=this;_._.each(t,(function(t){var n,l=r[t],c=o[t];"string"===s._getQCellCol(Number(t)).attr("datatype")&&(a.containsKey(l)?(n=a.get(l)).clear():(n=new i._QHashtable,a.put(l,n)),_._.each(e,(function(t,e){var r=t[c];null==r&&(r=""),!1===n.containsKey(r)&&n.put(r,new i._QHashSet),n.get(r).add(e)})))}))},_.QCELL.BasicQCELL.prototype._createDataIndexEx=function(t){var e=this.attr("data").input,r=this.attr("dataindexpool"),o=0;_._.each(t,(function(a){var s,n=t[o],l=t[o];o++,r.containsKey(n)?(s=r.get(n)).clear():(s=new i._QHashtable,r.put(n,s)),_._.each(e,(function(t,e){var r=t[l];null==r&&(r=""),!1===s.containsKey(r)&&s.put(r,new i._QHashSet),s.get(r).add(e)}))}))},_.QCELL.BasicQCELL.prototype._getColFillteredEx=function(t){if(_._.isNumber(t))return this._getColFilltered(t);var e=this.attr("_filterprev");if(null===e&&(e=new i._QHashtable,this.attr("_filterprev",e,"object")),null===e.get(t)){var r=this.attr("additionaldataindex");if(null==r)return;for(var o=0;o<r.length;o++)if(r[o]===t){e.put(t,{});break}}return e.get(t)},_.QCELL.BasicQCELL.prototype._setColFillteredEx=function(t,e){if(_._.isNumber(t))this._setColFilltered(t,e);else{var r=this.attr("_filterprev");null===r&&(r=new i._QHashtable,this.attr("_filterprev",r,"object")),r.put(t,e)}},_.QCELL.BasicQCELL.prototype._resetFilter=function(t){if(void 0===t){var e,r=this.attr("headercols"),i=this.attr("cols"),o=this.attr("_filterprev"),a=null!==o?o.keys():[];for(e=r;e<i;e++)this._getColFillteredEx(e)&&this._setColFillteredEx(e,null);for(e=0;e<a.length;e++)this._setColFillteredEx(a[e],null);return this._doFiltering(),!0}return!!this._getColFillteredEx(t)&&(this._setColFillteredEx(t,null),this._doFiltering(),!0)},_.QCELL.BasicQCELL.prototype._isUserFilter=function(t,e){var r=!1;if(_._.isString(t)){if(_._.isArray(e)){if(0===e.length)return 0;for(var i=0;i<e.length;i++)if(!_._.isString(e[i]))return 0;return 1}if(_._.isObject(e)){if(void 0!==e.key1&&void 0!==e.op1)return-1;if(void 0===e.value1&&void 0===e.comparison1){for(var o in e)r=!0;return!0===r?1:0}return void 0===e.value1||void 0===e.comparison1?0:-1}}return 0},_.QCELL.BasicQCELL.prototype._filter=function(t,e){var r,i={};if(this._isColFillteredEx(t)){if(_._.isNumber(t)&&"string"===this._getQCellCol(t).attr("datatype")||1===this._isUserFilter(t,e)){for(r=0;r<e.length;r++){if(!_._.isString(e[r]))return!1;i[e[r]]=!0}return this._setColFillteredEx(t,i),this._doFiltering(),!0}if(_._.isObject(e)){if(void 0===e.value1)return!1;if(void 0===e.comparison1)return!1;switch(e.comparison1){case">":case"<":case">=":case"<=":case"==":case"!=":break;default:return!1}if(void 0!==e.logical){if("and"!==e.logical&&"or"!==e.logical)return!1;if(void 0===e.value2)return!1;if(void 0===e.comparison2)return!1;switch(e.comparison2){case">":case"<":case">=":case"<=":case"==":case"!=":break;default:return!1}i.key1=e.value1,i.op1=e.comparison1,i.logical=e.logical,i.key2=e.value2,i.op2=e.comparison2}else i.key1=e.value1,i.op1=e.comparison1;return this._setColFillteredEx(t,i),this._doFiltering(),!0}}return!1},_.QCELL.BasicQCELL.prototype._doFiltering=function(){var t,e,r,i,o=this.attr("cols"),a=this.attr("headercols"),s={},n=0,l=[],c=[];for(this.attr("_filtering",!1,"boolean"),r=a;r<o;r++)"string"===this._getQCellCol(r).attr("datatype")?null!==(e=this._getColFilltered(r))?(this._setColStringFilter(r,e,s),c.push({col:r,state:!0}),n++):c.push({col:r,state:!1}):null!==(e=this._getColFilltered(r))?(this._setColNumberFilter(r,e,s),n++,c.push({col:r,state:!0})):c.push({col:r,state:!1});var h=this.attr("_filterprev"),d=null!==h?h.keys():[];for(r=0;r<d.length;r++){var u=this._getColFillteredEx(d[r]);1===this._isUserFilter(d[r],u)?(this._setColStringFilter(d[r],u,s),n++):-1===this._isUserFilter(d[r],u)&&(this._setColNumberFilter(d[r],u,s),n++)}if(n){var p=this.attr("data").input;for(t in s)if(s[t]===n){var g=p[Number(t)];if(void 0===g)continue;g=_._.clone(g),l.push(g)}this._setCurrentData(l,!0),this.attr("_filtering",!0,"boolean"),!1===_._.isEmpty(this.attr("paginationinfo"))&&void 0!==(i=this.attr("paginationinfo"))&&_._.isObject(i)&&(i.currentData=l,this._movePage(1))}else!1===_._.isEmpty(this.attr("paginationinfo"))&&void 0!==(i=this.attr("paginationinfo"))&&_._.isObject(i)&&(i.currentData=[]),this._setData(this.attr("data").input);for(r=0;r<c.length;r++)this._changeFilterIcon(c[r].col,c[r].state);!0===this.attr("hierachystate").grouped&&this._setHierachy(this.attr("_heirachyinfo"))},_.QCELL.BasicQCELL.prototype._changeFilterIcon=function(t,e){if(this._getQCellCol(t).attr("filter")){var r=_.QCELL.def.css,i=this._getCellDOM(this.attr("headerrows")-1,t);if(null==i)return;var o=this._getQCellCol(t).attr("colfilterarea");if(null===o&&(this._getQCellCol(t).attr("colfilterarea",this.attr("filterarea").clone(!0),"jquery"),o=this._getQCellCol(t).attr("colfilterarea")),o.hasClass(r.FILTER_AREA_ADJUST)&&e)return;if(o.hasClass(r.FILTER_AREA)&&!1===e)return;e?(o.removeClass(r.FILTER_AREA).removeClass(r.FILTER_AREA_ADJUST),o.addClass(r.FILTER_AREA_ADJUST)):(o.removeClass(r.FILTER_AREA).removeClass(r.FILTER_AREA_ADJUST),o.addClass(r.FILTER_AREA))}},_.QCELL.BasicQCELL.prototype._setColStringFilter=function(t,e,r){var i,o=this,a={};for(i in _._.each(e,(function(e,r){if(!1!==e){var i=!0===_._.isString(t)?t:o._getColID(t),s=o.attr("dataindexpool").get(i).get(r);null!==s&&s.values(!0).forEach((function(t){a[t.toString()]=1}))}})),a)r[i]=void 0===r[i]?1:r[i]+1},_.QCELL.BasicQCELL.prototype._setColNumberFilter=function(t,e,r){var i,o={},a={};if(this._processNumberFilter(t,e.key1,e.op1,a),void 0===e.logical)o=a;else if(this._processNumberFilter(t,e.key2,e.op2,a),"and"===e.logical)for(i in a)a[i]>1&&(o[i]=1);else for(i in a)o[i]=1;for(i in o)r[i]=void 0===r[i]?1:r[i]+1},_.QCELL.BasicQCELL.prototype._processNumberFilter=function(t,e,r,i){var o,a,s=!0===_._.isString(t)?t:this._getKeyOfCol(t),n=this.attr("data").input;for(o=0;o<n.length;o++)if(void 0!==(a=n[o])[s]&&null!==a[s]&&!isNaN(a[s]))switch(r){case">":a[s]>e&&this._makeNumberFilterSub(o,i);break;case"<":a[s]<e&&this._makeNumberFilterSub(o,i);break;case">=":a[s]>=e&&this._makeNumberFilterSub(o,i);break;case"<=":a[s]<=e&&this._makeNumberFilterSub(o,i);break;case"==":a[s]===e&&this._makeNumberFilterSub(o,i);break;case"!=":a[s]!==e&&this._makeNumberFilterSub(o,i)}},_.QCELL.BasicQCELL.prototype._makeNumberFilterSub=function(t,e){var r=t.toString();e[r]=void 0===e[r]?1:e[r]+1},_.QCELL.BasicQCELL._createFilterAreaSub=function(t){var e=t.target,r=t.data.target,i=_.QCELL.def.css,o=parseInt(e.parentNode.getAttribute("data-col")),a=_.$(r.attr("heFilterDiv").cloneNode()).addClass(i.FILTER_UI_AREA);r.attr("filteruivisible")&&r._removeFilterUIArea(),"string"===r._getQCellCol(o).attr("datatype")?r._createStringFilterUI(o,a):r._createNumberFilterUI(o,a),r._showFilterUIArea(e,o)},_.QCELL.BasicQCELL.prototype._getFilterArea=function(t){if(null===this.attr("filterarea")){var e=document.createElement("div");this.attr("filterarea",this._createFilterArea(e),"jquery")}return null===this._getQCellCol(t).attr("colfilterarea")&&this._getQCellCol(t).attr("colfilterarea",this.attr("filterarea").clone(!0),"jquery"),this._getQCellCol(t).attr("colfilterarea").get(0)},_.QCELL.BasicQCELL.prototype._createFilterArea=function(t){var e=_.QCELL.def.css;return this.attr("heFilterDiv",t,"element"),_.$(t.cloneNode()).addClass(e.FILTER_AREA).on("mousedown",this.attr("eventparam"),_.QCELL.BasicQCELL._createFilterAreaSub)},_.QCELL.BasicQCELL.prototype._createStringFilterUI=function(t,e){var r,i,o=_.QCELL.def.css,a=_.$(document.createElement("div")),s=_.$(document.createElement("button")).addClass(o.FILTER_UI_BTN),n=_.$(document.createElement("span")),l=this.attr("headertext")[t][this.attr("headertext")[t].length-1],c=0===this.attr("filteruiwidth")?"229px":this.attr("filteruiwidth")+"px";e.css({display:"none",height:"290px",width:c}),(r=a.clone()).addClass(o.FILTER_TITLE_AREA),n.clone().text(l).addClass(o.FILTER_TITLE_SPAN).appendTo(r),a.clone().addClass(o.FILTER_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("filteruivisible")&&e._removeFilterUIArea()})).appendTo(r),r.appendTo(e),a.clone().attr({id:"filter-dataindex-"+this.attr("id")}).css({width:"100%",height:"210px"}).appendTo(e),i=a.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"});var h="selectmenu"===this._getColType(t);n.clone().text(_.QCELL.def.resource.adjust).appendTo(s.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var r,i=e.data.target,o=_.QCELL.getInstance("filter-dataindex"),a=[],s={};for(r=1;r<o.attr("rows");r++)if(o._cellValue(r,0))if(h){var n=i._getDataByLabel(t,o._cellValue(r,1));a.push(n),s[n]=!0}else a.push(o._cellValue(r,1)),s[o._cellValue(r,1)]=!0;else s[o._cellValue(r,1)]=!1;i._setColFilltered(t,s),i._removeFilterUIArea(),i._doFiltering()})).appendTo(i)),n.clone().text(_.QCELL.def.resource.reset).appendTo(s.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){var r=e.data.target;r._setColFilltered(t,null),r._removeFilterUIArea(),r._doFiltering()})).appendTo(i)),i.appendTo(e),this.attr("filteruiarea",e,"jquery")},_.QCELL.BasicQCELL.prototype._createNumberFilterUI=function(t,e){var r,i,o,a,s,n=_.QCELL.def.css,l=_.$(document.createElement("div")),c=_.$(document.createElement("button")).addClass(n.FILTER_UI_BTN),h=_.$(document.createElement("span")),d=_.$(document.createElement("select")),u=_.$(document.createElement("option")),p=_.$(document.createElement("input")),g=this.attr("headertext")[t][this.attr("headertext")[t].length-1],f=this._getColFilltered(t);p.addClass(n.EXCLUDE_DRAGABLE),d.addClass(n.EXCLUDE_DRAGABLE),e.css({display:"none",width:"290px",height:"100px"}),(r=l.clone()).addClass(n.FILTER_TITLE_AREA),h.clone().text(g).addClass(n.FILTER_TITLE_SPAN).appendTo(r),l.clone().addClass(n.FILTER_UI_CLOSE+" "+n.EXCLUDE_DRAGABLE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("filteruivisible")&&e._removeFilterUIArea()})).appendTo(r),r.appendTo(e),i=l.clone().attr({id:"filter-input-area-"+this.attr("id")}),o=l.clone().attr({id:"filter-input-form1-"+this.attr("id")});var m=p.clone();m.attr({id:"filter-input1-"+this.attr("id")}).css({width:"120px",margin:"0px 5px 0px 0px"}).appendTo(o),u.clone().val(">").text("크다(>)").appendTo(d),u.clone().val("<").text("작다(<)").appendTo(d),u.clone().val(">=").text("크거나 같다(>=)").appendTo(d),u.clone().val("<=").text("작거나 같다(<=)").appendTo(d),u.clone().val("==").text("같다(==)").appendTo(d),u.clone().val("!=").text("같지 않다(!=)").appendTo(d);var C=d.clone();C.attr({id:"filter-select1-"+this.attr("id")}).css({height:"20px",margin:"0px 10px 0px 0px"}).appendTo(o),o.appendTo(i);var L=l.clone().attr({id:"filter-input-form2-"+this.attr("id")}),b=p.clone();b.attr({id:"filter-input2-"+this.attr("id")}).css({width:"120px",margin:"0px 5px 0px 0px"}).appendTo(L);var E=d.clone();E.attr({id:"filter-select2-"+this.attr("id")}).css({height:"20px",margin:"0px 10px 0px 0px"}).appendTo(L),e.css({height:"150px"}),a=l.clone().attr({id:"filter-radio-form-"+this.attr("id")}).css({margin:"5px 0px 5px 0px"});var v=p.clone();v.attr({type:"radio",name:"filter-operator-"+this.attr("id"),checked:"checked"}).val("and").appendTo(a),h.clone().text("and").css({"font-size":"12px"}).appendTo(a);var y=p.clone();y.attr({type:"radio",name:"filter-operator-"+this.attr("id")}).val("or").appendTo(a),h.clone().text("or").css({"font-size":"12px"}).appendTo(a),a.appendTo(i),L.appendTo(i),o.find("div").remove(),L.find("div").remove();var w=l.clone();w.addClass(n.FILTER_UI_ADDOPERATOR).on("click",this.attr("eventparam"),(function(t){var r=t.data.target;!0===r.attr("isNumberFilterExtened")?(a.hide(),L.hide(),e.css({height:"100px"}),r.attr("isNumberFilterExtened",!1,"boolean"),w.removeClass(n.FILTER_UI_ADDOPERATOR),w.removeClass(n.FILTER_UI_ADDOPERATOR_CLOSE),w.addClass(n.FILTER_UI_ADDOPERATOR)):(a.show(),L.show(),e.css({height:"150px"}),r.attr("isNumberFilterExtened",!0,"boolean"),w.removeClass(n.FILTER_UI_ADDOPERATOR),w.removeClass(n.FILTER_UI_ADDOPERATOR_CLOSE),w.addClass(n.FILTER_UI_ADDOPERATOR_CLOSE))})).appendTo(o),null===f?(a.hide(),L.hide(),e.css({height:"100px"})):null!==f&&(m.val(f.key1),C.val(f.op1),void 0!==f.logical?(b.val(f.key2),E.val(f.op2),"and"===f.logical?v.prop("checked",!0):y.prop("checked",!0),w.removeClass(n.FILTER_UI_ADDOPERATOR).addClass(n.FILTER_UI_ADDOPERATOR_CLOSE),this.attr("isNumberFilterExtened",!0,"boolean")):(a.hide(),L.hide(),e.css({height:"100px"}),this.attr("isNumberFilterExtened",!1,"boolean"))),i.appendTo(e),s=l.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"}),h.clone().text(_.QCELL.def.resource.adjust).appendTo(c.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var r,i,o,a=e.data.target,s=_.$("#filter-input1-"+a.attr("id")),n=_.$("#filter-select1-"+a.attr("id"));if(isNaN(Number(s.val()))||""===s.val())s.focus();else{var l={key1:Number(s.val()),op1:n.val()};if(!0===a.attr("isNumberFilterExtened")){if(i=_.$("#filter-input2-"+a.attr("id")),o=_.$("#filter-select2-"+a.attr("id")),r=_.$(':radio[name="filter-operator-'+a.attr("id")+'"]:checked'),isNaN(Number(i.val())))return void i.focus();l.key2=Number(i.val()),l.op2=o.val(),l.logical=r.val()}a._setColFilltered(t,l),a._removeFilterUIArea(),a._doFiltering()}})).appendTo(s)),h.clone().text(_.QCELL.def.resource.reset).appendTo(c.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){var r=e.data.target;r._setColFilltered(t,null),r._removeFilterUIArea(),r._doFiltering()})).appendTo(s)),s.appendTo(e),this.attr("filterinput",m,"jquery"),this.attr("filteruiarea",e,"jquery")},_.QCELL.BasicQCELL.prototype._showFilterUIArea=function(t,e){var r=this.attr("filteruiarea"),i=this.attr("layoutsize").viewport.offsetLeft,o=t.parentNode.offsetLeft+i,a=this._getColWidth(e),s=t.parentNode.offsetTop+8;r.appendTo(this.attr("elementpool").get("container")),r.prop("id",this.attr("id")+"_filterPopup"),_.util._dragElement(this.attr("id")+"_filterPopup"),"none"===r.css("display")&&r.css("display","block"),r.css({left:o+a-1+"px",top:s+"px"});var n="selectmenu"===this._getColType(e),l=this;if("string"===this._getQCellCol(e).attr("datatype")){var c,h=[],d=this._getColFilltered(e);this._createDataIndexPool(),this.attr("dataindexpool").get(this._getColID(e)).each((function(t){var r=null===d||d[t];c={check:r,indexpool:t},n&&(c.data=t,c.indexpool=l._getLabelByData(e,t)),h.push(c)}));var u=_.QCELL.NormalQCELL.create({id:"filter-dataindex",parentid:"filter-dataindex-"+this.attr("id"),rowheight:{header:30,data:30},selectmode:"row",columns:[{title:[""],key:"check",width:"15%",type:"checkbox",options:{wholeselect:!0,disabled:!1}},{title:["색인목록"],key:"indexpool",width:"85%",tooltip:!0}],data:{input:h}});u._createCols(),u._create(),_.QCELL.storage.put("filter-dataindex",u),u.bind("mousedown mousewheel DOMMouseScroll mouseenter mouseleave mousemove click dblclick keydown resize onDrag onDrop",(function(t){t.stopPropagation()}))}else setTimeout((function(){l.attr("filterinput").focus()}),0);this.attr("filteruivisible",!0,"boolean")},_.QCELL.BasicQCELL.prototype._removeFilterUIArea=function(){this.attr("filteruiarea").remove(),this.attr("filteruiarea",null,"jquery"),this.attr("filteruivisible",!1,"boolean"),_.QCELL._deleteInstance("filter-dataindex")},_.QCELL.BasicQCELL.prototype._isColFillteredEx=function(t){if(_._.isNumber(t))return this._getQCellCol(t).attr("filter");var e=this.attr("_filterprev");if(null===e&&(e=new i._QHashtable,this.attr("_filterprev",e,"object")),null===e.get(t)){var r=this.attr("additionaldataindex");if(null==r)return;for(var o=0;o<r.length;o++)if(r[o]===t){e.put(t,{});break}}return e.get(t)},_.QCELL.BasicQCELL.prototype._clearFocus=function(){this._idx("row","focus","previous",-1),this._idx("col","focus","previous",-1),this._idx("row","focus","current",-1),this._idx("col","focus","current",-1),this._clearFocusCSS()},_.QCELL.BasicQCELL.prototype._clearFocusCSS=function(){var t=this.attr("focuscell");if(null===t){var e=this.getIdx("row","focus","previous"),r=this.getIdx("col","focus","previous");-1!==e&&-1!==r&&(t=this._getCellDOM(e,r))}_._.isElement(t)&&this._removeFocusStyleClass(t)},_.QCELL.BasicQCELL.prototype._addFocusStyleClass=function(t){_.util.addClass(t,_.QCELL.def.css.CELL_FOCUS),this.attr("focuscell",t,"element")},_.QCELL.BasicQCELL.prototype._removeFocusStyleClass=function(t){_.util.removeClass(t,_.QCELL.def.css.CELL_FOCUS),this.attr("focuscell",null,"element")},_.QCELL.BasicQCELL.prototype._isFocusRow=function(t){return t===this._idx("row","focus","current")},_.QCELL.BasicQCELL.prototype._isFocusCol=function(t){return t===this._idx("col","focus","current")},_.QCELL.BasicQCELL.prototype._clearGroup=function(){var t=this.attr("groupstate");return!!t.grouped&&(t.grouped=!1,t.showpanel=!1,t.type="normal",t.data=[],t.columnsinfo.clear(),t.nodes.clear(),t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},t.expand=null,t.collapse=null,this._setCurrentData(this.attr("data").input,!1))},_.QCELL.BasicQCELL.prototype._checkValidationOfGroupProps=function(t){return _._.has(t,"columns")&&_._.isArray(t.columns)},_.QCELL.BasicQCELL.prototype._setGroup=function(t){if(this._checkValidationOfGroupProps(t)){var e=this,r=this.attr("groupstate"),i=r.columnsinfo,o=this.attr("headercols");return this.attr("_groupProps",_._.clone(t),"object"),r.grouped=!0,r.showpanel=!(!_._.has(t,"showpanel")||!_._.isBoolean(t.showpanel))&&t.showpanel,r.hidekeydata=!(!_._.has(t,"hidekeydata")||!_._.isBoolean(t.hidekeydata))&&t.hidekeydata,r.type=_._.has(t,"type")&&_._.isString(t.type)&&("normal"===t.type||"tree"===t.type||"step"===t.type||"group"===t.type)?t.type:"normal",r.expand=_._.has(t,"expand")&&_._.isFunction(t.expand)?t.expand:null,r.collapse=_._.has(t,"collapse")&&_._.isFunction(t.collapse)?t.collapse:null,r.presentkey=!(!_._.has(t,"presentkey")||!_._.isBoolean(t.presentkey)),r.leafnodekey=_._.has(t,"leafnodekey")&&_._.isString(t.leafnodekey)?t.leafnodekey:void 0,r.exclude=void 0===t.exclude?[]:t.exclude,_._.has(t,"sort")&&_._.isString(t.sort)?"none"===t.sort?r.sort="none":"asc"===t.sort?r.sort="asc":"desc"===t.sort?r.sort="desc":r.sort="asc":r.sort="asc",_._.each(t.columns,(function(t,a){var s=e._getColsOfKey(t.key),n=s[0],l=s.length>0?e._getColID(n):t.key;s.length>0&&(e._getQCellCol(n).attr("disabled",!0,"boolean"),e._moveCols(n,1,o+a,!0));!1===i.containsKey(l)&&(i.put(l,{header:_._.has(t,"header")&&_._.isObject(t.header)?_._.clone(t.header):{},footer:_._.has(t,"footer")&&_._.isObject(t.footer)?_._.clone(t.footer):{},headerFooterCallback:_._.has(t,"headerFooterCallback")&&_._.isFunction(t.headerFooterCallback)?t.headerFooterCallback:void 0}),"tree"!==r.type&&"step"!==r.type||(i.get(l).expand=!_._.has(t,"expand")||!_._.isBoolean(t.expand)||t.expand))})),e._initColStyles(),_._.each(t.outer,(function(t,e){r.outer={},r.outer.header=_._.clone(t.header),r.outer.footer=_._.clone(t.footer),r.outer.headers=_._.clone(t.headers),r.outer.footers=_._.clone(t.footers),r.outer.outerCallback=_._.has(t,"outerCallback")&&_._.isFunction(t.outerCallback)?t.outerCallback:void 0})),this._initGroup()}return!1},_.QCELL.BasicQCELL.prototype._initGroupData=function(){var t,e,r=[],i=[],o=[],a=[],s=this.attr("groupstate").data,n=this.attr("headerrows"),l=this.attr("groupstate").columnsinfo.keys(!0),c={},h={};for(e=0;e<l.length;e++)c[l[e]]=[],h[l[e]]=[];for(t=0;t<s.length;t++)for(!0===s[t].qc_header&&(r.push(t+n),i.push(s[t].qc_header_nodes)),!0===s[t].qc_footer&&(o.push(t+n),a.push(s[t].qc_footer_nodes)),e=0;e<l.length;e++)!0===s[t]["qc_row_ui_"+l[e]]&&(c[l[e]].push(t+n),h[l[e]].push(s[t]["qc_row_ui_"+l[e]+"_nodes"]));this.attr("groupstate").headerrows=r,this.attr("groupstate").headerrownodes=i,this.attr("groupstate").footerrows=o,this.attr("groupstate").footerrownodes=a,this.attr("groupstate").groupuirows=c,this.attr("groupstate").groupuinodes=h},_.QCELL.BasicQCELL.prototype._initGroup=function(){return this._makeGroupNodes(),!!this._makeGroupData()&&("group"===this.attr("groupstate").type&&(this._initGroupData(),this.merge("data","group")),this._setCurrentData(this.attr("groupstate").data.RT_clone(),!1))},_.QCELL.BasicQCELL.prototype._makeGroupNodes=function(){var t=this.attr("groupstate"),e=t.nodes,r=t.columnsinfo.size();e.clear();for(var i=0,o=this.attr("data").input.length;i<o;i++)for(var a=0;a<r;a++)this._makeGroupNode(null,e,i,0,a);return!0},_.QCELL.BasicQCELL.prototype._makeGroupNode=function(t,e,r,o,a){var s,n=this.attr("groupstate"),l=this.attr("data").input,c=n.columnsinfo,h=c.keys(!0)[o],d=c.size(),u=l[r],p=-1===this._getKeyOfColID(h)?h:this._getKeyOfColID(h),g=u[p],f=n.type;if(s=c.get(h),o===a){var m=!1,C=null;if(m="step"===f?d!==a+1:a!==d-1,e.containsKey(g)){if(C=e.get(g),!m)for(C.data.add(r);null!==C;)C.count+=1,C=C.parent}else if(C={colid:h,isparent:m,colkey:p,level:a,key:g,count:0,header:_._.size(s.header)>0,footer:_._.size(s.footer)>0,headerFooterCallback:s.headerFooterCallback,parent:t,_rowData:u},"tree"!==n.type&&"step"!==n.type&&"group"!==n.type||(C.expand=!_._.has(s,"expand")||"boolean"!=typeof s.expand||s.expand),e.put(g,C),m)C.childnodes=new i._QHashtable;else for(C.data=new i._QHashSet,C.data.add(r);null!==C;)C.count+=1,C=C.parent}else this._makeGroupNode(e.get(g),e.get(g).childnodes,r,o+1,a)},_.QCELL.BasicQCELL.prototype._makeGroupData=function(){var t=this.attr("groupstate");return!!t.grouped&&(t.data=[],t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},_._.isUndefined(t.outer)||_._.isUndefined(t.outer.header)&&_._.isUndefined(t.outer.headers)||this._makeGroupDatumOuterHeader(t.nodes),this._makeGroupDatum(t.nodes),0!==t.nodes.size()||_._.isUndefined(t.outer)||_._.isUndefined(t.outer.header)&&_._.isUndefined(t.outer.footer)&&_._.isUndefined(t.outer.headers)&&_._.isUndefined(t.outer.footers)||this._makeGroupZeroData(),_._.isUndefined(t.outer)||_._.isUndefined(t.outer.footer)&&_._.isUndefined(t.outer.footers)||this._makeGroupDatumOuterFooter(t.nodes),!0)},_.QCELL.BasicQCELL.prototype._makeGroupZeroData=function(){for(var t=this.attr("groupstate"),e=this.attr("data").input,r=0;r<e.length;r++)t.data.push(e[r]);return!0},_.QCELL.BasicQCELL.prototype._makeGroupDatumOuterHeader=function(t,e){var r=this.attr("groupstate");if(_._.isUndefined(r.outer.header)||this._makeGroupDatumOuterHeaderSub(t,e,r.outer.header),!_._.isUndefined(r.outer.headers))for(var i=0;i<r.outer.headers.length;i++)this._makeGroupDatumOuterHeaderSub(t,e,r.outer.headers[i])},_.QCELL.BasicQCELL.prototype._makeGroupDatumOuterHeaderSub=function(t,e,r){var i,o=this,a=this.attr("groupstate"),s=this.attr("data").type,n=this.attr("headerrows"),l=function(t,e){o._setGroupTotalHeaderFooterText(i,t,e,!0)},c=function(t,e){var r=!0;for(var i in t)if(t[i]!==e[i]){r=!1;break}return r},h=!0,d=-1,u="array"===s?[]:{},p={level:"-outer"};if("tree"===a.type||"step"===a.type){for(i=_._.clone(u),_._.each(r,l),h=!0,d=0;d<a.data.length;d++)if(c(a.data[d],i)){h=!1;break}h&&(a.data.push(i),a.headerrows.push(n+a.data.length-1),a.headerrownodes.push(p))}else if("group"===a.type){if(i=_._.clone(u),_._.each(r,l),void 0!==e)for(var g in e)_._.has(i,g)||(i[g]=e[g]);for(i.qc_header=!0,h=!0,d=0;d<a.data.length;d++)if(c(a.data[d],i)){h=!1;break}h&&(a.data.push(i),a.headerrows.push(n+a.data.length-1),a.headerrownodes.push(p))}else{for(i=_._.clone(u),_._.each(r,l),h=!0,d=0;d<a.data.length;d++)if(c(a.data[d],i)){h=!1;break}h&&(a.data.push(i),a.headerrows.push(n+a.data.length-1),a.headerrownodes.push(p))}},_.QCELL.BasicQCELL.prototype._makeGroupDatumOuterFooter=function(t,e){var r=this.attr("groupstate");if(_._.isUndefined(r.outer.footer)||this._makeGroupDatumOuterFooterSub(t,e,r.outer.footer),!_._.isUndefined(r.outer.footers))for(var i=0;i<r.outer.footers.length;i++)this._makeGroupDatumOuterFooterSub(t,e,r.outer.footers[i])},_.QCELL.BasicQCELL.prototype._makeGroupDatumOuterFooterSub=function(t,e,r){var i,o=this,a=this.attr("groupstate"),s=this.attr("data").type,n=this.attr("headerrows"),l=function(t,e){o._setGroupTotalHeaderFooterText(i,t,e,!1)},c="array"===s?[]:{},h={level:"-outer"};if("tree"===a.type||"step"===a.type)i=_._.clone(c),_._.each(r,l),a.data.push(i),a.footerrows.push(n+a.data.length-1),a.footerrownodes.push(h);else if("group"===a.type){if(i=_._.clone(c),_._.each(r,l),void 0!==e)for(var d in e)_._.has(i,d)||(i[d]=e[d]);i.qc_footer=!0,a.data.push(i),a.footerrows.push(n+a.data.length-1),a.footerrownodes.push(h)}else i=_._.clone(c),_._.each(r,l),a.data.push(i),a.footerrows.push(n+a.data.length-1),a.footerrownodes.push(h)},_.QCELL.BasicQCELL.prototype._makeGroupDatum=function(t,e){var r,i=this,o=this.attr("groupstate"),a=o.columnsinfo,s="asc"===o.sort?t.keys().sort():"desc"===o.sort?t.keys().sort().reverse():t.keys(!0),n=this.attr("data").input,l=this.attr("data").type,c=this.attr("headerrows"),h=function(t,e){i._setGroupHeaderFooterText(L,g,t,e,!0)},d=function(t,e){i._setGroupHeaderFooterText(L,g,t,e,!1)},u=function(t){o.data.push(n[t])},p=-1;for(p=0;p<s.length;p++){var g,f="array"===l?[]:{},m=s[p];if(_._.isUndefined(m))break;var C,L=t.get(m),b=L.colid,E=L.isparent,v=1,y=a.get(b);if("tree"===o.type||"step"===o.type){var w=L.parent;for(g=_._.clone(f),o.data.push(g);null!==w;)g[w.colkey]=w.key,w=w.parent,v++;g[L.colkey]=L.key,g._qc_origindata=_._.clone(L._rowData),g._qc_level=v,o.treeuirows.push(c+o.data.length-1),o.treeuirownodes.push(L),L.expand&&(L.header&&(g=_._.clone(f),_._.each(y.header,h),o.data.push(g),o.headerrows.push(c+o.data.length-1),o.headerrownodes.push(L)),E?this._makeGroupDatum(L.childnodes):_._.each(L.data.values(!0),u),L.footer&&(g=_._.clone(f),_._.each(y.footer,d),o.data.push(g),o.footerrows.push(c+o.data.length-1),o.footerrownodes.push(L)))}else if("group"===o.type){if(void 0===e&&(e={}),e[L.colkey]=m,L.header){if(g=_._.clone(f),_._.each(y.header,h),void 0!==e)for(C in e)_._.has(g,C)||(g[C]=e[C]);g.qc_header=!0,g.qc_header_nodes=L,o.data.push(g),o.headerrows.push(c+o.data.length-1),o.headerrownodes.push(L)}if(_._.indexOf(o.groupuirows,c+o.data.length-1,!0)<0&&(void 0===o.groupuirows[L.colkey]&&(o.groupuirows[L.colkey]=[]),void 0===o.groupuinodes[L.colkey]&&(o.groupuinodes[L.colkey]=[]),o.groupuirows[L.colkey].push(c+o.data.length-1),o.groupuinodes[L.colkey].push(L)),E)r=o.data.length,this._makeGroupDatum(L.childnodes,e),o.data[r]["qc_row_ui_"+L.colid]=!0,o.data[r]["qc_row_ui_"+L.colid+"_nodes"]=L;else{if(r=o.data.length,L.expand)_._.each(L.data.values(!0),u);else{var x=[];x.push(L.data.values(!0)[0]),_._.each(x,u)}o.data[r]["qc_row_ui_"+L.colid]=!0,o.data[r]["qc_row_ui_"+L.colid+"_nodes"]=L}if(L.footer){if(g=_._.clone(f),_._.each(y.footer,d),void 0!==e)for(C in e)_._.has(g,C)||(g[C]=e[C]);g.qc_footer=!0,g.qc_footer_nodes=L,o.data.push(g),o.footerrows.push(c+o.data.length-1),o.footerrownodes.push(L)}}else L.header&&(g=_._.clone(f),_._.each(y.header,h),o.data.push(g),o.headerrows.push(c+o.data.length-1),o.headerrownodes.push(L)),E?this._makeGroupDatum(L.childnodes):_._.each(L.data.values(!0),u),L.footer&&(g=_._.clone(f),_._.each(y.footer,d),o.data.push(g),o.footerrows.push(c+o.data.length-1),o.footerrownodes.push(L))}},_.QCELL.BasicQCELL.prototype._getGroupSum=function(t,e){var r=this,i=this.attr("data").input,o=0;return t.isparent?t.childnodes.each((function(t,i){o+=r._getGroupSum(i,e)})):_._.each(t.data.values(),(function(t){o+=i[t][e]})),o},_.QCELL.BasicQCELL.prototype._getGroupCountif=function(t,e,r){var i=this,o=this.attr("data").input,a=0;return t.isparent?t.childnodes.each((function(t,o){a+=i._getGroupCountif(o,e,r)})):_._.each(t.data.values(),(function(t){o[t][e]===r&&(a+=1)})),a},_.QCELL.BasicQCELL.prototype._setGroupTotalHeaderFooterText=function(t,e,r,i,o){var a,s=this,n=[/^childcount\(.*\)$/,/^count\(.*\)$/,/^countif\(.*\)$/,/^groupvalue\(.*\)$/,/^sum\(.*\)$/,/^average\(.*\)$/,/.*\(|\)/gi,/[\"\']/gi,/^[0-9]*$/],l=this.attr("data").type,c=this.attr("data").input,h="",d=null;!1!==o&&(d=this.attr("groupstate").outer.outerCallback),_._.each(e,(function(e){var i,u;if(n[0].test(e))u=0,_._.isFunction(d)&&(u=d(r,u,t)),h+=u;else if(n[1].test(e))u=c.length,_._.isFunction(d)&&(u=d(r,u,t)),h+=u;else if(n[2].test(e)){var p=e.replace(n[6],""),g=_._.map(p.split(","),(function(t){return _.$.trim(t).replace(n[7],"")}));2===g.length&&(i="array"===l&&n[8].test(g[0])?parseInt(g[0]):g[0],u=s._getGroupCountif(a,i,g[1]),_._.isFunction(d)&&(u=d(r,u,t)),h+=u)}else if(n[3].test(e)){if(!1===o)return;var f=Number(e.replace(n[6],""));if(!1===isNaN(f)&&f<=a.level){for(var m=a;f<m.level;)m=m.parent;h+=m.key}}else if(n[4].test(e)||n[5].test(e)){var C=e.replace(n[6],"").replace(n[7],"");i=""===C?r:"array"===l&&n[8].test(C)?parseInt(C):C;for(var L=0,b=0;b<c.length;b++)L+=Number(void 0!==c[b][i]?c[b][i]:0);var E=L,v=s._getColsOfKey(i)[0],y=void 0!==v?s._getColFormat(v):void 0,w=c.length;u=n[5].test(e)?E/w:E,_._.isFunction(d)&&(u=d(r,u,t)),h+=void 0===y?u:s._showDataFormat(0,v,u)}else h+=e})),t[r]=h,!0===i?t.rt_qc_header=!0:!1===i?t.rt_qc_footer=!0:console.log("error")},_.QCELL.BasicQCELL.prototype._setGroupHeaderFooterText=function(t,e,r,i,o){var a=this,s=[/^childcount\(.*\)$/,/^count\(.*\)$/,/^countif\(.*\)$/,/^groupvalue\(.*\)$/,/^sum\(.*\)$/,/^average\(.*\)$/,/.*\(|\)/gi,/[\"\']/gi,/^[0-9]*$/],n=this.attr("data").type,l="";_._.each(r,(function(r){var o,c;if(s[0].test(r))c=t.isparent?t.childnodes.size():t.data.size(),void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(i,c,e)),l+=c;else if(s[1].test(r))c=t.count,void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(i,c,e)),l+=c;else if(s[2].test(r)){var h=r.replace(s[6],""),d=_._.map(h.split(","),(function(t){return _.$.trim(t).replace(s[7],"")}));2===d.length&&(o="array"===n&&s[8].test(d[0])?parseInt(d[0]):d[0],c=a._getGroupCountif(t,o,d[1]),void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(i,c,e)),l+=c)}else if(s[3].test(r)){var u=Number(r.replace(s[6],""));if(!1===isNaN(u)&&u<=t.level){for(var p=t;u<p.level;)p=p.parent;c=p.key,void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(i,c,e)),l+=c}}else if(s[4].test(r)||s[5].test(r)){var g=r.replace(s[6],"").replace(s[7],"");if(o=""===g?i:"array"===n&&s[8].test(g)?parseInt(g):g,a._getColsOfKey(o).length>0&&"number"===a._getColDataType(a._getColsOfKey(o)[0])){var f=a._getGroupSum(t,o),m=a._getColsOfKey(o)[0],C=a._getColFormat(m);c=s[5].test(r)?f/t.count:f,void 0!==t.headerFooterCallback&&(c=t.headerFooterCallback(i,c,e)),void 0!==C&&(c=a._showDataFormat(0,m,c)),l+=c}}else void 0!==t.headerFooterCallback&&(r=t.headerFooterCallback(i,r,e)),l+=r})),e[i]=l,!0===o?e.rt_qc_header=!0:!1===o?e.rt_qc_footer=!0:console.log("error")},_.QCELL.BasicQCELL.prototype._seekNextExpandedGroupTreeUIRow=function(t){var e=!0===this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),r=e.treeuirows,i=e.treeuirownodes,o=-1;return t>0?_.$.each(r,(function(e,r){var a=i[e];return a.level!==t-1&&(a.level===t?(o=r,!1):void 0)})):_.$.each(r,(function(e,r){if(i[e].level===t)return o=r,!1})),-1===o&&t>0?this._seekNextExpandedGroupTreeUIRow(t-1):o},_.QCELL.BasicQCELL.prototype._setExpandOfGroupTreeUIRow=function(t,e){var r,i,o,a,s,n,l,c,h,d,u,p,g=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),f=this.attr("data").input,m=g.treeuirows,C=g.treeuirownodes,L=g.headerrows,b=g.headerrownodes,E=g.footerrows,v=g.footerrownodes,y=this.attr("headerrows"),w="tree"===g.type||"step"===g.type?_._.indexOf(m,t,!0):-1;if(w>-1){var x=this,k=C[w];if(e){if(!1!==k.expand)return!1;var S,Q,q,T=this.attr("data").type,A=k.colid,R=g.columnsinfo.get(A),O="array"===T?[]:{};if(c=_._.findIndex(L,(function(e){return e>t})),h=_._.findIndex(E,(function(e){return e>t})),r=g.data.splice(t-y+1,g.data.length-(t-y+1)),i=m.splice(w+1,m.length-(w+1)),o=C.splice(w+1,C.length-(w+1)),a=c>-1?L.splice(c,L.length-c):[],s=c>-1?b.splice(c,b.length-c):[],n=h>-1?E.splice(h,E.length-h):[],l=h>-1?v.splice(h,v.length-h):[],S=g.data.length,k.expand=!0,k.header&&(q=_._.clone(O),_._.each(R.header,(function(t,e){x._setGroupHeaderFooterText(k,q,t,e,!0)})),g.data.push(q),g.headerrows.push(y+g.data.length-1),g.headerrownodes.push(k)),k.isparent)!0===this.attr("treestate").grouped?this._makeTreeDatum(k.childnodes):this._makeGroupDatum(k.childnodes);else{var D=g.data.length;_._.each(k.data.values().sort(_.st.asc),(function(t){g.data.push(f[t])})),g.data[D]["qc_row_ui"+k.colkey]=!0}for(k.footer&&(q=_._.clone(O),_._.each(R.footer,(function(t,e){x._setGroupHeaderFooterText(k,q,t,e,!1)})),g.data.push(q),g.footerrows.push(y+g.data.length-1),g.footerrownodes.push(k)),Q=g.data.length-S,u=0,d=i.length;u<d;u++)i[u]=i[u]+Q;for(u=0,d=a.length;u<d;u++)a[u]=a[u]+Q;for(u=0,d=n.length;u<d;u++)n[u]=n[u]+Q;g.treeuirows=m.concat(i),g.treeuirownodes=C.concat(o),g.headerrows=L.concat(a),g.headerrownodes=b.concat(s),g.footerrows=E.concat(n),g.footerrownodes=v.concat(l),g.data=g.data.concat(r)}else{if(!k.expand)return!1;var B=0,I=0,N=0;if(c=_._.findLastIndex(L,(function(e){return e<t})),h=_._.findLastIndex(E,(function(e){return e<t})),r=g.data.splice(0,t-y+1),i=m.splice(0,w+1),o=C.splice(0,w+1),a=c>-1?L.splice(0,c+1):[],s=c>-1?b.splice(0,c+1):[],n=h>-1?E.splice(0,h+1):[],l=h>-1?v.splice(0,h+1):[],k.isparent){var P=0,M=0;(M=!0===this.attr("treestate").grouped?this._seekNextExpandedTreeUIRow(k,t):this._seekNextExpandedGroupTreeUIRow(k.level))>-1?(B=M-t-1,_.$.each(m,(function(t,e){if(!(e<M))return!1;P+=1}))):(B=this.attr("rows")-t-1,P=m.length),m.splice(0,P),C.splice(0,P)}else B=k.data.size()+(k.header?1:0)+(k.footer?1:0);for(m.length>0&&(_.$.each(L,(function(t,e){if(!(e<m[0]))return!1;I+=1})),L.splice(0,I),b.splice(0,I),_.$.each(E,(function(t,e){if(!(e<M))return!1;N+=1})),E.splice(0,N),v.splice(0,N)),u=0,d=m.length;u<d;u++)m[u]-=B;for(u=0,d=L.length;u<d;u++)L[u]-=B;for(u=0,d=E.length;u<d;u++)E[u]-=B;var H=i.concat(m),U=o.concat(C);if(t===H[H.length-1]&&0===U[U.length-1].level&&t===H[U.length-1]&&(_._.isUndefined(g.outer)||_._.isUndefined(g.outer.footer)||(B=g.data.length-1)),g.data.splice(0,B),g.treeuirows=i.concat(m),g.treeuirownodes=o.concat(C),g.headerrows=a.concat(L),g.headerrownodes=s.concat(b),g.footerrows=n.concat(E),g.footerrownodes=l.concat(v),g.data=r.concat(g.data),t===g.treeuirows[g.treeuirows.length-1]&&0===g.treeuirownodes[g.treeuirownodes.length-1].level&&t===g.treeuirows[g.treeuirownodes.length-1]&&!_._.isUndefined(g.outer)&&!_._.isUndefined(g.outer.footer))for(u=0;u<g.footerrows.length;u++)for(p=0;p<g.treeuirows.length;p++)g.footerrows[u]===g.treeuirows[p]&&(g.footerrows[u]=g.footerrows[u]+1);k.expand=!1}g.footerrows=[],g.headerrows=[];for(var F=0;F<g.data.length;F++)void 0!==g.data[F].rt_qc_footer&&!0===g.data[F].rt_qc_footer&&g.footerrows.push(F+y),void 0!==g.data[F].rt_qc_header&&!0===g.data[F].rt_qc_header&&g.headerrows.push(F+y);var z=this._setCurrentData(g.data.RT_clone(),!1,!0);return k.expand&&_._.isFunction(g.expand)?g.expand(k.colid,k.colkey,k.key,t,this._getColOfID(k.colid)):!k.expand&&_._.isFunction(g.collapse)&&g.collapse(k.colid,k.colkey,k.key,t,this._getColOfID(k.colid)),this._trigger("treeuiclicked",{nRow:t,bExpand:e}),z}return!1},_.QCELL.BasicQCELL.prototype._setExpandOfGroupNodes=function(t,e,r,i){var o=this;_._.each(t.keys(),(function(a){var s=t.get(a);i?(s.isparent&&o._setExpandOfGroupNodes(s.childnodes,e,r,i),e<=s.level&&(s.expand=r)):e===s.level?s.expand=r:s.isparent&&e>s.level&&o._setExpandOfGroupNodes(s.childnodes,e,r,i)}))},_.QCELL.BasicQCELL.prototype._setExpandOfGroupLevel=function(t,e,r){var i=this.attr("groupstate");if(i.grouped)return this._setExpandOfGroupNodes(i.nodes,t,e,r),!!this._makeGroupData()&&this._setCurrentData(i.data,!1)},_.QCELL.BasicQCELL.prototype._setGroupTreeUICell=function(t,e,r){var i=this,o=_.QCELL.def.css,a=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),s=document.createElement("span"),n=document.createElement("span"),l=parseInt(t.getAttribute("data-row")),c=parseInt(t.getAttribute("data-col")),h=a.type,d=!0===a.presentkey?e.key:r,u=!1,p=i._getQCellCol(c).attr("colstyleeditordata");if(_.util.bind([s,n],"click",(function(t){i.attr("_isExpand")?console.log("_isExpand"):(i.attr("_isExpand",!0,"boolean"),i._setExpandOfGroupTreeUIRow(l,!e.expand),i.attr("_isExpand",!1,"boolean"),i.attr("usetreeall"))})),!0===this.attr("treestate").grouped&&(void 0===(d=!0===e.showLabel?e._rowData[e.label]:e.key)&&(d=""),"parentchild"===this.attr("treestate").mode&&(d=r),e.level>1&&this.attr("treestate").exclude.length>0))for(var g=0;g<this.attr("treestate").exclude.length;g++)if(this.attr("treestate").exclude[g]===this._getKeyOfCol(c)){d="";break}null!==e?(s.style.marginLeft="step"===h?(e.level>0?0*e.level:0)+"px":(e.level>0?20*e.level:0)+"px",_.util.addClass(s,[o.GROUPTREEUI,o.GROUPTREEUI_ARROW,e.expand?o.GROUPTREEUI_ARROW_EXPAND:o.GROUPTREEUI_ARROW_COLLAPSE]),_.util.addClass(n,[o.GROUPTREEUI,o.GROUPTREEUI_FOLDER,e.expand?o.GROUPTREEUI_FOLDER_EXPAND:o.GROUPTREEUI_FOLDER_COLLAPSE])):s.style.marginLeft="0px",_.$(t).empty(),p.replace("QCELL_COL_DATA","").length>0?t.innerHTML=p.replace("QCELL_COL_DATA",d):_.util.textContent(t,d);for(var f=0;f<a.treeuirows.length;f++)if(a.treeuirows[f]===l){u=!0;break}return u&&(t.insertBefore(n,t.firstChild),t.insertBefore(s,t.firstChild)),!isNaN(l)&&l>0&&!isNaN(l)&&c>0&&this._setAriaLabel(t,l,c,d),!0},_.QCELL.BasicQCELL.prototype._setGroupTreeDataCell=function(t,e,r){var i,o=_.QCELL.def.css,a=document.createElement("span"),s=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=s.hidekeydata,l=s.type,c=s.leafnodekey,h=parseInt(t.getAttribute("data-col")),d=this._getQCellCol(h).attr("colstyleeditordata"),u=1,p=void 0===s.leafindent?0:s.leafindent,g=!1;if(this.attr("groupstate").grouped)u=s.columnsinfo.size();else if(this.attr("treestate").grouped){if(void 0===r)return;if(void 0===(u=r[s.level]))return void _.$(t).empty();var f=(i=s.columnsinfo).keys(!0),m="",C=!1,L="";if(f.length>1&&("parentchild"===s.mode?(C=i.get(f[0]).showLabel,L=i.get(f[0]).label,m=-1===this._getKeyOfColID(f[0])?f[0]:this._getKeyOfColID(f[0])):(C=i.get(f[u-1]).showLabel,L=i.get(f[u-1]).label,m=-1===this._getKeyOfColID(f[u-1])?f[u-1]:this._getKeyOfColID(f[u-1]),void 0===C&&(C=!0),void 0===L&&(L=m))),!0===C&&(e=r[L]),void 0===e&&(e=""),u>1&&this.attr("treestate").exclude.length>0)for(var b=0;b<this.attr("treestate").exclude.length;b++)if(this.attr("treestate").exclude[b]===this._getKeyOfCol(h)){e="",g=!0;break}}if(null!=c&&_._.isString(c)&&(e=r[c]),a.style.marginLeft="step"===l?20-p+"px":20*u-p+"px",_.util.addClass(a,[o.GROUPTREEUI,o.GROUPTREEUI_DOT]),_.$(t).empty(),("tree"===l||"step"===l)&&n)return!0;d.replace("QCELL_COL_DATA","").length>0?t.innerHTML=d.replace("QCELL_COL_DATA",e):_.util.textContent(t,e),!1===g&&t.insertBefore(a,t.firstChild);var E=parseInt(t.getAttribute("data-row"));return!isNaN(E)&&E>0&&!isNaN(E)&&h>0&&this._setAriaLabel(t,E,h,e),!0},_.QCELL.BasicQCELL.prototype._setGroupThroughGroupInfo=function(t){var e=this.attr("groupinfo"),r={type:e.type,columns:[]};return _._.each(t,(function(t){r.columns.push({key:t,expand:void 0===e.expand[t]||e.expand[t],header:void 0===e.header[t]?{}:e.header[t],footer:void 0===e.footer[t]?{}:e.footer[t]})})),this._setGroup(r)},_.QCELL.BasicQCELL.prototype._setGroupMakeHelper=function(t){var e=_.$(t.currentTarget).find("span").clone(!0),r=_.$(t.currentTarget).clone(!0).removeClass("ui-draggable-dragging").css({position:"relative",top:0,left:0,"z-index":9}).empty();return r.append(e),_.$("."+_.QCELL.def.css.ROOT).children(":last").is(".rt-qc-ui-draggable")||(_.$("."+_.QCELL.def.css.ROOT).append(r),_.$(r).draggable({connectToSortable:"."+_.QCELL.def.css.GROUPUI_INNER})),_.$("."+_.QCELL.def.css.ROOT).children(":last")},_.QCELL.BasicQCELL.prototype._setGroupUIInfo=function(t){var e=this.attr("groupuiinfo");_._.each(t,(function(t){e.push(t.getAttribute("data-column"))})),this._setGroupUIForGroup()},_.QCELL.BasicQCELL.prototype._setGroupUIForGroup=function(){for(var t=this.attr("groupuiinfo"),e=[],r=0;r<t.length;r++){var i={};i.key=t[r],e.push(i)}this._clearGroup(),t.length>0&&(this._clearGroup(),this._setGroup({type:"tree",columns:e}))},_.QCELL.BasicQCELL.prototype._getGroupNode=function(t,e){var r,i,o,a,s=this.attr("groupstate"),n=s.columnsinfo.keys(!0);for(r=s.nodes,a=0;a<n.length;a++)if(void 0!==(o=this._getKeyOfColID(n[a]))){if(i=t[o],_._.isUndefined(i))return null;if(null===r.get(i))return null;if(r.get(i).colkey===e)return r.get(i);r=r.get(i).childnodes}return null},_.QCELL.BasicQCELL.prototype._setExpandOfGroupUIRow=function(t,e,r){var i,o,a,s,n,l=this.attr("groupstate"),c=this.attr("data").input,h=l.groupuirows[r.colid],d=this.attr("headerrows"),u=-1;if("group"===l.type){o=0;do{u=_._.indexOf(h,t-o,!0)}while(-1===u&&t-d-o++>=0)}if(u>-1){if(t=h[u],e){if(!1!==r.expand)return!1;a=l.data.splice(t-d,1),i=l.data.splice(t-d,l.data.length-(t-d)),r.expand=!0;var p={};if(p[r.colkey]=r.key,r.isparent){var g=l.data.length;for(n in this._makeGroupDatum(r.childnodes,p),s=a[0])_._.has(l.data[g],n)||(l.data[g][n]=s[n])}else{var f=l.data.length;_._.each(r.data.values().sort(_.st.asc),(function(t){l.data.push(c[t])})),l.data[f]["qc_row_ui_"+r.colid]=!0,l.data[f]["qc_row_ui_"+r.colid+"_nodes"]=r}l.data=l.data.concat(i),this._initGroupData()}else{if(!r.expand)return!1;var m,C=0;i=l.data.splice(0,t-d+1),C=r.isparent?(m=this._seekNextExpandedGroupUIRow(t,r.level,r.colid))>-1?m-t-1:this.attr("rows")-t-1:r.data.size()-1,a=l.data.splice(0,C),l.data=i.concat(l.data),this._initGroupData(),r.expand=!1}var L=this._setCurrentData(l.data.RT_clone(),!1);return r.expand&&_._.isFunction(l.expand)?l.expand(r.colid,r.colkey,r.key,t,this._getColOfID(r.colid)):!r.expand&&_._.isFunction(l.collapse)&&l.collapse(r.colid,r.colkey,r.key,t,this._getColOfID(r.colid)),L}return!1},_.QCELL.BasicQCELL.prototype._setGroupUICell=function(t,e,r){var i=this,o=_.QCELL.def.css,a=document.createElement("span"),s=document.createElement("span"),n=parseInt(t.getAttribute("data-row"));return _.util.bind([a,s],"click",(function(t){i._setExpandOfGroupUIRow(n,!e.expand,e)})),a.style.marginLeft="0px",_.util.addClass(a,[o.GROUPTREEUI,o.GROUPTREEUI_ARROW,e.expand?o.GROUPTREEUI_ARROW_EXPAND:o.GROUPTREEUI_ARROW_COLLAPSE]),_.util.addClass(s,[o.GROUPTREEUI,o.GROUPTREEUI_FOLDER,e.expand?o.GROUPTREEUI_FOLDER_EXPAND:o.GROUPTREEUI_FOLDER_COLLAPSE]),_.$(t).empty(),_.util.textContent(t,r),t.insertBefore(s,t.firstChild),t.insertBefore(a,t.firstChild),!0},_.QCELL.BasicQCELL.prototype._seekNextExpandedGroupUIRow=function(t,e,r){var i=this.attr("groupstate"),o=i.groupuirows[r],a=i.groupuinodes[r],s=-1;return e>0?_.$.each(o,(function(t,r){var i=a[t];return i.level!==e-1&&(i.level===e?(s=r,!1):void 0)})):_.$.each(o,(function(r,i){if(a[r].level===e&&t<i)return s=i,!1})),-1===s&&e>0?this._seekNextExpandedGroupUIRow(e-1):s},_.QCELL.BasicQCELL.prototype._setGrandTotal=function(t){(!0===this.attr("_isGTF")||this.attr("_isGTH"))&&this._clearGrandTotal();var e,r,i=this,o=function(t,e){i._setGroupTotalHeaderFooterText(r,t,e,!1,!1)},a=[],s=[];if(_._.isArray(t.footer))for(e=0;e<t.footer.length;e++)r={_rtqc_state:"gt"},_._.each(t.footer[e],o),s.push(_._.clone(r));if(_._.isArray(t.header))for(e=0;e<t.header.length;e++)r={_rtqc_state:"gt"},_._.each(t.header[e],o),a.push(_._.clone(r));for(e=0;e<s.length;e++)this.insertRow(this.getRows(),s[e]),this.attr("_isGTF",!0,"boolean");for(e=a.length-1;e>=0;e--)this.insertRow(this.getRows("header"),a[e]),this.attr("_isGTH",!0,"boolean");return this.attr("_backGT",_._.clone(t),"object"),!0},_.QCELL.BasicQCELL.prototype._clearGrandTotal=function(){var t=this.getRows("header");this.attr("_isGTF",!1,"boolean"),this.attr("_isGTH",!1,"boolean");for(var e=this.getRows()-1;e>=t;e--){"gt"===this.getRowData(e)._rtqc_state&&this._deleteRows(e,1)}},_.QCELL.BasicQCELL.prototype._setTree=function(t){if(!0===this.attr("useall"))return _.QCELL.isForceDynamic=!0,this.attr("usetreeall",!0,"boolean"),this._rebuild(),void this._setTree(t);if(this._onScrollHideEditCellsDOM(),this._checkValidationOfGroupProps(t)){var e=this,r=this.attr("treestate"),i=r.columnsinfo,o=this.attr("headercols");return this.attr("_treeProps",_._.clone(t),"object"),r.grouped=!0,r.level=_._.has(t,"level")&&_._.isString(t.level)?t.level:"level",r.treeUIColumn=_._.has(t,"treeUIColumn")&&_._.isString(t.treeUIColumn)?t.treeUIColumn:"level",r.expand=_._.has(t,"expand")&&_._.isFunction(t.expand)?t.expand:null,r.collapse=_._.has(t,"collapse")&&_._.isFunction(t.collapse)?t.collapse:null,r.leafindent=_._.has(t,"leafindent")?t.leafindent:0,r.linkedcheckbox="rowheader"===t.linkedcheckbox?"_rt_qc_rowheader":t.linkedcheckbox,r.exclude=void 0===t.exclude?[]:t.exclude,r.mode=t.mode,_._.has(t,"sort")&&_._.isString(t.sort)?"none"===t.sort?r.sort="none":"asc"===t.sort?r.sort="asc":"desc"===t.sort?r.sort="desc":r.sort="asc":r.sort="asc",_._.each(t.columns,(function(r,a){var s=e._getColsOfKey(r.key),n=s[0],l=s.length>0?e._getColID(n):r.key;s.length>0&&(e._getQCellCol(n).attr("disabled",!0,"boolean"),!1!==t.movefirst&&e._moveCols(n,1,o+a,!0));!1===i.containsKey(l)&&(i.put(l,{header:_._.has(r,"header")&&_._.isObject(r.header)?_._.clone(r.header):{},footer:_._.has(r,"footer")&&_._.isObject(r.footer)?_._.clone(r.footer):{},headerFooterCallback:_._.has(r,"headerFooterCallback")&&_._.isFunction(r.headerFooterCallback)?r.headerFooterCallback:void 0}),i.get(l).expand=!_._.has(r,"expand")||!_._.isBoolean(r.expand)||r.expand,i.get(l).showLabel=r.showLabel,i.get(l).label=r.label,i.get(l).parentcode=r.parentkey)})),e._initColStyles(),_._.each(t.outer,(function(t,e){r.outer={},r.outer.header=_._.clone(t.header),r.outer.footer=_._.clone(t.footer),r.outer.headers=_._.clone(t.headers),r.outer.footers=_._.clone(t.footers),r.outer.outerCallback=_._.has(t,"outerCallback")&&_._.isFunction(t.outerCallback)?t.outerCallback:void 0})),"parentchild"===r.mode?this._initTreeEx():this._initTree()}return!1},_.QCELL.BasicQCELL.prototype._initTree=function(){if(this._makeTreeNodes(),this._makeTreeData()){this.attr("useall",!1,"boolean");var t=this.attr("treestate").data.RT_clone();return this.attr("usetreeall")&&this.attr("makefrozenbottomdata")&&t.push({rt_qc_fbrd:!0}),this._setCurrentData(t,!1)}return!1},_.QCELL.BasicQCELL.prototype._treecheckbox=function(t,e,r){var i=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(!0===i.grouped&&void 0!==i.linkedcheckbox&&i.linkedcheckbox===this._getKeyOfCol(e)){var o=this.getRowData(t);if(void 0!==o._rt_qc_treeinfo){var a=this._getColElement(e).attr("checkedvalue"),s=this._getColElement(e).attr("uncheckedvalue");if(void 0!==o._rt_qc_treeinfo.parent&&this._treecheckboxparentsub(i.linkedcheckbox,o._rt_qc_treeinfo.parent,r,a,s),void 0!==o._rt_qc_treeinfo.children)for(var n=0;n<o._rt_qc_treeinfo.children.length;n++)this._treecheckboxchildsub(i.linkedcheckbox,o._rt_qc_treeinfo.children[n],r,a,s);this.refresh()}}},_.QCELL.BasicQCELL.prototype._treecheckboxparentsubEx=function(t,e,r){var i=!0,o=this.attr("data").input;if(void 0===t._rt_qc_treeinfo.children)return!0;for(var a=0;a<t._rt_qc_treeinfo.children.length;a++){var s=o[t._rt_qc_treeinfo.children[a]];if(void 0===s)return!1;if(s[e]!==r)return!1;if(void 0!==s._rt_qc_treeinfo&&void 0!==s._rt_qc_treeinfo.children&&(i=this._treecheckboxparentsubEx(s,e,r)),!1===i)break}return i},_.QCELL.BasicQCELL.prototype._treecheckboxparentsub=function(t,e,r,i,o){var a=this.attr("data").input[e];r=this._treecheckboxparentsubEx(a,t,i),a[t]=!0===r?i:o,void 0!==a._rt_qc_treeinfo&&void 0!==a._rt_qc_treeinfo.parent&&this._treecheckboxparentsub(t,a._rt_qc_treeinfo.parent,r,i,o)},_.QCELL.BasicQCELL.prototype._treecheckboxchildsub=function(t,e,r,i,o){var a=this.attr("data").input[e];if(a[t]=!0===r?i:o,void 0!==a._rt_qc_treeinfo&&void 0!==a._rt_qc_treeinfo.children)for(var s=0;s<a._rt_qc_treeinfo.children.length;s++)this._treecheckboxchildsub(t,a._rt_qc_treeinfo.children[s],r,i,o)},_.QCELL.BasicQCELL.prototype._makeTreeNodes=function(){var t=this.attr("treestate"),e=t.nodes,r=t.level;e.clear(),t.state={};for(var o,a,s=t.columnsinfo,n=this.attr("data").input.RT_clone(),l=t.columnsinfo,c=l.keys(!0),h=null,d=0,u=n.length;d<u;d++){var p=n[d];if(a=e,void 0!==p[r]){o=Number(p[r]);for(var g=0;g<o;g++){var f=-1===this._getKeyOfColID(c[g])?c[g]:this._getKeyOfColID(c[g]);if(void 0!==f){var m=p[f];if(a.containsKey(m))h=a.get(m);else{var C="_rt_qc_index",L="_rt_qc_treeinfo";null!==h&&(p[L]={},1!==o&&(p[L].parent=h._rowData[C]),void 0===h._rowData[L]&&(h._rowData[L]={}),o>=h._rowData[f]&&(void 0===h._rowData[L].children&&(h._rowData[L].children=[]),h._rowData[L].children.push(d)));var b=l.get(c[g]).expand;h={colid:c[g],isparent:!1,colkey:f,level:o,key:m,count:0,header:_._.size(s.header)>0,footer:_._.size(s.footer)>0,headerFooterCallback:s.headerFooterCallback,parent:h,expand:b,_rowData:p,showLabel:l.get(c[g]).showLabel,label:l.get(c[g]).label},p[C]=d,a.put(m,h)}null!==h.childnodes&&void 0!==h.childnodes||(h.childnodes=new i._QHashtable),a=h.childnodes}}}}return!0},_.QCELL.BasicQCELL.prototype._makeTreeData=function(){var t=this.attr("treestate");return t.data=[],t.treeuirows=[],t.treeuirownodes=[],t.headerrows=[],t.headerrownodes=[],t.footerrows=[],t.footerrownodes=[],t.groupuirows={},t.groupuinodes={},_._.isUndefined(t.outer)||_._.isUndefined(t.outer.header)&&_._.isUndefined(t.outer.headers),this._makeTreeDatum(t.nodes),0!==t.nodes.size()||_._.isUndefined(t.outer)||_._.isUndefined(t.outer.header)&&_._.isUndefined(t.outer.footer)&&_._.isUndefined(t.outer.headers)&&_._.isUndefined(t.outer.footers),_._.isUndefined(t.outer)||_._.isUndefined(t.outer.footer)&&_._.isUndefined(t.outer.footers),!0},_.QCELL.BasicQCELL.prototype._makeTreeDatum=function(t){var e=this.attr("treestate"),r="asc"===e.sort?t.keys().sort():"desc"===e.sort?t.keys().sort().reverse():t.keys(!0),i=this.attr("headerrows"),o=-1;for(o=0;o<r.length;o++){var a=r[o];if(_._.isUndefined(a))break;var s=t.get(a);s.isparent=s.childnodes.size()>0,!0===s.isparent&&(e.treeuirows.push(i+e.data.length),e.treeuirownodes.push(s)),e.data.push(s._rowData),!0===s.isparent&&!0===s.expand&&this._makeTreeDatum(s.childnodes)}},_.QCELL.BasicQCELL.prototype._seekNextExpandedTreeUIRow=function(t,e){for(var r=t.childnodes.keys(!0),i=e+1,o=0;o<r.length;o++){var a=t.childnodes.get(r[o]);a.isparent&&!0===a.expand?i=this._seekNextExpandedTreeUIRow(a,i):i+=1}return i},_.QCELL.BasicQCELL.prototype._findParentNode=function(t,e){if(e.containsKey(t))return e.get(t);for(var r=e.keys(!0),i=0;i<r.length;i++){var o=e.get(r[i]),a=this._findParentNode(t,o.childnodes);if(null!==a)return a}return null},_.QCELL.BasicQCELL.prototype._insertTreeNode=function(t,e,r){var o,a=this.attr("treestate"),s=a.columnsinfo,n=0,l=a.nodes,c=null,h=0,d=s.keys(!0),u=void 0===r?"last":"first",p="",g=null,f=!0;if("parentchild"===a.mode){if(g=null,""!==t[0]){if(null===(g=this._findParentNode(t[0],l)))return!1;n=g.level+1,c=l=g}else n=1;if(h=0,void 0===(p=e[-1===this._getKeyOfColID(d[0])?d[0]:this._getKeyOfColID(d[0])]))return!1}else{for(var m=0;m<t.length-1;m++){if(""===t[m].trim())return!1;if(!l.containsKey(t[m])){f=!1;break}f=!0,c=l.get(t[m]),l=c.childnodes,h++}n=h+1,p=t[h]}if(!0===f){if(0!==h){if(""===t[h].trim())return!1;if(l.containsKey(t[h]))return!1}var C=s.get(d[h]);if(null===C)return!1;var L=C.expand,b="_rt_qc_index",E={colid:d[h],isparent:!1,colkey:d[h],level:n,key:p,count:0,header:_._.size(C.header)>0,footer:_._.size(C.footer)>0,headerFooterCallback:C.headerFooterCallback,parent:g,expand:L,_rowData:e};E.childnodes=new i._QHashtable;var v=this.attr("data").input;if(null===c){if(null!==(c=l.get(t[0])))return!1;if("last"===u)e[b]=this.attr("data").input.length,this.attr("data").input.push(e),l.put(p,E);else{for(o=0;o<v.length;o++)v[o][b]>0&&v[o][b]++;e[b]=0,v.RT_insertArray(0,[e]),l.putAt(p,E,0)}}else{if("last"===u)e[b]=this.attr("data").input.length,this.attr("data").input.push(e),c.childnodes.put(p,E);else{var y=c._rowData[b];if(!isNaN(y)){for(o=0;o<v.length;o++)v[o][b]>y&&v[o][b]++;e[b]=y+1,v.RT_insertArray(y+1,[e]),c.childnodes.putAt(p,E,0)}}c.isparent=!0}}if(this._makeTreeData()){var w=this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0);return this._setTreeState(this.attr("data").input.length,"i",e),w}return!1},_.QCELL.BasicQCELL.prototype._removeTreeNode=function(t){var e=this.attr("treestate"),r=e.nodes,i=null,o=0,a=null,s=!0;if("parentchild"===e.mode){if("parentchild"===e.mode){if(a=null,""!==t[0]&&null===(a=this._findParentNode(t[0],r)))return!1;i=a}}else for(var n=0;n<t.length-1;n++){if(!r.containsKey(t[n])){s=!1;break}s=!0,i=r.get(t[n]),r=i.childnodes,o++}if(!0===s){if(0!==o&&!1===r.containsKey(t[o]))return!1;if(null===i&&null===(i=r.get(t[0])))return!1;var l=null!=a?a:r.get(t[o]);return this._removeTreeDataNode(l),"parentchild"===e.mode?(this._findParentNodeEx(t[o],r),a.isparent=i.childnodes.size()>0):0===o&&1===t.length?r.remove(t[o]):(i.childnodes.remove(t[o]),i.isparent=i.childnodes.size()>0),!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)}return!1},_.QCELL.BasicQCELL.prototype._updateTreeNode=function(t,e){var r,i=this.attr("treestate"),o=i.nodes,a=null,s=0,n=!0;if("parentchild"===i.mode){if("parentchild"===i.mode){if(r=null,""!==t[0]&&null===(r=this._findParentNode(t[0],o)))return!1;a=r}}else for(var l=0;l<t.length-1;l++){if(!o.containsKey(t[l])){n=!1;break}n=!0,a=o.get(t[l]),o=a.childnodes,s++}if(!0===n){if(0!==s&&!1===o.containsKey(t[s]))return!1;if(null===a&&null===(a=o.get(t[0])))return!1;var c,h=null!=r?r:o.get(t[s]),d=h._rowData._rt_qc_index;if(isNaN(d))return!1;for(c in d+=this.attr("headerrows"),e)h._rowData[c]=e[c];return this._setTreeState(d,"u",h._rowData),this.refresh(),!0}return!1},_.QCELL.BasicQCELL.prototype._removeTreeDataNodeSub=function(t){var e="_rt_qc_index",r=this.attr("data").input,i=t._rowData[e];this._setTreeState(i,"d",t._rowData),r.splice(i,1);for(var o=r.length-1;o>=0;o--)r[o][e]>i&&(r[o][e]=r[o][e]-1)},_.QCELL.BasicQCELL.prototype._removeTreeDataNode=function(t){for(var e=t.childnodes,r=e.keys(),i=0;i<r.length;i++){var o=e.get(r[i]);o.childnodes.size()?this._removeTreeDataNode(o):this._removeTreeDataNodeSub(o)}this._removeTreeDataNodeSub(t)},_.QCELL.BasicQCELL.prototype._setTreeState=function(t,e,r){var o=void 0!==r?r:this.attr("currentdata")[t-this.attr("headerrows")],a=this.attr("treestate"),s=this._getTreeStateKey(o);if(""===s)return!1;if(void 0===a.state.update&&(a.state.update=new i._QHashtable),void 0===a.state.insert&&(a.state.insert=new i._QHashtable),void 0===a.state.delete&&(a.state.delete=new i._QHashtable),"u"===e){if(a.state.insert.containsKey(s))return void a.state.insert.put(s,o);if(a.state.delete.containsKey(s))return void a.state.delete.put(s,o);a.state.update.put(s,o)}else if("i"===e)a.state.update.containsKey(s)&&a.state.update.remove(s),a.state.delete.containsKey(s)&&a.state.delete.remove(s),a.state.insert.put(s,o);else if("d"===e){if(a.state.update.containsKey(s)&&a.state.update.remove(s),a.state.insert.containsKey(s))return void a.state.insert.remove(s);a.state.delete.put(s,o)}},_.QCELL.BasicQCELL.prototype._getTreeStateKey=function(t){var e,r,i=this.attr("treestate"),o="",a=i.level,s=this.attr("treestate").columnsinfo.keys(!0),n=this.attr("treestate").columnsinfo;if(void 0===a)return o;var l=t[a];if(isNaN(l))return"";if("parentchild"===i.mode){if(null===n.get(s[0]))return"";e=s[0],r=-1===this._getKeyOfColID(e)?e:this._getKeyOfColID(e);for(var c=this._findParentNode(t[r],i.nodes);void 0!==c.level&&c.level>0&&(o=o+"_qc_"+c.key,null!==(c=c.parent))&&1!==c.level;);}else for(var h=0;h<l;h++){if(null===n.get(s[h]))return"";if(e=s[h],void 0===t[r=-1===this._getKeyOfColID(e)?e:this._getKeyOfColID(e)]||""===t[r])return"";o=o+"_qc_"+t[r]}return o},_.QCELL.BasicQCELL.prototype._getTreeState=function(t){var e={};return"u"===t?e.update=this._getTreeStateSub("u"):"i"===t?e.insert=this._getTreeStateSub("i"):("d"===t||(e.update=this._getTreeStateSub("u"),e.insert=this._getTreeStateSub("i")),e.delete=this._getTreeStateSub("d")),e},_.QCELL.BasicQCELL.prototype._getTreeStateSub=function(t){var e,r=[],i=this.attr("treestate");if("u"===t?e=i.state.update:"i"===t?e=i.state.insert:"d"===t&&(e=i.state.delete),void 0===e)return r;for(var o=e.keys(!0),a=0;a<o.length;a++)r.push(e.get(o[a]));return r},_.QCELL.BasicQCELL.prototype._clearTreeState=function(){this.attr("treestate").state={}},_.QCELL.BasicQCELL.prototype._setHierachy=function(t){if(this._checkValidationOfHierachyProps(t)){var e=this.attr("hierachystate");return e.columninfo=t.column,this.attr("_hierachyProps",_._.clone(t),"object"),e.grouped=!0,e.expand=_._.has(t,"expand")&&_._.isFunction(t.expand)?t.expand:null,e.collapse=_._.has(t,"collapse")&&_._.isFunction(t.collapse)?t.collapse:null,_._.has(t,"sort")&&_._.isString(t.sort)?"none"===t.sort?e.sort="none":"asc"===t.sort?e.sort="asc":"desc"===t.sort?e.sort="desc":e.sort="asc":e.sort="asc",this._initColStyles(),_._.each(t.outer,(function(t,r){e.outer={},e.outer.header=_._.clone(t.header),e.outer.footer=_._.clone(t.footer),e.outer.headers=_._.clone(t.headers),e.outer.footers=_._.clone(t.footers),e.outer.outerCallback=_._.has(t,"outerCallback")&&_._.isFunction(t.outerCallback)?t.outerCallback:void 0})),this.attr("_heirachyinfo",t,"object"),this._initHeirachy()}return!1},_.QCELL.BasicQCELL.prototype._checkValidationOfHierachyProps=function(t){return _._.has(t,"column")&&_._.isObject(t.column)},_.QCELL.BasicQCELL.prototype._initHeirachy=function(){return this._makeHeirachyNodes(),!!this._makeHierachyData()&&this._setCurrentData(this.attr("hierachystate").data.RT_clone(),!1)},_.QCELL.BasicQCELL.prototype._getHierachyData=function(t){for(var e=[],r=0,i=this.attr("hierachystate").columninfo,o=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,a=i.key,s=0;s<o.length;s++)o[s][a]===t&&(e.push(_._.clone(o[s])),e[r][a]="",e[r].check=!1,r++);return e},_.QCELL.BasicQCELL.prototype._addHierachyData=function(t,e,r,i){var o=this._getHierachyData(""+i);if(o.length>0){t.currentTarget.textContent="-",this.setCellDataEx(e,"rt_qc_state","M"),this.insertRows(e+1,o);var a=this;setTimeout((function(){a._trigger("hierachyuiclick",{nRow:e,bExpand:!0})}))}},_.QCELL.BasicQCELL.prototype._removeHierachyData=function(t,e,r,i){var o=this._getHierachyData(""+i);if(o.length>0){t.currentTarget.textContent="+",this.setCellDataEx(e,"rt_qc_state","P"),this.deleteRows(e+1,o.length);var a=this;setTimeout((function(){a._trigger("hierachyuiclick",{nRow:e,bExpand:!1})}))}},_.QCELL.BasicQCELL.prototype._makeHeirachyNodes=function(){var t=this.attr("hierachystate"),e=t.nodes,r=this.getColOfKey(t.columninfo.key),i=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input;if(e.clear(),-1===r)return!1;var o=this._getColHtml(r),a=this.getID(),s=function(t,e,r,i,o){return void 0!==o.rt_qc_type&&"M"===o.rt_qc_type?"P"===o.rt_qc_state?'<button class="rt-qc-heirachy-button" onclick="QCELL.getInstance(\''+a+"')._addHierachyData(event,"+e+","+r+","+i+')">+</button>'+i:'<button class="rt-qc-heirachy-button" onclick="QCELL.getInstance(\''+a+"')._removeHierachyData(event,"+e+","+r+","+i+')">-</button>'+i:""};this._getColElement(r).attr("renderer",s,"function"),o.data=s;for(var n=0,l=i.length;n<l;n++)this._makeHierachyNode(null,e,n,0,0);return!0},_.QCELL.BasicQCELL.prototype._makeHierachyData=function(){for(var t=this.attr("hierachystate"),e=t.columninfo,r=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,i=t.nodes,o=i.keys(!0),a=[],s=0;s<o.length;s++){var n=i.get(o[s]),l=n.data.values().sort(_.st.asc);if(void 0!==e.header){var c={};for(var h in e.header){for(var d="",u=e.header[h],p=0;p<u.length;p++)"value()"===u[p]?d+=n._rowData[h]:"childcount()"===u[p]?d+=""+n.count:d+=u[p];c[h]=d}if(c.rt_qc_type="M",c.rt_qc_state=!0===e.expand?"M":"P",a.push(c),!0===e.expand)for(var g=0;g<l.length;g++)a.push(r[l[g]])}}return t.data=a,!0},_.QCELL.BasicQCELL.prototype._makeHierachyNode=function(t,e,r,o,a){var s=this.attr("hierachystate"),n=s.columninfo,l=!0===this.attr("_filtering")?this.attr("currentdata"):this.attr("data").input,c=s.columninfo,h=l[r],d=h[c.key];if(void 0!==d&&o===a){var u=null;if(e.containsKey(d))for(void 0!==(u=e.get(d)).data&&null!==u.data||(u.data=new i._QHashSet),u.data.add(r);null!==u;)u.count+=1,u=u.parent;else u={level:a,key:d,count:1,header:_._.size(n.header)>0,footer:_._.size(n.footer)>0,headerFooterCallback:n.headerFooterCallback,parent:t,_rowData:h},"tree"!==s.type&&"step"!==s.type&&"group"!==s.type||(u.expand=!_._.has(n,"expand")||"boolean"!=typeof n.expand||n.expand),e.put(d,u),u.childnodes=new i._QHashtable,u.data=new i._QHashSet,u.data.add(r)}},_.QCELL.BasicQCELL.prototype._initTreeEx=function(){if(!1===this._makeTreeNodesEx())return!1;if(this._makeTreeData()){var t=this.attr("treestate").data.RT_clone();return this._setCurrentData(t,!1)}return!1},_.QCELL.BasicQCELL.prototype._makeTreeNodesExSub=function(t,e,r,o,a,s,n,l,c,h,d,u){for(var p=t.keys(!0),_="_rt_qc_index",g="_rt_qc_treeinfo",f=null,m=e[r],C=0;C<p.length;C++){if(f=t.get(p[C]),p[C]===e[o]){null!==f&&(e[g]={},1!==a&&(e[g].parent=f._rowData[_]),void 0===f._rowData[g]&&(f._rowData[g]={}),a>=f._rowData[r]&&(void 0===f._rowData[g].children&&(f._rowData[g].children=[]),f._rowData[g].children.push(s)));var L={colid:p[0],isparent:!1,colkey:r,level:a,key:m,count:0,header:h,footer:d,headerFooterCallback:u,parent:f,expand:c,_rowData:e,showLabel:n,label:l};return e[_]=s,null!==L.childnodes&&void 0!==L.childnodes||(L.childnodes=new i._QHashtable),f.childnodes.put(m,L),!0}if(this._makeTreeNodesExSub(f.childnodes,e,r,o,a,s,n,l,c,h,d,u))return!0}return!1},_.QCELL.BasicQCELL.prototype._makeTreeNodesEx=function(){var t=this.attr("treestate"),e=t.nodes,r=t.level;e.clear(),t.state={};for(var o,a,s=t.columnsinfo,n=this.attr("data").input.RT_clone(),l=t.columnsinfo,c=l.keys(!0),h=l.get(c[0]).parentcode,d=-1===this._getKeyOfColID(c[0])?c[0]:this._getKeyOfColID(c[0]),u=null,p=l.get(c[0]).expand,g=0,f=n.length;g<f;g++){var m=n[g];if(a=e,void 0!==m[r]){if(o=Number(m[r]),isNaN(o))return!1;var C=m[d];if(1===o){if(a.containsKey(C))continue;var L="_rt_qc_index",b="_rt_qc_treeinfo";null!==u&&(m[b]={},1!==o&&(m[b].parent=u._rowData[L]),void 0===u._rowData[b]&&(u._rowData[b]={}),o>=u._rowData[d]&&(void 0===u._rowData[b].children&&(u._rowData[b].children=[]),u._rowData[b].children.push(g))),u={colid:c[0],isparent:!1,colkey:d,level:o,key:C,count:0,header:_._.size(s.header)>0,footer:_._.size(s.footer)>0,headerFooterCallback:s.headerFooterCallback,parent:u,expand:p,_rowData:m,showLabel:l.get(c[0]).showLabel,label:l.get(c[0]).label},m[L]=g,a.put(C,u)}else this._makeTreeNodesExSub(a,m,d,h,o,g,l.get(c[0]).showLabel,l.get(c[0]).label,p,_._.size(s.header)>0,_._.size(s.footer)>0,s.headerFooterCallback);null!==u.childnodes&&void 0!==u.childnodes||(u.childnodes=new i._QHashtable),a=u.childnodes}}return!0},_.QCELL.BasicQCELL.prototype._findParentNodeEx=function(t,e,r,i){if(e.containsKey(t))return!0===r?e.moveAt(t,i):(e.remove(t),e);for(var o=e.keys(!0),a=0;a<o.length;a++){var s=e.get(o[a]);if(null!==this._findParentNodeEx(t,s.childnodes,r,i))return s.childnodes}return null},_.QCELL.BasicQCELL.prototype._moveTreeNode=function(t,e){var r,i=this.attr("treestate"),o=i.nodes,a=null,s=0,n=!0;if("parentchild"===i.mode){if("parentchild"===i.mode){if(r=null,""!==t[0]&&null===(r=this._findParentNode(t[0],o)))return!1;a=r}}else for(var l=0;l<t.length-1;l++){if(!o.containsKey(t[l])){n=!1;break}n=!0,a=o.get(t[l]),o=a.childnodes,s++}if(!0===n){if(0!==s&&!1===o.containsKey(t[s]))return!1;if(null===a&&null===(a=o.get(t[0])))return!1;if("parentchild"===i.mode){if(null===this._findParentNodeEx(t[s],o,!0,e))return!1}else 0===s&&1===t.length?o.moveAt(t[s],e):a.childnodes.moveAt(t[s],e);return!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)}return!1},_.QCELL.BasicQCELL.prototype._adjustLevel=function(t,e){for(var r=this.attr("treestate").level,i=t.keys(),o=0;o<i.length;o++){var a=t.get(i[o]);a.level=e,a._rowData[r]=e,this._adjustLevel(a.childnodes,e+1)}},_.QCELL.BasicQCELL.prototype._moveTreeNodeEx=function(t,e,r){var i,o,a=this.attr("treestate"),s=a.nodes,n=a.level;if("parentchild"!==a.mode)return!1;if(i=null,""!==t[0]&&null===(i=this._findParentNode(t[0],s)))return!1;if(o=null,""!==e[0]&&null===(o=this._findParentNode(e[0],s)))return!1;if("parentchild"===a.mode){if(null===this._findParentNodeEx(t[0],s))return!1;var l={colid:i.colid,isparent:!1,colkey:i.colkey,level:o.level+1,key:i.key,count:i.count,header:i.header,footer:i.footer,headerFooterCallback:i.headerFooterCallback,parent:o,expand:i.expand,_rowData:i._rowData,showLabel:i.showLabel,label:i.label,childnodes:i.childnodes};i._rowData[n]=l.level,o.childnodes.putAt(t[0],l,r),this._adjustLevel(l.childnodes,l.level+1)}return!!this._makeTreeData()&&this._setCurrentData(this.attr("treestate").data.RT_clone(),!1,!0)},_.QCELL.BasicQCELL.prototype._treeRefresh=function(t,e){var r=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),i=r.grouped?r.columnsinfo.keys(!0)[0]:"",o=r.treeUIColumn;if(r.grouped&&"parentchild"===r.mode){(void 0!==o?this._getColsOfKey(o)[0]:this._getColsOfKey(i)[0])===e&&this.refresh()}},_.QCELL.BasicQCELL.prototype._setHSRange=function(){try{var t=this.attr("hsinfo"),e=this.attr("headercols"),r=this.attr("cols");return r-e>0?(t.nStartCol=e+this.attr("frozencols"),t.nEndCol=r-1):t.nStartCol=t.nEndCol=-1,!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._setHSRange",t.message),!1}},_.QCELL.BasicQCELL.prototype._initHSInfo=function(){var t=this.attr("hsinfo");t.bHScroll=!1,t.nStartCol=t.nEndCol=t.nLeftCol=t.nRightCol=-1,t.nAdjustCols=t.nDynamicCols=t.nLength=t.nLastPos=t.nPos=t.nLeft=t.nBeforeLeft=t.nLengthPerCol=0,t.objUpdateInfo={bWholeUpdate:!1,objParams:{}}},_.QCELL.BasicQCELL.prototype._updateHSInfo=function(){try{var t=this.attr("hsinfo"),e=t.objUpdateInfo,r=this.attr("headercols"),i=this.attr("cols");if(e.objParams={},t.bHScroll){var o=0;if(e.bWholeUpdate=!0,t.nLeftCol=t.nStartCol+t.nPos,t.nDynamicCols>i-r)t.nRightCol=t.nEndCol;else{var a=this.attr("frozencols");if(t.nRightCol=t.nLeftCol+(t.nDynamicCols-a)-1,t.nRightCol>t.nEndCol)if(t.nLeftCol-=t.nRightCol-t.nEndCol,t.nRightCol=t.nEndCol,t.nLastPos===t.nPos){var s=this.attr("layoutsize").viewport.offsetWidth;o=this._getSumOfColWidth(r,r+a-1)+this._getSumOfColWidth(t.nLeftCol,t.nEndCol)-s}else o=this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+(t.nPos-(t.nLastPos-t.nAdjustCols))-1)}e.objParams.nAdjustedLeft=o}else e.bWholeUpdate=!1,i>0?(t.nLeftCol=r,t.nRightCol=i-1):t.nLeftCol=t.nRightCol=-1,e.objParams.nAdjustedLeft=0;return this._adjustFrozenCount(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._updateHSInfo",t.message),!1}},_.QCELL.BasicQCELL.prototype.onHScroll=function(t){var e=this.attr("hsinfo"),r=0;Math.abs(e.nLeft-t)>=e.nLengthPerCol&&(r=parseInt(-(t-e.nLeft)/e.nLengthPerCol),e.nBeforeLeft=e.nLeft,e.nLeft=e.nLeft-r*e.nLengthPerCol,e.nPos=-e.nLeft/e.nLengthPerCol,this._syncHSInfo(),this._updateNCs(),this._adjustScrollPos()),this.attr("adjustcol",!1,"boolean")},_.QCELL.BasicQCELL.prototype._syncHSInfo=function(){var t=this.attr("hsinfo"),e=t.objUpdateInfo,r=(t.nBeforeLeft-t.nLeft)/t.nLengthPerCol,i=this.attr("headercols"),o=this.attr("frozencols"),a=this.attr("layoutsize").viewport.offsetWidth,s=this._getSumOfColWidth(i,i+o-1),n=0;if(e.objParams={},Math.abs(r)>=t.nDynamicCols-o){var l=0,c=0;e.bWholeUpdate=!0,r>0?(e.strDirection="right",t.nPos>t.nLastPos-t.nAdjustCols?(l=t.nPos-(t.nLastPos-t.nAdjustCols),t.nLeftCol+=r-l,t.nRightCol+=r-l,c=t.nLastPos===t.nPos?s+this._getSumOfColWidth(t.nLeftCol,t.nEndCol)-a:this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+(t.nPos-(t.nLastPos-t.nAdjustCols))-1)):(t.nLeftCol+=r,t.nRightCol+=r)):(e.strDirection="left",t.nPos>=t.nLastPos-t.nAdjustCols?(l=t.nPos-(t.nLastPos-t.nAdjustCols),c=this._getSumOfColWidth(t.nLeftCol,t.nLeftCol+l-1)):(n=t.nPos-r>=t.nLastPos-t.nAdjustCols?t.nPos-r-(t.nLastPos-t.nAdjustCols):0,t.nLeftCol+=r+n,t.nRightCol+=r+n)),e.objParams.nAdjustedLeft=c}else{var h=0;e.bWholeUpdate=!1,e.objParams.nMovedCount=r,r>0?(e.strDirection="right",t.nPos>t.nLastPos-t.nAdjustCols?(h=t.nEndCol-t.nRightCol,e.objParams.bWholePositionChanged=!0):(h=r,e.objParams.bWholePositionChanged=!1),t.nLeftCol+=h,t.nRightCol+=h):(e.strDirection="left",t.nPos>=t.nLastPos-t.nAdjustCols?e.objParams.bWholePositionChanged=!0:(e.objParams.bWholePositionChanged=!1,n=t.nPos-r>=t.nLastPos-t.nAdjustCols?t.nPos-r-(t.nLastPos-t.nAdjustCols):0,h=Math.abs(r)-n,t.nLeftCol-=h,t.nRightCol-=h)),e.objParams.nCutColsCount=h}},_.QCELL.BasicQCELL.prototype._resizeHScrollbar=function(){try{var t=this.attr("elementpool"),e=t.get("hscrollthumb"),r=t.get("$jqhscrollbar"),i=this.attr("layoutsize"),o=this.attr("hsinfo");if(o.bHScroll){var a,s,n=0,l=this.attr("headercols"),c=this.attr("frozencols"),h=this.attr("cols"),d=i.viewport.offsetWidth,u=i.hscrollbar.clientWidth,p=this._getSumOfColWidth(l,l+c-1);for(s=l;s<h;s++)if(this._getSumOfColWidth(l,s)>=d){n=s-l+1;break}for(o.nLengthPerCol=Math.round(u/n),o.nAdjustCols=0,o.nLastPos=o.nEndCol-(o.nStartCol+(o.nDynamicCols-c)-1),s=o.nStartCol+o.nLastPos;s<=o.nEndCol;s++){if(!(p+this._getSumOfColWidth(o.nStartCol+o.nLastPos+o.nAdjustCols,o.nEndCol)>d))break;o.nAdjustCols+=1}if(o.nLastPos+=o.nAdjustCols,o.nPos>o.nLastPos&&(o.nPos=o.nLastPos,o.nLeft=-o.nPos*o.nLengthPerCol),o.nLeft!==-o.nPos*o.nLengthPerCol&&(o.nLeft=-o.nPos*o.nLengthPerCol),o.nLength=o.nLastPos*o.nLengthPerCol,isNaN(o.nLength))return void 0!==r.rt_qc_mCSbar&&r.rt_qc_mCSbar("destroy"),o.nLengthPerCol=o.nLastPos=o.nPos=o.nLeft=o.nBeforeLeft=o.nAdjustCols=o.nLength=0,e.style.width="0px",!0;_.$(e).attr("style","width:"+(u+o.nLength)+"px !important");var g=this;a=function(t){try{var e=this.mcs.left;_.util.rAF((function(){g.onHScroll(e),g._trigger("scrollmove")}))}catch(t){_.QCELL.log("err","HScrollbar.onScroll ",t.message)}},void 0!==r.rt_qc_mCSbar&&_.$(r).rt_qc_mCSbar("destroy").rt_qc_mCSbar({axis:"x",theme:"qcell-default",setWidth:"100%",setHeight:"100%",scrollInertia:0,snapAmount:o.nLengthPerCol,mouseWheel:{enable:!0,preventDefault:!0,normalizeDelta:!0,scrollAmount:o.nLengthPerCol},scrollButtons:{enable:!0,scrollAmount:o.nLengthPerCol},keyboard:{enable:!1},advanced:{updateOnContentResize:!1},callbacks:{onScroll:a,whileScrolling:a},target:this}),o.nLeft<0&&r.rt_qc_mCSbar("scrollTo",o.nLeft,"",{ignorecallback:!0}),a=null}else void 0!==r.rt_qc_mCSbar&&r.rt_qc_mCSbar("destroy"),o.nLengthPerCol=o.nLastPos=o.nPos=o.nLeft=o.nBeforeLeft=o.nAdjustCols=o.nLength=0,e.style.width="0px";return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._resizeHScrollbar",t.message),!1}},_.QCELL.BasicQCELL.prototype._scrollLeft=function(t){var e,r=this.attr("hsinfo");r.bHScroll&&(t<r.nStartCol?t=r.nStartCol:t>r.nStartCol+r.nLastPos&&(t=r.nStartCol+r.nLastPos),e=-1*(t-r.nStartCol)*r.nLengthPerCol,this.attr("isscrollleft",!1,"boolean"),isNaN(e)||e===r.nLeft||(this.attr("isscrollleft",!0,"boolean"),_.$(this.attr("elementpool").get("$jqhscrollbar")).rt_qc_mCSbar("scrollTo",e)))},_.QCELL.BasicQCELL.prototype._adjustCol=function(){try{var t=-1!==this._getSelectedRow()?this._getSelectedRow():this._idx("row","focus"),e=-1!==this._getSelectedCol()?this._getSelectedCol():this._idx("col","focus"),r=this._getCellDOM(t,e),i=this.attr("hsinfo");if(i.bHScroll&&i.nAdjustCols>0)if(e>=this.attr("headercols")+this.attr("frozencols"))switch(this._getHScrollAdjustment(r)){case"left":this._scrollLeft(i.nStartCol+i.nPos-1),this.attr("adjustcol",!0,"boolean");break;case"right":this._scrollLeft(i.nStartCol+i.nPos+1),this.attr("adjustcol",!0,"boolean");break;default:this.attr("adjustcol",!1,"boolean")}else this.attr("adjustcol",!1,"boolean");return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._adjustCol",t.message),!1}},_.QCELL.BasicQCELL.prototype._getHScrollAdjustment=function(t){var e=this.attr("hsinfo");if(e.bHScroll){var r=0;if(e.nPos===e.nLastPos){var i=this.attr("headercols"),o=this.attr("frozencols");if(o>0&&(r+=this._getSumOfColWidth(i,i+o-1)),t.offsetLeft<r)return"left"}else if(r+=this.attr("layoutsize").viewport.offsetWidth,t.offsetLeft+t.offsetWidth>r)return"right"}return"none"},_.QCELL.BasicQCELL.prototype._MoveHScrollbarToDragging=function(t){if(this.attr("dragging")){var e=this.attr("hsinfo");if(e.bHScroll){var r=this,i=this.attr("layoutsize"),o=this.attr("headercols"),a=this.attr("frozencols"),s=this._getSumOfColWidth(0,o-1),n=this._getSumOfColWidth(o,o+a-1),l=i.container.clientX+s+n,c=i.container.clientX+s+i.viewport.offsetWidth,h=0;l+30>=t.clientX?(this.attr("colmove")||this._idx("col","focus")>=o+a)&&e.nPos>0&&(l>=t.clientX?(h=-5,e.nPos+h<0&&(h=-e.nPos)):h=-1):c-30<=t.clientX&&e.nPos<e.nLastPos&&(c<=t.clientX?(h=5,e.nPos+h>e.nLastPos&&(h=e.nLastPos-e.nPos)):h=1),h!==this.attr("hdcount")&&(null!==this.attr("hdhandle")&&(clearInterval(this.attr("hdhandle")),this.attr("hdhandle",null,"number")),this.attr("hdcount",h,"number")),0!==h?null===this.attr("hdhandle")&&this.attr("hdhandle",setInterval((function(){if(h<0?e.nPos>0:e.nPos<e.nLastPos){if(-1===r.attr("selectmode").indexOf("row")){var i=r._idx("row","cursor"),o=h<0?r._getLeftColOfScreen():r._getRightColOfScreen();r._updateIdx("drag",i,o),!1===r.attr("colmove")&&!1===r.attr("colresize")&&r._selectDragArea(t)}r._scrollLeft(e.nStartCol+e.nPos+h)}else clearInterval(r.attr("hdhandle")),r.attr("hdhandle",null,"number"),r.attr("hdcount",0,"number")}),100),"number"):null!==this.attr("hdhandle")&&(clearInterval(r.attr("hdhandle")),r.attr("hdhandle",null,"number"),r.attr("hdcount",0,"number"))}}},_.QCELL.BasicQCELL.prototype._getLeftColOfScreen=function(){var t=this.attr("hsinfo");if(!1===t.bHScroll||t.nPos<=t.nLastPos-t.nAdjustCols)return t.nLeftCol;for(var e,r=this._getCellGroupDOMs("col","normal"),i=this.attr("headercols"),o=this.attr("frozencols"),a=this._getSumOfColWidth(i,i+o-1),s=r.length,n=0;n<s;){var l=r[n][0];if(l.offsetLeft+l.offsetWidth>a){e=parseInt(l.getAttribute("data-col"));break}n+=1}return e},_.QCELL.BasicQCELL.prototype._getRightColOfScreen=function(){var t=this.attr("hsinfo");if(!1===t.bHScroll||t.nPos===t.nLastPos)return t.nRightCol;var e,r=this._getCellGroupDOMs("col","normal"),i=this.attr("layoutsize"),o=this.attr("headerrows")-1,a=i.viewport.offsetWidth,s=r.length,n=0;for(r.reverse();n<s;){var l=r[n][o];if(e=parseInt(l.getAttribute("data-col")),0!==l.offsetWidth&&l.offsetLeft<a)break;n+=1}return e},_.QCELL.BasicQCELL.prototype._excelUpload=function(t){var e=!0,r=_._.clone(this);void 0!==t.progressui&&!0===t.progressui&&r._showProgressUI(t.progressui,t),_.$.browser.msie&&_.$.browser.version<10||_._.isUndefined(t.event)?r._excelUpload_checkRequiredProps(t,"url")&&r._excelUpload_checkValidationOfProps(t)?r._excelUploadURL(t):e=!1:r._excelUpload_checkRequiredProps(t,"loc")&&r._excelUpload_checkValidationOfProps(t)?r._excelUploadLOC(t):e=!1,void 0!==t.progressui&&!0===t.progressui&&r._showProgressUI(!1);var i=this;return!1===e?setTimeout((function(){i._trigger("exceluploadfail")})):setTimeout((function(){i._trigger("exceluploadsucess")})),e},_.QCELL.BasicQCELL.prototype._excelUpload_checkRequiredProps=function(t,e){var r=!0;if(_._.isObject(t)&&!1===_._.isArray(t)){for(var i,o=0,a=(i="loc"===e?["event","headerrows"]:["cellname","fileid","headerrows","url"]).length;o<a;o++){var s=i[o];if(void 0===t[s]){_.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkRequiredProps",'Please check "'+s+'" property.'),r=!1;break}}i.RT_clear(),i=null}else _.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkRequiredProps",'Please check first parameter\'s type is "object".'),r=!1;return r},_.QCELL.BasicQCELL.prototype._excelUpload_checkValidationOfProps=function(t){var e=!0,r=_._.clone(this);return _.$.each(t,(function(t,i){return e=r._excelUpload_checkValidationOfProp(t,i)})),e},_.QCELL.BasicQCELL.prototype._excelUpload_checkValidationOfProp=function(t,e){var r=!0,i="";switch(t){case"cellname":case"fileid":case"url":i="string",!1===_._.isString(e)&&(r=!1);break;case"headerrows":i="number",!1===_._.isNumber(Number(e))&&(r=!1);break;case"event":i="object",(!1===_._.isObject(e)||_._.isArray(e))&&(r=!1)}return!1===r&&_.QCELL.log("err","QCELL.BasicQCELL._excelUpload_checkValidationOfProp",'Please check "'+t+'" property\'s type is "'+i+'".'),r},_.QCELL.BasicQCELL.prototype._excelUploadURL=function(t){var e=this.attr("id")+"._excelUploadURL";try{var r=t.cellname,i=t.fileid,o=t.headerrows,a=t.url,s="___iFame",n="file",l=_.$("<iframe></iframe>").attr("id",s).attr("name",s).css("display","none"),c=_.$("<form></form>").attr("action",a).attr("method","post").attr("target",s).attr("enctype","multipart/form-data"),h=_.$("#"+i),d=_.$(h).clone();h[0].name=n,h.before(d);var u=this.attr("rowheaders").length>0,p=_._.clone(this.attr("colkeys"));u&&p.shift();var g=_.$("<input>").attr("type","hidden").attr("name","keys").val(p),f=_.$("<input>").attr("type","hidden").attr("name","rows").val(o),m=_.$("<input>").attr("type","hidden").attr("name","objName").val(r),C=_.$("<input>").attr("type","hidden").attr("name","ifrmId").val(s),L=_.$("<input>").attr("type","hidden").attr("name","fileName").val(n);return _._.isElement(_.$("#"+s))&&_.$("#"+s).remove(),c.append(h).append(g).append(f).append(m).append(C).append(L),l.appendTo("body").append(c),c.submit().remove(),!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._excelUploadLOC=function(t){var e=this.attr("id")+"._excelUploadLOC";try{var r=t.event.target.files[0];if(r){if("xlsx"!==r.name.split(".").pop(-1).toLowerCase())return _.QCELL.log("err",e,this.attr("msg").err.FILE_EXT_NOT_XLSX),!1;var i="undefined"!=typeof FileReader&&(FileReader.prototype||{}).readAsBinaryString,o=new FileReader,a=t.headerrows,s=_._.clone(this);i?o.readAsBinaryString(r):o.readAsArrayBuffer(r),o.onload=function(e){var r=e.target.result;i||(r=new Uint8Array(r)),t.cellformula=void 0!==t.cellformula&&t.cellformula,_._.isBoolean(t.cellformula)||(t.cellformula=!1);var o={type:i?"binary":"array",cellFormula:t.cellformula,cellDates:!0,dateNF:"yyyyMMdd"};void 0!==t.password&&(o.password=t.password);var n=!1;if(void 0!==t.mode&&(n="append"===t.mode),s._process_wb(u.read(r,o),a,n,t.beforeUploadCallback,t.cellformula,t.usemultisheets),!0===t.state){var l,c=s.getRows();for(l=s.getRows("header");l<c;l++)s._setRowState(l,"i")}var h=s;setTimeout((function(){void 0!==h._trigger&&h._trigger("exceluploadlocend")}),0),s=null}}return!0}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype._process_wb_sub=function(t,e,r,i,o,a){var s,n=[],l=0,c=0,h=[],d=this.attr("rowheaders").length>0,u=_._.clone(this.attr("colkeys"));if(d){var p=0;for(p=0;p<this.attr("rowheaders").length;p++)u.shift()}for(s=this.getCols("header");s<this.getCols();s++){var g=this._getColFormat(s);null!==g&&"number"===g.type&&h.push({col:s,key:this._getKeyOfCol(s),rule:g.rule})}for(var f=[];l<e;l++)f.push(a.shift());if(void 0===i||!_._.isFunction(i)||!1!==i(f)){for(;c<a.length;c++){var m={};for(s=0;s<u.length;s++)try{m[u[s]]=_.$.trim(a[c][s])}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._process_wb",t.message),m[u[s]]=""}for(s=0;s<h.length;s++){var C,L=h[s];if(isNaN(Number(m[L.key])))L.rule=void 0===L.rule?"":L.rule,void 0!==m[L.key]?(C=_.$.parseNumber(m[L.key],L.rule),isNaN(Number(C))&&(C=0)):C=0,m[L.key]=C;else m[L.key]=Number(m[L.key])}n.push(m)}if(!0===r){var b=_._.clone(this.attr("currentdata"));b=b.concat(n),this._setData(b)}else this._setData(n)}},_.QCELL.BasicQCELL.prototype._createSheetPopup=function(t,e,r,i,o){var a,s,n=_.QCELL.def.css,l=_.$(document.createElement("div")),c=_.$(document.createElement("button")).addClass(n.EXCELIMPORT_UI_BTN),h=_.$(document.createElement("span")),d=_.$(l.clone());d.css({display:"none",height:"290px",width:"229px","background-color":"white",position:"absolute",border:"1px solid"}),(a=l.clone()).addClass(n.EXCELIMPORT_TITLE_AREA),h.clone().text("Excel Import").addClass(n.EXCELIMPORT_TITLE_SPAN).appendTo(a),l.clone().addClass(n.EXCELIMPORT_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("excelimportuivisible")&&e._removeSheetPopup()})).appendTo(a),a.appendTo(d),l.clone().attr({id:"excelupload-dataindex-"+this.attr("id")}).css({width:"95%",height:"210px",padding:"5px"}).appendTo(d),s=l.clone().css({"text-align":"center",margin:"10px 0px 0px 0px"}),h.clone().text(_.QCELL.def.resource.cancel).appendTo(c.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(t){t.data.target._removeSheetPopup()})).appendTo(s)),s.appendTo(d),this.attr("exceluploaduiarea",d,"jquery")},_.QCELL.BasicQCELL.prototype._showSheetPopup=function(t,e,r,i,o){var a=this.attr("exceluploaduiarea"),s=this;a.appendTo(this.attr("elementpool").get("container")),a.prop("id",this.attr("id")+"_exceluploadPopup"),_.util._dragElement(this.attr("id")+"_exceluploadPopup"),"none"===a.css("display")&&a.css("display","block"),a.css({right:"5px",top:"5px"});for(var n,l=[],c=0;c<t.SheetNames.length;c++)n={indexpool:t.SheetNames[c]},l.push(n);var h=_.QCELL.NormalQCELL.create({id:"excelupload-dataindex",parentid:"excelupload-dataindex-"+this.attr("id"),rowheight:{header:30,data:30},selectmode:"row",rowheaders:["sequence"],columns:[{title:["Sheet Name"],key:"indexpool",width:"100%",tooltip:!0}],data:{input:l}});h._createCols(),h._create(),_.QCELL.storage.put("excelupload-dataindex",h),h.bind("click dblclick keydown",(function(a){var n=h.getIdx("row","click"),l=h.getCellDataEx(n,"indexpool");if(-1!==n&&void 0!==l){var c=s._wbToJsonSheetName(t,o,l);s._process_wb_sub(t,e,r,i,o,c)}s._removeSheetPopup(),a.stopPropagation()})),h.bind("mousedown mousewheel DOMMouseScroll mouseenter mouseleave mousemove resize onDrag onDrop",(function(t){t.stopPropagation()})),this.attr("excelimportuivisible",!0,"boolean")},_.QCELL.BasicQCELL.prototype._removeSheetPopup=function(){this.attr("exceluploaduiarea").remove(),this.attr("exceluploaduiarea",null,"jquery"),this.attr("excelimportuivisible",!1,"boolean"),_.QCELL._deleteInstance("excelupload-dataindex")},_.QCELL.BasicQCELL.prototype._wbToJsonSheetName=function(t,e,r){var i=[];return i=!0!==e?u.utils.sheet_to_json(t.Sheets[r],{header:1}):u.utils.sheet_to_formulae(t.Sheets[r],{header:1}),!0===e&&(i=this._convertJSON(i)),i},_.QCELL.BasicQCELL.prototype._process_wb=function(t,e,r,i,o,a){var s;void 0===a&&(a=!1),a&&t.SheetNames.length>1?(this._createSheetPopup(t,e,r,i,o),this._showSheetPopup(t,e,r,i,o)):(s=this._wbToJson(t,o),this._process_wb_sub(t,e,r,i,o,s))},_.QCELL.BasicQCELL.prototype._checkExcelIndex=function(t){for(var e=0,r=65,i=65,o="";e<255;){if(t===o+String.fromCharCode(r))return e;r++,++e%25==0&&(r=65,o=String.fromCharCode(i),i++)}return-1},_.QCELL.BasicQCELL.prototype._convertJSON=function(t){var e,r,i,o=[],a=0;try{for(e=0;e<t.length;e++){var s=t[e],n=s.indexOf("=");if(-1!==n){var l=s.slice(0,n),c=s.slice(n+1,s.length);for(c=_.util.replaceAll(c,"'",""),r=0;i=l.charAt(r),/[a-zA-Z]/.test(i);)r++;var h=Number(l.slice(r,l.length));if(!isNaN(h)){var d=this._checkExcelIndex(l.slice(0,r));if(-1!==d){if(a!==h)for(;a!==h;)o.push([]),a++;o[a-1][d]=c}}}}for(e=0;e<o.length;e++)for(var u=0;u<o[e].length;u++)void 0===o[e][u]&&(o[e][u]="")}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._convertJSON",t.message),o=[]}return o},_.QCELL.BasicQCELL.prototype._wbToJson=function(t,e){var r=[];return r=!0!==e?u.utils.sheet_to_json(t.Sheets[t.SheetNames[0]],{header:1}):u.utils.sheet_to_formulae(t.Sheets[t.SheetNames[0]],{header:1}),!0===e&&(r=this._convertJSON(r)),r},_.QCELL.BasicQCELL.prototype._wbToCsv=function(t){var e=[];return t.SheetNames.forEach((function(r){var i=u.utils.sheet_to_csv(t.Sheets[r]);i.length&&e.push(i)})),e.join("\n")},_.QCELL.BasicQCELL.prototype._splitAttrString=function(t){var e=[],r=function(t){this.value=t};r.prototype.toString=function(){return this.value},r.prototype.charAt=String.prototype.charAt;var i=new r(t),o=function(t,e){for(var r="",i="";i!==t&&""!==e.value;)/'|"/.test(i)?r=_.$.trim(r)+o(i,e):/\{/.test(i)?r=_.$.trim(r)+o("}",e):/\[/.test(i)?r=_.$.trim(r)+o("]",e):r+=i,i=e.charAt(0),e.value=e.value.slice(1);return _.$.trim(r)};do{var a=o(",",i);e.push(a)}while(""!==i.value);return e},_.QCELL.BasicQCELL.prototype._beforeFocusCell=function(){},_.QCELL.BasicQCELL.prototype._clearFocusAllCSS=function(){for(var t=this.attr("hsinfo"),e=this.attr("headerrows");e<=this.getRows();e++)for(var r=this.attr("headercols");r<=t.nRightCol;r++){var i=this._getCellDOM(e,r);null!==i&&this._removeFocusStyleClass(i)}},_.QCELL.BasicQCELL.prototype._adjustScrollPos=function(){var t=document.getElementById("colheader-"+this.getID()),e=document.getElementById("viewport-"+this.getID()),r=e.scrollLeft,i=e.scrollTop,o=document.getElementById("rowheader-"+this.getID());r!==t.scrollLeft&&(t.scrollLeft=r),t.scrollLeft=0,e.scrollLeft=0,i!==o.scrollTop&&(o.scrollTop=i),o.scrollTop=0,e.scrollTop=0},_.QCELL.BasicQCELL.prototype._scrollToFocusCell=function(t,e){try{var r,i,o,a=this.attr("rows"),s=this.attr("cols"),n=this.attr("headercols"),l=this.attr("headerrows"),c=this.attr("frozencols"),h=this.attr("frozenrows"),d=this.attr("frozenbottomrows"),u=this._getTopRowOfScreen(),p=this._getBottomRowOfScreen(),g=this._getLeftColOfScreen(),f=this._getRightColOfScreen(),m=this.attr("layoutsize").viewport.offsetWidth,C=this._getSumOfColWidth(n,n+c-1),L=!0;if(this._adjustScrollPos(),this._beforeFocusCell(),t<u){if(h>0?t>=l+h&&this._scrollTop(t):this._scrollTop(t),e<g)c>0?e>=n+c&&this._scrollLeft(e):this._scrollLeft(e);else if(e>f){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}else if(e===g)this._scrollLeft(e);else if(e===f){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}else if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(i=e;i<=f;i++)if(this._cellValue(t,e)!==this._cellValue(t,i)){L=!1;break}if(L){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}}}else if(t>p){if(d>0?t<a-d&&this._scrollTop(t-(p-u)+1):this._scrollTop(t-(p-u)+1),e<g)c>0?e>=n+c&&this._scrollLeft(e):this._scrollLeft(e);else if(e>f){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}else if(e===g)this._scrollLeft(e);else if(e===f){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}else if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(i=e;i<=f;i++)if(this._cellValue(t,e)!==this._cellValue(t,i)){L=!1;break}if(L){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}}}else if(t===p?(!0!==this.attr("useall")&&!0!==this.attr("usetreeall")||this.getIdx("row","click")===this.getIdx("row","cursor")&&this.getIdx("row","click")===this.getIdx("row","focus")&&this.getIdx("col","click")===this.getIdx("col","cursor")&&this.getIdx("col","click")===this.getIdx("col","focus"))&&this._scrollTop(t-(p-u)+1):t===u&&(this.attr("useall")||this.attr("usetreeall"),this._scrollTop(t)),e<g)c>0?e>=n+c&&this._scrollLeft(e):this._scrollLeft(e);else if(e>f){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}else if(e===g)this._adjustCol();else if(e===f){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}else if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data){for(i=e;i<=f;i++)if(this._cellValue(t,e)!==this._cellValue(t,i)){L=!1;break}if(L){if(r=C,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"col"!==this.attr("merge").data&&"group"!==this.attr("merge").data)for(i=e+1;i<s&&this._cellValue(t,e)===this._cellValue(t,i);i++)e=i;for(i=e;i>=n;i--)if((r+=this._getColWidth(i))>=m){o=i;break}this._scrollLeft(o+1)}}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._scrollToFocusCell",t.message)}},_.QCELL.BasicQCELL.prototype._leftKey=function(t,e){try{var r,i,o,a=this._idx("row","focus","current"),s=this._idx("col","focus","current"),n=this._getSelectedRow(),l=this._getSelectedCol(),c=this.attr("cols"),h=this.attr("headercols");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(l>h&&l<c){if(--l,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":o=this._findNextCell(a,s,"left");break;case"cols":o=this._findNextCell(a,l,"left");break;default:o=this._findNextCell(n,l,"left")}n=o.row,l=o.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":s>=this._getSelectedCol()?(r=_._.range(l,s+1).reverse(),this._selectCols(r)):(i=_._.range(s,this._getSelectedCol()+1),r=_._.range(s,l+1),this._deselectCols(i),this._selectCols(r));break;default:s>=this._getSelectedCol()||this._deselectCellRange(a,s,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(a,s,n,l)}this._scrollToFocusCell(n,l)}}else if(!t&&e){if(s>h&&s<c){switch(s=h,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(o=this._findNextCell(a,s,"left")).row,s=o.col),this._focusCell(a,s),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(!0),this._selectCol(s);break;default:this._clearSelection(!0),this._selectCell(a,s)}this._scrollToFocusCell(a,s)}}else if(t&&e&&l>h&&l<c){if(l=h,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":o=this._findNextCell(a,s,"left");break;case"cols":o=this._findNextCell(a,l,"left");break;default:o=this._findNextCell(n,l,"left")}n=o.row,l=o.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":s>=this._getSelectedCol()?(r=_._.range(l,this._getSelectedCol()).reverse(),this._selectCols(r)):(i=_._.range(s,this._getSelectedCol()+1),r=_._.range(l,s+1).reverse(),this._deselectCols(i),this._selectCols(r));break;default:s>=this._getSelectedCol()?this._selectCellRange(a,this._getSelectedCol()-1,n,l):(this._deselectCellRange(a,s,n,this._getSelectedCol()),this._selectCellRange(a,s,n,l))}this._scrollToFocusCell(n,l)}}else if(s>h&&s<c){switch(--s,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(o=this._findNextCell(a,s,"left")).row,s=o.col),this._focusCell(a,s),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(s);break;case"group":this._clearSelection(),this._selectGroup(a,s);break;default:this._clearSelection(),this._selectCell(a,s)}this._scrollToFocusCell(a,s)}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._leftKey",t.message)}},_.QCELL.BasicQCELL.prototype._rightKey=function(t,e){try{var r,i,o,a=this._idx("row","focus","current"),s=this._idx("col","focus","current"),n=this._getSelectedRow(),l=this._getSelectedCol(),c=this.attr("cols"),h=this.attr("headercols");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(l>=h&&l<c-1){if(++l,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":o=this._findNextCell(a,s,"right");break;case"cols":o=this._findNextCell(a,l,"right");break;default:o=this._findNextCell(n,l,"right")}n=o.row,l=o.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":s>this._getSelectedCol()?(i=_._.range(this._getSelectedCol(),s+1),r=_._.range(l,s+1).reverse(),this._deselectCols(i),this._selectCols(r)):this._selectCol(l);break;default:s>this._getSelectedCol()?(this._deselectCellRange(a,s,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(a,s,n,l)):a===this._getSelectedRow()?this._selectCell(n,l):this._selectCellRange(a,l,n,l)}this._scrollToFocusCell(n,l)}}else if(!t&&e){if(s>=h&&s<c-1){switch(s=c-1,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(o=this._findNextCell(a,s,"right")).row,s=o.col),this._focusCell(a,s),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(s);break;default:this._clearSelection(!0),this._selectCell(a,s)}this._scrollToFocusCell(a,s)}}else if(t&&e&&l>=h&&l<c-1){if(l=c-1,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":o=this._findNextCell(a,s,"right");break;case"cols":o=this._findNextCell(a,l,"right");break;default:o=this._findNextCell(n,l,"right")}n=o.row,l=o.col}switch(this.attr("selectmode")){case"row":case"rows":case"col":case"cell":break;case"cols":s>=this._getSelectedCol()?(i=_._.range(this._getSelectedCol(),s+1),r=_._.range(s,l+1),this._deselectCols(i),this._selectCols(r)):(r=_._.range(s,l+1),this._selectCols(r));break;default:s>this._getSelectedCol()?(this._deselectCellRange(a,s,n,this._getSelectedCol()),this._selectCellRange(a,s,n,l)):this._selectCellRange(a,this._getSelectedCol()+1,n,l)}this._scrollToFocusCell(n,l)}}else if(s>=h&&s<c-1){switch(++s,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(o=this._findNextCell(a,s,"right")).row,s=o.col),this._focusCell(a,s),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(!0),this._selectCol(s);break;case"group":this._clearSelection(!0),this._selectGroup(a,s);break;default:this._clearSelection(!0),this._selectCell(a,s)}this._scrollToFocusCell(a,s)}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._rightKey",t.message)}},_.QCELL.BasicQCELL.prototype._tabKey=function(t,e){try{var r,i,o,a,s=this._idx("row","focus","current"),n=this._idx("col","focus","current"),l=this.attr("cols"),c=this.attr("headercols"),h=this.attr("rows"),d=this.attr("headerrows"),u=!1;if(this._onScrollHideEditCellsDOM(),t){if(n>c&&n<l)--n,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(r=this._findNextCell(s,n,"left")).row,n=r.col);else if(n=l-1,--s<d)return!1;if(i=this._getColType(n),u=!1,"static"===i||"html"===i||"image"===i){for(o=s;o>=d;o--){for(a=n;a>=c;a--)if(--n,"static"!==(i=this._getColType(n))&&"html"!==i&&"image"!==i){u=!0;break}if(!0===u)break}if(!1===u)return!1}}else{if(n>=c&&n<l-1)++n,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(s=(r=this._findNextCell(s,n,"right")).row,n=r.col);else if(n=c,h===++s)return!1;if(i=this._getColType(n),u=!1,"static"===i||"html"===i||"image"===i){for(o=s;o<h;o++){for(a=n;a<l-1;a++)if(++n,"static"!==(i=this._getColType(n))&&"html"!==i&&"image"!==i){u=!0;break}if(!0===u)break}if(!1===u)return!1}}switch(this._focusCell(s,n),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(s);break;case"col":case"cols":this._clearSelection(),this._selectCol(n);break;case"group":this._clearSelection(),this._selectGroup(s,n);break;default:this._clearSelection(),this._selectCell(s,n)}this._scrollToFocusCell(s,n)}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._rightKey",t.message)}return!0},_.QCELL.BasicQCELL.prototype._upKey=function(t,e){try{var r,i,o,a=this._idx("row","focus","current"),s=this._idx("col","focus","current"),n=this._getSelectedRow(),l=this._getSelectedCol(),c=this.attr("rows"),h=this.attr("headerrows");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(n>h&&n<c){if(--n,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":o=this._findNextCell(a,s,"up");break;case"rows":o=this._findNextCell(n,s,"up");break;default:o=this._findNextCell(n,l,"up")}n=o.row,l=o.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":a>=this._getSelectedRow()?(r=_._.range(n,a+1).reverse(),this._selectRows(r)):(i=_._.range(a,this._getSelectedRow()+1),r=_._.range(a,n+1),this._deselectRows(i),this._selectRows(r));break;default:a>=this._getSelectedRow()||this._deselectCellRange(a,s,this._getSelectedRow(),l),this._selectCellRange(a,s,n,l)}this._scrollToFocusCell(n,l)}}else if(!t&&e){if(a>h&&a<c){switch(a=h,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(o=this._findNextCell(a,s,"up")).row,s=o.col),this._focusCell(a,s),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(s);break;default:this._clearSelection(),this._selectCell(a,s)}this._scrollToFocusCell(a,s)}}else if(t&&e&&n>h&&n<c){if(n=h,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":o=this._findNextCell(a,s,"up");break;case"rows":o=this._findNextCell(n,s,"up");break;default:o=this._findNextCell(n,l,"up")}n=o.row,l=o.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":a>=this._getSelectedRow()?(r=_._.range(n,this._getSelectedRow()).reverse(),this._selectRows(r)):(i=_._.range(a,this._getSelectedRow()+1),r=_._.range(n,a+1).reverse(),this._deselectRows(i),this._selectRows(r));break;default:a>=this._getSelectedRow()?this._selectCellRange(this._getSelectedRow()-1,s,n,l):(this._deselectCellRange(a,s,this._getSelectedRow(),l),this._selectCellRange(a,s,n,l))}this._scrollToFocusCell(n,l)}}else if(a>h&&a<c){switch(--a,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(o=this._findNextCell(a,s,"up")).row,s=o.col),this._focusCell(a,s),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(s);break;case"group":this._clearSelection(),this._selectGroup(a,s);break;default:this._clearSelection(),this._selectCell(a,s)}this._scrollToFocusCell(a,s)}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._upKey",t.message)}},_.QCELL.BasicQCELL.prototype._downKey=function(t,e){try{var r,i,o,a=this._idx("row","focus","current"),s=this._idx("col","focus","current"),n=this._getSelectedRow(),l=this._getSelectedCol(),c=this.attr("rows"),h=this.attr("headerrows");if(this._onScrollHideEditCellsDOM(),t||e){if(t&&!e){if(n>=h&&n<c-1){if(++n,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":o=this._findNextCell(a,s,"down");break;case"rows":o=this._findNextCell(n,s,"down");break;default:o=this._findNextCell(n,l,"down")}n=o.row,l=o.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":a>this._getSelectedRow()?(i=_._.range(this._getSelectedRow(),a+1),r=_._.range(n,a+1).reverse(),this._deselectRows(i),this._selectRows(r)):this._selectRow(n);break;default:a<=this._getSelectedRow()?this._selectCellRange(n,s,n,l):(this._deselectCellRange(a,s,this._getSelectedRow(),l),this._selectCellRange(a,s,n,l))}this._scrollToFocusCell(n,l)}}else if(!t&&e){if(a>=h&&a<c-1){switch(a=c-1,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(o=this._findNextCell(a,s,"down")).row,s=o.col),this._focusCell(a,s),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(s);break;default:this._clearSelection(),this._selectCell(a,s)}this._scrollToFocusCell(a,s)}}else if(t&&e&&n>=h&&n<c-1){if(n=c-1,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":o=this._findNextCell(a,s,"down");break;case"rows":o=this._findNextCell(n,s,"down");break;default:o=this._findNextCell(n,l,"down")}n=o.row,l=o.col}switch(this.attr("selectmode")){case"row":case"col":case"cols":case"cell":break;case"rows":a<=this._getSelectedRow()?(r=_._.range(this._getSelectedRow(),n+1),this._selectRows(r)):(i=_._.range(this._getSelectedRow(),a+1),r=_._.range(a,n+1),this._deselectRows(i),this._selectRows(r));break;default:a<=this._getSelectedRow()?this._selectCellRange(this._getSelectedRow()+1,s,n,l):(this._deselectCellRange(a,s,this._getSelectedRow(),this._getSelectedCol()),this._selectCellRange(a,s,n,l))}this._scrollToFocusCell(n,l)}}else if(a>=h&&a<c-1){switch(++a,!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(a=(o=this._findNextCell(a,s,"down")).row,s=o.col),this._focusCell(a,s),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(a);break;case"col":case"cols":this._clearSelection(),this._selectCol(s);break;case"group":this._clearSelection(),this._selectGroup(a,s);break;default:this._clearSelection(),this._selectCell(a,s)}this._scrollToFocusCell(a,s)}else{var d=this;setTimeout((function(){d._resizeHScrollbar()}))}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._downKey",t.message)}},_.QCELL.BasicQCELL.prototype._pageUpKey=function(t,e){try{var r=this._idx("row","focus","current"),i=this._idx("col","focus","current"),o=this._getSelectedRow(),a=this._getSelectedCol(),s=this._getTopRowOfScreen(),n=this._getBottomRowOfScreen();if(t||e){if(t&&!e&&o>this.attr("headerrows")&&o<this.attr("rows")){switch(this.attr("frozenrows")>0&&o<=this.attr("frozenrows")+this.attr("headerrows")-1?s=o=this.attr("headerrows"):o>=s&&o<=n?(o-=n-s,s-=n-s):(o=s,s-=n-s),o<=this.attr("headerrows")&&(s=o=this.attr("headerrows")),this.attr("selectmode")){case"rows":var l,c;r<this._getSelectedRow()?(l=_._.range(r,this._getSelectedRow()+1),c=r<o?_._.range(r,o+1):_._.range(o,r+1).reverse()):(l=_._.range(this._getSelectedRow(),r+1),c=_._.range(o,r+1).reverse()),this._deselectRows(l),this._selectRows(c);break;case"row":case"col":case"cols":case"cell":return!1;default:this._deselectCellRange(r,i,this._getSelectedRow(),a),this._selectCellRange(r,i,o,a)}this._scrollTop(s)}}else if(r>this.attr("headerrows")&&r<this.attr("rows")){if(this.attr("frozenrows")>0&&r<=this.attr("frozenrows")+this.attr("headerrows")-1)return!1;if(r>=s&&r<=n?(r-=n-s,s-=n-s):(r=s-(n-s),s-=n-s),r<=this.attr("headerrows"))return!1;switch(this._focusCell(r,i),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(r);break;case"col":case"cols":this._clearSelection(),this._selectCol(i);break;case"group":this._clearSelection();var h=this;setTimeout((function(){h._selectGroup(r,i)}),100);break;default:this._clearSelection(),this._selectCell(r,i)}this._scrollTop(s)}}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._pageUpKey",t.message),!1}},_.QCELL.BasicQCELL.prototype._pageDownKey=function(t,e){try{var r=this._idx("row","focus","current"),i=this._idx("col","focus","current"),o=this._getSelectedRow(),a=this._getSelectedCol(),s=this.attr("vsinfo"),n=this._getTopRowOfScreen(),l=this._getBottomRowOfScreen();if(t||e){if(t&&!e&&o>=this.attr("headerrows")&&o<this.attr("rows")-1){switch(o>=this.attr("rows")-this.attr("frozenbottomrows")?n=o=this.attr("rows")-1:o<=this.attr("frozenrows")+this.attr("headerrows")-1?n=o=s.nStartRow+(l-n):o<n||o>l?n=o+=l-n:(o+=l-n,n+=l-n),o>this.attr("rows")&&(n=o=this.attr("rows")-1),this.attr("selectmode")){case"rows":var c,h;r>this._getSelectedRow()?(c=_._.range(this._getSelectedRow(),r+1),h=r>o?_._.range(o,r+1).reverse():_._.range(r,o+1)):(c=_._.range(r,this._getSelectedRow()+1),h=_._.range(r,o+1)),this._deselectRows(c),this._selectRows(h);break;case"row":case"col":case"cols":case"cell":return!1;default:this._deselectCellRange(r,i,this._getSelectedRow(),a),this._selectCellRange(r,i,o,a)}this._scrollTop(n)}}else if(r>=this.attr("headerrows")&&r<this.attr("rows")-1){if(r>=this.attr("rows")-this.attr("frozenbottomrows"))return!1;if(r>=n&&r<=l?r+=l-n:r=l,r>=this.attr("rows"))return!1;switch(this._focusCell(r,i),this.attr("selectmode")){case"row":case"rows":this._clearSelection(),this._selectRow(r);break;case"col":case"cols":this._clearSelection(),this._selectCol(i);break;case"group":this._clearSelection();var d=this;setTimeout((function(){d._selectGroup(r,i)}),100);break;default:this._clearSelection(),this._selectCell(r,i)}n+=l-n,this._scrollTop(n)}}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._pageDownKey",t.message),!1}},_.QCELL.BasicQCELL.prototype._createMergeInfo=function(){return this._createHeaderMergeInfo()&&this._createDataMergeInfo()},_.QCELL.BasicQCELL.prototype._createHeaderMergeInfo=function(){var t=this.attr("merge"),e=this.attr("headerrows"),r=this.attr("headercols"),i=this.attr("headertext"),o=this.attr("frozencols");if("none"!==t.header){var a=this.attr("merge_header_info");_._.isUndefined(a)||_._.isNull(a)||a.RT_clear(),a=[];var s,n,l,c,h=[];if(o){for(s=0;s<e;s++){for(l=[],n=0,n=0;n<r;n++)l.push("");for(n=r;n<o+r;n++)c=void 0===i[n][s]?"":i[n][s],l.push(c);h.push(l)}for(this._merge(t.header,r,a,h,0,r),h=[],s=0;s<e;s++){for(l=[],n=0,n=0;n<r;n++)l.push("");for(n=o+r;n<i.length;n++)c=void 0===i[n][s]?"":i[n][s],l.push(c);h.push(l)}this._merge(t.header,r,a,h,0,o+r)}else{for(s=0;s<e;s++){for(l=[],n=0,n=0;n<r;n++)l.push("");for(n=r;n<i.length;n++)c=void 0===i[n][s]?"":i[n][s],l.push(c);h.push(l)}this._merge(t.header,r,a,h,0,r)}this.attr("merge_header_info",a,"array")}return!0},_.QCELL.BasicQCELL.prototype._isMergeCell=function(t,e){var r=t<this.attr("headerrows")?this.attr("merge_header_info"):this.attr("merge_data_info");return!!_._.isArray(r)&&this._findMergeInfo(t,e,r)},_.QCELL.BasicQCELL.prototype._isMasterCell=function(t,e){var r=this._getMergeInfo(t,e);return null!==r&&(r.nStartRow===t&&r.nStartCol===e)},_.QCELL.BasicQCELL.prototype._isLastHeaderRowMasterCell=function(t,e){var r=this._getMergeInfo(t,e);return null!==r&&r.nStartRow===t&&r.nStartCol===e&&r.nEndRow===this.attr("headerrows")-1},_.QCELL.BasicQCELL.prototype._merge=function(t,e,r,i,o,a){"row"===t?this._mergeRow(0,e,r,i,o,a):"col"===t?this._mergeCol(0,e,r,i,o,a):"rowandcol"===t?this._mergeRowAndCol(0,e,r,i,o,a):"colandrow"===t?this._mergeColAndRow(0,e,r,i,o,a):"group"===t?this._mergeGroup(0,e,r,i,o,a):"groupandrow"===t&&this._mergeGroupAndRow(0,e,r,i,o,a)},_.QCELL.BasicQCELL.prototype._makeMergeText=function(t,e,r,i,o){var a=this.attr("headerrows"),s=this.attr("headercols"),n=this.attr("currentdata");if(n.length>0)for(var l=t;l<r;l++){var c=[],h=0;if(void 0===n[l-a])break;for(h=0;h<s;h++)c.push("");for(h=e;h<=i;h++){var d=this._getKeyOfCol(h),u=void 0===n[l-a][d]?"":n[l-a][d];c.push(u)}o.push(c)}},_.QCELL.BasicQCELL.prototype._createDataMergeInfo=function(){var t=this.attr("currentdata"),e=this.attr("vsinfo"),r=this.attr("hsinfo"),i=this.attr("headerrows"),o=this.attr("headercols"),a=this.attr("frozencols"),s=this.attr("frozenrows"),n=this.attr("frozenbottomrows"),l=this.attr("merge");if("group"===l.data||"groupandrow"===l.data)this._createDataGroupMergeInfo();else if("none"!==l.data){var c=this.attr("merge_data_info");_._.isUndefined(c)||_._.isNull(c)||c.RT_clear(),c=[];var h=[],d=e.nTopRow,u=r.nLeftCol;if(a?(this._createFCDataMergeInfo(c,i,i+s-1),this._createFCDataMergeInfo(c,e.nTopRow,e.nBottomRow)):u=o,s&&(s&&e.bVScroll?this._createFRDataMergeInfo(c):d=i),d<0)return!0;this._makeMergeText(d,u,e.nBottomRow+1,r.nRightCol,h),this._merge(l.data,o,c,h,d,u),n&&(a&&e.bVScroll&&this._createFCDataMergeInfo(c,t.length-n+i,t.length+i-1),this._createFRBDataMergeInfo(c,u)),this.attr("merge_data_info",c,"array")}return!0},_.QCELL.BasicQCELL.prototype._createDataGroupMergeInfo=function(){var t=this.attr("currentdata"),e=this.attr("vsinfo"),r=this.attr("hsinfo"),i=this.attr("headerrows"),o=this.attr("headercols"),a=this.attr("frozenrows"),s=this.attr("frozenbottomrows"),n=this.attr("merge"),l=this.attr("merge_data_info");_._.isUndefined(l)||_._.isNull(l)||l.RT_clear(),l=[];var c=[],h=e.nTopRow;if(a&&(this._makeMergeText(i,o,i+a,r.nRightCol,c),this._merge(n.data,o,l,c,i,o),c.RT_clear()),this._makeMergeText(h,o,e.nBottomRow+1,r.nRightCol,c),this._merge(n.data,o,l,c,h,o),c.RT_clear(),s){var d=t.length-s+i,u=t.length+i;this._makeMergeText(d,o,u,r.nRightCol,c),this._merge(n.data,o,l,c,d,o)}this.attr("merge_data_info",l,"array")},_.QCELL.BasicQCELL.prototype._createFRDataMergeInfo=function(t){var e=this.attr("hsinfo"),r=this.attr("headerrows"),i=this.attr("headercols"),o=this.attr("frozenrows"),a=this.attr("merge");if("none"!==a.data){var s=[],n=e.nLeftCol;this._makeMergeText(r,e.nLeftCol,o+r,e.nRightCol,s),this._merge(a.data,i,t,s,r,n)}},_.QCELL.BasicQCELL.prototype._createFRBDataMergeInfo=function(t,e){var r=this.attr("currentdata"),i=this.attr("hsinfo"),o=this.attr("headerrows"),a=this.attr("headercols"),s=this.attr("frozenbottomrows"),n=this.attr("merge");if("none"!==n.data){var l=[];this._makeMergeText(r.length-s+o,e,r.length+o,i.nRightCol,l),this._merge(n.data,a,t,l,r.length-s+o,e)}},_.QCELL.BasicQCELL.prototype._createFCDataMergeInfo=function(t,e,r){var i=this.attr("headercols"),o=this.attr("frozencols"),a=this.attr("merge");if("none"!==a.data){var s=[];this._makeMergeText(e,i,r+1,o+i-1,s),this._merge(a.data,i,t,s,e,i)}},_.QCELL.BasicQCELL.prototype._makeMergeInfo=function(t,e,r,i,o){var a={};return a.nStartRow=t,a.nStartCol=e,a.nEndRow=r,a.nEndCol=i,a.strMergeData=o,a},_.QCELL.BasicQCELL.prototype._findMergeInfo=function(t,e,r){for(var i=0;i<r.length;i++){var o=r[i];if(o.nStartRow<=t&&o.nEndRow>=t&&o.nStartCol<=e&&o.nEndCol>=e)return!0}return!1},_.QCELL.BasicQCELL.prototype._getMergeInfo=function(t,e){var r=t<this.attr("headerrows")?this.attr("merge_header_info"):this.attr("merge_data_info"),i=null;return _._.isArray(r)&&_.$.each(r,(function(r,o){if(o.nStartRow<=t&&o.nEndRow>=t&&o.nStartCol<=e&&o.nEndCol>=e)return i=o,!1})),i},_.QCELL.BasicQCELL.prototype._mergeCol=function(t,e,r,i,o,a){var s,n=i.length?i[0].length:0,l=null,c=a;for(s=e;s<n;s++){if(this._getColDataMergeCol(c)){for(var h=void 0===i[t][s]?"":i[t][s],d=0,u=t+1;u<i.length;u++)h!==i[u][s]?(d&&(l=this._makeMergeInfo(u-++d+t+o,c,u-1+o,c,h),d=0,r.push(l)),h=i[u][s]):d++;d&&(l=this._makeMergeInfo(u-++d+t+o,c,u-1+o,c,h),r.push(l))}c++}for(c=a,s=e;s<n;s++){if(void 0!==this._getColDataMergeRef(c)){var p=this._getColsOfKey(this._getColDataMergeRef(c))[0];if(void 0!==p){for(var g=[],f=0;f<r.length;f++)if(r[f].nStartCol===p){var m=_._.clone(r[f]);m.nStartCol=m.nEndCol=c,g.push(m)}for(var C=0;C<g.length;C++){for(var L=!0,b=0;b<r.length;b++)if(g[C].nStartCol===r[b].nStartCol&&g[C].nStartRow===r[b].nStartRow&&g[C].nEndRow===r[b].nEndRow){L=!1;break}L&&r.push(g[C])}}}c++}},_.QCELL.BasicQCELL.prototype._mergeColAndRow=function(t,e,r,i,o,a){for(var s=a-e,n=i.length?i[0].length:0,l=null,c=e;c<n;c++){for(var h=void 0===i[t][c]?"":i[t][c],d=0,u=t+1;u<i.length;u++)h!==i[u][c]?(d?(this._findMergeInfo(u-++d+t+o,c+s,r)||(l=this._makeMergeInfo(u-d+t+o,c+s,u-1+o,c+s,h),this._mergeColAndRowSub(l,i,o,s),r.push(l)),d=0):this._findMergeInfo(u-1+o,c+s,r)?d=0:(l=this._makeMergeInfo(u-1+o,c+s,u-1+o,c+s,h),this._mergeColAndRowSub(l,i,o,s),l.nStartRow===l.nEndRow&&l.nStartCol===l.nEndCol?l=null:r.push(l)),h=i[u][c]):d++;d?this._findMergeInfo(u-++d+t+o,c+s,r)?this._findMergeInfo(u+o-1,c+s,r)||(l=this._makeMergeInfo(u+o-1,c+s,u+o-1,c+s,h),this._mergeColAndRowSub(l,i,o,s),l.nStartRow===l.nEndRow&&l.nStartCol===l.nEndCol?l=null:r.push(l)):(l=this._makeMergeInfo(u-d+t+o,c+s,u-1+o,c+s,h),this._mergeColAndRowSub(l,i,o,s),r.push(l)):this._findMergeInfo(u-1+o,c+s,r)||(l=this._makeMergeInfo(u-1+o,c+s,u-1+o,c+s,h),this._mergeColAndRowSub(l,i,o,s),l.nStartRow===l.nEndRow&&l.nStartCol===l.nEndCol?l=null:r.push(l))}},_.QCELL.BasicQCELL.prototype._mergeColAndRowSub=function(t,e,r,i){for(var o=e.length?e[0].length:0,a=t.nEndCol+1-i;a<o;a++){for(var s=t.nStartRow-r;s<=t.nEndRow-r;s++){if(e[s][a]!==t.strMergeData)return}if(t.nStartRow-1-r>=0&&e[t.nStartRow-1-r][a]===t.strMergeData)return;if(t.nEndRow+1<e.length&&e[t.nEndRow+1-r][a]===t.strMergeData)return;t.nEndCol++}},_.QCELL.BasicQCELL.prototype._mergeRowAndCol=function(t,e,r,i,o,a){for(var s=a-e,n=t;n<i.length;n++){var l=i[n];if(!l.length)break;var c=void 0===l[e]?"":l[e],h=0,d=e+1,u=null;for(d=e+1;d<l.length;d++)c!==l[d]?(h?(this._findMergeInfo(n+o,d-++h+s,r)||(u=this._makeMergeInfo(n+o,d-h+s,n+o,d-1+s,c),this._mergeRowAndColSub(u,i,o,s),r.push(u)),h=0):this._findMergeInfo(n+o,d-1+s,r)||(u=this._makeMergeInfo(n+o,d-1+s,n+o,d-1+s,c),this._mergeRowAndColSub(u,i,o,s),u.nStartRow===u.nEndRow&&u.nStartCol===u.nEndCol?u=null:r.push(u)),c=i[n][d]):h++;h?this._findMergeInfo(n+o,d-++h+s,r)||(u=this._makeMergeInfo(n+o,d-h+s,n+o,d+s-1,c),this._mergeRowAndColSub(u,i,o,s),r.push(u)):this._findMergeInfo(n+o,d-1+s,r)||(u=this._makeMergeInfo(n+o,d-1+s,n+o,d-1+s,c),this._mergeRowAndColSub(u,i,o,s),u.nStartRow===u.nEndRow&&u.nStartCol===u.nEndCol?u=null:r.push(u))}},_.QCELL.BasicQCELL.prototype._mergeRowAndColSub=function(t,e,r,i){for(var o=t.nEndRow+1-r;o<e.length;o++){for(var a=t.nStartCol-i,s=a;s<=t.nEndCol-i;s++){var n=e[o][s];if(!_._.isUndefined(n)&&n!==t.strMergeData)return}if(e[o][a-1]===t.strMergeData||e[o][t.nEndCol+1-i]===t.strMergeData)return;t.nEndRow++}},_.QCELL.BasicQCELL.prototype._mergeRow=function(t,e,r,i,o,a){for(var s=a-e,n=t;n<i.length;n++){var l=i[n],c=null;if(!l.length)break;for(var h=void 0===l[e]?"":l[e],d=0,u=e+1;u<l.length;u++)h!==l[u]?(d&&(c=this._makeMergeInfo(n+o,u+s-++d,n+o,u-1+s,h),d=0,r.push(c)),h=i[n][u]):d++;d&&(c=this._makeMergeInfo(n+o,u-++d+s,n+o,u-1+s,h),h=l[u],d=0,r.push(c))}},_.QCELL.BasicQCELL.prototype._mergeGroup=function(t,e,r,i,o,a){this._mergeGroupSub(t,e,r,i,o,a,i.length,e)},_.QCELL.BasicQCELL.prototype._mergeGroupSub=function(t,e,r,i,o,a,s,n){if(e!==(i.length?i[0].length:0)&&0!==i.length&&this._getColDataMergeCol(e)){var l=t,c=void 0===i[t][e]?"":i[t][e],h=0,d=null;for(l=t+1;l<s;l++){var u=i[l];c!==u[e]?(h&&(d=this._makeMergeInfo(l+o-++h,e+a-n,l+o-1,e+a-n,c),h=0,r.push(d),this._mergeGroupSub(d.nStartRow-o,e+1,r,i,o,a,l,n)),c=u[e]):h++}h&&(d=this._makeMergeInfo(l+o-++h,e+a-n,l+o-1,e+a-n,c),h=0,r.push(d),this._mergeGroupSub(d.nStartRow-o,e+1,r,i,o,a,l,n))}},_.QCELL.BasicQCELL.prototype._updateMergeHeader=function(){var t=this.attr("merge_header_info");return this._updateMergeSub(t,!0),!0},_.QCELL.BasicQCELL.prototype._updateMergeData=function(){var t=this.attr("merge_data_info");return this._updateMergeSub(t,!1),!0},_.QCELL.BasicQCELL.prototype._updateMerge=function(){this._updateMergeHeader(),this._updateMergeData();var t=this;return setTimeout((function(){t._trigger("redrawed")}),0),!0},_.QCELL.BasicQCELL.prototype._updateMergeSub=function(t,e){if(!_._.isUndefined(t)&&!_._.isNull(t)){var r=this;_._.each(t,(function(t){for(var i=null,o=0,a=0,s=0,n=0,l=[],c=0,h=0,d=null,u=null,p=null,g=null,f="datepicker"===r._getColType(t.nStartCol),m=t.nStartRow;m<=t.nEndRow;m++){for(var C=t.nStartCol;C<=t.nEndCol;C++){var L=r._getCellDOM(m,C);if(void 0!==L&&!_._.isNull(L)&&_._.isNull(i)&&(i=L,s=L.offsetWidth,n=L.offsetHeight),L&&(c+=L.offsetWidth,h=L.offsetHeight,L!==i&&(l.push(L),L.style.display="none")),e&&L&&m!==t.nStartRow&&m===t.nEndRow&&C===t.nStartCol){var b,E=0;for(E=0;E<L.childNodes.length;E++)b=L.childNodes[E],_.$(b).hasClass("rt-qc-sortarea")?(u=b.cloneNode(!0),i.appendChild(u)):_.$(b).hasClass("rt-qc-filterarea")?(p=b.cloneNode(!0),i.appendChild(p)):_.$(b).hasClass("rt-qc-colheader-checkbox")?(g=b.cloneNode(!0),i.textContent="",i.appendChild(g)):_.$(b).hasClass("rt-qc-removearea")&&(d=b.cloneNode(!0),i.appendChild(d))}}c&&(o=c),h&&(a+=h),c=0}if(i){if(t.masterCell=i,t.orginWidth=s,t.orginHeight=n,t.arCells=l,t.cloneSort=u,u||p||g||d){var v=r._getQCellCol(t.nStartCol);u&&(u.style.top=a-(a/2+5)+"px",t.sortCol=t.nStartCol,v.attr("cloneSort_master",_.$(i),"jquery"),v.attr("cloneSort_sort",_.$(u),"jquery"),v.attr("cloneSort_master_height",a,"number")),p&&(v.attr("colfilterarea",_.$(p),"jquery"),_.$(p).on("mousedown",r.attr("eventparam"),_.QCELL.BasicQCELL._createFilterAreaSub)),g&&(v.attr("headerelement",i.childNodes[0],"element"),_.$(v.attr("headerelement")).on("click",{target:v.attr("colelement")},_.st.eventProcess)),d&&(d.style.top=a-(a/2+7)+"px")}i.style.width=o+"px",i.style.height=a+"px",i.setAttribute("data-endcol",t.nEndCol-t.nStartCol+1),!0===f&&!1===e&&(i.children[0].style.height=a+"px",i.children[0].children[0].style.height=a+"px"),r._getColWordwrap(t.nStartCol)?i.style.whiteSpace="pre-wrap":(e?(i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center"):i.style.lineHeight=a-2+"px",i.style.whiteSpace="nowrap")}}))}},_.QCELL.BasicQCELL.prototype._clearMergeHeader=function(){var t=this.attr("merge_header_info");this._clearMergeSub(t,!0)},_.QCELL.BasicQCELL.prototype._clearMergeData=function(){var t=this.attr("merge_data_info");this._clearMergeSub(t,!1)},_.QCELL.BasicQCELL.prototype._clearMerge=function(){this._clearMergeHeader(),this._clearMergeData()},_.QCELL.BasicQCELL.prototype._clearMergeSub=function(t,e){if(!_._.isUndefined(t)&&!_._.isNull(t)){var r=this;_._.each(t,(function(t){var i=t.arCells;if(i){for(var o=0;o<i.length;o++)i[o].style.display="";i.RT_clear()}if(!_._.isUndefined(t.masterCell)&&!_._.isNull(t.masterCell)){if(t.masterCell.style.width=t.orginWidth+"px",t.masterCell.style.height=t.orginHeight+"px",r._getColWordwrap(t.nStartCol)?t.masterCell.style.whiteSpace="pre-wrap":e?(t.masterCell.style.whiteSpace="nowrap",t.masterCell.style.display="flex",t.masterCell.style.justifyContent="center",t.masterCell.style.alignItems="center"):t.masterCell.style.lineHeight=t.orginHeight-2+"px",t.cloneSort){_.$(t.masterCell).find("."+_.$(t.cloneSort).attr("class")).remove();var a=r._getQCellCol(t.sortCol);a.attr("cloneSort_master",null,"jquery"),a.attr("cloneSort_sort",null,"jquery"),t.cloneSort=null}t.masterCell=null}}))}},_.QCELL.BasicQCELL.prototype._findNextCellRow=function(t,e,r){return"up"===r||"down"===r||"left"===r?this._findNextCellRowLeft(t,e):"right"===r?this._findNextCellRowRight(t,e):void 0},_.QCELL.BasicQCELL.prototype._findNextCellRowLeft=function(t,e){var r=this.attr("currentdata"),i=this.attr("headerrows"),o=this.attr("headercols"),a=t-i,s=r.length,n=!1,l=this.attr("frozencols");if(l&&e>=o+l&&(n=!0),!s)return{row:t,col:e};if(a<0)return{row:0+i,col:e};if(a>=s)return{row:s+i,col:e};for(var c=void 0===r[a][this._getKeyOfCol(e)]?"":r[a][this._getKeyOfCol(e)],h=e-1;;){if(h<0)return{row:t,col:0+o};if(c!==(void 0===r[a][this._getKeyOfCol(h)]?"":r[a][this._getKeyOfCol(h)]))return{row:t,col:h+1};if(l&&n&&h+o<=o+l)return{row:t,col:h+1};h--}},_.QCELL.BasicQCELL.prototype._findNextCellRowRight=function(t,e){var r=this.attr("currentdata"),i=this.attr("headerrows"),o=this.attr("headercols"),a=t-i,s=r.length,n=this.attr("cols"),l=!1,c=this.attr("frozencols");if(c&&e<o+c&&(l=!0),!s)return{row:t,col:e};if(a<0)return{row:0+i,col:e};if(a>=s)return{row:s+i,col:e};var h=void 0===r[a][this._getKeyOfCol(e)]?"":r[a][this._getKeyOfCol(e)];if((e-1>=0?void 0===r[a][this._getKeyOfCol(e-1)]?"":r[a][this._getKeyOfCol(e-1)]:h)===h&&e!==o+c){var d=0;for(d=e+1;d<n;d++){if((void 0===r[a][this._getKeyOfCol(d)]?"":r[a][this._getKeyOfCol(d)])!==h)return{row:t,col:d};if(c&&l&&d+o>=o+c)return{row:t,col:d}}for(d=e-1;d>=0;d--){if((void 0===r[a][this._getKeyOfCol(d)]?"":r[a][this._getKeyOfCol(d)])!==h)return{row:t,col:d+1};if(c&&l&&d+o>=o+c)return{row:t,col:o+c}}return{row:t,col:o}}return{row:t,col:e}},_.QCELL.BasicQCELL.prototype._findNextCellCol=function(t,e,r){return!1===this._getColDataMergeCol(e)?{row:t,col:e}:"up"===r||"right"===r||"left"===r?this._findNextCellColUp(t,e):"down"===r?this._findNextCellColDown(t,e):void 0},_.QCELL.BasicQCELL.prototype._findNextCellColUp=function(t,e){var r=this.attr("currentdata"),i=this.attr("headerrows"),o=t-i,a=r.length,s=!1,n=!1,l=this.attr("frozenrows"),c=this.attr("frozenbottomrows");if(l&&t>=i+l&&(s=!0),c&&t>=i+a-c&&(n=!0),!a)return{row:t,col:e};if(o<0)return{row:0+i,col:e};if(o>=a)return{row:a+i,col:e};for(var h=this._getKeyOfCol(e),d=void 0===r[o][h]?"":r[o][h],u=o-1;;){if(u<0)return{row:i,col:e};if(d!==(void 0===r[u][h]?"":r[u][h]))return{row:u+1+i,col:e};if(l&&s&&u+i<i+l)return{row:u+i+1,col:e};if(c&&n&&u+i<i+a-c)return{row:u+i+1,col:e};u--}},_.QCELL.BasicQCELL.prototype._findNextCellColDown=function(t,e){var r=this.attr("currentdata"),i=this.attr("headerrows"),o=t-i,a=r.length,s=!1,n=!1,l=this.attr("frozenrows"),c=this.attr("frozenbottomrows");if(l&&t<i+l&&(s=!0),c&&t<i+a-c&&(n=!0),!a)return{row:t,col:e};if(o<0)return{row:0+i,col:e};if(o>=a)return{row:a+i,col:e};var h=this._getKeyOfCol(e),d=void 0===r[o][h]?"":r[o][h];if((o-1>=0?void 0===r[o-1][h]?"":r[o-1][h]:d)===d&&t!==i+l){var u=0;for(u=o+1;u<a;u++){if((void 0===r[u][h]?"":r[u][h])!==d)return{row:u+i,col:e};if(l&&s&&u+i>=i+l)return{row:u+i,col:e};if(c&&n&&u+i>=i+a-c)return{row:u+i,col:e}}return u===a?this._findNextCellCol(t,e,"up"):{row:t-1,col:e}}},_.QCELL.BasicQCELL.prototype._findNextCellRowAndCol=function(t,e,r){return"up"===r||"down"===r||"left"===r?this._findNextCellRowAndColLeft(t,e,r):"right"===r?this._findNextCellRowAndColRight(t,e):void 0},_.QCELL.BasicQCELL.prototype._findNextCellRowAndColUpAndDown=function(t,e,r,i,o){var a=this.attr("currentdata"),s=this.attr("headerrows"),n=a.length,l=!1,c=!1,h=this.attr("frozenrows"),d=this.attr("frozenbottomrows"),u=t-s;h&&r>=s+h&&(l=!0),d&&r>=s+n-d&&(c=!0);var p=void 0===a[u][this._getKeyOfCol(e)]?"":a[u][this._getKeyOfCol(e)],_=0,g=0;if("down"===o){var f=this._getKeyOfCol(e);if((u-1>=0?void 0===a[u-1][f]?"":a[u-1][f]:p)===p&&r!==s+h){for(_=u+1;_<n;_++){if((void 0===a[_][f]?"":a[_][f])!==p)return{row:_+s,col:e};if(h&&!l&&_+s>=s+h)return{row:_+s,col:e};if(d&&!c&&_+s>=s+n-d)return{row:_+s,col:e}}return _===n?this._findNextCellRowAndCol(r,i,"up"):{row:r-1,col:e}}return{row:t,col:e}}for(_=u-1;_>=0;_--){var m=0;if(h&&l&&_+s<s+h)return{row:s+h,col:e};if(d&&c&&_+s<s+n-d)return{row:s+n-d,col:e};for(m=e;m<=i;m++)if(p!==(void 0===a[_][this._getKeyOfCol(m)]?"":a[_][this._getKeyOfCol(m)]))return{row:t-g,col:e};g++}return{row:s,col:e}},_.QCELL.BasicQCELL.prototype._findNextCellRowAndColLeft=function(t,e,r){var i=this.attr("currentdata"),o=this.attr("headerrows"),a=this.attr("headercols"),s=t-o,n=i.length,l=!1,c=this.attr("frozencols");if(c&&e>=a+c&&(l=!0),!n)return{row:t,col:e};if(s<0)return{row:0+o,col:e};if(s>=n)return{row:n+o,col:e};for(var h=void 0===i[s][this._getKeyOfCol(e)]?"":i[s][this._getKeyOfCol(e)],d=e-1;;){if(d<0)return this._findNextCellRowAndColUpAndDown(t,0+a,t,e,r);if(h!==(void 0===i[s][this._getKeyOfCol(d)]?"":i[s][this._getKeyOfCol(d)]))return this._findNextCellRowAndColUpAndDown(t,d+1,t,e,r);if(c&&l&&d+a<=a+c)return this._findNextCellRowAndColUpAndDown(t,d+1,t,e,r);d--}},_.QCELL.BasicQCELL.prototype._findNextCellRowAndColRight=function(t,e,r){var i=this.attr("currentdata"),o=this.attr("headerrows"),a=this.attr("headercols"),s=t-o,n=i.length,l=this.attr("cols"),c=!1,h=this.attr("frozencols");if(h&&e<a+h&&(c=!0),!n)return{row:t,col:e};if(s<0)return{row:0+o,col:e};if(s>=n)return{row:n+o,col:e};var d=void 0===i[s][this._getKeyOfCol(e)]?"":i[s][this._getKeyOfCol(e)];if((e-1>=0?void 0===i[s][this._getKeyOfCol(e-1)]?"":i[s][this._getKeyOfCol(e-1)]:d)===d&&e!==a+h){var u=0;for(u=e+1;u<l;u++){if((void 0===i[s][this._getKeyOfCol(u)]?"":i[s][this._getKeyOfCol(u)])!==d)return this._findNextCellRowAndColUpAndDown(t,u,t,u,r);if(h&&c&&u+a>=a+h)return this._findNextCellRowAndColUpAndDown(t,u,t,u,r)}for(u=e-1;u>=0;u--){if((void 0===i[s][this._getKeyOfCol(u)]?"":i[s][this._getKeyOfCol(u)])!==d)return this._findNextCellRowAndColUpAndDown(t,u+1,t,u+1,r);if(h&&c&&u+a>=a+h)return this._findNextCellRowAndColUpAndDown(t,a+h,t,a+h,r)}return this._findNextCellRowAndColUpAndDown(t,a,t,a,r)}return this._findNextCellRowAndColUpAndDown(t,e,t,e,r)},_.QCELL.BasicQCELL.prototype._findNextCellColAndRow=function(t,e,r){return"up"===r||"right"===r||"left"===r?this._findNextCellColAndRowUp(t,e,r):"down"===r?this._findNextCellColAndRowDown(t,e,r):void 0},_.QCELL.BasicQCELL.prototype._findNextCellColAndRowLeftAndRight=function(t,e,r,i,o){var a=this.attr("currentdata"),s=this.attr("headerrows"),n=this.attr("headercols"),l=t-s,c=r-s,h=a.length,d=this.attr("cols"),u=!1,p=this.attr("frozencols");if(p&&i>=n+p&&(u=!0),!h)return{row:r,col:i};if(l<0)return{row:0+s,col:i};if(l>=h)return{row:h+s,col:i};var _=void 0===a[l][this._getKeyOfCol(i)]?"":a[l][this._getKeyOfCol(i)],g=i-1,f="",m=0;if("right"===o){var C=void 0===a[l][this._getKeyOfCol(i)]?"":a[l][this._getKeyOfCol(i)];if((i-1>=0?void 0===a[l][this._getKeyOfCol(i-1)]?"":a[l][this._getKeyOfCol(i-1)]:C)===C&&i!==n+p){for(m=i+1;m<d;m++){if((void 0===a[l][this._getKeyOfCol(m)]?"":a[l][this._getKeyOfCol(m)])!==C)return this._findNextCellColAndRowUp(t,m,"up");if(p&&!u&&m+n>=n+p)return{row:t,col:m}}for(m=i-1;m>=0;m--){if((void 0===a[l][this._getKeyOfCol(m)]?"":a[l][this._getKeyOfCol(m)])!==C)return{row:t,col:m+1};if(p&&!u&&m+n>=n+p)return{row:t,col:n+p}}return{row:t,col:n}}return{row:t,col:i}}for(;;){if(g<0)return{row:t,col:0+n};for(f=this._getKeyOfCol(g),m=l;m<=c;m++)if(_!==(void 0===a[m][f]?"":a[m][f]))return{row:t,col:g+1};if(p&&u&&g+n<=n+p)return{row:t,col:g+1};g--}},_.QCELL.BasicQCELL.prototype._findNextCellColAndRowUp=function(t,e,r){var i=this.attr("currentdata"),o=this.attr("headerrows"),a=t-o,s=i.length,n=!1,l=!1,c=this.attr("frozenrows"),h=this.attr("frozenbottomrows");if(c&&t>=o+c&&(n=!0),h&&t>=o+s-h&&(l=!0),!s)return{row:t,col:e};if(a<0)return{row:0+o,col:e};if(a>=s)return{row:s+o,col:e};for(var d=this._getKeyOfCol(e),u=void 0===i[a][d]?"":i[a][d],p=a-1;;){if(p<0)return this._findNextCellColAndRowLeftAndRight(o,e,t,e,r);if(u!==(void 0===i[p][d]?"":i[p][d]))return this._findNextCellColAndRowLeftAndRight(p+1+o,e,t,e,r);if(c&&n&&p+o<o+c)return this._findNextCellColAndRowLeftAndRight(p+1+o,e,t,e,r);if(h&&l&&p+o<o+s-h)return this._findNextCellColAndRowLeftAndRight(p+1+o,e,t,e,r);p--}},_.QCELL.BasicQCELL.prototype._findNextCellColAndRowDown=function(t,e,r){var i=this.attr("currentdata"),o=this.attr("headerrows"),a=t-o,s=i.length,n=!1,l=!1,c=this.attr("frozenrows"),h=this.attr("frozenbottomrows");if(c&&t<o+c&&(n=!0),h&&t<o+s-h&&(l=!0),!s)return{row:t,col:e};if(a<0)return{row:0+o,col:e};if(a>=s)return{row:s+o,col:e};var d=this._getKeyOfCol(e),u=void 0===i[a][d]?"":i[a][d];if((a-1>=0?void 0===i[a-1][d]?"":i[a-1][d]:u)===u&&t!==o+c){var p=0;for(p=a+1;p<s;p++){if((void 0===i[p][d]?"":i[p][d])!==u)return this._findNextCellColAndRowLeftAndRight(p+o,e,p+o,e,r);if(c&&n&&p+o>=o+c)return this._findNextCellColAndRowLeftAndRight(p+o,e,p+o,e,r);if(h&&l&&p+o>=o+s-h)return this._findNextCellColAndRowLeftAndRight(p+o,e,p+o,e,r)}return p===s?this._findNextCellColAndRow(t,e,"up"):this._findNextCellColAndRowLeftAndRight(t-1,e,t-1,e,r)}return this._findNextCellColAndRowLeftAndRight(t,e,t,e,r)},_.QCELL.BasicQCELL.prototype._findNextCellGroup=function(t,e,r){return!1===this._getColDataMergeCol(e)?{row:t,col:e}:"up"===r||"left"===r||"right"===r?this._findNextCellGroupUp(t,e,r):this._findNextCellGroupDown(t,e)},_.QCELL.BasicQCELL.prototype._findNextCellGroupUp=function(t,e,r){var i=this.attr("currentdata"),o=this.attr("headerrows"),a=this.attr("headercols"),s=i.length+o,n=!1,l=!1,c=this.attr("frozenrows"),h=this.attr("frozenbottomrows"),d=o;return c&&t>=o+c&&(n=!0),h&&t>=s-h&&(l=!0),s?(c&&n?d=o+c:c&&!n&&(d=o),h&&l&&(d=s-h),this._findNextCellGroupUpSub(t,e,d,a)):{row:t,col:e}},_.QCELL.BasicQCELL.prototype._findNextCellGroupUpSub=function(t,e,r,i){if(r===t)return{row:t,col:e};if(i>e)return{row:r,col:e};var o=this.attr("currentdata"),a=this.attr("headerrows"),s=t-a;if(i>this.attr("cols"))return{row:r,col:e};for(var n=this._getKeyOfCol(i),l=void 0===o[s][n]?"":o[s][n],c=t-1;c>=r;c--)if(l!==(void 0===o[c-a][n]?"":o[c-a][n]))return this._findNextCellGroupUpSub(t,e,c+1,++i);return this._findNextCellGroupUpSub(t,e,r,++i)},_.QCELL.BasicQCELL.prototype._findNextCellGroupDown=function(t,e,r){var i=this.attr("currentdata"),o=this.attr("headerrows"),a=this.attr("headercols"),s=i.length+o,n=!1,l=!1,c=this.attr("frozenrows"),h=this.attr("frozenbottomrows"),d=s;return c&&t>=o+c&&(n=!0),h&&t>=s-h&&(l=!0),t===o||t===o+c||t===s-h?{row:t,col:e}:s?(h&&!l&&(d=s-h),c&&!n&&(d=o+c),this._findNextCellGroupDownSub(t,e,d,a)):{row:t,col:e}},_.QCELL.BasicQCELL.prototype._findNextCellGroupDownSub=function(t,e,r,i){if(r===t)return{row:t,col:e};if(i>e)return{row:r,col:e};var o=this.attr("currentdata"),a=this.attr("headerrows"),s=t-a,n=o.length+a;if(i>this.attr("cols"))return{row:s,col:e};var l=this._getKeyOfCol(i),c=void 0===o[s][l]?"":o[s][l];if((void 0===o[s-1][l]?"":o[s-1][l])===c){var h=0;for(h=t+1;h<r;h++)if(c!==(void 0===o[h-a][l]?"":o[h-a][l]))return this._findNextCellGroupDownSub(t,e,h,++i);return i===e&&h===n?this._findNextCellGroupUp(t,e,"up"):this._findNextCellGroupDownSub(t,e,r,++i)}return this._findNextCellGroupDownSub(t,e,t,++i)},_.QCELL.BasicQCELL.prototype._findNextCell=function(t,e,r){var i=this.attr("merge");if("none"===i.data)return{row:t,col:e};var o=i.data;return"row"===o?this._findNextCellRow(t,e,r):"col"===o?this._findNextCellCol(t,e,r):"rowandcol"===o?this._findNextCellRowAndCol(t,e,r):"colandrow"===o?this._findNextCellColAndRow(t,e,r):"group"===o?this._findNextCellGroup(t,e,r):"groupandrow"===o?this._findNextCellGroupAndRow(t,e,r):{row:t,col:e}},_.QCELL.BasicQCELL.prototype._mergeGroupAndRow=function(t,e,r,i,o,a){this._mergeGroupAndRowSub(t,e,r,i,o,a,i.length,e)},_.QCELL.BasicQCELL.prototype._mergeGroupAndRowSub=function(t,e,r,i,o,a,s,n){var l=i.length?i[0].length:0;if(e!==l&&0!==i.length&&this._getColDataMergeCol(e)){var c,h=t,d=this.attr("headercols")>0?0:1,u=void 0===i[t][e]?"":i[t][e],p=0,_=null;for(h=t+1;h<s;h++){var g=i[h];if(u!==g[e]){if(p)_=this._makeMergeInfo(h+o-++p,e+a-n,h+o-1,e+a-n,u),p=0,r.push(_),this._mergeGroupAndRowSub(_.nStartRow-o,e+1,r,i,o,a,h,n);else for(c=e+1;c<l;c++){if(u!==i[h-1][c]){if((_=this._makeMergeInfo(h+o-1,e+a-n,h+o-1,c-n-d,u)).nStartCol===_.nEndCol)break;r.push(_);break}if(c+1===l){if((_=this._makeMergeInfo(h+o-1,e+a-n,h+o-1,c-n-d,u)).nStartCol===_.nEndCol)break;r.push(_)}}u=g[e]}else p++}if(p)_=this._makeMergeInfo(h+o-++p,e+a-n,h+o-1,e+a-n,u),p=0,r.push(_),this._mergeGroupAndRowSub(_.nStartRow-o,e+1,r,i,o,a,h,n);else for(c=e+1;c<l;c++){if(u!==i[h-1][c]){if((_=this._makeMergeInfo(h+o-1,e+a-n,h+o-1,c-n-d,u)).nStartCol===_.nEndCol)break;r.push(_);break}if(c+1===l){if((_=this._makeMergeInfo(h+o-1,e+a-n,h+o-1,c-n-d,u)).nStartCol===_.nEndCol)break;r.push(_)}}}},_.QCELL.BasicQCELL.prototype._findNextCellGroupAndRow=function(t,e,r){if(!1===this._getColDataMergeCol(e))return{row:t,col:e};for(var i,o=this.attr("merge_data_info"),a=0;a<o.length;a++)if((i=o[a]).nStartRow<=t&&t<=i.nEndRow&&i.nStartCol<=e&&e<=i.nEndCol)return"down"===r?i.nEndRow+1===this.getRows()||t===i.nStartRow&&e===i.nStartCol||i.nStartRow===i.nEndRow?{row:i.nStartRow,col:i.nStartCol}:{row:i.nEndRow+1,col:i.nStartCol}:"right"===r?t===i.nStartRow&&e===i.nStartCol?{row:i.nStartRow,col:i.nStartCol}:{row:i.nStartRow,col:i.nEndCol+1}:{row:i.nStartRow,col:i.nStartCol};return{row:t,col:e}},_.QCELL.BasicQCELL.prototype._mergedCheckboxClick=function(t,e,r){var i=this.attr("merge");if("col"===i.data||"group"===i.data||"groupandrow"===i.data){var o=t,a=this.getRows()-1,s=!0===r?this._getColElement(e).attr("checkedvalue"):this._getColElement(e).attr("uncheckedvalue");if(void 0!==this._getColDataMergeRef(e)){for(var n=this._getColDataMergeRef(e),l=this.getCellDataEx(t,n),c=t;c>=this.attr("headerrows");c--){if(l!==this.getCellDataEx(c,n)){o=c+1;break}this.setCellData(c,e,s)}for(var h=t;h<this.getRows();h++){if(l!==this.getCellDataEx(h,n)){a=h-1;break}this.setCellData(h,e,s)}this._trigger("merged_checkbox_changed",{status:s,col:e,startrow:o,endrow:a})}}},_.QCELL.BasicQCELL.prototype._afterPaginationNext=function(){var t=this.attr("paginationinfo");if(t.lastindex=Math.ceil(t.datacount/t.pageunit),"simple"===t.mode)t.pageindex<t.lastindex&&(t.nextpage=!0,t.lastpage=!0),t.pageindex>t.firstindex&&(t.prevpage=!0,t.firstpage=!0);else{var e=Math.ceil(t.pageindex/t.pagecount);e<Math.ceil(t.lastindex/t.pagecount)&&t.pageindex!==t.lastindex&&(t.nextpage=!0),e>1&&(t.prevpage=!0),t.pageindex<t.lastindex&&(t.lastpage=!0),t.pageindex>1&&(t.firstpage=!0)}if(0===t.result.length?(t.pageindex=0,t.firstindex=0,t.datacount=0,t.lastindex=0,t.nextpage=!1,t.lastpage=!1):t.firstindex=1,"create"===this.attr("_afterpagination")){var r=this.attr("_afterpagination_hep"),i=this.attr("_afterpagination_div");r.appendChild(this._createPaginationInner(i)),this._updateCurrentData(t.result),this._initRowheaderData(),r=null,i=null}else"movepage"===this.attr("_afterpagination")&&(this._updatePagination(),this._trigger("aftermovepage"))},_.QCELL.BasicQCELL.prototype._afterPagination=function(){var t,e=this.getID(),r=this.attr("paginationinfo"),i=r.beforeSendCallback,o=r.sendFailCallback,a=r.sendDoneCallback,s=r.parsingErrorCallback,n=r.sendAlwaysCallback,l=void 0!==r.useProgress&&r.useProgress,c=void 0!==r.currentData&&_._.isArray(r.currentData)&&r.currentData.length>0?r.currentData:_._.clone(this.attr("data").input);if(r.result.RT_clear(),r.result=null,r.result=[],!1!==_._.isUndefined(r.url)||!0!==_._.isUndefined(r.loadonce)&&!1!==r.loadonce){var h=0;if(!0===r.totalsort&&!1===_._.isEmpty(this.attr("sortinfo"))){var d=_._.clone(this.attr("sortinfo")),u=[];for(_._.each(d,(function(t){u.push(_._.clone(t))})),h=0;h<u.length;h++)u[h][0]=this._getKeyOfCol(u[h][0]);1===u.length?_.util.RT_sortBy(c,u[0][0],u[0][1],u[0][2]):u.length>1&&_.util.RT_sortBy(c,u)}for(h=(r.pageindex-1)*r.pageunit;h<r.pageindex*r.pageunit&&!1===_._.isUndefined(c[h])&&(r.result.push(c[h]),h!==c.length-1);h++);this._afterPaginationNext()}else{var p=[];!0===r.totalsort&&!1===_._.isEmpty(this.attr("sortinfo"))&&(_._.each(this.attr("sortinfo"),(function(r,i){t=_.QCELL.getInstance(e);var o={};o.sortKey=t._getKeyOfCol(r[0]),o.sortType=r[1],p.push(o),t=null})),r.sort=p),r.initsort&&(r.sort=void 0,this._clearSortUI(),r.initsort=!1);var g={pageindex:r.pageindex,pageunit:r.pageunit,param:JSON.stringify(r.param),sort:JSON.stringify(r.sort)};void 0!==i&&_._.isFunction(i)&&(g=i(g)),!0===l&&this.showProgress(),setTimeout((function(){_.$.post(r.url,g,(function(i){try{t=_.QCELL.getInstance(e),i=i instanceof Object?i:JSON.parse(i),r.result=i instanceof Object&&i.data instanceof Object?_._.clone(i.data):_._.clone(JSON.parse(i.data)),r.datacount=i instanceof Object?_._.clone(i.datacount):0,t._afterPaginationNext(),t=null}catch(o){t=_.QCELL.getInstance(e),void 0!==s&&_._.isFunction(s)&&s(o,i),i={},r.result={},r.datacount=0,t._afterPaginationNext(),t=null}i=null})).done((function(){void 0!==a&&_._.isFunction(a)&&a()})).fail((function(){void 0!==o&&_._.isFunction(o)&&o()})).always((function(){void 0!==n&&_._.isFunction(n)&&n(),!0===l&&((t=_.QCELL.getInstance(e)).hideProgress(),t=null)}),100)}))}c=null},_.QCELL.BasicQCELL.prototype._calculatePaginationInfo=function(t,e){var r,i=this.getID(),o=this.attr("paginationinfo"),a=o.beforeSendCallback,s=o.sendFailCallback,n=o.sendDoneCallback,l=o.parsingErrorCallback,c=o.sendAlwaysCallback,h=void 0!==o.useProgress&&o.useProgress,d=void 0!==o.currentData&&_._.isArray(o.currentData)&&o.currentData.length>0?o.currentData:_._.clone(this.attr("data").input);if(!0!==this.attr("isResizing")){if(this.attr("isResizing",!1,"boolean"),o.firstpage=!1,o.prevpage=!1,o.nextpage=!1,o.lastpage=!1,o.firstindex=1,o.lastindex=_._.isUndefined(o.lastindex)?1:o.lastindex,o.pageindex=_._.isUndefined(o.pageindex)?1:o.pageindex,o.datacount=d.length,o.result=_._.isUndefined(o.result)?[]:o.result,o.load=!_._.isUndefined(o.load)&&o.load,o.totalsort=!_._.isUndefined(o.totalsort)&&o.totalsort,o.initsort=!_._.isUndefined(o.initsort)&&o.initsort,o.mode=_._.isUndefined(o.mode)?"simple":o.mode,o.pagecount=_._.isUndefined(o.pagecount)?5:o.pagecount,o.extendmove=!_._.isUndefined(o.extendmove)&&o.extendmove,0!==o.datacount&&0===o.pageindex&&(o.pageindex=1),!1===_._.isUndefined(t)&&(o.pageindex=t),t<=o.firstindex?o.pageindex=o.firstindex:t>=o.lastindex&&(o.pageindex=o.lastindex),!1===_._.isUndefined(e)&&(o.pageunit=e,o.pageindex=o.firstindex),(!0===o.allowsameindex||o.pageindex!==this.attr("_prevPageIndex")||o.pageunit!==this.attr("_prevPageUnit"))&&!0!==this.attr("bRebuildWithPrevData")&&!0!==this.attr("clearingdata")){if(!1===_._.isUndefined(o.url)&&!1===_._.isUndefined(o.loadonce)&&!0===o.loadonce&&!1===o.load){!0===o.totalsort&&!1===_._.isEmpty(this.attr("sortinfo"))&&(o.sort=_._.clone(this.attr("sortinfo"))),o.initsort&&(o.sort=void 0,this._clearSortUI(),o.initsort=!1),_.$.ajaxSettings.async=!1;var u={param:JSON.stringify(o.param),sort:JSON.stringify(o.sort)};void 0!==a&&_._.isFunction(a)&&(u=a(u)),!0===h&&this.showProgress(),setTimeout((function(){_.$.post(o.url,u,(function(t){try{r=_.QCELL.getInstance(i),t=t instanceof Object?t:JSON.parse(t),r.attr("data").input=t instanceof Object&&t.data instanceof Object?_._.clone(t.data):_._.clone(JSON.parse(t.data)),d=t instanceof Object&&t.data instanceof Object?_._.clone(t.data):_._.clone(JSON.parse(t.data)),o.datacount=t instanceof Object?_._.clone(d.length):0,o.load=!0,r.attr("_prevPageIndex",o.pageindex,"number"),r.attr("_prevPageUnit",o.pageunit,"number"),r=null}catch(e){r=_.QCELL.getInstance(i),void 0!==l&&_._.isFunction(l)&&l(e,t),r.attr("data").input=[],d=[],o.datacount=0,o.load=!0,r.attr("_prevPageIndex",o.pageindex,"number"),r.attr("_prevPageUnit",o.pageunit,"number"),r=null}})).done((function(){void 0!==n&&_._.isFunction(n)&&n()})).fail((function(){void 0!==s&&_._.isFunction(s)&&s()})).always((function(){void 0!==c&&_._.isFunction(c)&&c(),!0===h&&((r=_.QCELL.getInstance(i)).hideProgress(),r=null)}),100),_.$.ajaxSettings.async=!0,(r=_.QCELL.getInstance(i))._afterPagination(),r=null}))}else this._afterPagination();d=null}}else this.attr("isResizing",!1,"boolean")},_.QCELL.BasicQCELL.prototype._movePage=function(t,e){var r=this.attr("paginationinfo");this.removeAttr("_backGT"),this.attr("colsearchuivisible")&&this._removeColSearUIArea(),this._isContextMenu()||this._removeContextMenu(),(_._.isUndefined(r.totalsort)||!1===r.totalsort)&&this._clearSortUI(),this.attr("_afterpagination","movepage","string");for(var i=this.attr("currentdata"),o=0;o<i.length;o++)void 0!==i[o]._rt_qc_style&&null!==i[o]._rt_qc_style&&delete i[o]._rt_qc_style;i=null,this._calculatePaginationInfo(t,e)},_.QCELL.BasicQCELL.prototype._updatePagination=function(){this._setCurrentData(_._.clone(this.attr("paginationinfo").result),!0);var t=this.attr("elementpool"),e=t.get("paginationpanel");if(t.get("$paginationpanel").empty(),e.appendChild(this._createPaginationInner(document.createElement("div"))),"normal"===_.QCELL.module)for(var r=this.attr("headercols"),i=this.attr("cols");r<i;r++)if("checkbox"===this._getColType(r)){for(var o=this._getColElement(r).attr("checkedvalue"),a=this.attr("currentdata").length,s=this.attr("headerrows"),n=0,l=0;l<a;l++){var c=l+s;this._cellValue(c,r)===o&&n++}n===a?this._getColElement(r)._isHeaderCheckbox(r)&&!1===this._getColElement(r)._getHeaderCheckedState(r)&&this._getColElement(r)._setHeaderChecked(r,!0):this._getColElement(r)._isHeaderCheckbox(r)&&this._getColElement(r)._getHeaderCheckedState(r)&&this._getColElement(r)._setHeaderChecked(r,!1)}},_.QCELL.BasicQCELL.prototype._setPaginationParam=function(t){try{return this.attr("paginationinfo").param=_._.clone(t),this.attr("paginationinfo").load=!1,!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._setPaginationParam",t.message),!1}},_.QCELL.BasicQCELL.prototype._calculatePaginationInfoCreate=function(t,e){var r=this,i=this.attr("paginationinfo"),o=i.beforeSendCallback,a=i.sendFailCallback,s=i.sendDoneCallback,n=i.sendAlwaysCallback,l=i.parsingErrorCallback,c=void 0!==i.useProgress&&i.useProgress,h=void 0!==i.currentData&&_._.isArray(i.currentData)&&i.currentData.length>0?i.currentData:_._.clone(this.attr("data").input);if(!0===this.attr("isResizing"))return this.attr("isResizing",!1,"boolean"),!1;if(this.attr("isResizing",!1,"boolean"),i.firstpage=!1,i.prevpage=!1,i.nextpage=!1,i.lastpage=!1,i.firstindex=1,i.lastindex=_._.isUndefined(i.lastindex)?1:i.lastindex,i.pageindex=_._.isUndefined(i.pageindex)?1:i.pageindex,i.datacount=h.length,i.result=_._.isUndefined(i.result)?[]:i.result,i.load=!_._.isUndefined(i.load)&&i.load,i.totalsort=!_._.isUndefined(i.totalsort)&&i.totalsort,i.initsort=!_._.isUndefined(i.initsort)&&i.initsort,i.mode=_._.isUndefined(i.mode)?"simple":i.mode,i.pagecount=_._.isUndefined(i.pagecount)?5:i.pagecount,i.extendmove=!_._.isUndefined(i.extendmove)&&i.extendmove,0!==i.datacount&&0===i.pageindex&&(i.pageindex=1),!1===_._.isUndefined(t)&&(i.pageindex=t),t<=i.firstindex?i.pageindex=i.firstindex:t>=i.lastindex&&(i.pageindex=i.lastindex),!1===_._.isUndefined(e)&&(i.pageunit=e,i.pageindex=i.firstindex),!0!==i.allowsameindex&&i.pageindex===this.attr("_prevPageIndex")&&i.pageunit===this.attr("_prevPageUnit"))return!1;if(!0===this.attr("bRebuildWithPrevData"))return!1;if(!1===_._.isUndefined(i.url)&&!1===_._.isUndefined(i.loadonce)&&!0===i.loadonce&&!1===i.load){!0===i.totalsort&&!1===_._.isEmpty(this.attr("sortinfo"))&&(i.sort=_._.clone(this.attr("sortinfo"))),i.initsort&&(i.sort=void 0,r._clearSortUI(),i.initsort=!1),_.$.ajaxSettings.async=!1;var d={param:JSON.stringify(i.param),sort:JSON.stringify(i.sort)};void 0!==o&&_._.isFunction(o)&&(d=o(d)),!0===c&&this.showProgress(),_.$.post(i.url,d,(function(t){try{t=t instanceof Object?t:JSON.parse(t),r.attr("data").input=t instanceof Object&&t.data instanceof Object?_._.clone(t.data):_._.clone(JSON.parse(t.data)),h=t instanceof Object&&t.data instanceof Object?_._.clone(t.data):_._.clone(JSON.parse(t.data)),i.datacount=t instanceof Object?_._.clone(h.length):0,i.load=!0,r.attr("_prevPageIndex",i.pageindex,"number"),r.attr("_prevPageUnit",i.pageunit,"number")}catch(e){void 0!==l&&_._.isFunction(l)&&l(e,t),r.attr("data").input=[],h=[],i.datacount=0,i.load=!0,r.attr("_prevPageIndex",i.pageindex,"number"),r.attr("_prevPageUnit",i.pageunit,"number")}})).done((function(){void 0!==s&&_._.isFunction(s)&&s()})).fail((function(){void 0!==a&&_._.isFunction(a)&&a()})).always((function(){void 0!==n&&_._.isFunction(n)&&n(),!0===c&&r.hideProgress()})),_.$.ajaxSettings.async=!0}if(i.result.RT_clear(),!0!==this.attr("clearingdata"))if(!1!==_._.isUndefined(i.url)||!0!==_._.isUndefined(i.loadonce)&&!1!==i.loadonce){var u=0;if(!0===i.totalsort&&!1===_._.isEmpty(this.attr("sortinfo"))){var p=_._.clone(this.attr("sortinfo")),g=[];for(_._.each(p,(function(t){g.push(_._.clone(t))})),u=0;u<g.length;u++)g[u][0]=this._getKeyOfCol(g[u][0]);1===g.length?_.util.RT_sortBy(h,g[0][0],g[0][1],g[0][2]):g.length>1&&_.util.RT_sortBy(h,g)}for(u=(i.pageindex-1)*i.pageunit;u<i.pageindex*i.pageunit&&!1===_._.isUndefined(h[u])&&(i.result.push(h[u]),u!==h.length-1);u++);}else{var f=[];!0===i.totalsort&&!1===_._.isEmpty(this.attr("sortinfo"))&&(_._.each(this.attr("sortinfo"),(function(t,e){var i={};i.sortKey=r._getKeyOfCol(t[0]),i.sortType=t[1],f.push(i)})),i.sort=f),i.initsort&&(i.sort=void 0,r._clearSortUI(),i.initsort=!1),_.$.ajaxSettings.async=!1;var m={pageindex:i.pageindex,pageunit:i.pageunit,param:JSON.stringify(i.param),sort:JSON.stringify(i.sort)};void 0!==o&&_._.isFunction(o)&&(m=o(m)),!0===c&&this.showProgress(),_.$.post(i.url,m,(function(t){try{t=t instanceof Object?t:JSON.parse(t),i.result=t instanceof Object&&t.data instanceof Object?_._.clone(t.data):_._.clone(JSON.parse(t.data)),i.datacount=t instanceof Object?_._.clone(t.datacount):0}catch(e){void 0!==l&&_._.isFunction(l)&&l(e,t),i.result={},i.datacount=0}})).done((function(){void 0!==s&&_._.isFunction(s)&&s()})).fail((function(){void 0!==a&&_._.isFunction(a)&&a()})).always((function(){void 0!==n&&_._.isFunction(n)&&n(),!0===c&&r.hideProgress()})),_.$.ajaxSettings.async=!0}if(i.lastindex=Math.ceil(i.datacount/i.pageunit),"simple"===i.mode)i.pageindex<i.lastindex&&(i.nextpage=!0,i.lastpage=!0),i.pageindex>i.firstindex&&(i.prevpage=!0,i.firstpage=!0);else{var C=Math.ceil(i.pageindex/i.pagecount);C<Math.ceil(i.lastindex/i.pagecount)&&i.pageindex!==i.lastindex&&(i.nextpage=!0),C>1&&(i.prevpage=!0),i.pageindex<i.lastindex&&(i.lastpage=!0),i.pageindex>1&&(i.firstpage=!0)}return 0===i.result.length?(i.pageindex=0,i.firstindex=0,i.datacount=0,i.lastindex=0,i.nextpage=!1,i.lastpage=!1):i.firstindex=1,!0},_.QCELL.BasicQCELL.prototype._initProps=function(){try{var t,e=this.attr("qcellcols"),r=this.attr("colkeysinfo");this.attr("cols",t=e.length,"number"),this.attr("headercols",this.attr("rowheaders").length,"number"),this.attr("headerrows",_._.max(e,(function(t){return t.attr("title").length})).attr("title").length,"number"),this.attr("colwidths",_._.map(e,(function(t){return t.attr("width")})),"array"),this.attr("colkeys",_._.map(e,(function(t){return t.attr("key")})),"array"),this.attr("colids",_._.map(e,(function(t){return t.attr("id")})),"array"),_._.each(this.attr("colkeys"),(function(t,e){!1===r.containsKey(t)&&r.put(t,new i._QHashSet),r.get(t).add(e)}));for(var o=_._.map(e,(function(t){return t.attr("id")})),a=_._.range(0,t),s=[],n=0;n<o.length;n++)s.push([o[n],a[n]]);if(this.attr("colidsinfo",_._.fromPairs(s),"object"),this.attr("headertext",_._.map(e,(function(t){return t.attr("title")})),"array"),null!==this.attr("hiddencolsprops")){var l=[],c=this.attr("hiddencolsprops");if(null!=c)for(var h=0;h<c.length;h++)l.push({key:c[h].key,title:c[h].title});this.attr("hiddenheadertext",l,"object")}return void 0!==_._.find(this.attr("colwidths"),(function(t){return t.indexOf("%")>-1}))&&this.attr("percentcolwidth",!0,"boolean"),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._initProps",t.message),null}},_.QCELL.BasicQCELL.prototype._getSumOfRowHeight=function(t,e){for(var r=0,i=this.attr("rowheight").header,o=this.attr("rowheight").data,a=this.attr("headerrows"),s=t;s<=e;s++)r+=s<a?i:o;return r},_.QCELL.BasicQCELL.prototype._getSumOfColWidth=function(t,e){for(var r=0,i=this.attr("colwidthsperpixel"),o=t;o<=e;o++)r+=i[o];return r},_.QCELL.BasicQCELL.prototype._getSumOfRowHeight=function(t,e){var r=this.attr("dynamicrowheight"),i=this.attr("rowheight").data,o=this.attr("headerrows"),a=0;if(t>=o?a=(e-t+1)*i:(a=(o-t)*this.attr("rowheight").header,a+=(e-o+1)*i),r.size()>0){for(var s=r.keys().sort(_.st.asc),n=t;n<=e;n++)_._.indexOf(s,n,!0)>-1&&(a+=r.get(n)-i);s=null}return a},_.QCELL.BasicQCELL.prototype._adjustFrozenCount=function(){return this._adjustFrozenColsCount()&&this._adjustFrozenRowsCount()},_.QCELL.BasicQCELL.prototype._adjustFrozenColsCount=function(){try{if(!1===this.attr("hsinfo").bHScroll)this.attr("frozencols",0,"number");else{var t=this.getProperties();this.attr("frozencols",t.frozencols,"number")}return this._setHSRange(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._adjustFrozenColsCount",t.message),!1}},_.QCELL.BasicQCELL.prototype._adjustFrozenRowsCount=function(){try{if(!1===this.attr("vsinfo").bVScroll)this.attr("frozenrows",0,"number"),!0!==this._isPanel()&&this.attr("frozenbottomrows",0,"number");else{var t=this.getProperties();this.attr("frozenrows",t.frozenrows,"number"),this.attr("frozenbottomrows",t.frozenbottomrows,"number")}return this._setVSRange(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._adjustFrozenRowsCount",t.message),!1}},_.QCELL.BasicQCELL.prototype._updateIdx=function(t,e,r,i){var o=this._idx("row",t,"current"),a=this._idx("col",t,"current");if(!1===_.QCELL.config.sethtmlclicktoidx&&void 0!==i)return this._idx("row",t,"current",-1),this._idx("col",t,"current",-1),!0;if(e!==o||r!==a){if(this._idx("row",t,"previous",o),this._idx("col",t,"previous",a),this._idx("row",t,"current",e),this._idx("col",t,"current",r),"click"===t&&-1!==e&&-1!==r){if(void 0!==i&&!_.$(i.target).hasClass("rt-qc-cell"))return!0;this._trigger("dataclicked")}return"focus"===t&&this._trigger("focuschanged"),!0}return"click"===t&&-1!==e&&-1!==r&&(void 0!==i&&!_.$(i.target).hasClass("rt-qc-cell")||(this._trigger("dataclicked"),!0))},_.QCELL.BasicQCELL.prototype._getTotalColWidth=function(){var t=this.attr("colwidths"),e=this.attr("headercols"),r=this.attr("layoutsize").container.clientWidth,i=this.attr("headercolwidth")*e;if(this.attr("percentcolwidth")){var o=_._.reduce(t.slice(0,e),(function(t,e){return t+parseFloat(e)}),0),a=_._.reduce(t.slice(e,t.length),(function(t,e){return t+parseFloat(e)}),0);return o+(r-i-(this.attr("vsinfo").bVScroll?this.attr("scrollbarwidth"):0))*a/100}return _._.reduce(t,(function(t,e){return t+parseFloat(e)}),0)},_.QCELL.BasicQCELL.prototype._calculateRealColWidth=function(){var t=this.attr("layoutsize"),e=this.attr("headercols");if(this.attr("percentcolwidth")){var r=0,i=0;this.attr("colwidthsperpixel",_._.map(this.attr("colwidths"),(function(o,a){if(a<e)return parseFloat(o);var s=t.viewport.offsetWidth,n=parseFloat(o),l=Math.ceil(s*parseFloat(o)/100);return 100===(r+=n)&&(l=s-i),i+=l,l})),"array")}else this.attr("colwidthsperpixel",_._.map(this.attr("colwidths"),(function(t){return parseFloat(t)})),"array")},_.QCELL.BasicQCELL.prototype._calculateDynamicCols=function(){try{var t=this.attr("hsinfo"),e=this.attr("headercols"),r=this.attr("cols"),i=0;if(this.attr("useall")||this.attr("usetreeall"))i=r-e;else if(r-e>0){var o,a,s,n,l,c=this.attr("frozencols"),h=this.attr("layoutsize").viewport.offsetWidth,d=this._getSumOfColWidth(e,e+c-1);for(o=e+c,s=r;o<s;o++){for(n=d,l=c,a=o;a<s&&!(n>=h);a++)n+=this._getColWidth(a),l+=1;l>i&&(i=l)}for(o=r-1,s=e+c;o>=s;o--){for(n=d,l=c,a=o;a>=s&&!(n>=h);a--)n+=this._getColWidth(a),l+=1;l>i&&(i=l)}}return t.nDynamicCols=i,!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._calculateDynamicCols",t.message),!1}},_.QCELL.BasicQCELL.prototype._calculateDynamicRows=function(){try{var t=this.attr("vsinfo"),e=this.attr("headerrows"),r=this.attr("rows"),i=0;if(r-e>0){var o,a,s,n,l=this.attr("frozenrows"),c=this.attr("frozenbottomrows"),h=this.attr("layoutsize").viewport.offsetHeight;for(s=this._getSumOfRowHeight(e,e+l-1)+(0===c?0:this._getSumOfRowHeight(r-c,r-1)),n=l+c,o=e+l,a=r-c;o<a&&!(s>=h);o++)s+=this._getRowHeight(o),n+=1;i=n,t.nDynamicRows=i}return t.nDynamicRows=i,!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._calculateDynamicRows",t.message),!1}},_.QCELL.BasicQCELL.prototype._initLayoutSize=function(){try{var t,e=this.attr("layoutsize"),r=this.attr("vsinfo"),i=this.attr("hsinfo"),o=this.attr("rowheight"),a=this.attr("paginationinfo"),s=this.attr("elementpool"),n=s.get("root"),l=s.get("panel"),c=s.get("container"),h=s.get("paginationpanel"),d=s.get("sheetpanel"),u=s.get("viewport"),p=s.get("footerrowheader"),g=s.get("footer"),f=s.get("edgeheader"),m=s.get("rowheader"),C=s.get("colheader"),L=s.get("hscrollbar"),b=s.get("vscrollbar"),E=this.attr("headerrows"),v=this.attr("footerrows"),y=this.attr("headercols"),w=o.header,x=o.data,k=o.footer*v,S=this.attr("scrollbarwidth"),Q=_.$(this.attr("parent")),q=Q.width();n.style.width=this.attr("width"),n.style.height=this.attr("height"),e.root={offsetLeft:n.offsetLeft,offsetTop:n.offsetTop,offsetWidth:n.offsetWidth>Q.width()?Q.width():n.offsetWidth,offsetHeight:n.offsetHeight,clientWidth:n.clientWidth>Q.width()?Q.width():n.clientWidth,clientHeight:n.clientHeight},l.style.width=e.root.clientWidth+"px",l.style.height="0px",l.style.display="none",e.panel={offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},this.attr("useGroupUI")&&(l.style.width=e.root.clientWidth+"px",l.style.height="40px",l.style.display="block",e.panel={offsetTop:l.offsetTop,offsetWidth:l.offsetWidth,offsetHeight:l.offsetHeight,clientWidth:l.clientWidth,clientHeight:l.clientHeight}),d.style.width=l.style.width,d.style.height=this.attr("bottompanelheight")+"px",d.style.left=e.container.clientX+"px",d.style.top=e.root.offsetTop+(e.root.offsetHeight-parseFloat(d.style.height))+"px",d.style.display="none",e.sheetpanel={offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},this.attr("bottompanel")&&(d.style.display="block",e.sheetpanel={offsetTop:d.offsetTop,offsetWidth:d.offsetWidth,offsetHeight:d.offsetHeight,clientWidth:d.clientWidth,clientHeight:d.clientHeight}),h.style.width=l.style.width,h.style.height=!1===_._.isEmpty(a)?"30px":"0px",h.style.top=e.root.offsetTop+(e.root.offsetHeight-parseFloat(h.style.height))-e.sheetpanel.offsetHeight+"px",e.paginationpanel=!1===_._.isEmpty(a)?{offsetTop:h.offsetTop,offsetWidth:h.offsetWidth,offsetHeight:h.offsetHeight,clientWidth:h.clientWidth,clientHeight:h.clientHeight}:{offsetTop:0,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},h.style.display=!1===_._.isEmpty(a)&&e.paginationpanel.clientHeight>0?"":"none","none"===l.style.display?c.style.top="":c.style.top=e.panel.offsetTop+e.panel.offsetHeight+"px",c.style.width=l.style.width,c.style.height=e.root.clientHeight-e.panel.offsetHeight-e.sheetpanel.offsetHeight-e.paginationpanel.offsetHeight+"px",t=s.get("$container").offset(),e.container={clientX:parseInt(t.left),clientY:parseInt(t.top),offsetTop:c.offsetTop,offsetWidth:c.offsetWidth,offsetHeight:c.offsetHeight,clientWidth:c.clientWidth,clientHeight:c.clientHeight},f.style.width=y*this.attr("headercolwidth")+"px",f.style.height=E*w+"px",e.edgeheader={offsetWidth:f.offsetWidth,offsetHeight:f.offsetHeight,clientWidth:f.clientWidth,clientHeight:f.clientHeight},r.bVScroll=this.attr("currentdata").length*x>e.container.offsetHeight-e.edgeheader.offsetHeight-k,C.style.width=e.container.offsetWidth-e.edgeheader.offsetWidth-(r.bVScroll?S:0)+"px",void 0===e.colheader&&(e.colheader={}),e.colheader={offsetWidth:e.container.offsetWidth-e.edgeheader.offsetWidth-(r.bVScroll?S:0),offsetHeight:0,clientWidth:0,clientHeight:0},i.bHScroll=this._getTotalColWidth()>e.edgeheader.offsetWidth+e.colheader.offsetWidth,u.style.height=e.container.offsetHeight-e.edgeheader.offsetHeight-k-(i.bHScroll?S:0)+"px",e.viewport={offsetWidth:0,offsetHeight:u.offsetHeight,clientWidth:0,clientHeight:0},!1===r.bVScroll&&i.bHScroll&&(r.bVScroll=this.attr("currentdata").length*x>e.viewport.offsetHeight,r.bVScroll&&(C.style.width=e.container.offsetWidth-e.edgeheader.offsetWidth-S+"px")),C.style.height=f.style.height,C.style.left=e.edgeheader.offsetWidth+f.offsetLeft+"px",e.colheader.offsetLeft=C.offsetLeft,e.colheader.offsetTop=C.offsetTop,e.colheader.offsetWidth=C.offsetWidth,e.colheader.offsetHeight=C.offsetHeight,e.colheader.clientWidth=C.clientWidth,e.colheader.clientHeight=C.clientHeight,u.style.width=C.style.width,u.style.left=C.style.left,u.style.top=e.edgeheader.offsetHeight+f.offsetTop+"px",e.viewport.offsetLeft=u.offsetLeft,e.viewport.offsetTop=u.offsetTop,e.viewport.offsetWidth=u.offsetWidth,e.viewport.clientWidth=u.clientWidth,e.viewport.clientHeight=u.clientHeight,m.style.width=f.style.width,m.style.height=u.style.height,m.style.top=u.style.top,e.rowheader={offsetWidth:m.offsetWidth,offsetHeight:m.offsetHeight,clientWidth:m.clientWidth,clientHeight:m.clientHeight},p.style.width=m.style.width,p.style.height=k+"px",p.style.top=e.viewport.offsetHeight+u.offsetTop+"px",void 0===e.footerrowheader&&(e.footerrowheader={}),0===k?(e.footerrowheader={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},p.style.display="none"):(e.footerrowheader={offsetWidth:p.offsetWidth,offsetHeight:p.offsetHeight,clientWidth:p.clientWidth,clientHeight:p.clientHeight},p.style.display=""),g.style.width=C.style.width,g.style.height=p.style.height,g.style.left=C.style.left,g.style.top=p.style.top,void 0===e.footer&&(e.footer={}),0===k?(e.footer={offsetTop:e.viewport.offsetTop+e.viewport.offsetHeight,offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0},g.style.display="none"):(e.footer={offsetTop:g.offsetTop,offsetWidth:g.offsetWidth,offsetHeight:g.offsetHeight,clientWidth:g.clientWidth,clientHeight:g.clientHeight},g.style.display=""),this._calculateRealColWidth(),void 0===e.hscrollbar&&(e.hscrollbar={}),i.bHScroll?(L.style.display="",L.style.width=e.rowheader.offsetWidth+e.viewport.offsetWidth+1+"px",L.style.height=S+1+"px",L.style.top=e.footer.offsetTop+e.footer.offsetHeight+"px",e.hscrollbar={offsetWidth:L.offsetWidth,offsetHeight:L.offsetHeight,clientWidth:L.clientWidth,clientHeight:L.clientHeight}):(L.style.display="none",e.hscrollbar={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0}),void 0===e.vscrollbar&&(e.vscrollbar={}),r.bVScroll?(b.style.display="",b.style.width=S+"px",b.style.height=e.container.offsetHeight-e.hscrollbar.offsetHeight+2+"px",b.style.left=e.colheader.offsetLeft+e.colheader.offsetWidth+"px",e.vscrollbar={offsetWidth:b.offsetWidth,offsetHeight:b.offsetHeight,clientWidth:b.clientWidth,clientHeight:b.clientHeight}):(b.style.display="none",e.vscrollbar={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0}),this.attr("tooltipvisible",!1,"boolean");var T=this.getID();return setTimeout((function(){if(q>Q.width()){var t=_.QCELL.getInstance(T);null!=t&&t._initLayoutSize()}}),0),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._initLayoutSize",t.message),!1}},_.QCELL.BasicQCELL.prototype._getRowHeight=function(t){var e=this.attr("dynamicrowheight"),r=this.attr("rowheight"),i=this.attr("headerrows"),o=r.header,a=r.data;return t<i?o:e.containsKey(t)?e.get(t):a},_.QCELL.BasicQCELL.prototype._initRowheaderData=function(){var t=this.attr("rowheaders"),e=this.attr("headerrows"),r=this.attr("currentdata").length,i=[],o=[],a=0,s=0;for(a=0;a<e;a++){var n=[];for(s=0;s<t.length;s++)"checkbox"===t[s]?n.push(!0):n.push(!1);o.push(n)}for(a=0;a<r;a++){var l=[],c=[];for(s=0;s<t.length;s++)"sequence"===t[s]?(l.push(a+1),c.push(!1)):"reverse"===t[s]?(l.push(r-a),c.push(!1)):"checkbox"===t[s]||"radio"===t[s]?(l.push(!1),c.push(!0)):"state"===t[s]?(l.push("n"),c.push(!1)):"custom"===t[s]&&(l.push(""),c.push(!1));i.push(l),o.push(c)}return this.attr("rowheaderdata",i,"array"),this.attr("rowheadercheckboxclick",o,"array"),!0},_.QCELL.BasicQCELL.prototype._updateRowheaderData=function(t,e){var r=this.attr("rowheaders"),i=this.attr("headerrows"),o=this.attr("currentdata").length,a=[],s=[],n=0,l=0;for(n=0;n<i;n++){var c=[];for(l=0;l<r.length;l++)"checkbox"===r[l]?c.push(!0):c.push(!1);s.push(c)}for(n=0;n<o;n++){var h=[],d=[];for(l=0;l<r.length;l++)if("sequence"===r[l])h.push(n+1),d.push(!1);else if("reverse"===r[l])h.push(o-n),d.push(!1);else if("checkbox"===r[l]){var u=!1,p=!0;!1===_._.isUndefined(t[n])&&(u=!_._.isUndefined(t[n][l])&&t[n][l]),!1===_._.isUndefined(e[n])&&(p=!!_._.isUndefined(e[n][l])||e[n][l]),h.push(u),d.push(p)}else"state"===r[l]?(h.push(this._getRowState(n+1)),d.push(!1)):(h.push(""),d.push(!1));a.push(h),s.push(d)}return this.attr("rowheaderdata",a,"array"),this.attr("rowheadercheckboxclick",s,"array"),!0},_.QCELL.BasicQCELL.prototype._getRowheaderData=function(t,e){return t-=this.attr("headerrows"),void 0!==this.attr("rowheaderdata")[t]&&this.attr("rowheaderdata")[t][e]},_.QCELL.BasicQCELL.prototype._setRowheaderData=function(t,e,r){var i=this.attr("rowheaders"),o=!0;if((t-=this.attr("headerrows"))>=this.attr("rowheaderdata").length)return!1;if("sequence"===i[e]||"reverse"===i[e])!1===_._.isNumber(r)&&(o=!1);else if("checkbox"===i[e])!1===_._.isBoolean(r)&&(o=!1);else{if("radio"===i[e]){for(var a=0;a<this.attr("rowheaderdata").length;a++)a===t?this.attr("rowheaderdata")[t][e]=r:this.attr("rowheaderdata")[a][e]=!1;return!1}o=!1}if(o)if(t<0)for(var s=0;s<this.attr("rowheaderdata").length;s++)this.attr("rowheaderdata")[s][e]=r;else this.attr("rowheaderdata")[t][e]=r;return o},_.QCELL.BasicQCELL.prototype._rowheaderCheckboxClick=function(t,e,r){var i,o=this._getCellDOM(t,e).childNodes[0],a=o.name,s=-1,n=-1,l=!1,c=!1;if(!0!==o.disabled)if(this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor")),a.indexOf("_all")>-1){var h=a.replace("_all",""),d=document.getElementsByName(h);o.checked=r;for(var u=0;u<d.length;u++)s=(i=d[u].parentNode).getAttribute("data-row"),n=i.getAttribute("data-col"),l=this._getQCellCol(n).attr("cellinvisible")[s],c=this._getQCellCol(n).attr("celldisabled")[s],l||c||(d[u].checked=r);for(var p=this.attr("headerrows");p<this.attr("rows");p++)l=this._getQCellCol(e).attr("cellinvisible")[p],c=this._getQCellCol(e).attr("celldisabled")[p],l||c||this._setRowheaderData(p,e,r)}else{var _=this._getCellDOM(0,e).childNodes[0];if(this._setRowheaderData(t,e,r),o.checked=r,r){for(var g=0,f=this.attr("headerrows"),m=this.attr("rows");f<m;f++)!0===this._getRowheaderData(f,e)&&g++;g===this.attr("rowheaderdata").length&&(_.checked=!0)}else!0===_.checked&&(_.checked=!1)}},_.QCELL.BasicQCELL.prototype._setRowheaderState=function(t,e){var r=_.$(t),i=this._getRowState(e),o=_.QCELL.def.css;if("n"!==i||!r.hasClass(o.ROWHEADER_STATE_INIT))switch(r.removeClass(o.ROWHEADER_STATE_INSERT),r.removeClass(o.ROWHEADER_STATE_UPDATE),r.removeClass(o.ROWHEADER_STATE_DELETE),r.removeClass(o.ROWHEADER_STATE_INIT),i){case"n":r.addClass(o.ROWHEADER_STATE_INIT);break;case"i":r.addClass(o.ROWHEADER_STATE_INSERT);break;case"u":r.addClass(o.ROWHEADER_STATE_UPDATE);break;case"d":r.addClass(o.ROWHEADER_STATE_DELETE)}},_.QCELL.BasicQCELL.prototype._setRowheaderCustom=function(t,e,r){var i,o,a=this.attr("headerrows"),s=this.attr("rowheaderoptions");if(null!=s)for(var n=0;n<s.length;n++)void 0!==(i=s[n]).col&&i.col===r&&(e<a?void 0!==i.header&&_._.isFunction(i.header)&&(o=i.header(this,e,r),t.innerHTML=o):void 0!==i.data&&_._.isFunction(i.data)&&(o=i.data(this,e,r),t.innerHTML=o))},_.$((function(){var t,e="rt_qc_mCSbar",r="rt_qc_mCS",i=".rt_qc_mCSbar",o={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0},target:null},a=0,s={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,h=["rt_qc_mCSB_dragger_onDrag","rt_qc_mCSB_scrollTools_onDrag","rt_qc_mCS_img_loaded","rt_qc_mCS_disabled","rt_qc_","rt_qc_mCS_no_scrollbar","rt_qc_mCS-autoHide","rt_qc_mCS-dir-rtl","rt_qc_mCS_no_scrollbar_y","rt_qc_mCS_no_scrollbar_x","rt_qc_mCS_y_hidden","rt_qc_mCS_x_hidden","rt_qc_mCSB_draggerContainer","rt_qc_mCSB_buttonUp","rt_qc_mCSB_buttonDown","rt_qc_mCSB_buttonLeft","rt_qc_mCSB_buttonRight"],d={init:function(t){t=_.$.extend(!0,{},o,t);var e,l=u.call(this);if(t.live){e=t.liveSelector||this.selector||i;var c=_.$(e);if("off"===t.live)return void g(e);s[e]=setTimeout((function(){c.rt_qc_mCSbar(t),"once"===t.live&&c.length&&g(e)}),500)}else g(e);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":f(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!==n(t.mouseWheel)&&!0===t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=m(t.scrollButtons.scrollType),p(t),_.$(l).each((function(){var e=_.$(this);if(!e.data(r)){e.data(r,{idx:++a,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:e.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var i=e.data(r),o=i.opt,s=e.data("mcs-axis"),n=e.data("mcs-scrollbar-position"),l=e.data("mcs-theme");s&&(o.axis=s),n&&(o.scrollbarPosition=n),l&&(o.theme=l,p(o)),C.call(this),i&&o.callbacks.onCreate&&"function"==typeof o.callbacks.onCreate&&o.callbacks.onCreate.call(this),_.$("#rt_qc_mCSB_"+i.idx+"_container img:not(."+h[2]+")").addClass(h[2]),d.update.call(null,e)}}))},update:function(t,e){var i=t||u.call(this);return _.$(i).each((function(){var t=_.$(this);if(t.data(r)){var i=t.data(r),o=i.opt,a=_.$("#rt_qc_mCSB_"+i.idx+"_container"),s=_.$("#rt_qc_mCSB_"+i.idx),n=[_.$("#rt_qc_mCSB_"+i.idx+"_dragger_vertical"),_.$("#rt_qc_mCSB_"+i.idx+"_dragger_horizontal")];if(!a.length)return;i.tweenRunning&&Y(t),e&&i&&o.callbacks.onBeforeUpdate&&"function"==typeof o.callbacks.onBeforeUpdate&&o.callbacks.onBeforeUpdate.call(this),t.hasClass(h[3])&&t.removeClass(h[3]),t.hasClass(h[4])&&t.removeClass(h[4]),s.css("max-height","none"),s.height()!==t.height()&&s.css("max-height",t.height()),b.call(this),"y"===o.axis||o.advanced.autoExpandHorizontalScroll||a.css("width",L(a)),i.overflowed=x.call(this),T.call(this),o.autoDraggerLength&&v.call(this),y.call(this),S.call(this);var l=[Math.abs(a[0].offsetTop),Math.abs(a[0].offsetLeft)];"x"!==o.axis&&(i.overflowed[0]?n[0].height()>n[0].parent().height()?k.call(this):($(t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}),i.contentReset.y=null):(k.call(this),"y"===o.axis?q.call(this):"yx"===o.axis&&i.overflowed[1]&&$(t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==o.axis&&(i.overflowed[1]?n[1].width()>n[1].parent().width()?k.call(this):($(t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}),i.contentReset.x=null):(k.call(this),"x"===o.axis?q.call(this):"yx"===o.axis&&i.overflowed[0]&&$(t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),e&&i&&(2===e&&o.callbacks.onImageLoad&&"function"==typeof o.callbacks.onImageLoad?o.callbacks.onImageLoad.call(this):3===e&&o.callbacks.onSelectorChange&&"function"==typeof o.callbacks.onSelectorChange?o.callbacks.onSelectorChange.call(this):o.callbacks.onUpdate&&"function"==typeof o.callbacks.onUpdate&&o.callbacks.onUpdate.call(this)),K.call(this)}}))},scrollTo:function(t,e,i){if(null!=t){var o=u.call(this);return _.$(o).each((function(){var o=_.$(this);if(o.data(r)){var a=o.data(r),s=a.opt,n={trigger:"external",scrollInertia:s.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=_.$.extend(!0,{},n,e),c=G.call(this,t),h=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=V.call(this,c[0],"y"),c[1]=V.call(this,c[1],"x"),l.moveDragger&&(c[0]*=a.scrollRatio.y,c[1]*=a.scrollRatio.x),l.dur=at()?0:h,setTimeout((function(){null!==c[0]&&void 0!==c[0]&&"x"!==s.axis&&a.overflowed[0]&&(l.dir="y",l.overwrite="all",$(o,c[0].toString(),l,i)),null!==c[1]&&void 0!==c[1]&&"y"!==s.axis&&a.overflowed[1]&&(l.dir="x",l.overwrite="none",$(o,c[1].toString(),l,i))}),l.timeout)}}))}},stop:function(){var t=u.call(this);return _.$(t).each((function(){var t=_.$(this);t.data(r)&&Y(t)}))},disable:function(t){var e=u.call(this);return _.$(e).each((function(){var e=_.$(this);e.data(r)&&(e.data(r),K.call(this,"remove"),q.call(this),t&&k.call(this),T.call(this,!0),e.addClass(h[3]))}))},destroy:function(){var t=u.call(this);return _.$(t).each((function(){var i=_.$(this);if(i.data(r)){var o=i.data(r),a=o.opt,s=_.$("#rt_qc_mCSB_"+o.idx),n=_.$("#rt_qc_mCSB_"+o.idx+"_container"),l=_.$(".rt_qc_mCSB_"+o.idx+"_scrollbar");a.live&&g(a.liveSelector||_.$(t).selector),K.call(this,"remove"),q.call(this),k.call(this),i.removeData(r),tt(this,"mcs"),l.remove(),n.find("img."+h[2]).removeClass(h[2]),s.replaceWith(n.contents()),i.removeClass(e+" _"+r+"_"+o.idx+" "+h[6]+" "+h[7]+" "+h[5]+" "+h[3]).addClass(h[4])}}))}},u=function(){return"object"!==n(_.$(this))||_.$(this).length<1?i:this},p=function(t){t.autoDraggerLength=!(_.$.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(_.$.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(_.$.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=_.$.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=_.$.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},g=function(t){s[t]&&(clearTimeout(s[t]),tt(s,t))},f=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},m=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},C=function(){var t=_.$(this),i=t.data(r),o=i.opt,a=o.autoExpandScrollbar?" "+h[1]+"_expand":"",s=["<div id='rt_qc_mCSB_"+i.idx+"_scrollbar_vertical' class='rt_qc_mCSB_scrollTools rt_qc_mCSB_"+i.idx+"_scrollbar rt_qc_mCS-"+o.theme+" rt_qc_mCSB_scrollTools_vertical"+a+"'><div class='"+h[12]+"'><div id='rt_qc_mCSB_"+i.idx+"_dragger_vertical' class='rt_qc_mCSB_dragger' style='position:absolute;'><div class='rt_qc_mCSB_dragger_bar' /></div><div class='rt_qc_mCSB_draggerRail' /></div></div>","<div id='rt_qc_mCSB_"+i.idx+"_scrollbar_horizontal' class='rt_qc_mCSB_scrollTools rt_qc_mCSB_"+i.idx+"_scrollbar rt_qc_mCS-"+o.theme+" rt_qc_mCSB_scrollTools_horizontal"+a+"'><div class='"+h[12]+"'><div id='rt_qc_mCSB_"+i.idx+"_dragger_horizontal' class='rt_qc_mCSB_dragger' style='position:absolute;'><div class='rt_qc_mCSB_dragger_bar' /></div><div class='rt_qc_mCSB_draggerRail' /></div></div>"],n="yx"===o.axis?"rt_qc_mCSB_vertical_horizontal":"x"===o.axis?"rt_qc_mCSB_horizontal":"rt_qc_mCSB_vertical",l="yx"===o.axis?s[0]+s[1]:"x"===o.axis?s[1]:s[0],c="yx"===o.axis?"<div id='rt_qc_mCSB_"+i.idx+"_container_wrapper' class='rt_qc_mCSB_container_wrapper' />":"",d=o.autoHideScrollbar?" "+h[6]:"",u="x"!==o.axis&&"rtl"===i.langDir?" "+h[7]:"";o.setWidth&&t.css("width",o.setWidth),o.setHeight&&t.css("height",o.setHeight),o.setLeft="y"!==o.axis&&"rtl"===i.langDir?"989999px":o.setLeft,t.addClass(e+" _"+r+"_"+i.idx+d+u).wrapInner("<div id='rt_qc_mCSB_"+i.idx+"' class='rt_qc_mCSBox rt_qc_mCS-"+o.theme+" "+n+"'><div id='rt_qc_mCSB_"+i.idx+"_container' class='rt_qc_mCSB_container' style='position:relative; top:"+o.setTop+"; left:"+o.setLeft+";' dir='"+i.langDir+"' /></div>");var p=_.$("#rt_qc_mCSB_"+i.idx),g=_.$("#rt_qc_mCSB_"+i.idx+"_container");"y"===o.axis||o.advanced.autoExpandHorizontalScroll||g.css("width",L(g)),"outside"===o.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),p.addClass("rt_qc_mCSB_outside").after(l)):(p.addClass("rt_qc_mCSB_inside").append(l),g.wrap(c)),E.call(this);var f=[_.$("#rt_qc_mCSB_"+i.idx+"_dragger_vertical"),_.$("#rt_qc_mCSB_"+i.idx+"_dragger_horizontal")];f[0].css("min-height",f[0].height()),f[1].css("min-width",f[1].width())},L=function(t){var e=[t[0].scrollWidth,Math.max.apply(Math,t.children().map((function(){return _.$(this).outerWidth(!0)})).get())],r=t.parent().width();return e[0]>r?e[0]:e[1]>r?e[1]:"100%"},b=function(){var t=_.$(this).data(r),e=t.opt,i=_.$("#rt_qc_mCSB_"+t.idx+"_container");if(e.advanced.autoExpandHorizontalScroll&&"y"!==e.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var o=Math.ceil(i[0].scrollWidth);3===e.advanced.autoExpandHorizontalScroll||2!==e.advanced.autoExpandHorizontalScroll&&o>i.parent().width()?i.css({width:o,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='rt_qc_mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},E=function(){var t=_.$(this).data(r),e=t.opt,i=_.$(".rt_qc_mCSB_"+t.idx+"_scrollbar:first"),o=it(e.scrollButtons.tabindex)?"tabindex='"+e.scrollButtons.tabindex+"'":"",a=["<a title='QCell scroll up' href='#' class='"+h[13]+"' "+o+" />","<a title='QCell scroll down' href='#' class='"+h[14]+"' "+o+" />","<a title='QCell scroll left' href='#' class='"+h[15]+"' "+o+" />","<a title='QCell scroll right' href='#' class='"+h[16]+"' "+o+" />"],s=["x"===e.axis?a[2]:a[0],"x"===e.axis?a[3]:a[1],a[2],a[3]];e.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".rt_qc_mCSB_scrollTools").prepend(s[2]).append(s[3])},v=function(){var t=_.$(this).data(r),e=_.$("#rt_qc_mCSB_"+t.idx),i=_.$("#rt_qc_mCSB_"+t.idx+"_container"),o=[_.$("#rt_qc_mCSB_"+t.idx+"_dragger_vertical"),_.$("#rt_qc_mCSB_"+t.idx+"_dragger_horizontal")],a=[e.height()/i.outerHeight(!1),e.width()/i.outerWidth(!1)],s=[parseInt(o[0].css("min-height")),Math.round(a[0]*o[0].parent().height()),parseInt(o[1].css("min-width")),Math.round(a[1]*o[1].parent().width())],n=l&&s[1]<s[0]?s[0]:s[1],c=l&&s[3]<s[2]?s[2]:s[3];o[0].css({height:n,"max-height":o[0].parent().height()-10}).find(".rt_qc_mCSB_dragger_bar").css({"line-height":s[0]+"px"}),o[1].css({width:c,"max-width":o[1].parent().width()-10})},y=function(){var t=_.$(this).data(r),e=_.$("#rt_qc_mCSB_"+t.idx),i=_.$("#rt_qc_mCSB_"+t.idx+"_container"),o=[_.$("#rt_qc_mCSB_"+t.idx+"_dragger_vertical"),_.$("#rt_qc_mCSB_"+t.idx+"_dragger_horizontal")],a=[i.outerHeight(!1)-e.height(),i.outerWidth(!1)-e.width()],s=[a[0]/(o[0].parent().height()-o[0].height()),a[1]/(o[1].parent().width()-o[1].width())];t.scrollRatio={y:s[0],x:s[1]}},w=function(t,e,r){var i=r?h[0]+"_expanded":"",o=t.closest(".rt_qc_mCSB_scrollTools");"active"===e?(t.toggleClass(h[0]+" "+i),o.toggleClass(h[1]),t[0]._draggable=t[0]._draggable?0:1):t[0]._draggable||("hide"===e?(t.removeClass(h[0]),o.removeClass(h[1])):(t.addClass(h[0]),o.addClass(h[1])))},x=function(){var t=_.$(this).data(r),e=_.$("#rt_qc_mCSB_"+t.idx),i=_.$("#rt_qc_mCSB_"+t.idx+"_container"),o=null===t.overflowed?i.height():i.outerHeight(!1),a=null===t.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,n=i[0].scrollWidth;return s>o&&(o=s),n>a&&(a=n),[o>e.height(),a>e.width()]},k=function(){var t=_.$(this),e=t.data(r),i=e.opt,o=_.$("#rt_qc_mCSB_"+e.idx),a=_.$("#rt_qc_mCSB_"+e.idx+"_container"),s=[_.$("#rt_qc_mCSB_"+e.idx+"_dragger_vertical"),_.$("#rt_qc_mCSB_"+e.idx+"_dragger_horizontal")];if(Y(t),("x"!==i.axis&&!e.overflowed[0]||"y"===i.axis&&e.overflowed[0])&&(s[0].add(a).css("top",0),$(t,"_resetY")),"y"!==i.axis&&!e.overflowed[1]||"x"===i.axis&&e.overflowed[1]){var n=0,l=0;"rtl"===e.langDir&&(n=o.width()-a.outerWidth(!1),l=Math.abs(n/e.scrollRatio.x)),a.css("left",n),s[1].css("left",l),$(t,"_resetX")}},S=function(){var t=_.$(this),e=t.data(r),i=e.opt;e.bindEvents||(R.call(this),i.contentTouchScroll&&O.call(this),D.call(this),i.mouseWheel.enable&&Q(t),H.call(this),F.call(this),i.advanced.autoScrollOnFocus&&U.call(this),i.scrollButtons.enable&&z.call(this),i.keyboard.enable&&W.call(this),e.bindEvents=!0)},Q=function(t){var e=setTimeout((function(){_.$.event.special.mousewheel?(clearTimeout(e),B.call(t[0])):Q(t)}),100)},q=function(){var t=_.$(this),e=t.data(r),i=e.opt,o=r+"_"+e.idx,a=".rt_qc_mCSB_"+e.idx+"_scrollbar",s=_.$("#rt_qc_mCSB_"+e.idx+",#rt_qc_mCSB_"+e.idx+"_container,#rt_qc_mCSB_"+e.idx+"_container_wrapper,"+a+" ."+h[12]+",#rt_qc_mCSB_"+e.idx+"_dragger_vertical,#rt_qc_mCSB_"+e.idx+"_dragger_horizontal,"+a+">a"),n=_.$("#rt_qc_mCSB_"+e.idx+"_container");i.advanced.releaseDraggableSelectors&&s.add(_.$(i.advanced.releaseDraggableSelectors)),i.advanced.extraDraggableSelectors&&s.add(_.$(i.advanced.extraDraggableSelectors)),e.bindEvents&&(_.$(document).add(_.$(!N()||window.top.document)).unbind("."+o),s.each((function(){_.$(this).unbind("."+o)})),clearTimeout(t[0]._focusTimeout),tt(t[0],"_focusTimeout"),clearTimeout(e.sequential.step),tt(e.sequential,"step"),clearTimeout(n[0].onCompleteTimeout),tt(n[0],"onCompleteTimeout"),e.bindEvents=!1)},T=function(t){var e=_.$(this),i=e.data(r),o=i.opt,a=_.$("#rt_qc_mCSB_"+i.idx+"_container_wrapper"),s=a.length?a:_.$("#rt_qc_mCSB_"+i.idx+"_container"),n=[_.$("#rt_qc_mCSB_"+i.idx+"_scrollbar_vertical"),_.$("#rt_qc_mCSB_"+i.idx+"_scrollbar_horizontal")],l=[n[0].find(".rt_qc_mCSB_dragger"),n[1].find(".rt_qc_mCSB_dragger")];"x"!==o.axis&&(i.overflowed[0]&&!t?(n[0].add(l[0]).add(n[0].children("a")).css("display","block"),s.removeClass(h[8]+" "+h[10])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&l[0].css("display","none"),s.removeClass(h[10])):(n[0].css("display","none"),s.addClass(h[10])),s.addClass(h[8]))),"y"!==o.axis&&(i.overflowed[1]&&!t?(n[1].add(l[1]).add(n[1].children("a")).css("display","block"),s.removeClass(h[9]+" "+h[11])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&l[1].css("display","none"),s.removeClass(h[11])):(n[1].css("display","none"),s.addClass(h[11])),s.addClass(h[9]))),i.overflowed[0]||i.overflowed[1]?e.removeClass(h[5]):e.addClass(h[5])},A=function(t){var e,r=t.type,i=t.target.ownerDocument!==document&&null!==window.frameElement?[_.$(window.frameElement).offset().top,_.$(window.frameElement).offset().left]:null,o=N()&&t.target.ownerDocument!==window.top.document&&null!==window.frameElement?[_.$(t.view.window.frameElement).offset().top,_.$(t.view.window.frameElement).offset().left]:[0,0];switch(r){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":e=i?[t.originalEvent.pageY-i[0]+o[0],t.originalEvent.pageX-i[1]+o[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];break;case"touchstart":case"touchmove":case"touchend":var a=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],s=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;e=t.target.ownerDocument!==document?[a.screenY,a.screenX,s>1]:[a.pageY,a.pageX,s>1];break;default:e=i?[t.pageY-i[0]+o[0],t.pageX-i[1]+o[1],!1]:[t.pageY,t.pageX,!1]}return e},R=function(){var t,e,i,o=_.$(this),a=o.data(r),s=a.opt,n=r+"_"+a.idx,h=["rt_qc_mCSB_"+a.idx+"_dragger_vertical","rt_qc_mCSB_"+a.idx+"_dragger_horizontal"],d=_.$("#rt_qc_mCSB_"+a.idx+"_container"),u=_.$("#"+h[0]+",#"+h[1]),p=s.advanced.releaseDraggableSelectors?u.add(_.$(s.advanced.releaseDraggableSelectors)):u,g=s.advanced.extraDraggableSelectors?_.$(!N()||window.top.document).add(_.$(s.advanced.extraDraggableSelectors)):_.$(!N()||window.top.document);function f(e,r,i,n){var l,c;d[0].idleTimer=s.scrollInertia<233?250:0,t.attr("id")===h[1]?(l="x",c=(t[0].offsetLeft-r+n)*a.scrollRatio[l]):(l="y",c=(t[0].offsetTop-e+i)*a.scrollRatio[l]),$(o,c.toString(),{dir:l,drag:!0})}u.bind("contextmenu."+n,(function(t){t.preventDefault()})).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,(function(r){if(r.stopImmediatePropagation(),r.preventDefault(),et(r)){c=!0,l&&(document.onselectstart=function(){return!1}),P.call(d,!1),Y(o);var a=(t=_.$(this)).offset(),n=A(r)[0]-a.top,h=A(r)[1]-a.left,u=t.height()+a.top,p=t.width()+a.left;n<u&&n>0&&h<p&&h>0&&(e=n,i=h),w(t,"active",s.autoExpandScrollbar)}})).bind("touchmove."+n,(function(r){r.stopImmediatePropagation(),r.preventDefault();var o=t.offset(),a=A(r)[0]-o.top,s=A(r)[1]-o.left;f(e,i,a,s)})),_.$(document).add(g).bind("mousemove."+n+" pointermove."+n+" MSPointerMove."+n,(function(r){if(t){var o=t.offset(),a=A(r)[0]-o.top,s=A(r)[1]-o.left;if(e===a&&i===s)return;f(e,i,a,s)}})).add(p).bind("mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n,(function(e){t&&(w(t,"active",s.autoExpandScrollbar),t=null),c=!1,l&&(document.onselectstart=null),P.call(d,!0)}))},O=function(){var e,i,o,a,s,n,l,h,d,u,p,g,f,m,C=_.$(this),L=C.data(r),b=L.opt,E=r+"_"+L.idx,v=_.$("#rt_qc_mCSB_"+L.idx),y=_.$("#rt_qc_mCSB_"+L.idx+"_container"),w=[_.$("#rt_qc_mCSB_"+L.idx+"_dragger_vertical"),_.$("#rt_qc_mCSB_"+L.idx+"_dragger_horizontal")],x=[],k=[],S="yx"===b.axis?"none":"all",Q=[],q=y.find("iframe"),T=["touchstart."+E+" pointerdown."+E+" MSPointerDown."+E,"touchmove."+E+" pointermove."+E+" MSPointerMove."+E,"touchend."+E+" pointerup."+E+" MSPointerUp."+E],R=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function O(r){if(!rt(r)||c||A(r)[2])t=0;else{t=1,f=0,m=0,e=1,C.removeClass("rt_qc_mCS_touch_action");var a=y.offset();i=A(r)[0]-a.top,o=A(r)[1]-a.left,Q=[A(r)[0],A(r)[1]]}}function D(t){if(rt(t)&&!c&&!A(t)[2]&&(b.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!m||f)&&e)){l=Z();var r,a,s=v.offset(),n=A(t)[0]-s.top,h=A(t)[1]-s.left,d="mcsLinearOut";if(x.push(n),k.push(h),Q[2]=Math.abs(A(t)[0]-Q[0]),Q[3]=Math.abs(A(t)[1]-Q[1]),L.overflowed[0]){var u=w[0].parent().height()-w[0].height();r=i-n>0&&n-i>-u*L.scrollRatio.y&&(2*Q[3]<Q[2]||"yx"===b.axis)}if(L.overflowed[1]){var _=w[1].parent().width()-w[1].width();a=o-h>0&&h-o>-_*L.scrollRatio.x&&(2*Q[2]<Q[3]||"yx"===b.axis)}r||a?(R||t.preventDefault(),f=1):(m=1,C.addClass("rt_qc_mCS_touch_action")),R&&t.preventDefault(),p="yx"===b.axis?[i-n,o-h]:"x"===b.axis?[null,o-h]:[i-n,null],y[0].idleTimer=250,L.overflowed[0]&&M(p[0],0,d,"y","all",!0),L.overflowed[1]&&M(p[1],0,d,"x",S,!0)}}function B(e){if(!rt(e)||c||A(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),Y(C),n=Z();var r=v.offset();a=A(e)[0]-r.top,s=A(e)[1]-r.left,x=[],k=[]}}function I(t){if(rt(t)&&!c&&!A(t)[2]){e=0,t.stopImmediatePropagation(),f=0,m=0,h=Z();var r=v.offset(),i=A(t)[0]-r.top,o=A(t)[1]-r.left;if(!(h-l>30)){var _="mcsEaseOut",C=(u=1e3/(h-n))<2.5,E=C?[x[x.length-2],k[k.length-2]]:[0,0];d=C?[i-E[0],o-E[1]]:[i-a,o-s];var w=[Math.abs(d[0]),Math.abs(d[1])];u=C?[Math.abs(d[0]/4),Math.abs(d[1]/4)]:[u,u];var Q=[Math.abs(y[0].offsetTop)-d[0]*P(w[0]/u[0],u[0]),Math.abs(y[0].offsetLeft)-d[1]*P(w[1]/u[1],u[1])];p="yx"===b.axis?[Q[0],Q[1]]:"x"===b.axis?[null,Q[1]]:[Q[0],null],g=[4*w[0]+b.scrollInertia,4*w[1]+b.scrollInertia];var q=parseInt(b.contentTouchScroll)||0;p[0]=w[0]>q?p[0]:0,p[1]=w[1]>q?p[1]:0,L.overflowed[0]&&M(p[0],g[0],_,"y",S,!1),L.overflowed[1]&&M(p[1],g[1],_,"x",S,!1)}}}function P(t,e){var r=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?r[0]:r[3]:t>60?e>3?r[3]:r[2]:t>30?e>8?r[1]:e>6?r[0]:e>4?e:r[2]:e>8?e:r[3]}function M(t,e,r,i,o,a){t&&$(C,t.toString(),{dur:e,scrollEasing:r,dir:i,overwrite:o,drag:a})}y.bind(T[0],(function(t){O(t)})).bind(T[1],(function(t){D(t)})),v.bind(T[0],(function(t){B(t)})).bind(T[2],(function(t){I(t)})),q.length&&q.each((function(){_.$(this).bind("load",(function(){N(this)&&_.$(this.contentDocument||this.contentWindow.document).bind(T[0],(function(t){O(t),B(t)})).bind(T[1],(function(t){D(t)})).bind(T[2],(function(t){I(t)}))}))}))},D=function(){var e,i=_.$(this),o=i.data(r),a=o.opt,s=o.sequential,n=r+"_"+o.idx,l=_.$("#rt_qc_mCSB_"+o.idx+"_container"),h=l.parent();function d(t,r,o){s.type=o&&e?"stepped":"stepless",s.scrollAmount=10,j(i,t,r,"mcsLinearOut",o?60:null)}l.bind("mousedown."+n,(function(r){t||e||(e=1,c=!0)})).add(document).bind("mousemove."+n,(function(r){if(!t&&e&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&document.selection.createRange().text)){var i=l.offset(),n=A(r)[0]-i.top+l[0].offsetTop,c=A(r)[1]-i.left+l[0].offsetLeft;n>0&&n<h.height()&&c>0&&c<h.width()?s.step&&d("off",null,"stepped"):("x"!==a.axis&&o.overflowed[0]&&(n<0?d("on",38):n>h.height()&&d("on",40)),"y"!==a.axis&&o.overflowed[1]&&(c<0?d("on",37):c>h.width()&&d("on",39)))}})).bind("mouseup."+n+" dragend."+n,(function(r){t||(e&&(e=0,d("off",null)),c=!1)}))},B=function(){if(_.$(this).data(r)){var t=_.$(this),e=t.data(r),i=e.opt,o=r+"_"+e.idx,a=_.$("#rt_qc_mCSB_"+e.idx),s=[_.$("#rt_qc_mCSB_"+e.idx+"_dragger_vertical"),_.$("#rt_qc_mCSB_"+e.idx+"_dragger_horizontal")],n=_.$("#rt_qc_mCSB_"+e.idx+"_container").find("iframe");n.length&&n.each((function(){_.$(this).bind("load",(function(){N(this)&&_.$(this.contentDocument||this.contentWindow.document).bind("mousewheel."+o,(function(t,e){c(t,e)}))}))})),a.bind("mousewheel."+o,(function(t,e){c(t,e)}))}function c(r,o){if(Y(t),!M(t,r.target)){var n,c,h,d,u,p,g,f="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):l&&r.deltaFactor<100?100:r.deltaFactor||100,m=i.scrollInertia;"x"===i.axis||"x"===i.mouseWheel.axis?(n="x",c=[Math.round(f*e.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?c[1]:c[0]>=a.width()?.9*a.width():c[0],d=Math.abs(_.$("#rt_qc_mCSB_"+e.idx+"_container")[0].offsetLeft),u=s[1][0].offsetLeft,p=s[1].parent().width()-s[1].width(),g="y"===i.mouseWheel.axis?r.deltaY||o:r.deltaX):(n="y",c=[Math.round(f*e.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?c[1]:c[0]>=a.height()?.9*a.height():c[0],d=Math.abs(_.$("#rt_qc_mCSB_"+e.idx+"_container")[0].offsetTop),u=s[0][0].offsetTop,p=s[0].parent().height()-s[0].height(),g=r.deltaY||o),"y"===n&&!e.overflowed[0]||"x"===n&&!e.overflowed[1]||((i.mouseWheel.invert||r.webkitDirectionInvertedFromDevice)&&(g=-g),i.mouseWheel.normalizeDelta&&(g=g<0?-1:1),(g>0&&0!==u||g<0&&u!==p||i.mouseWheel.preventDefault)&&(r.stopImmediatePropagation(),r.preventDefault()),r.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=r.deltaFactor,m=17),$(t,(d-g*h).toString(),{dir:n,dur:m}))}}},I={},N=function(t){var e=!1,r=!1,i=null;if(void 0===t?r="#empty":void 0!==_.$(t).attr("id")&&(r=_.$(t).attr("id")),!1!==r&&void 0!==I[r])return I[r];if(t){try{i=(t.contentDocument||t.contentWindow.document).body.innerHTML}catch(t){_.QCELL.log("err","QCELL.Scroll",t.message)}e=null!==i}else{try{i=window.top.document.body.innerHTML}catch(t){_.QCELL.log("err","QCELL.Scroll",t.message)}e=null!==i}return!1!==r&&(I[r]=e),e},P=function(t){var e=this.find("iframe");if(e.length){var r=t?"auto":"none";e.css("pointer-events",r)}},M=function(t,e){var i=e.nodeName.toLowerCase(),o=t.data(r).opt.mouseWheel.disableOver;return _.$.inArray(i,o)>-1&&!(_.$.inArray(i,["select","textarea"])>-1&&!_.$(e).is(":focus"))},H=function(){var t,e=_.$(this),i=e.data(r),o=r+"_"+i.idx,a=_.$("#rt_qc_mCSB_"+i.idx+"_container"),s=a.parent();_.$(".rt_qc_mCSB_"+i.idx+"_scrollbar ."+h[12]).bind("mousedown."+o+" touchstart."+o+" pointerdown."+o+" MSPointerDown."+o,(function(e){c=!0,_.$(e.target).hasClass("rt_qc_mCSB_dragger")||(t=1)})).bind("touchend."+o+" pointerup."+o+" MSPointerUp."+o,(function(t){c=!1})).bind("click."+o,(function(r){if(t&&(t=0,_.$(r.target).hasClass(h[12])||_.$(r.target).hasClass("rt_qc_mCSB_draggerRail"))){Y(e);var o,n,l,c=_.$(this),d=c.find(".rt_qc_mCSB_dragger");if(c.parent(".rt_qc_mCSB_scrollTools_horizontal").length>0){if(!i.overflowed[1])return;o="x",n=r.pageX>d.offset().left?-1:1,l=Math.abs(a[0].offsetLeft)-n*(.9*s.width())}else{if(!i.overflowed[0])return;o="y",n=r.pageY>d.offset().top?-1:1,l=Math.abs(a[0].offsetTop)-n*(.9*s.height())}$(e,l.toString(),{dir:o,scrollEasing:"mcsEaseInOut"})}}))},U=function(){var t=_.$(this),e=t.data(r),i=e.opt,o=r+"_"+e.idx,a=_.$("#rt_qc_mCSB_"+e.idx+"_container"),s=a.parent();a.bind("focusin."+o,(function(e){var r=_.$(document.activeElement),o=a.find(".mCustomScrollBox").length;r.is(i.advanced.autoScrollOnFocus)&&(Y(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=o?17*o:0,t[0]._focusTimeout=setTimeout((function(){var e=[ot(r)[0],ot(r)[1]],o=[a[0].offsetTop,a[0].offsetLeft],n=[o[0]+e[0]>=0&&o[0]+e[0]<s.height()-r.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<s.width()-r.outerWidth(!1)],l="yx"!==i.axis||n[0]||n[1]?"all":"none";"x"===i.axis||n[0]||$(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0}),"y"===i.axis||n[1]||$(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0})}),t[0]._focusTimer))}))},F=function(){var t=_.$(this).data(r),e=r+"_"+t.idx,i=_.$("#rt_qc_mCSB_"+t.idx+"_container").parent();i.bind("scroll."+e,(function(t){0!==i.scrollTop()||i.scrollLeft()}))},z=function(){var t=_.$(this),e=t.data(r),i=e.opt,o=e.sequential,a=r+"_"+e.idx,s=".rt_qc_mCSB_"+e.idx+"_scrollbar";_.$(s+">a").bind("contextmenu."+a,(function(t){t.preventDefault()})).bind("mousedown."+a+" touchstart."+a+" pointerdown."+a+" MSPointerDown."+a+" mouseup."+a+" touchend."+a+" pointerup."+a+" MSPointerUp."+a+" mouseout."+a+" pointerout."+a+" MSPointerOut."+a+" click."+a,(function(r){if(r.preventDefault(),et(r)){var a=_.$(this).attr("class");switch(o.type=i.scrollButtons.scrollType,r.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===o.type)return;c=!0,e.tweenRunning=!1,s("on",a);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===o.type)return;c=!1,o.dir&&s("off",a);break;case"click":if("stepped"!==o.type||e.tweenRunning)return;s("on",a)}}function s(e,r){o.scrollAmount=i.scrollButtons.scrollAmount,j(t,e,r)}}))},W=function(){var t=_.$(this),e=t.data(r),i=e.opt,o=e.sequential,a=r+"_"+e.idx,s=_.$("#rt_qc_mCSB_"+e.idx),n=_.$("#rt_qc_mCSB_"+e.idx+"_container"),l=n.parent(),c="input,textarea,select,datalist,keygen,[contenteditable='true']",h=n.find("iframe"),d=["blur."+a+" keydown."+a+" keyup."+a];function u(r){var a,s;switch(r.type){case"blur":e.tweenRunning&&o.dir&&p("off",null);break;case"keydown":case"keyup":var h=r.keyCode?r.keyCode:r.which,d="on";if("x"!==i.axis&&(38===h||40===h)||"y"!==i.axis&&(37===h||39===h)){if((38===h||40===h)&&!e.overflowed[0]||(37===h||39===h)&&!e.overflowed[1])return;"keyup"===r.type&&(d="off"),_.$(document.activeElement).is(c)||(r.preventDefault(),r.stopImmediatePropagation(),p(d,h))}else if(33===h||34===h){if((e.overflowed[0]||e.overflowed[1])&&(r.preventDefault(),r.stopImmediatePropagation()),"keyup"===r.type){Y(t);var u=34===h?-1:1;"x"===i.axis||"yx"===i.axis&&e.overflowed[1]&&!e.overflowed[0]?(a="x",s=Math.abs(n[0].offsetLeft)-u*(.9*l.width())):(a="y",s=Math.abs(n[0].offsetTop)-u*(.9*l.height())),$(t,s.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})}}else 35!==h&&36!==h||_.$(document.activeElement).is(c)||((e.overflowed[0]||e.overflowed[1])&&(r.preventDefault(),r.stopImmediatePropagation()),"keyup"===r.type&&("x"===i.axis||"yx"===i.axis&&e.overflowed[1]&&!e.overflowed[0]?(a="x",s=35===h?Math.abs(l.width()-n.outerWidth(!1)):0):(a="y",s=35===h?Math.abs(l.height()-n.outerHeight(!1)):0),$(t,s.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})))}function p(r,a){o.type=i.keyboard.scrollType,o.scrollAmount=i.keyboard.scrollAmount,"stepped"===o.type&&e.tweenRunning||j(t,r,a)}}h.length&&h.each((function(){_.$(this).bind("load",(function(){N(this)&&_.$(this.contentDocument||this.contentWindow.document).bind(d[0],(function(t){u(t)}))}))})),s.attr("tabindex","0").bind(d[0],(function(t){u(t)}))},j=function(t,e,i,o,a){var s=t.data(r),n=s.opt,l=s.sequential,c=_.$("#rt_qc_mCSB_"+s.idx+"_container"),d="stepped"===l.type,u=n.scrollInertia<26?26:n.scrollInertia,p=n.scrollInertia<1?17:n.scrollInertia;switch(e){case"on":if(l.dir=[i===h[16]||i===h[15]||39===i||37===i?"x":"y",i===h[13]||i===h[15]||38===i||37===i?-1:1],Y(t),it(i)&&"stepped"===l.type)return;g(d);break;case"off":clearTimeout(l.step),tt(l,"step"),Y(t),(d||s.tweenRunning&&l.dir)&&g(!0)}function g(e){n.snapAmount&&(l.scrollAmount=n.snapAmount instanceof Array?"x"===l.dir[0]?n.snapAmount[1]:n.snapAmount[0]:n.snapAmount);var r="stepped"!==l.type,i=a||(e?r?u/1.5:p:1e3/60),h=e?r?7.5:40:2.5,d=[Math.abs(c[0].offsetTop),Math.abs(c[0].offsetLeft)],_=[s.scrollRatio.y>10?10:s.scrollRatio.y,s.scrollRatio.x>10?10:s.scrollRatio.x],f="x"===l.dir[0]?d[1]+l.dir[1]*(_[1]*h):d[0]+l.dir[1]*(_[0]*h),m="x"===l.dir[0]?d[1]+l.dir[1]*parseInt(l.scrollAmount):d[0]+l.dir[1]*parseInt(l.scrollAmount),C="auto"!==l.scrollAmount?m:f,L=o||(e?r?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),b=!!e;e&&i<17&&(C="x"===l.dir[0]?d[1]:d[0]),$(t,C.toString(),{dir:l.dir[0],scrollEasing:L,dur:i,onComplete:b}),e?l.dir=!1:(clearTimeout(l.step),l.step=setTimeout((function(){g()}),i))}},G=function(t){var e=_.$(this).data(r).opt,i=[];return"function"==typeof t&&(t=t()),t instanceof Array?i=t.length>1?[t[0],t[1]]:"x"===e.axis?[null,t[0]]:[t[0],null]:(i[0]=t.y?t.y:t.x||"x"===e.axis?null:t,i[1]=t.x?t.x:t.y||"y"===e.axis?null:t),"function"==typeof i[0]&&(i[0]=i[0]()),"function"==typeof i[1]&&(i[1]=i[1]()),i},V=function(t,e){if(null!=t){var i,o=_.$(this),a=o.data(r),s=a.opt,l=_.$("#rt_qc_mCSB_"+a.idx+"_container"),c=l.parent(),h=n(t);e||(e="x"===s.axis?"x":"y");var u="x"===e?l.outerWidth(!1)-c.width():l.outerHeight(!1)-c.height(),p="x"===e?l[0].offsetLeft:l[0].offsetTop,g="x"===e?"left":"top";switch(h){case"function":return t();case"object":if(!(i=t.jquery?t:_.$(t)).length)return;return"x"===e?ot(i)[1]:ot(i)[0];case"string":case"number":if(it(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(u*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(p-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var f=p+parseInt(t.split("+=")[1]);return f>=0?0:Math.abs(f)}return-1!==t.indexOf("px")&&it(t.split("px")[0])?Math.abs(t.split("px")[0]):"top"===t||"left"===t?0:"bottom"===t?Math.abs(c.height()-l.outerHeight(!1)):"right"===t?Math.abs(c.width()-l.outerWidth(!1)):"first"===t||"last"===t?(i=l.find(":"+t),"x"===e?ot(i)[1]:ot(i)[0]):_.$(t).length?"x"===e?ot(_.$(t))[1]:ot(_.$(t))[0]:(l.css(g,t),void d.update.call(null,o[0]))}}},K=function(t){var e=_.$(this),i=e.data(r),o=i.opt,a=_.$("#rt_qc_mCSB_"+i.idx+"_container");if(t)return clearTimeout(a[0].autoUpdate),void tt(a[0],"autoUpdate");function s(t){clearTimeout(a[0].autoUpdate),d.update.call(null,e[0],t)}!function t(){if(clearTimeout(a[0].autoUpdate),0===e.parents("html").length)return void(e=null);a[0].autoUpdate=setTimeout((function(){return o.advanced.updateOnSelectorChange&&(i.poll.change.n=function(){!0===o.advanced.updateOnSelectorChange&&(o.advanced.updateOnSelectorChange="*");var t=0,e=a.find(o.advanced.updateOnSelectorChange);o.advanced.updateOnSelectorChange&&e.length>0&&e.each((function(){t+=this.offsetHeight+this.offsetWidth}));return t}(),i.poll.change.n!==i.poll.change.o)?(i.poll.change.o=i.poll.change.n,void s(3)):o.advanced.updateOnContentResize&&(i.poll.size.n=e[0].scrollHeight+e[0].scrollWidth+a[0].offsetHeight+e[0].offsetHeight+e[0].offsetWidth,i.poll.size.n!==i.poll.size.o)?(i.poll.size.o=i.poll.size.n,void s(1)):!o.advanced.updateOnImageLoad||"auto"===o.advanced.updateOnImageLoad&&"y"===o.axis||(i.poll.img.n=a.find("img").length,i.poll.img.n===i.poll.img.o)?void((o.advanced.updateOnSelectorChange||o.advanced.updateOnContentResize||o.advanced.updateOnImageLoad)&&t()):(i.poll.img.o=i.poll.img.n,void a.find("img").each((function(){!function(t){if(_.$(t).hasClass(h[2]))return void s();var e=new Image;function r(t,e){return function(){return e.apply(t,arguments)}}function i(){this.onload=null,_.$(t).addClass(h[2]),s(2)}e.onload=r(e,i),e.src=t.src}(this)})))}),o.advanced.autoUpdateTimeout)}()},Y=function(t){var e=t.data(r);_.$("#rt_qc_mCSB_"+e.idx+"_container,#rt_qc_mCSB_"+e.idx+"_container_wrapper,#rt_qc_mCSB_"+e.idx+"_dragger_vertical,#rt_qc_mCSB_"+e.idx+"_dragger_horizontal").each((function(){J.call(this)}))},$=function(t,e,i,o){var a=t.data(r);if(void 0!==a){var s=a.opt,n={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:s.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=_.$.extend(n,i),c=[l.dur,l.drag?0:l.dur],h=_.$("#rt_qc_mCSB_"+a.idx),d=_.$("#rt_qc_mCSB_"+a.idx+"_container"),u=d.parent(),p=s.callbacks.onTotalScrollOffset?G.call(t,s.callbacks.onTotalScrollOffset):[0,0],g=s.callbacks.onTotalScrollBackOffset?G.call(t,s.callbacks.onTotalScrollBackOffset):[0,0];if(a.trigger=l.trigger,0===u.scrollTop()&&0===u.scrollLeft()||(_.$(".rt_qc_mCSB_"+a.idx+"_scrollbar").css("visibility","visible"),u.scrollTop(0).scrollLeft(0)),"_resetY"!==e||a.contentReset.y||(k("onOverflowYNone")&&s.callbacks.onOverflowYNone.call(t[0]),a.contentReset.y=1),"_resetX"!==e||a.contentReset.x||(k("onOverflowXNone")&&s.callbacks.onOverflowXNone.call(t[0]),a.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){var f,m,C,L,b,E,v,y,x;if(!a.contentReset.y&&t[0].mcs||!a.overflowed[0]||(k("onOverflowY")&&s.callbacks.onOverflowY.call(t[0]),a.contentReset.x=null),!a.contentReset.x&&t[0].mcs||!a.overflowed[1]||(k("onOverflowX")&&s.callbacks.onOverflowX.call(t[0]),a.contentReset.x=null),s.snapAmount)e=function(t,e,r){return Math.round(t/e)*e-r}(e,s.snapAmount instanceof Array?"x"===l.dir?s.snapAmount[1]:s.snapAmount[0]:s.snapAmount,s.snapOffset);switch(l.dir){case"x":f=_.$("#rt_qc_mCSB_"+a.idx+"_dragger_horizontal"),m="left",C=d[0].offsetLeft,L=[h.width()-d.outerWidth(!1),f.parent().width()-f.width()],b=[e,0===e?0:e/a.scrollRatio.x],E=p[1],v=g[1],y=E>0?E/a.scrollRatio.x:0,x=v>0?v/a.scrollRatio.x:0;break;case"y":f=_.$("#rt_qc_mCSB_"+a.idx+"_dragger_vertical"),m="top",C=d[0].offsetTop,L=[h.height()-d.outerHeight(!1),f.parent().height()-f.height()],b=[e,0===e?0:e/a.scrollRatio.y],E=p[0],v=g[0],y=E>0?E/a.scrollRatio.y:0,x=v>0?v/a.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=L[1]?b=[L[0],L[1]]:b[0]=-b[0],t[0].mcs||(S(s),k("onInit")&&s.callbacks.onInit.call(t[0],o)),clearTimeout(d[0].onCompleteTimeout),X(f[0],m,Math.round(b[1]),c[1],l.scrollEasing),!a.tweenRunning&&(0===C&&b[0]>=0||C===L[0]&&b[0]<=L[0])||X(d[0],m,Math.round(b[0]),c[0],l.scrollEasing,l.overwrite,{onStart:function(){l.callbacks&&l.onStart&&!a.tweenRunning&&(k("onScrollStart")&&(S(s),s.callbacks.onScrollStart.call(t[0],o)),a.tweenRunning=!0,w(f),a.cbOffsets=[s.callbacks.alwaysTriggerOffsets||C>=L[0]+E,s.callbacks.alwaysTriggerOffsets||C<=-v])},onUpdate:function(){l.callbacks&&l.onUpdate&&k("whileScrolling")&&(S(s),s.callbacks.whileScrolling.call(t[0],o))},onComplete:function(){if(l.callbacks&&l.onComplete){"yx"===s.axis&&clearTimeout(d[0].onCompleteTimeout);var e=d[0].idleTimer||0;d[0].onCompleteTimeout=setTimeout((function(){k("onScroll")&&(S(s),s.callbacks.onScroll.call(t[0],o)),k("onTotalScroll")&&b[1]>=L[1]-y&&a.cbOffsets[0]&&(S(s),s.callbacks.onTotalScroll.call(t[0],o)),k("onTotalScrollBack")&&b[1]<=x&&a.cbOffsets[1]&&(S(s),s.callbacks.onTotalScrollBack.call(t[0],o)),a.tweenRunning=!1,d[0].idleTimer=0,w(f,"hide")}),e)}}})}}function k(t){return a&&s.callbacks[t]&&"function"==typeof s.callbacks[t]}function S(e){var r=[d[0].offsetTop,d[0].offsetLeft],i=[f[0].offsetTop,f[0].offsetLeft],o=[d.outerHeight(!1),d.outerWidth(!1)],a=[h.height(),h.width()];t[0].mcs={content:d,top:r[0],left:r[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(r[0])/(Math.abs(o[0])-a[0])),leftPct:Math.round(100*Math.abs(r[1])/(Math.abs(o[1])-a[1])),direction:l.dir,target:null===e.target?null:e.target}}},X=function(t,e,r,i,o,a,s){t._mTween||(t._mTween={top:{},left:{}});var n,l,c=s||{},h=c.onStart||function(){},d=c.onUpdate||function(){},u=c.onComplete||function(){},p=Z(),_=0,g=t.offsetTop,f=t.style,m=t._mTween[e];"left"===e&&(g=t.offsetLeft);var C=r-g;function L(){m.stop||(_||h.call(),_=Z()-p,b(),_>=m.time&&(m.time=_>m.time?_+n-(_-m.time):_+n-1,m.time<_+1&&(m.time=_+1)),m.time<i?m.id=l(L):u.call())}function b(){i>0?(m.currVal=function(t,e,r,i,o){var a,s;switch(o){case"linear":case"mcsLinear":return r*t/i+e;case"mcsLinearOut":return t/=i,t--,r*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return(t/=i/2)<1?r/2*t*t+e:-r/2*(--t*(t-2)-1)+e;case"easeInOutStrong":return(t/=i/2)<1?r/2*Math.pow(2,10*(t-1))+e:(t--,r/2*(2-Math.pow(2,-10*t))+e);case"easeInOut":case"mcsEaseInOut":return(t/=i/2)<1?r/2*t*t*t+e:r/2*((t-=2)*t*t+2)+e;case"easeOutSmooth":return t/=i,-r*(--t*t*t*t-1)+e;case"easeOutStrong":return r*(1-Math.pow(2,-10*t/i))+e;default:return e+r*(.499999999999997*(s=(a=(t/=i)*t)*t)*a+-2.5*a*a+5.5*s+-6.5*a+4*t)}}(m.time,g,C,i,o),f[e]=Math.round(m.currVal)+"px"):f[e]=r+"px",d.call()}m.stop=0,"none"!==a&&function(){if(null===m.id)return;window.requestAnimationFrame?window.cancelAnimationFrame(m.id):clearTimeout(m.id);m.id=null}(),n=1e3/60,m.time=_+n,l=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return b(),setTimeout(t,.01)},m.id=l(L)},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},J=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],r=0;r<e.length;r++){var i=e[r];t._mTween[i].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(t._mTween[i].id):clearTimeout(t._mTween[i].id),t._mTween[i].id=null,t._mTween[i].stop=1)}},tt=function(t,e){try{delete t[e]}catch(r){t[e]=null}},et=function(t){return!(t.which&&1!==t.which)},rt=function(t){var e=t.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},it=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ot=function(t){var e=t.parents(".rt_qc_mCSB_container");return[t.offset().top-e.offset().top,t.offset().left-e.offset().left]},at=function(){var t=function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden"in document)return t[e]+"Hidden";return null}();return!!t&&document[t]};_.$.fn[e]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==n(t)&&t?void _.$.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},_.$[e]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==n(t)&&t?void _.$.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},_.$[e].defaults=o,window[e]=!0,_.$(window).bind("load",(function(){_.$(i)[e](),_.$.extend(_.$.expr[":"],{mcsInView:_.$.expr[":"].mcsInView||function(t){var e,r,i=_.$(t),o=i.parents(".rt_qc_mCSB_container");if(o.length)return e=o.parent(),(r=[o[0].offsetTop,o[0].offsetLeft])[0]+ot(i)[0]>=0&&r[0]+ot(i)[0]<e.height()-i.outerHeight(!1)&&r[1]+ot(i)[1]>=0&&r[1]+ot(i)[1]<e.width()-i.outerWidth(!1)},mcsInSight:_.$.expr[":"].mcsInSight||function(t,e,r){var i,o,a,s,n=_.$(t),l=n.parents(".rt_qc_mCSB_container"),c="exact"===r[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(l.length)return i=[n.outerHeight(!1),n.outerWidth(!1)],a=[l[0].offsetTop+ot(n)[0],l[0].offsetLeft+ot(n)[1]],o=[l.parent()[0].offsetHeight,l.parent()[0].offsetWidth],a[0]-o[0]*(s=[i[0]<o[0]?c[0]:c[1],i[1]<o[1]?c[0]:c[1]])[0][0]<0&&a[0]+i[0]-o[0]*s[0][1]>=0&&a[1]-o[1]*s[1][0]<0&&a[1]+i[1]-o[1]*s[1][1]>=0},mcsOverflow:_.$.expr[":"].mcsOverflow||function(t){var e=_.$(t).data(r);if(e)return e.overflowed[0]||e.overflowed[1]}})}))})),_.QCELL.BasicQCELL.prototype._getColSearchArea=function(){if(null===this.attr("colsearcharea")){var t=document.createElement("div");this.attr("colsearcharea",this._createColSearchArea(t),"jquery")}return this.attr("colsearcharea").clone(!0).get(0)},_.QCELL.BasicQCELL.prototype._createColSearchArea=function(t){var e=_.QCELL.def.css;return _.$(t.cloneNode()).addClass(e.COLSEARCH_AREA).on("mousedown",this.attr("eventparam"),(function(r){var i=r.target,o=r.data.target,a=parseInt(i.parentNode.getAttribute("data-col")),s=_.$(t.cloneNode()).addClass(e.COLSEARCH_UI_AREA);o.attr("colsearchuivisible")&&o._removeColSearUIArea(),_.$(this).addClass(e.COLSEARCH_AREA_HOVER),"string"===o._getQCellCol(a).attr("datatype")?o._createStringColSearchUIArea(a,s):o._createNumberColSearchUIArea(a,s),o._showColSearchUIArea(i,a)}))},_.QCELL.BasicQCELL.prototype._createStringColSearchUIArea=function(t,e){var r,i,o,a,s=_.QCELL.def.css,n=_.$(document.createElement("div")),l=_.$(document.createElement("button")).addClass(s.COLSEARCH_UI_BTN),c=_.$(document.createElement("span")),h=_.$(document.createElement("input")),d=this.attr("headertext")[t][this.attr("headertext")[t].length-1],u=this.attr("id")+"_colsearch_text_"+t,p=this.attr("id")+"_colsearch_msg_"+t,g=this.attr("headerrows"),f=this.attr("colsearchinfo"),m=this.attr("paginationinfo"),C="";void 0===f[t]&&(f[t]={},f[t].key="",f[t].arrColIdxs=[],f[t].move={}),e.css({display:"none",height:"120px",width:"180px"}),r=n.clone().css({"margin-bottom":"10px"}),c.clone().text(d).css({"font-weight":"bold","font-size":"15px"}).appendTo(r),n.clone().addClass(s.COLSEARCH_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("colsearchuivisible")&&e._removeColSearUIArea()})).appendTo(r),r.appendTo(e),i=n.clone(),h.clone().css({width:"100%",margin:"0px 5px 5px 0px"}).attr({id:u}).on("keydown",this.attr("eventparam"),(function(e){if(e.keyCode===_.def.key.ENTER){var r=this;setTimeout((function(){r.focus()}),500);var i,o=e.data.target,a=_.$("#"+u).val(),s=o.getIdx("row","focus"),n=[];if(_.$.trim(a).length>0){var l=o._getColData(t,!0);if(f[t].key!==a){for(i=0;i<l.length;i++)null!==l[i]&&void 0!==l[i]&&l[i].indexOf(a)>-1&&n.push(g+i);f[t].key=a,f[t].arrColIdxs=n,C=o._moveNexColSearchRow(t,s,n)}else if(_._.isUndefined(m))C=o._moveNexColSearchRow(t,s,f[t].arrColIdxs);else{for(i=0;i<l.length;i++)null!==l[i]&&void 0!==l[i]&&l[i].indexOf(a)>-1&&n.push(g+i);f[t].key=a,f[t].arrColIdxs=n,C=o._moveNexColSearchRow(t,s,n)}}else f[t].arrColIdxs=[],C="검색할 값을 입력하여 주십시오.";_.$("#"+p).text(C)}})).val(f[t].key).appendTo(i),i.appendTo(e),o=n.clone().css({"text-align":"center","margin-top":"10px"}),c.clone().text(_.QCELL.def.resource.search).appendTo(l.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var r,i=e.data.target,o=_.$("#"+u).val(),a=i.getIdx("row","focus"),s=[];if(_.$.trim(o).length>0){var n=i._getColData(t,!0);if(f[t].key!==o){for(r=0;r<n.length;r++)null!==n[r]&&void 0!==n[r]&&n[r].indexOf(o)>-1&&s.push(g+r);f[t].key=o,f[t].arrColIdxs=s,C=i._moveNexColSearchRow(t,a,s)}else if(_._.isUndefined(m))C=i._moveNexColSearchRow(t,a,f[t].arrColIdxs);else{for(r=0;r<n.length;r++)null!==n[r]&&void 0!==n[r]&&n[r].indexOf(o)>-1&&s.push(g+r);f[t].key=o,f[t].arrColIdxs=s,C=i._moveNexColSearchRow(t,a,s)}}else f[t].arrColIdxs=[],C="검색할 값을 입력하여 주십시오.";_.$("#"+p).text(C)})).appendTo(o)),c.clone().text(_.QCELL.def.resource.reset).appendTo(l.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){_.$("#"+u).val(""),f[t].key="",f[t].arrColIdxs=[],_.$("#"+p).text("")})).appendTo(o)),o.appendTo(e),a=n.clone().css({"text-align":"center","font-size":"11px","margin-top":"5px"}),c.clone().css({color:"red"}).attr("id",p).appendTo(a),a.appendTo(e),_.$(e).draggable({drag:function(){f[t].move.top=parseInt(e.css("top")),f[t].move.left=parseInt(e.css("left"))}}),this.attr("colsearchuiarea",e,"jquery")},_.QCELL.BasicQCELL.prototype._createNumberColSearchUIArea=function(t,e){var r,i,o,a,s,n=_.QCELL.def.css,l=_.$(document.createElement("div")),c=_.$(document.createElement("button")).addClass(n.COLSEARCH_UI_BTN),h=_.$(document.createElement("span")),d=_.$(document.createElement("input")),u=_.$(document.createElement("select")),p=_.$(document.createElement("option")),g=this.attr("headertext")[t][this.attr("headertext")[t].length-1],f=this.attr("id")+"_colsearch_text_"+t,m=this.attr("id")+"_colsearch_select_"+t,C=this.attr("id")+"_colsearch_msg_"+t,L=this.attr("headerrows"),b=this.attr("colsearchinfo"),E=this.attr("paginationinfo"),v="";void 0===b[t]&&(b[t]={},b[t].key="",b[t].operator="gt",b[t].arrColIdxs=[],b[t].move={}),e.css({display:"none",height:"140px",width:"220px"}),r=l.clone().css({"margin-bottom":"10px"}),h.clone().text(g).css({"font-weight":"bold","font-size":"15px"}).appendTo(r),l.clone().addClass(n.COLSEARCH_UI_CLOSE).on("click",this.attr("eventparam"),(function(t){var e=t.data.target;e.attr("colsearchuivisible")&&e._removeColSearUIArea()})).appendTo(r),r.appendTo(e),i=l.clone(),o=l.clone(),d.clone().css({width:"100%",margin:"0px 5px 5px 0px"}).attr({id:f}).val(b[t].key).on("keydown",this.attr("eventparam"),(function(e){if(e.keyCode===_.def.key.ENTER){var r=this;setTimeout((function(){r.focus()}),500);var i,o=e.data.target,a=_.$("#"+f).val(),s=o.getIdx("row","focus"),n=[];if(_._.isNumber(parseFloat(_.$.trim(a)))&&!1===_._.isNaN(parseFloat(_.$.trim(a)))){var l=parseFloat(a),c=_.$("#"+m).val(),h=o._getColData(t,!0);if(b[t].key!==l||b[t].operator!==c){for(i=0;i<h.length;i++)switch(c){case"gt":h[i]>l&&n.push(L+i);break;case"ge":h[i]>=l&&n.push(L+i);break;case"lt":h[i]<l&&n.push(L+i);break;case"le":h[i]<=l&&n.push(L+i);break;case"eq":h[i]===l&&n.push(L+i);break;case"ne":h[i]!==l&&n.push(L+i)}b[t].key=l,b[t].operator=c,b[t].arrColIdxs=n,v=o._moveNexColSearchRow(t,s,n)}else if(_._.isUndefined(E))v=o._moveNexColSearchRow(t,s,b[t].arrColIdxs);else{for(i=0;i<h.length;i++)switch(c){case"gt":h[i]>l&&n.push(L+i);break;case"ge":h[i]>=l&&n.push(L+i);break;case"lt":h[i]<l&&n.push(L+i);break;case"le":h[i]<=l&&n.push(L+i);break;case"eq":h[i]===l&&n.push(L+i);break;case"ne":h[i]!==l&&n.push(L+i)}b[t].key=l,b[t].operator=c,b[t].arrColIdxs=n,v=o._moveNexColSearchRow(t,s,n)}}else b[t].arrColIdxs=[],v="검색할 값이 없거나 숫자가 아닙니다.";_.$("#"+C).text(v)}})).appendTo(i),i.appendTo(e),p.clone().val("gt").text("크다(>)").attr("selected","gt"===b[t].operator).appendTo(u),p.clone().val("lt").text("작다(<)").attr("selected","lt"===b[t].operator).appendTo(u),p.clone().val("ge").text("크거나 같다(>=)").attr("selected","ge"===b[t].operator).appendTo(u),p.clone().val("le").text("작거나 같다(<=)").attr("selected","le"===b[t].operator).appendTo(u),p.clone().val("eq").text("같다(==)").attr("selected","eq"===b[t].operator).appendTo(u),p.clone().val("ne").text("같지 않다(!=)").attr("selected","ne"===b[t].operator).appendTo(u),u.css({height:"20px",width:"100%",margin:"0"}).attr({id:m}).appendTo(o),o.appendTo(e),a=l.clone().css({"text-align":"center","margin-top":"10px"}).attr({id:f}),h.clone().text(_.QCELL.def.resource.search).appendTo(c.clone().css({"background-color":"#949598",border:"1px solid #949598"}).on("click",this.attr("eventparam"),(function(e){var r,i=e.data.target,o=_.$("#"+f).val(),a=i.getIdx("row","focus"),s=[];if(_._.isNumber(parseFloat(_.$.trim(o)))&&!1===_._.isNaN(parseFloat(_.$.trim(o)))){var n=parseFloat(o),l=_.$("#"+m).val(),c=i._getColData(t,!0);if(b[t].key!==n||b[t].operator!==l){for(r=0;r<c.length;r++)switch(l){case"gt":c[r]>n&&s.push(L+r);break;case"ge":c[r]>=n&&s.push(L+r);break;case"lt":c[r]<n&&s.push(L+r);break;case"le":c[r]<=n&&s.push(L+r);break;case"eq":c[r]===n&&s.push(L+r);break;case"ne":c[r]!==n&&s.push(L+r)}b[t].key=n,b[t].operator=l,b[t].arrColIdxs=s,v=i._moveNexColSearchRow(t,a,s)}else if(_._.isUndefined(E))v=i._moveNexColSearchRow(t,a,b[t].arrColIdxs);else{for(r=0;r<c.length;r++)switch(l){case"gt":c[r]>n&&s.push(L+r);break;case"ge":c[r]>=n&&s.push(L+r);break;case"lt":c[r]<n&&s.push(L+r);break;case"le":c[r]<=n&&s.push(L+r);break;case"eq":c[r]===n&&s.push(L+r);break;case"ne":c[r]!==n&&s.push(L+r)}b[t].key=n,b[t].operator=l,b[t].arrColIdxs=s,v=i._moveNexColSearchRow(t,a,s)}}else b[t].arrColIdxs=[],v="검색할 값이 없거나 숫자가 아닙니다.";_.$("#"+C).text(v)})).appendTo(a)),h.clone().text(_.QCELL.def.resource.reset).appendTo(c.clone().css({"background-color":"#3b99fc",border:"1px solid #3b99fc"}).on("click",this.attr("eventparam"),(function(e){_.$("#"+f).val(""),_.$("#"+m+" option:eq(0)").prop("selected",!0),b[t].key="",b[t].operator="gt",b[t].arrColIdxs=[],_.$("#"+C).text("")})).appendTo(a)),a.appendTo(e),s=l.clone().css({"text-align":"center","font-size":"11px","margin-top":"5px"}),h.clone().css({color:"red"}).attr("id",C).appendTo(s),s.appendTo(e),_.$(e).draggable({drag:function(){b[t].move.top=parseInt(e.css("top")),b[t].move.left=parseInt(e.css("left"))}}),this.attr("colsearchuiarea",e,"jquery")},_.QCELL.BasicQCELL.prototype._moveNexColSearchRow=function(t,e,r){var i=this,o=0,a="";if(r.length>0){for(var s=0;s<r.length;s++){if(e<r[s]){o=r[s];break}s===r.length-1&&(o=r[0])}i._scrollTop(o),setTimeout((function(){i._clickCell(o,t)}),100)}else a="검색 데이터가 없습니다.";return a},_.QCELL.BasicQCELL.prototype._showColSearchUIArea=function(t,e){var r=_.QCELL.def.css,i=this.attr("colsearchuiarea"),o=this.attr("layoutsize").viewport.offsetLeft,a=t.parentNode.offsetLeft+o,s=t.parentNode.offsetTop+this.attr("layoutsize").colheader.offsetHeight-_.$("."+r.COLSEARCH_AREA).height()/2,n=this.attr("layoutsize").root.offsetWidth,l=parseInt(i.css("width")),c=parseInt(this._getColWidth(e)),h=this.attr("colsearchinfo"),d=_.$("."+r.COLSEARCH_AREA).width(),u=0,p=this.attr("id")+"_colsearch_text_"+e;i.appendTo(this.attr("elementpool").get("container")),"none"===i.css("display")&&i.css("display","inline-block"),u=a-d+2*l<n?a+c-d:a-l,!1===_._.isEmpty(h[e].move)&&(u=h[e].move.left,s=h[e].move.top),i.css({left:u+"px",top:s+"px"}),this.attr("colsearchuivisible",!0,"boolean"),setTimeout((function(){_.$("#"+p).focus()}),0)},_.QCELL.BasicQCELL.prototype._removeColSearUIArea=function(){var t=_.QCELL.def.css;_.$("."+t.COLSEARCH_AREA).removeClass(t.COLSEARCH_AREA_HOVER),this.attr("colsearchuiarea").remove(),this.attr("colsearchuiarea",null,"jquery"),this.attr("colsearchuivisible",!1,"boolean")},_.QCELL.BasicQCELL.prototype._getSelectedRow=function(){var t=this._getIdxInfo("selected","row");return t.size()>0?t.keys()[0]:-1},_.QCELL.BasicQCELL.prototype._getSelectedCol=function(){var t=this._getIdxInfo("selected","col");return t.size()>0?t.keys()[0]:-1},_.QCELL.BasicQCELL.prototype._getSelectedRows=function(){return this._getIdxInfo("selected","row").keys()},_.QCELL.BasicQCELL.prototype._getSelectedCols=function(){return this._getIdxInfo("selected","col").keys()},_.QCELL.BasicQCELL.prototype._clearSelection=function(){var t=this._getIdxInfo("selected","row"),e=this._getIdxInfo("selected","col");t.clear(),e.clear(),this._clearSelectionCSS()},_.QCELL.BasicQCELL.prototype._clearSelectionCSS=function(){_.util.removeClass(_._.flatten(this.attr("cellmatrix").get("row")),_.QCELL.def.css.CELL_SELECT),_.$(_.QCELL.def.css.CELL_SELECT).removeClass(_.QCELL.def.css.CELL_SELECT)},_.QCELL.BasicQCELL.prototype._selectRow=function(t,e){!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&!0!==e&&(t=this._findNextCell(t,this._idx("col","focus"),"up").row);if(t>=this.attr("headerrows"))switch(this.attr("selectmode")){case"row":case"rows":var r=this._getIdxInfo("selected","row");r.containsKey(t)?r.remove(t):_.util.addClass(this._getRowCellDOMs(t),_.QCELL.def.css.CELL_SELECT),r.put(t,!0)}},_.QCELL.BasicQCELL.prototype._deselectRow=function(t){if(t>=this.attr("headerrows"))switch(this.attr("selectmode")){case"row":case"rows":var e=this._getIdxInfo("selected","row");e.containsKey(t)&&(e.remove(t),_.util.removeClass(this._getRowCellDOMs(t),_.QCELL.def.css.CELL_SELECT))}},_.QCELL.BasicQCELL.prototype._selectRows=function(t){if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&("col"===this.attr("merge").data||"group"===this.attr("merge").data)){var e=this._findNextCell(t[t.length-1],this._idx("col","focus"),"up");this._idx("row","focus")>t[t.length-1]&&(t=_._.range(e.row,this._idx("row","focus")+1).reverse())}if("rows"===this.attr("selectmode")){var r=this,i=this.attr("headerrows"),o=this._getIdxInfo("selected","row"),a=[];_._.each(t,(function(t){t>=i&&(o.containsKey(t)?o.remove(t):(a=a.concat(r._getRowCellDOMs(t)),_.$(a).addClass(_.QCELL.def.css.CELL_SELECT)),o.put(t,!0))}))}},_.QCELL.BasicQCELL.prototype._deselectRows=function(t){if("rows"===this.attr("selectmode")){var e=_.QCELL.def.css,r=this,i=this.attr("headerrows"),o=r._getIdxInfo("selected","row"),a=[];_._.each(t,(function(t){t>=i&&o.containsKey(t)&&(o.remove(t),a=a.concat(r._getRowCellDOMs(t)))})),_.$(a).removeClass(e.CELL_SELECT)}},_.QCELL.BasicQCELL.prototype._selectCol=function(t){!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&(t=this._findNextCell(this._idx("row","focus"),t,"up").col);switch(this.attr("selectmode")){case"col":case"cols":var e=this._getIdxInfo("selected","col");e.containsKey(t)?e.remove(t):_.$(this._getColCellDOMs(t)).addClass(_.QCELL.def.css.CELL_SELECT),e.put(t,!0)}},_.QCELL.BasicQCELL.prototype._deselectCol=function(t){switch(this.attr("selectmode")){case"col":case"cols":var e=this._getIdxInfo("selected","col");e.containsKey(t)&&(e.remove(t),_.$(this._getColCellDOMs(t)).removeClass(_.QCELL.def.css.CELL_SELECT))}},_.QCELL.BasicQCELL.prototype._selectCols=function(t){if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"row"===this.attr("merge").data){var e=this._findNextCell(this._idx("row","focus"),t[t.length-1],"up");this._idx("col","focus")>t[t.length-1]&&(t=_._.range(e.col,this._idx("col","focus")+1).reverse())}if(t.length>0&&"cols"===this.attr("selectmode")){var r=this,i=this.attr("headercols"),o=this._getIdxInfo("selected","col"),a=[];_._.each(t,(function(t){t>=i&&(o.containsKey(t)?o.remove(t):a=a.concat(r._getColCellDOMs(t)),o.put(t,!0))})),_.$(a).addClass(_.QCELL.def.css.CELL_SELECT)}},_.QCELL.BasicQCELL.prototype._deselectCols=function(t){if("cols"===this.attr("selectmode")){var e=this,r=this.attr("headercols"),i=this._getIdxInfo("selected","col"),o=[];_._.each(t,(function(t){t>=r&&i.containsKey(t)&&(i.remove(t),o=o.concat(e._getColCellDOMs(t)))})),_.$(o).removeClass(_.QCELL.def.css.CELL_SELECT)}},_.QCELL.BasicQCELL.prototype._selectCell=function(t,e){if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var r=this._findNextCell(t,e,"up");t=r.row,e=r.col}switch(this.attr("selectmode")){case"cell":case"cells":var o=this.attr("headerrows"),a=this.attr("headercols"),s=this.attr("frozencols"),n=this.attr("cols");if(t>=o&&e>=a&&e<n){var l,c,h=this.attr("hsinfo"),d=this._getIdxInfo("selected","row"),u=this._getIdxInfo("selected","col");if((l=d.containsKey(t)?d.remove(t):new i._QHashSet).add(e),d.put(t,l),(c=u.containsKey(e)?u.remove(e):new i._QHashSet).add(t),u.put(e,c),e<a+s||e>=h.nLeftCol&&e<=h.nRightCol){var p=this._getCellDOM(t,e);_._.isElement(p)&&_.util.addClass(p,_.QCELL.def.css.CELL_SELECT)}}}},_.QCELL.BasicQCELL.prototype._deselectCell=function(t,e){switch(this.attr("selectmode")){case"cell":case"cells":var r=this.attr("headerrows"),i=this.attr("headercols"),o=this.attr("frozencols"),a=this.attr("cols");if(t>=r&&e>=i&&e<a){var s,n,l=this.attr("hsinfo"),c=this._getIdxInfo("selected","row"),h=this._getIdxInfo("selected","col");if(c.containsKey(t)&&((s=c.get(t)).remove(e),s.isEmpty()&&c.remove(t)),h.containsKey(e)&&((n=h.get(e)).remove(t),n.isEmpty()&&h.remove(e)),e<i+o||e>=l.nLeftCol&&e<=l.nRightCol){var d=this._getCellDOM(t,e);_._.isElement(d)&&_.util.removeClass(d,_.QCELL.def.css.CELL_SELECT)}}}},_.QCELL.BasicQCELL.prototype._selectCellRange=function(t,e,r,o){if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data){var a=this._findNextCell(r,o,"up");r=a.row,o=a.col}if("cells"===this.attr("selectmode")){var s=_.QCELL.def.css,n=this.attr("headerrows"),l=this.attr("headercols"),c=this.attr("cols");if(t>=n&&r>=n&&o>=l&&e>=l&&e<c&&o<c){var h,d,u,p,g,f=this._getIdxInfo("selected","row"),m=this._getIdxInfo("selected","col"),C=t>r,L=e>o;for(u=t;C?u>=r:u<=r;C?u--:u++){for(h=f.containsKey(u)?f.remove(u):new i._QHashSet,p=e;L?p>=o:p<=o;L?p--:p++)h.add(p),g=this._getCellDOM(u,p),_._.isElement(g)&&_.util.addClass(g,s.CELL_SELECT);f.put(u,h)}for(p=e;L?p>=o:p<=o;L?p--:p++){for(d=m.containsKey(p)?m.remove(p):new i._QHashSet,u=t;C?u>=r:u<=r;C?u--:u++)d.add(u);m.put(p,d)}}}},_.QCELL.BasicQCELL.prototype._deselectCellRange=function(t,e,r,i){if("cells"===this.attr("selectmode")){var o=_.QCELL.def.css,a=this.attr("headerrows"),s=this.attr("headercols"),n=this.attr("cols");if(t>=a&&r>=a&&i>=s&&e>=s&&e<n&&i<n){var l,c,h,d,u,p=this._getIdxInfo("selected","row"),g=this._getIdxInfo("selected","col"),f=t>r,m=e>i;for(h=t;f?h>=r:h<=r;f?h--:h++)if(p.containsKey(h)){for(l=p.get(h),d=e;m?d>=i:d<=i;m?d--:d++)l.remove(d),u=this._getCellDOM(h,d),_._.isElement(u)&&_.util.removeClass(u,o.CELL_SELECT);l.isEmpty()&&p.remove(h)}for(d=e;m?d>=i:d<=i;m?d--:d++)if(g.containsKey(d)){for(c=g.get(d),h=t;f?h>=r:h<=r;f?h--:h++)c.remove(h);c.isEmpty()&&g.remove(d)}}}},_.QCELL.BasicQCELL.prototype._selectDragArea=function(t){try{var e=this._idx("row","focus"),r=this._idx("col","focus"),i=this._idx("row","drag"),o=this._idx("col","drag");switch(this.attr("selectmode")){case"rows":!1===t.ctrlKey&&this._clearSelection(),this._selectRows(i>e?_._.range(e,i+1):_._.range(i,e+1).reverse());break;case"cols":!1===t.ctrlKey&&this._clearSelection(),this._selectCols(o>r?_._.range(r,o+1):_._.range(o,r+1).reverse());break;case"cells":!1===t.ctrlKey&&this._clearSelection(),this._selectCellRange(e,r,i,o)}}catch(t){_.QCELL.log("err","QCELL.BasicQCELL._selectDragArea",t.message)}},_.QCELL.BasicQCELL.prototype._isSelectedRow=function(t){return this._getIdxInfo("selected","row").containsKey(t)},_.QCELL.BasicQCELL.prototype._isSelectedCol=function(t){return this._getIdxInfo("selected","col").containsKey(t)},_.QCELL.BasicQCELL.prototype._isSelectedCell=function(t,e){var r=this._getIdxInfo("selected","row");return!!r.containsKey(t)&&r.get(t).contains(e)},_.QCELL.BasicQCELL.prototype._selectGroup=function(t,e){if(!1===_._.isUndefined(this.attr("merge").data)&&"none"!==this.attr("merge").data&&"group"===this.attr("merge").data){var r,o={},a=0,s=0,n=0,l=0,c=_.QCELL.def.css,h=this.attr("headerrows"),d=this.attr("headercols"),u=this.attr("rows"),p=this.attr("cols");if(this._isMergeCell(t,e)?(a=(o=this._getMergeInfo(t,e,this.attr("merge_data_info"))).nStartRow,s=o.nStartCol,n=o.nEndRow,l=o.nEndCol):(a=t,s=e,n=t,l=e),a>=h&&n<u&&s>d&&l<p){for(var g,f,m,C,L=this._getIdxInfo("selected","row"),b=this._getIdxInfo("selected","col"),E=[],v=l;d<=v;v--)for(var y=n;a<=y;y--){if(m=y,C=v,this._isMergeCell(y,v)){var w=this._getMergeInfo(y,v,this.attr("merge_data_info"));m=w.nStartRow,C=w.nStartCol}r=this._getCellDOM(m,C),_._.isElement(r)&&(_.util.addClass(r,c.CELL_SELECT),E.push({sr:m,sc:C}))}E.reverse();for(var x=0;x<E.length;x++){var k=E[x];g=L.containsKey(k.sr)?L.remove(k.sr):new i._QHashSet,f=b.containsKey(k.sc)?b.remove(k.sc):new i._QHashSet,g.add(k.sc),f.add(k.sr),L.put(k.sr,g),b.put(k.sc,f)}}}},_.QCELL.BasicQCELL.prototype._deselectGroup=function(t,e){},_.QCELL.BasicQCELL.prototype._getDefaultSortArea=function(t){if(null===this.attr("defaultsortarea")){var e=document.createElement("div");this.attr("defaultsortarea",this._createDefaultSortArea(e),"jquery")}return null===this._getQCellCol(t).attr("colsortarea")&&this._getQCellCol(t).attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),this._getQCellCol(t).attr("colsortarea").get(0)},_.QCELL.BasicQCELL.prototype._createDefaultSortArea=function(t){var e=_.QCELL.def.css,r=t.cloneNode(),i=this.attr("rowheight").header;return r.className+=e.SORT_AREA,r.style.top=i-(i/2+5)+"px",_.$(r)},_.QCELL.BasicQCELL.prototype._createMultiSortOrder=function(){var t=_.QCELL.def.css,e=document.createElement("span"),r=this.attr("rowheight").header;return e.className+=t.MULTI_SORT_ORDER,e.style.bottom=-(r-(r/2+7))+"px",_.$(e)},_.QCELL.BasicQCELL.prototype._sort=function(t){if(!0===this.attr("isSorting"))return!1;var e,r;if(this.attr("isSorting",!0,"boolean"),t.length>1){for(var i=!0,o=!0,a=0;a<t.length;a++)if(_._.isNumber(t[a][0])){if(o=!1,void 0===(r=this._getQCellCol(t[a][0])))return!1;if(!1===r.attr("sort")){i=!1;break}}if(i)return!1===o&&this._updateMultiSortIcon(t),this._multiSort(t),!0}else{if(e=t[0][0],_._.isString(e))return this._singleSort(e,t[0][1],t[0][2]),!0;if(!1===_._.isUndefined(e)){if((r=this._getQCellCol(e)).attr("sort"))return this._updateSingleSortIcon(t),this._singleSort(e,r.attr("sortinfoofcol").sorttype,r.attr("datatype")),!0}else this.attr("sortinfo",[],"array")}return!1},_.QCELL.BasicQCELL.prototype._makeSingleSortList=function(t){var e,r,i=this.attr("sortinfo"),o=this._getQCellCol(t);if(i.length>1){var a="asc";for(r=0;r<i.length;r++)if(i[r][0]===t)switch(i[r][1]){case"asc":a="desc";break;case"desc":a="";break;default:a="asc"}e=[[t,a,o.attr("datatype")]]}else if(1===i.length)if(i[0][0]===t)switch(i[0][1]){case"asc":e=[[i[0][0],"desc",i[0][2]]];break;case"desc":e=[[i[0][0],"",i[0][2]]];break;default:e=[[i[0][0],"asc",i[0][2]]]}else e=[[t,"asc",o.attr("datatype")]];else e=[[t,"asc",o.attr("datatype")]];return e},_.QCELL.BasicQCELL.prototype._updateSingleSortIcon=function(t){var e,r,i,o,a,s,n,l=_.QCELL.def.css,c=this.attr("sortinfo");for(i=0;i<c.length;i++)null===(e=this._getQCellCol(c[i][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),r=e.attr("colsortarea"),e.setSortInfoOfCol("none",0),r.removeClass(l.SORT_ASC).removeClass(l.SORT_DESC),r.empty(),e.attr("cloneSort_master")&&(o=e.attr("cloneSort_master"),a=e.attr("cloneSort_sort"),s=r.clone(),n=a.position(),s.css("top",n.top),a.remove(),o.append(s),e.attr("cloneSort_sort",s,"jquery"));var h=_._.isString(t[0][0])?this._getColsOfKey(t[0][0])[0]:t[0][0];null===(e=this._getQCellCol(h)).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),r=e.attr("colsortarea"),"asc"===t[0][1]?(r.addClass(l.SORT_ASC),e.setSortInfoOfCol("asc",e.attr("sortinfoofcol").order)):"desc"===t[0][1]&&(r.addClass(l.SORT_DESC),e.setSortInfoOfCol("desc",e.attr("sortinfoofcol").order)),e.setSortInfoOfCol(e.attr("sortinfoofcol").sorttype,1),e.attr("colsortarea",r,"jquery"),e.attr("cloneSort_master")&&(o=e.attr("cloneSort_master"),a=e.attr("cloneSort_sort"),s=r.clone(),n=a.position(),s.css("top",n.top),a.remove(),o.append(s),e.attr("cloneSort_sort",s,"jquery"))},_.QCELL.BasicQCELL.prototype._makeMultiSortList=function(t){var e,r,i=[],o=this._getQCellCol(t);if(_._.each(this.attr("sortinfo"),(function(t){i.push(_._.clone(t))})),i.length>1){var a=!0;for(r=0;r<i.length;r++)if(i[r][0]===t){switch(i[r][1]){case"asc":i[r][1]="desc";break;case"desc":i[r][1]="asc"}a=!1;break}a&&i.push([t,"asc",o.attr("datatype")]),e=i}else if(1===i.length)if(i[0][0]===t)switch(i[0][1]){case"asc":e=[[i[0][0],"desc",i[0][2]]];break;case"desc":e=[[i[0][0],"asc",i[0][2]]]}else i.push([t,"asc",o.attr("datatype")]),e=i;else e=[[t,"asc",o.attr("datatype")]];return e},_.QCELL.BasicQCELL.prototype._updateMultiSortIcon=function(t){var e,r,i,o,a=_.QCELL.def.css,s=this.attr("sortinfo");if(null!=s){for(o=0;o<s.length;o++)null===(e=this._getQCellCol(s[o][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),r=e.attr("colsortarea"),e.setSortInfoOfCol("none",0),r.removeClass(a.SORT_ASC).removeClass(a.SORT_DESC),r.empty();if(void 0!==t)for(o=0;o<t.length;o++)if(null===(e=this._getQCellCol(t[o][0])).attr("colsortarea")&&e.attr("colsortarea",this.attr("defaultsortarea").clone(!0),"jquery"),r=e.attr("colsortarea"),i=this._createMultiSortOrder(),"asc"===t[o][1]?(r.addClass(a.SORT_ASC),e.setSortInfoOfCol("asc",e.attr("sortinfoofcol").order)):(r.addClass(a.SORT_DESC),e.setSortInfoOfCol("desc",e.attr("sortinfoofcol").order)),e.setSortInfoOfCol(e.attr("sortinfoofcol").sorttype,o+1),i.text(e.attr("sortinfoofcol").order),r.get(0).appendChild(i.get(0)),e.attr("colsortarea",r,"jquery"),e.attr("cloneSort_master")){var n=e.attr("cloneSort_master"),l=e.attr("cloneSort_sort"),c=r.clone(),h=l.position();c.css("top",h.top);var d=c.get(0).childNodes,u=0;for(u=0;u<d.length;u++){var p=d[0],g=e.attr("cloneSort_master_height");p.style.bottom=-(g-(g/2+7))+"px"}l.remove(),n.append(c),e.attr("cloneSort_sort",c,"jquery")}}},_.QCELL.BasicQCELL.prototype._clearSortUI=function(){var t=this.attr("sortinfo");if(t.length>0){var e,r=this._getSyncInfo("col"),i=this;_._.each(t,(function(t){(e=i._getQCellCol(t[0])).attr("colsortarea",i.attr("defaultsortarea").clone(!0),"jquery"),e.setSortInfoOfCol("none",0),!0===r.containsKey(t[0])&&(r.get(t[0]).remove("sort"),r.get(t[0]).isEmpty()&&r.remove(t[0]))})),this.attr("sortinfo",[],"array"),this._refreshHRs()}},_.QCELL.BasicQCELL.prototype._sortProcess=function(t){if(!0===this.attr("isSorting"))return!1;this.attr("isSorting",!0,"boolean"),this._updateIdx("click",this._getRowFromTarget(t.target),this._getColFromTarget(t.target));var e=this._idx("col","click");if(-1!==e){var r,i=this._getQCellCol(e);if(t.shiftKey)r=this._makeMultiSortList(e),this._updateMultiSortIcon(r),this.attr("sortinfo",r,"array"),this._multiSort(r);else{if(r=this._makeSingleSortList(e),e<this.getCols("header")){var o=this.attr("rowheaders");void 0!==o[e]&&"desc"!==r[0][1]?o[e]="sequence":o[e]="reverse",r[0][2]="number",this.attr("rowheaders",o,"array"),i.attr("datatype","number","string")}this._updateSingleSortIcon(r),this.attr("sortinfo",[[e,i.attr("sortinfoofcol").sorttype,i.attr("datatype")]],"array"),e<this.getCols("header")?this._singleSort("_rt_qc_s_i",i.attr("sortinfoofcol").sorttype,i.attr("datatype")):this._singleSort(e,i.attr("sortinfoofcol").sorttype,i.attr("datatype"))}}},_.QCELL.BasicQCELL.prototype._getColStyleClassName=function(t,e){try{var r=this.attr("qcellcols")[t];return null==r?"":this.attr("qcellcols")[t].getStyleClassName(e)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._getColStyleClassName",t.message),""}},_.QCELL.BasicQCELL.prototype._removeColStyleClassName=function(t){var e,r,i=this.attr("headerrows"),o=this.attr("rows"),a=this._getColStyleClassName(t,"header"),s=this._getColStyleClassName(t,"data");if(""!==a)for(e=0;e<i;e++)null!==(r=this._getCellDOM(e,t))&&_.util.removeClass(r,a);if(""!==s)for(e=i;e<o;e++)null!==(r=this._getCellDOM(e,t))&&_.util.removeClass(r,s);return!0},_.QCELL.BasicQCELL.prototype._setHighlightRepeat=function(t){try{return this.attr("highlightrepeat",t,"number"),this._clearHighlightRepeatCSS(),this._refreshDRs(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._setHighlightRepeat",t.message),!1}},_.QCELL.BasicQCELL.prototype._clearHighlightRepeatCSS=function(){return _.util.removeClass(_._.flatten(this.attr("cellmatrix").get("row")),_.QCELL.def.css.CELL_HIGHLIGHTREPEAT),!0},_.QCELL.BasicQCELL.prototype._initColStyles=function(){var t=!0;return _.$.each(this.attr("qcellcols"),(function(e,r){if(!1===r.initStyle())return t=!1,!1})),t},_.QCELL.BasicQCELL.prototype._initColStyle=function(t){return this.attr("qcellcols")[t].initStyle()},_.QCELL.BasicQCELL.prototype._getColStyle=function(t,e){return this.attr("qcellcols")[t].getStyle(e)},_.QCELL.BasicQCELL.prototype._setColStyle=function(t,e,r,i){var o,a=this.attr("headerrows"),s=this.attr("rows"),n=!1;if(this.attr("qcellcols")[t].setStyle(e,r),a>0&&("header"===r||"all"===r)){for(o=0;o<a;o++)this._setCellStyle(o,t,e,i);n=!0}if("data"===r||"all"===r){for(o=a;o<s;o++)this._setCellStyle(o,t,e,i);n=!0}return n},_.QCELL.BasicQCELL.prototype._removeColStyle=function(t,e,r){var i,o=this.attr("headerrows"),a=this.attr("rows"),s=!1;if(this.attr("qcellcols")[t].removeStyle(e),o>0&&("header"===e||"all"===e)){for(i=0;i<o;i++)this._removeCellStyle(i,t,r);s=!0}if("data"===e||"all"===e){for(i=o;i<a;i++)this._removeCellStyle(i,t,r);s=!0}return s},_.QCELL.BasicQCELL.prototype._clearColStyles=function(){var t=!0;return _.$.each(_._.filter(this.attr("qcellcols"),(function(t){return _._.size(t.attr("style").header)>0||_._.size(t.attr("style").data)>0})),(function(e,r){if(!1===r.removeStyle("all"))return t=!1,!1})),t},_.QCELL.BasicQCELL.prototype._setRowStyle=function(t,e,r,i){var o,a=this.attr("headercols"),s=this.attr("cols"),n=!1;if(a>0&&("header"===r||"all"===r)){for(o=0;o<a;o++)this._setCellStyle(t,o,e,i);n=!0}if("data"===r||"all"===r){for(o=a;o<s;o++)this._setCellStyle(t,o,e,i);n=!0}return n},_.QCELL.BasicQCELL.prototype._removeRowStyle=function(t,e,r){var i,o=this.attr("headercols"),a=this.attr("cols"),s=!1;if(o>0&&("header"===e||"all"===e)){for(i=0;i<o;i++)this._removeCellStyle(t,i,r);s=!0}if("data"===e||"all"===e){for(i=o;i<a;i++)this._removeCellStyle(t,i,r);s=!0}return s},_.QCELL.BasicQCELL.prototype._hasCellStyle=function(t,e){try{var r=this._getIdxInfo("style","row");return!!r.containsKey(t)&&r.get(t).containsKey(e)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._hasCellStyle",t.message),!1}},_.QCELL.BasicQCELL.prototype._getCellStyle=function(t,e){var r=this._getIdxInfo("style","row");if(r.containsKey(t)){var i=r.get(t);if(i.containsKey(e))return _._.clone(i.get(e))}return{}},_.QCELL.BasicQCELL.prototype._setCellStyle=function(t,e,r,o){try{var a,s,n=this._getSyncInfo("row"),l=this._getSyncInfo("col"),c=this._getIdxInfo("style","row"),h=this._getIdxInfo("style","col"),d=this.attr("currentdata");if(t>=this.getRows("header")){void 0===d[t-this.getRows("header")]._rt_qc_style&&(d[t-this.getRows("header")]._rt_qc_style={});var u=this._getKeyOfCol(e);null!=u&&(d[t-this.getRows("header")]._rt_qc_style[u]={row:t,col:e,style:_._.clone(r)})}if(o){var p=this._getCellDOM(t,e);if(_._.isElement(p)){var g="";for(var f in r)g+=f+": "+r[f]+";";_.$(p).attr("style",(function(t,e){return(e||"")+g}))}}return!1===n.containsKey(t)&&n.put(t,new i._QHashSet),n.get(t).add("style"),!1===c.containsKey(t)&&c.put(t,new i._QHashtable),(a=c.get(t)).containsKey(e)?a.put(e,_._.extend(a.get(e),r)):a.put(e,_._.clone(r)),!1===l.containsKey(e)&&l.put(e,new i._QHashSet),l.get(e).add("style"),!1===h.containsKey(e)&&h.put(e,new i._QHashtable),(s=h.get(e)).containsKey(t)?s.put(t,_._.extend(s.get(t),r)):s.put(t,_._.clone(r)),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._setCellStyle",t.message),!1}},_.QCELL.BasicQCELL.prototype._setCellStyles=function(t,e,r,i,o,a){for(var s=t>r,n=e>i,l=!0,c=t;(s?c>=r:c<=r)&&!1!==l;s?c--:c++)for(var h=e;n?h>=i:h<=i;n?h--:h++)if(!1===this._setCellStyle(c,h,o,a)){l=!1;break}return l},_.QCELL.BasicQCELL.prototype._removeCellStyle=function(t,e,r){try{var i=this._getIdxInfo("style","row"),o=this._getIdxInfo("style","col"),a=this._getSyncInfo("row"),s=this._getSyncInfo("col");if(r){var n=this._getCellDOM(t,e);_._.isElement(n)&&_.$(n).css(_._.mapValues(this._getCellStyle(t,e),(function(t,e){return""})))}var l=this._getKeyOfCol(e),c=this.attr("currentdata");if(t-this.getRows("header")>=0&&null!=l&&void 0!==c[t-this.getRows("header")]._rt_qc_style&&void 0!==c[t-this.getRows("header")]._rt_qc_style[l]&&delete c[t-this.getRows("header")]._rt_qc_style[l],i.containsKey(t)){var h=i.get(t);if(h.containsKey(e)&&(h.remove(e),0===h.size()&&i.remove(t)),0===h.size()&&a.containsKey(t)){var d=a.get(t);d.remove("style"),d.isEmpty()&&a.remove(t)}}if(o.containsKey(e)){var u=o.get(e);if(u.containsKey(t)&&(u.remove(t),0===u.size()&&o.remove(e)),0===u.size()&&s.containsKey(e)){var p=s.get(e);p.remove("style"),p.isEmpty()&&s.remove(e)}}return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._removeCellStyle",t.message),!1}},_.QCELL.BasicQCELL.prototype._removeCellStyles=function(t,e,r,i,o){for(var a=t>r,s=e>i,n=!0,l=t;(a?l>=r:l<=r)&&!1!==n;a?l--:l++)for(var c=e;s?c>=i:c<=i;s?c--:c++)if(!1===this._removeCellStyle(l,c,o)){n=!1;break}return n},_.QCELL.BasicQCELL.prototype._removeCellStylesOfRow=function(t,e){var r=this._getIdxInfo("style","row");if(r.containsKey(t)){var i=r.get(t),o=this;i.each((function(r,i){o._removeCellStyle(t,r,e)}))}},_.QCELL.BasicQCELL.prototype._clearCellStyles=function(){try{var t=this._getIdxInfo("style","row"),e=this._getIdxInfo("style","col"),r=this._getSyncInfo("row"),i=this._getSyncInfo("col");return this._clearCellStyleCSS("row","all"),_._.each(t.keys(),(function(t){if(r.containsKey(t)){var e=r.get(t);e.remove("style"),e.isEmpty()&&r.remove(t)}})),t.clear(),_._.each(e.keys(),(function(t){if(i.containsKey(t)){var e=i.get(t);e.remove("style"),e.isEmpty()&&i.remove(t)}})),e.clear(),!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._clearCellStyles",t.message),!1}},_.QCELL.BasicQCELL.prototype._clearCellStyleCSS=function(t,e){var r=this;if("row"===t){var i,o=this._getIdxInfo("style","row"),a=this.attr("vsinfo"),s=this.attr("headerrows"),n=this.attr("frozenrows"),l=this.attr("frozenbottomrows"),c=this.attr("rows");return i=_._.reject(o.keys().sort(_.st.asc),(function(t){return t<a.nTopRow&&t>=s+n||t>a.nBottomRow&&t<c-l})),"all"!==e&&(i=_._.filter(i,"header"===e?function(t){return t<s}:function(t){return t>=s})),_._.each(i,(function(t){o.get(t).each((function(e,i){var o=r._getCellDOM(t,e);_.$(o).css(_._.mapValues(i,(function(t,e){return""})))}))})),!0}if("col"===t){var h,d=this._getIdxInfo("style","col"),u=this.attr("hsinfo"),p=this.attr("headercols"),g=this.attr("frozencols");h=_._.reject(d.keys().sort(_.st.asc),(function(t){return t<u.nLeftCol&&t>=p+g||t>u.nRightCol})),"all"!==e&&(h=_._.filter(h,"header"===e?function(t){return t<p}:function(t){return t>=p})),_._.each(h,(function(t){d.get(t).each((function(e,i){var o=r._getCellDOM(e,t);_.$(o).css(_._.mapValues(i,(function(t,e){return""})))}))}))}return!1},_.QCELL.BasicQCELL.prototype._removeAllCellStyleCSS=function(){var t=this,e=this._getIdxInfo("style","row");_._.each(e.keys(),(function(r){e.get(r).each((function(e,i){var o=t._getCellDOM(r,e);_._.isElement(o)&&_.$(o).css(_._.mapValues(i,(function(t,e){return""})))}))}))},_.QCELL.BasicQCELL.prototype._setCellStyleCSS=function(t,e){var r="";for(var i in e)r+=i+": "+e[i]+";";_.$(t).attr("style",(function(t,e){return(e||"")+r}))},_.QCELL.BasicQCELL.prototype._removeCellStyleCSS=function(t,e){_._.each(_._.keys(e),(function(e){t.style[_.$.camelCase(e)]=""}))},_.QCELL.BasicQCELL.prototype._clearDynamicStyles=function(){return this._clearCellStyles()&&this._setHighlightRepeat(this.getProperties().highlightrepeat)},_.QCELL.BasicQCELL.prototype._clearDynamicCSS=function(t,e){"header"!==e&&(this._clearFocusCSS(),this._clearSelectionCSS()),this._clearCellStyleCSS(t,e)},_.QCELL.BasicQCELL.prototype._isCellStyleRow=function(t){return this._getIdxInfo("style","row").containsKey(t)},_.QCELL.BasicQCELL.prototype._isCellStyleCol=function(t){return this._getIdxInfo("style","col").containsKey(t)},_.QCELL.BasicQCELL.prototype._hasCellStyle=function(t,e){try{var r=this._getIdxInfo("style","row");return!!r.containsKey(t)&&r.get(t).containsKey(e)}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._hasCellStyle",t.message),!1}},_.QCELL.BasicQCELL.prototype._getIdxInfo=function(t,e){return this.attr("idxinfo")[t][e]},_.QCELL.BasicQCELL.prototype._getSyncInfo=function(t){return this.attr("syncinfo")[t]},_.QCELL.BasicQCELL.prototype._popColSyncInfos=function(t,e){for(var r=[],i=this._getSyncInfo("col"),o=this,a=function(t){switch(l.idxinfo={style:null,state:null},t){case"style":var e=o._getIdxInfo("style","col"),r=o._getIdxInfo("style","row"),i=e.remove(n);l.idxinfo.style=i,null!==r&&null!==i&&null!==i&&_._.each(i.keys(),(function(t){r.get(t).remove(n)}));break;case"state":var a=o._getIdxInfo("state","col");l.idxinfo.style=a.remove(n)}},s=t;s<t+e;s++){var n=s,l={idxinfo:null,syncinfo:null};if(i.containsKey(n)){var c=i.remove(n);_._.each(c.values(),a),l.syncinfo=c}r.push(l)}return r},_.QCELL.BasicQCELL.prototype._putColSyncInfos=function(t,e){var r=this,i=this._getSyncInfo("col");_._.each(t,(function(t,o){var a=e[o],s=a.syncinfo;null!==s&&(_._.each(s.values(),(function(e){switch(e){case"style":var i=r._getIdxInfo("style","col"),o=r._getIdxInfo("style","row"),s=a.idxinfo.style;null!==s&&(i.put(t,s),_._.each(s.keys(),(function(e){o.get(e).put(t,s.get(e))})));break;case"state":r._getIdxInfo("state","col").put(t,a.idxinfo.state);break;case"sort":var n=r._getQCellCol(t);r.attr("sortinfo")[n.attr("sortinfoofcol").order-1][0]=t}})),i.put(t,s))}))},_.QCELL.BasicQCELL.prototype._pushColSyncInfo=function(t,e){if(t.length>0){var r=this._getSyncInfo("col");if(r.size()>0){var i=this;_._.each(t,(function(t){var o=r.remove(t);_._.each(o.values(),(function(r){switch(r){case"style":var o=i._getIdxInfo("style","col"),a=i._getIdxInfo("style","row"),s=o.remove(t);o.put(t+e,s),null!==s&&_._.each(s.keys(),(function(r){var i=a.get(r);i.put(t+e,i.remove(t))}));break;case"state":var n=i._getIdxInfo("state","col");n.put(t+e,n.remove(t));break;case"sort":var l=i.attr("sortinfo");_._.each(l,(function(r){r[0]===t&&(r[0]=t+e)}))}})),r.put(t+e,o)}))}}},_.QCELL.BasicQCELL.prototype._pullColSyncInfo=function(t,e){if(t.length>0){var r=this._getSyncInfo("col");if(r.size()>0){var i=this;_._.each(t,(function(t){var o=r.remove(t);_._.each(o.values(),(function(r){switch(r){case"style":var o=i._getIdxInfo("style","col"),a=i._getIdxInfo("style","row"),s=o.remove(t);o.put(t-e,s),null!==s&&_._.each(s.keys(),(function(r){var i=a.get(r);i.put(t-e,i.remove(t))}));break;case"state":var n=i._getIdxInfo("state","col");n.put(t-e,n.remove(t));break;case"sort":var l=i.attr("sortinfo");_._.each(l,(function(r){r[0]===t&&(r[0]=t-e)}))}})),r.put(t-e,o)}))}}},_.QCELL.BasicQCELL.prototype._createTooltip=function(t,e,r){if(!0!==this.attr("disabletooltip")){var i=_.QCELL.def,o=i.cssprefix+this.attr("id")+"-tooltip",a='<div id="'+o+'" class="'+i.css.TOOLTIP+'"><div class="content"></div></div>',s=this.attr("elementpool").get("$root"),n=""===_.$.trim(t.html())?"&nbsp;":t.html().replace(/\r\n/g,"<br>").replace(/\n/g,"<br>").replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,'"').replace(/&#39;/g,"'"),l=this._setTooltipPos(e);void 0!==r&&(n=r),this._removeTooltip(),!1===this.attr("tooltipvisible")&&(_.$.browser.msie?_.$(document.body).append(a):_.$(s).append(a),_.$("#"+o+" > .content").append(n),_.$("#"+o).hide().css(l).fadeIn(400),this.attr("tooltipvisible",!0,"boolean"))}},_.QCELL.BasicQCELL.prototype._moveTooltip=function(t,e){if(!0!==this.attr("disabletooltip")){var r=_.QCELL.def.cssprefix+this.attr("id")+"-tooltip",i=this._setTooltipPos(e);_.$("#"+r).hide().css(i).fadeIn(400)}},_.QCELL.BasicQCELL.prototype._setTooltipPos=function(t){if(!0!==this.attr("disabletooltip")){var e;return e=t.clientX,{top:t.clientY+21+"px",left:e+"px"}}},_.QCELL.BasicQCELL.prototype._removeTooltip=function(){if(!0!==this.attr("disabletooltip")){var t=_.QCELL.def.css;_.$("."+t.TOOLTIP).remove(),this.attr("tooltipvisible",!1,"boolean")}},_.QCELL.BasicQCELL.prototype._refreshRs=function(){this._refreshHRs(),this._refreshDRs()},_.QCELL.BasicQCELL.prototype._refreshCs=function(){this._refreshHCs(),this._refreshDCs()},_.QCELL.BasicQCELL.prototype._refreshDRs=function(){this._refreshFRs(),this._refreshNRs(),this._refreshFBRs()},_.QCELL.BasicQCELL.prototype._refreshDCs=function(){this._refreshFCs(),this._refreshNCs()},_.QCELL.BasicQCELL.prototype._setVSRange=function(){try{var t=this.attr("vsinfo"),e=this.attr("headerrows"),r=this.attr("rows");return r-e>0?(t.nStartRow=e+this.attr("frozenrows"),t.nEndRow=r-this.attr("frozenbottomrows")-1):t.nStartRow=t.nEndRow=-1,!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._setVSRange",t.message),!1}},_.QCELL.BasicQCELL.prototype._initVSInfo=function(){var t=this.attr("vsinfo");t.bVScroll=!1,t.nStartRow=t.nEndRow=t.nTopRow=t.nBottomRow=-1,t.nAdjustRows=t.nDynamicRows=t.nLength=t.nLastPos=t.nPos=t.nTop=t.nBeforeTop=t.nLengthPerRow=0,t.objUpdateInfo={bWholeUpdate:!1,objParams:{}}},_.QCELL.BasicQCELL.prototype._updateVSInfo=function(){try{var t=this.attr("vsinfo"),e=t.objUpdateInfo,r=this.attr("currentdata").length,i=this.attr("headerrows"),o=this.attr("rows");if(e.objParams={},t.bVScroll){var a=0;if(e.bWholeUpdate=!0,t.nTopRow=t.nStartRow+t.nPos,t.nDynamicRows>r)t.nBottomRow=t.nEndRow;else{var s=this.attr("frozenrows"),n=this.attr("frozenbottomrows");if(t.nBottomRow=t.nTopRow+(t.nDynamicRows-s-n)-1,t.nBottomRow>t.nEndRow)if(t.nTopRow-=t.nBottomRow-t.nEndRow,t.nBottomRow=t.nEndRow,t.nLastPos===t.nPos){var l=this.attr("layoutsize").viewport.offsetHeight,c=this._getSumOfRowHeight(i,i+s-1),h=this._getSumOfRowHeight(o-n,o-1);a=c+this._getSumOfRowHeight(t.nTopRow,t.nEndRow)-(l-h)}else a=this._getSumOfRowHeight(t.nTopRow,t.nTopRow+(t.nPos-(t.nLastPos-t.nAdjustRows))-1)}e.objParams.nAdjustedTop=a,(this.attr("useall")||this.attr("usetreeall"))&&(t.nTopRow>t.nStartRow?_.$("#"+this.getID()+"_vsbp").prop("disabled",!1):_.$("#"+this.getID()+"_vsbp").prop("disabled",!0),t.nBottomRow===t.nEndRow?_.$("#"+this.getID()+"_vsbn").prop("disabled",!0):_.$("#"+this.getID()+"_vsbn").prop("disabled",!1))}else e.bWholeUpdate=!1,r>0?(t.nTopRow=i,t.nBottomRow=o-1):t.nTopRow=t.nBottomRow=-1;return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._updateVSInfo",t.message),!1}},_.QCELL.BasicQCELL.prototype.onVScroll=function(t){var e=this.attr("vsinfo"),r=this,i=0;Math.abs(e.nTop-t)>=e.nLengthPerRow&&(i=parseInt(-(t-e.nTop)/e.nLengthPerRow),e.nBeforeTop=e.nTop,e.nTop=e.nTop-i*e.nLengthPerRow,e.nPos=-e.nTop/e.nLengthPerRow,this._adjustScrollPos(),this._syncVSInfo(),this._updateNRs(),(this.attr("useall")||this.attr("usetreeall"))&&(e.nTopRow>e.nStartRow?_.$("#"+this.getID()+"_vsbp").prop("disabled",!1):_.$("#"+this.getID()+"_vsbp").prop("disabled",!0),e.nBottomRow===e.nEndRow?_.$("#"+this.getID()+"_vsbn").prop("disabled",!0):_.$("#"+this.getID()+"_vsbn").prop("disabled",!1),!0!==this.attr("isFocussing")&&setTimeout((function(){var t=document.getElementById("container-"+r.getID());null!=t&&t.focus()}),100)))},_.QCELL.BasicQCELL.prototype._syncVSInfo=function(){var t,e=this.attr("vsinfo"),r=e.objUpdateInfo,i=(e.nBeforeTop-e.nTop)/e.nLengthPerRow,o=this.attr("headerrows"),a=this.attr("frozenrows"),s=this.attr("frozenbottomrows"),n=this.attr("rows"),l=this.attr("layoutsize").viewport.offsetHeight,c=this._getSumOfRowHeight(o,o+a-1),h=this._getSumOfRowHeight(n-s,n-1);if(r.objParams={},Math.abs(i)>=e.nDynamicRows-a-s){var d=0,u=0;r.bWholeUpdate=!0,i>0?e.nPos>e.nLastPos-e.nAdjustRows?(d=e.nPos-(e.nLastPos-e.nAdjustRows),e.nTopRow+=i-d,e.nBottomRow+=i-d,u=e.nLastPos===e.nPos?c+this._getSumOfRowHeight(e.nTopRow,e.nEndRow)-(l-h):this._getSumOfRowHeight(e.nTopRow,e.nTopRow+(e.nPos-(e.nLastPos-e.nAdjustRows))-1)):(e.nTopRow+=i,e.nBottomRow+=i):e.nPos>=e.nLastPos-e.nAdjustRows?(d=e.nPos-(e.nLastPos-e.nAdjustRows),u=this._getSumOfRowHeight(e.nTopRow,e.nTopRow+d-1)):(t=e.nPos-i>=e.nLastPos-e.nAdjustRows?e.nPos-i-(e.nLastPos-e.nAdjustRows):0,e.nTopRow+=i+t,e.nBottomRow+=i+t),r.objParams.nAdjustedTop=u}else{var p=0;r.bWholeUpdate=!1,r.objParams.nMovedCount=i,i>0?(e.nPos>e.nLastPos-e.nAdjustRows?(p=e.nEndRow-e.nBottomRow,r.objParams.bWholePositionChanged=!0):(p=i,r.objParams.bWholePositionChanged=!1),e.nTopRow+=p,e.nBottomRow+=p):e.nPos>=e.nLastPos-e.nAdjustRows?r.objParams.bWholePositionChanged=!0:(t=e.nPos-i>=e.nLastPos-e.nAdjustRows?e.nPos-i-(e.nLastPos-e.nAdjustRows):0,p=Math.abs(i)-t,e.nTopRow-=p,e.nBottomRow-=p,r.objParams.bWholePositionChanged=!1),r.objParams.nCutRowsCount=p}},_.QCELL.BasicQCELL.prototype._resizeVScrollbar=function(t){try{var e=this.attr("elementpool"),r=e.get("vscrollthumb"),i=e.get("$jqvscrollbar"),o=this.attr("layoutsize"),a=this.attr("vsinfo");if(a.bVScroll){var s,n,l,c,h=0,d=this.attr("headerrows"),u=this.attr("frozenrows"),p=this.attr("frozenbottomrows"),g=this.attr("rows"),f=o.viewport.offsetHeight,m=o.vscrollbar.clientHeight,C=this._getSumOfRowHeight(d,d+u-1),L=this._getSumOfRowHeight(g-p,g-1);for(n=d;n<g;n++)if(this._getSumOfRowHeight(d,n)>=f){h=n-d+1;break}for(a.nLengthPerRow=Math.round(m/h),a.nAdjustRows=0,a.nLastPos=a.nEndRow-(a.nStartRow+(a.nDynamicRows-u-p)-1),n=a.nStartRow+a.nLastPos;n<=a.nEndRow;n++){if(!(C+L+this._getSumOfRowHeight(a.nStartRow+a.nLastPos+a.nAdjustRows,a.nEndRow)>f))break;a.nAdjustRows+=1}a.nLastPos+=a.nAdjustRows,void 0===t&&(0!==a.nPos&&a.nPos+1<a.nLastPos&&(a.nPos=a.nLastPos-1,a.nTop=-a.nPos*a.nLengthPerRow),a.nPos>a.nLastPos&&(a.nPos=a.nLastPos,a.nTop=-a.nPos*a.nLengthPerRow),a.nTop!==-a.nPos*a.nLengthPerRow&&(a.nTop=-a.nPos*a.nLengthPerRow)),a.nLength=a.nLastPos*a.nLengthPerRow,m+a.nLength>1533917&&(a.nLengthPerRow=Math.floor((1533917-m)/a.nLastPos),a.nLengthPerRow<1&&(a.nLengthPerRow=1),a.nLength=a.nLastPos*a.nLengthPerRow),r.style.height=m+a.nLength+"px";var b=this;s=function(t){var e=this.mcs.top;if(void 0===t)try{_.util.rAF((function(){setTimeout((function(){b.onVScroll(e),b._trigger("scrollmove")}))}))}catch(t){_.QCELL.log("err","VScrollbar.onScroll ",t.message)}},l=function(t){b.onScrollTop()},c=function(t){b.onScrollBottom()},void 0!==i.rt_qc_mCSbar&&_.$(i).rt_qc_mCSbar("destroy").rt_qc_mCSbar({axis:"y",theme:"qcell-default",setWidth:"100%",setHeight:"100%",scrollInertia:0,snapAmount:a.nLengthPerRow,mouseWheel:{enable:!0,preventDefault:!0,normalizeDelta:!0,scrollAmount:a.nLengthPerRow},scrollButtons:{enable:!0,scrollAmount:a.nLengthPerRow},keyboard:{enable:!1},advanced:{updateOnContentResize:!1},callbacks:{onScroll:s,whileScrolling:s,onTotalScroll:c,onTotalScrollBack:l},documentTouchScroll:null!==_.util.isMobile(),target:this}),a.nTop<0&&i.rt_qc_mCSbar("scrollTo",a.nTop,"",{ignorecallback:!0}),s=null;var E=this.attr("elementpool").get("jqvscrollbar").getElementsByClassName("rt_qc_mCSB_scrollTools")[0];if(null!=E&&(this.attr("useall")||this.attr("usetreeall"))){var v,y,w,x,k,S=document.createElement("button");S.setAttribute("id",this.getID()+"_vsbp"),S.setAttribute("type","button"),S.className+="rt_qc_mCSB_buttonPrev",S.onclick=function(){if(v=b._idx("row","focus","current"),y=b._idx("col","focus","current"),k=b.attr("vsinfo"),w=b._getTopRowOfScreen(),x=b._getBottomRowOfScreen(),-1===v&&(v=k.nTopRow),-1===y&&(y=b.getCols("header")),v--,b.attr("frozenrows")>0&&v<=b.attr("frozenrows")+b.attr("headerrows")-1)return!1;v>=w&&v<=x?(v-=x-w,w-=x-w):(v=w-(x-w),w-=x-w),v--,w--,v<=b.attr("headerrows")&&(w=k.nStartRow),b._scrollTop(w),b._scrollLeft(b.getCols("header")),setTimeout((function(){var t=document.getElementById("container-"+b.getID());null!=t&&t.focus()}),100)};var Q=document.createTextNode("이전 데이터 정보");S.appendChild(Q),E.appendChild(S);var q=document.createElement("button");q.setAttribute("id",this.getID()+"_vsbn"),q.setAttribute("type","button"),q.className+="rt_qc_mCSB_buttonNext",q.onclick=function(){if(v=b._idx("row","focus","current"),y=b._idx("col","focus","current"),w=b._getTopRowOfScreen(),x=b._getBottomRowOfScreen(),k=b.attr("vsinfo"),-1===v&&(v=k.nBottomRow),-1===y&&(y=b.getCols("header")),v>=b.attr("headerrows")&&v<b.attr("rows")-1){if(v>=b.attr("rows")-b.attr("frozenbottomrows"))return!1;v>=w&&v<=x?v+=x-w:v=x,v>=b.attr("rows")&&(v=k.nBottomRow+1),w+=x-w,++w>=k.nEndRow&&(w=k.nEndRow),b._scrollTop(w),b._scrollLeft(b.getCols("header")),setTimeout((function(){var t=document.getElementById("container-"+b.getID());null!=t&&t.focus()}),100)}};var T=document.createTextNode("다음 데이터 정보");q.appendChild(T),E.appendChild(q),_.$("#"+this.getID()+"_vsbp").prop("disabled",!0),_.$("#"+this.getID()+"_vsbn").prop("disabled",!1)}}else void 0!==i.rt_qc_mCSbar&&i.rt_qc_mCSbar("destroy"),a.nLengthPerRow=a.nLastPos=a.nPos=a.nTop=a.nBeforeTop=a.nAdjustRows=a.nLength=0,r.style.height="0px";return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._resizeVScrollbar",t.message),!1}},_.QCELL.BasicQCELL.prototype._scrollTop=function(t){var e,r=this.attr("vsinfo");r.bVScroll&&(t<r.nStartRow?t=r.nStartRow:t>r.nStartRow+r.nLastPos&&(t=r.nStartRow+r.nLastPos),(e=-1*(t-r.nStartRow)*r.nLengthPerRow)!==r.nTop&&(this.attr("adjustrow",!0,"boolean"),_.$(this.attr("elementpool").get("$jqvscrollbar")).rt_qc_mCSbar("scrollTo",e)))},_.QCELL.BasicQCELL.prototype._adjustRow=function(){try{var t=-1!==this._getSelectedRow()?this._getSelectedRow():this._idx("row","focus"),e=-1!==this._getSelectedCol()?this._getSelectedCol():this._idx("col","focus"),r=this._getCellDOM(t,e),i=this.attr("vsinfo");if(i.bVScroll&&i.nAdjustRows>0)if(t>=this.attr("headerrows")+this.attr("frozenrows")&&t<this.attr("rows")-this.attr("frozenbottomrows"))switch(this._getVScrollAdjustment(r)){case"top":this._scrollTop(i.nStartRow+i.nPos-1),this.attr("adjustrow",!0,"boolean");break;case"bottom":this._scrollTop(i.nStartRow+i.nPos+1),this.attr("adjustrow",!0,"boolean");break;default:this.attr("adjustrow",!1,"boolean")}else this.attr("adjustrow",!1,"boolean");return!0}catch(t){return _.QCELL.log("err","QCELL.BasicQCELL._adjustRow",t.message),!1}},_.QCELL.BasicQCELL.prototype._getVScrollAdjustment=function(t){var e=this.attr("vsinfo");if(e.bVScroll){var r=0;if(e.nPos===e.nLastPos){var i=this.attr("headerrows"),o=this.attr("frozenrows");if(o>0&&(r+=this._getSumOfRowHeight(i,i+o-1)),t.offsetTop<r)return"top"}else{var a=this.attr("frozenbottomrows"),s=this.attr("rows");if(r+=this.attr("layoutsize").viewport.offsetHeight,a>0&&(r-=this._getSumOfRowHeight(s-a,s-1)),t.offsetTop+t.offsetHeight>r)return"bottom"}}return"none"},_.QCELL.BasicQCELL.prototype._MoveVScrollbarToDragging=function(t){if(this.attr("dragging")){var e=this.attr("vsinfo");if(e.bVScroll){var r=this,i=this.attr("layoutsize"),o=this.attr("headerrows"),a=this.attr("frozenrows"),s=this.attr("frozenbottomrows"),n=this.attr("rows"),l=this._getSumOfRowHeight(0,o-1),c=this._getSumOfRowHeight(o,o+a-1),h=0===s?0:this._getSumOfRowHeight(n-s,n-1),d=i.container.clientY+l+c,u=i.container.clientY+l+i.viewport.offsetHeight-h,p=0;d+30>=t.clientY?this._idx("row","focus")>=o+a&&e.nPos>0&&(d>=t.clientY?(p=-5,e.nPos+p<0&&(p=-e.nPos)):p=-1):u-30<=t.clientY&&this._idx("row","focus")<n-s&&e.nPos<e.nLastPos&&(u<=t.clientY?(p=5,e.nPos+p>e.nLastPos&&(p=e.nLastPos-e.nPos)):p=1),p!==this.attr("vdcount")&&(null!==this.attr("vdhandle")&&(clearInterval(this.attr("vdhandle")),this.attr("vdhandle",null,"number")),this.attr("vdcount",p,"number")),0!==p?null===this.attr("vdhandle")&&this.attr("vdhandle",setInterval((function(){if(p<0?e.nPos>0:e.nPos<e.nLastPos){if(-1===r.attr("selectmode").indexOf("col")){var i=p<0?r._getTopRowOfScreen():r._getBottomRowOfScreen(),o=r._idx("col","cursor");r._updateIdx("drag",i,o),!1===r.attr("colmove")&&!1===r.attr("colresize")&&r._selectDragArea(t)}r._scrollTop(e.nStartRow+e.nPos+p)}else clearInterval(r.attr("vdhandle")),r.attr("vdhandle",null,"number"),r.attr("vdcount",0,"number")}),100),"number"):null!==this.attr("vdhandle")&&(clearInterval(r.attr("vdhandle")),r.attr("vdhandle",null,"number"),r.attr("vdcount",0,"number"))}}},_.QCELL.BasicQCELL.prototype._getTopRowOfScreen=function(){var t=this.attr("vsinfo");if(!1===t.bVScroll||t.nPos<=t.nLastPos-t.nAdjustRows)return t.nTopRow;for(var e,r=this._getCellGroupDOMs("row","normal"),i=this.attr("headerrows"),o=this.attr("frozenrows"),a=this._getSumOfRowHeight(i,i+o-1),s=r.length,n=0;n<s;){var l=r[n][0];if(l.offsetTop+l.offsetHeight>a){e=parseInt(l.getAttribute("data-row"));break}n+=1,l=null}return r=null,e},_.QCELL.BasicQCELL.prototype._getBottomRowOfScreen=function(){var t=this.attr("vsinfo");if(!1===t.bVScroll||t.nPos===t.nLastPos)return t.nBottomRow;var e=this._getCellGroupDOMs("row","normal"),r=this.attr("layoutsize"),i=this.attr("frozenbottomrows"),o=this.attr("rows"),a=0===i?0:this._getSumOfRowHeight(o-i,o-1),s=r.viewport.offsetHeight-a,n=e.length,l=0,c=-1;for(e.reverse();l<n;){var h=e[l][0];if(h.offsetTop<s){c=parseInt(h.getAttribute("data-row"));break}l+=1,h=null}return e=null,c},_.QCELL.BasicQCELL.prototype.onScrollTop=function(){this._trigger("scrolltop")},_.QCELL.BasicQCELL.prototype.onScrollBottom=function(){this._trigger("scrollbottom")},_.QCELL.BasicQCELL.prototype._getDefaultRemoveArea=function(t){if(null===this.attr("defaultremovearea")){var e=document.createElement("div");this.attr("defaultremovearea",this._createDefaultRemoveArea(e),"jquery")}return null===this._getQCellCol(t).attr("colremovearea")&&this._getQCellCol(t).attr("colremovearea",this.attr("defaultremovearea").clone(!0),"jquery"),this._getQCellCol(t).attr("colremovearea").get(0)},_.QCELL.BasicQCELL.prototype._createDefaultRemoveArea=function(t){var e=_.QCELL.def.css,r=t.cloneNode(),i=this.attr("rowheight").header;return r.className+=e.REMOVE_AREA,r.style.top=i-i/2-7+"px",_.$(r)},_.QCELL.BasicQCELL.prototype.rebuild=function(t){this.attr("useRebuildAPI",!0,"boolean");var e=this._rebuild(t);return this.attr("useRebuildAPI",!1,"boolean"),e},_.QCELL.BasicQCELL.prototype.resize=function(t){this.attr("isResizing",!0,"boolean");var e,r,i,o=this.getCustomPanel(),a=this.attr("hsinfo"),s=this.attr("vsinfo"),n=this._idx("row","focus","current"),l=this._idx("col","focus","current");if((e=a.nLeftCol,r=s.nTopRow,this._initHSInfo(),this._initVSInfo(),this._createElement())&&(this._refresh(),e!==a.nLeftCol&&this._scrollLeft(e),r!==s.nTopRow&&this._scrollTop(r),this._updateIdx("focus",-1,-1),this._focusCell(n,l),this.resetCustomPanel(o),!0===this.attr("makefrozenbottomdata"))){var c=this.attr("currentdata");if(!_._.isEmpty(c)&&_._.isArray(c)&&0!==c.length){var h=this.getID();!0!==c[c.length-1].rt_qc_fbrd?(c.push({rt_qc_fbrd:!0}),setTimeout((function(){null!=(i=_.QCELL.getInstance(h))&&i._trigger("frozendatacreated")}),0)):setTimeout((function(){null!=(i=_.QCELL.getInstance(h))&&i._trigger("frozendataupdated")}),0)}}return!0},_.QCELL.BasicQCELL.prototype.setBottomPanelData=function(t){var e=_.QCELL.def,r=this.attr("id"),i="#"+e.areaname.SHEETPANEL+"-span-"+r;return null!==document.getElementById(e.areaname.SHEETPANEL+"-span-"+r)&&(_.$(i).html(t),!0)},_.QCELL.BasicQCELL.prototype.refresh=function(){return this._refresh()},_.QCELL.BasicQCELL.prototype.initGrid=function(t){this.attr("useInitProp",!0,"boolean");var e=this._rebuild(t);return this.attr("useInitProp",!1,"boolean"),e},_.QCELL.BasicQCELL.prototype.getID=function(){return this.attr("id")},_.QCELL.BasicQCELL.prototype.getIdx=function(t,e,r){var i=this.attr("id")+".getIdx";if(arguments.length<1)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"focus":e,r=void 0===r?"current":r,"string"==typeof t&&"string"==typeof e)return"previous"===r?this._idx(t,e,r):this._idx(t,e);_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return-1},_.QCELL.BasicQCELL.prototype.getRows=function(t){var e=this.attr("id")+".getRows",r=0;if(void 0===t&&(t="all"),"string"==typeof t)switch(t){case"header":r=this.attr("headerrows");break;case"data":r=this.attr("rows")-this.attr("headerrows");break;case"frozen":r=this.attr("frozenrows");break;case"frozenbottom":r=this.attr("frozenbottomrows");break;case"footer":r=this.attr("footerrows");break;case"all":r=this.attr("rows")}else _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return r},_.QCELL.BasicQCELL.prototype.getCols=function(t){var e=this.attr("id")+".getCols",r=0;if(void 0===t&&(t="nomal"),"string"==typeof t)switch(t){case"header":r=this.attr("headercols");break;case"data":r=this.attr("cols")-this.attr("headercols");break;case"frozen":r=this.attr("frozencols");break;case"frozenright":r=this.attr("frozenrightcols");break;case"hidden":r=null!==this.attr("hiddencolsprops")?this.attr("hiddencolsprops").length:0;break;case"nomal":r=this.attr("cols");break;case"all":r=this.attr("cols")+(null!==this.attr("hiddencolsprops")&&void 0!==this.attr("hiddencolsprops")?this.attr("hiddencolsprops").length:0)}else _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return r},_.QCELL.BasicQCELL.prototype.getRowHeight=function(t){var e=this.attr("id")+".getRowHeight",r=0;if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("string"==typeof t)switch(t){case"header":case"data":case"footer":r=this.attr("rowheight")[t]}else _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return r},_.QCELL.BasicQCELL.prototype.getColWidths=function(){return this.attr("colwidthsperpixel")},_.QCELL.BasicQCELL.prototype.getColsOfKey=function(t){var e=this.attr("id")+".getColsOfKey";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return null===this.attr("colkeysinfo").get(t)?[]:this.attr("colkeysinfo").get(t).values();_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return[]},_.QCELL.BasicQCELL.prototype.getColOfKey=function(t){var e=this.attr("id")+".getColOfKey";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return null===this.attr("colkeysinfo").get(t)?-1:this.attr("colkeysinfo").get(t).values()[0];_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return[]},_.QCELL.BasicQCELL.prototype.getKeyOfCol=function(t){var e=this.attr("id")+".getKeyOfCol";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getKeyOfCol(t);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},_.QCELL.BasicQCELL.prototype.setKeyOfCol=function(t,e){var r=this.attr("id")+".setKeyOfCol";if(arguments.length<2)_.QCELL.log("log",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._setKeyOfCol(t,e);_.QCELL.log("log",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getColID=function(t){var e=this.attr("id")+".getColID";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColID(t);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},_.QCELL.BasicQCELL.prototype.getColOfID=function(t){var e=this.attr("id")+".getColOfID";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._getColOfID(t);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},_.QCELL.BasicQCELL.prototype.getColWidth=function(t){var e=this.attr("id")+".getColWidth";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColWidth(t);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},_.QCELL.BasicQCELL.prototype.getColWidthEx=function(t){var e=this.attr("id")+".getColWidthEx";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColWidth(t);if("string"==typeof t){var r=this.getColOfKey(t);if(-1===r){var i=this.attr("hiddencolsprops");if(null!=i)for(var o=0;o<i.length;o++)if(i[o].key===t)return"string"==typeof i[o].width&&(i[o].width=_.util.replaceAll(i[o].width,"px",""),i[o].width=_.util.replaceAll(i[o].width,"%",""),i[o].width=Number(i[o].width),isNaN(i[o].width)&&(i[o].width=0)),i[o].width;return-1}return this.getColWidth(r)}_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return-1},_.QCELL.BasicQCELL.prototype.setColWidth=function(t,e){var r=this.attr("id")+".setColWidth";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("cols")&&t>=this.attr("headercols")&&this._setColWidth(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.setColWidthEx=function(t,e){var r=this.attr("id")+".setColWidthEx";if(!(arguments.length<2)){var i=this.getColOfKey(t);if(-1!==i)return this.setColWidth(i,e);var o=this.attr("hiddencolsprops");if(null!=o)for(var a=0;a<o.length;a++)if(o[a].key===t)return o[a].width=e,!0;return!1}return _.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT),!1},_.QCELL.BasicQCELL.prototype.getColType=function(t){var e=this.attr("id")+".getColType";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this._getColType(t);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return""},_.QCELL.BasicQCELL.prototype.setColFormatStatic=function(t,e){var r=this.attr("id")+".setColFormatStatic";return arguments.length<2?(_.QCELL.log("log",r,this.attr("msg").err.PARAM_COUNT),!1):"number"==typeof t?this._setFormatStatic(t,e):(_.QCELL.log("log",r,this.attr("msg").err.PARAM_TYPE),!1)},_.QCELL.BasicQCELL.prototype.getColAttribute=function(t,e){var r=this.attr("id")+".getColAttribute";if(arguments.length<2)_.QCELL.log("log",r,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t){if(void 0!==this._getQCellCol(t))return this._getQCellCol(t).attr(e)}else _.QCELL.log("log",r,this.attr("msg").err.PARAM_TYPE);return""},_.QCELL.BasicQCELL.prototype.getFrozenRows=function(){return this.attr("frozenrows")},_.QCELL.BasicQCELL.prototype.setFrozenRows=function(t){var e=this.attr("id")+".setFrozenRows";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenrows=t,this._rebuild(),!0;_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getFrozenCols=function(){return this.attr("frozencols")},_.QCELL.BasicQCELL.prototype.setFrozenCols=function(t){var e=this.attr("id")+".setFrozenCols";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){this.getProperties().frozencols=t;var r,i,o=[];for(r=this.getCols("header");r<this.getCols();r++){var a=this._getQCellCol(r).attr("celldisabled");o.push(_._.clone(a))}this._rebuild();var s=this.getCols("header");for(r=0;r<o.length;r++)for(i=0;i<o[r].length;i++)!0===o[r][i]&&this.setCellDisable(i,r+s,!0);return o=null,!0}_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getFrozenRightCols=function(){return this.attr("frozenrightcols")},_.QCELL.BasicQCELL.prototype.setFrozenRightCols=function(t){var e=this.attr("id")+".setFrozenRightCols";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenrightcols=t,this._rebuild(),!0;_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getFrozenBottomRows=function(){return this.attr("frozenbottomrows")},_.QCELL.BasicQCELL.prototype.setFrozenBottomRows=function(t){var e=this.attr("id")+".setFrozenBottomRows";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return this.getProperties().frozenbottomrows=t,this._rebuild(),!0;_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.removeColumn=function(t){var e=this.attr("id")+".removeColumn";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){if(null!==this._getQCellCol(t)&&null!==this._getQCellCol(t).attr("removecallback")&&!0===_._.isFunction(this._getQCellCol(t).attr("removecallback"))&&!1===this._getQCellCol(t).attr("removecallback")(t))return!1;var r=this.getProperties();if(t-=this.attr("headercols"),r.columns.length<=t||t<0||r.columns.length<=0)return!1;r.columns.splice(t,1),this._rebuild(!0);var i=this;return setTimeout((function(){void 0!==i._trigger&&i._trigger("removeend")}),0),!0}_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.insertColumn=function(t,e){var r=this.attr("id")+".insertColumn";if(arguments.length<2)_.QCELL.log("log",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&_._.isObject(e)){var i=this.getProperties();return t-=this.attr("headercols"),i.columns.length<t||t<0||i.columns.length<=0?!1:(i.columns.RT_insert(t,e),this._rebuild(!0),!0)}_.QCELL.log("log",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.resetColumns=function(){var t=this.getProperties(),e=this.getInitProperties();return t.columns=_._.clone(e.columns),this._rebuild(!0),!0},_.QCELL.BasicQCELL.prototype.getColumnInfo=function(t){var e=this.attr("id")+".getColumnInfo";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){var r=this.getProperties();return t-=this.attr("headercols"),r.columns.length<=t||t<0||r.columns.length<=0?null:r.columns[t]}_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return null},_.QCELL.BasicQCELL.prototype.getCurrentColumnsInfo=function(){for(var t=[],e=this.attr("headercols"),r=this.attr("cols"),i=e;i<r;i++){var o={},a=this._getColPrevProperty(i);for(var s in a)"format"===s&&""===a.format.type&&""===a.format.rule||"html"===s&&null===a.html.data&&null===a.html.header||"header_text_align"!==s&&"id"!==s&&"invisibled"!==s&&"parent"!==s&&(o[s]="width"===s?this.getColWidth(i)+"px":a[s]);t.push(o)}return t},_.QCELL.BasicQCELL.prototype.setResizeAction=function(t){this.attr("bResizeAction",t,"boolean")},_.QCELL.BasicQCELL.prototype.getHighlightRepeat=function(){return this.attr("highlightrepeat")},_.QCELL.BasicQCELL.prototype.setHighlightRepeat=function(t){var e=this.attr("id")+".setHighlightRepeat";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>=0&&this._setHighlightRepeat(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.setColStyle=function(t,e,r){var i=this.attr("id")+".setColStyle";if(arguments.length<2)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(r=void 0===r?"all":r,"number"==typeof t&&"object"===n(e)&&"string"==typeof r)return t<this.attr("cols")&&t>=0&&this._setColStyle(t,e,r,!0);_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.removeColStyle=function(t,e){var r=this.attr("id")+".removeColStyle";if(arguments.length<1)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"all":e,"number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=0&&this._removeColStyle(t,e,!0);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.setRowStyle=function(t,e,r){var i=this.attr("id")+".setRowStyle";if(arguments.length<2)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(r=void 0===r?"all":r,"number"==typeof t&&"object"===n(e)&&"string"==typeof r)return t<this.attr("rows")&&t>=0&&this._setRowStyle(t,e,r,!0);_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.removeRowStyle=function(t,e){var r=this.attr("id")+".removeRowStyle";if(arguments.length<1)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(e=void 0===e?"all":e,"number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=0&&this._removeRowStyle(t,e,!0);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getCellStyle=function(t,e){var r=this.attr("id")+".getCellStyle";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0?this._getCellStyle(t,e):{};_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return{}},_.QCELL.BasicQCELL.prototype.setCellStyle=function(t,e,r){var i=this.attr("id")+".setCellStyle";if(arguments.length<3)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e&&"object"===n(r))return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._setCellStyle(t,e,r,!0);_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.setCellStyles=function(t,e,r,i,o){var a=this.attr("id")+".setCellStyles";if(arguments.length<5)_.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e&&"number"==typeof r&&"number"==typeof i&&"object"===n(o))return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&r<this.attr("rows")&&r>=0&&i<this.attr("cols")&&i>=0&&this._setCellStyles(t,e,r,i,o,!0);_.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.removeCellStyle=function(t,e){var r=this.attr("id")+".removeCellStyle";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._removeCellStyle(t,e,!0);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.removeCellStyles=function(t,e,r,i){var o=this.attr("id")+".setCellStyles";if(arguments.length<4)_.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e&&"number"==typeof r&&"number"==typeof i)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&r<this.attr("rows")&&r>=0&&i<this.attr("cols")&&i>=0&&this._removeCellStyles(t,e,r,i,!0);_.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.clearCellStyles=function(){return this._clearCellStyles()},_.QCELL.BasicQCELL.prototype.clearDynamicStyles=function(){return this._clearDynamicStyles()},_.QCELL.BasicQCELL.prototype.getSelectedRow=function(){return this._getSelectedRow()},_.QCELL.BasicQCELL.prototype.getSelectedCol=function(){return this._getSelectedCol()},_.QCELL.BasicQCELL.prototype.getSelectedRows=function(){return this._getSelectedRows().sort(_.st.asc)},_.QCELL.BasicQCELL.prototype.getSelectedCols=function(){return this._getSelectedCols().sort(_.st.asc)},_.QCELL.BasicQCELL.prototype.moveCol=function(t,e){var r=this.attr("id")+".moveCol";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("cols")&&t>=this.attr("headercols")&&e<this.attr("cols")&&e>=this.attr("headercols")&&this._moveCols(t,1,e,!1);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.scrollTop=function(t){var e=this.attr("id")+".scrollTop";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")&&this._scrollTop(t);if("string"==typeof t)return"top"===t?(this._scrollTop(this.attr("headerrows")),!0):"bottom"===t?(this._scrollTop(this.attr("rows")-1),!0):(_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),!1);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.scrollLeft=function(t){var e=this.attr("id")+".scrollLeft";if(arguments.length<1)_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("cols")&&t>=this.attr("headercols")&&this._scrollLeft(t);if("string"==typeof t)return"left"===t?(this._scrollLeft(this.attr("headercols")),!0):"right"===t?(this._scrollLeft(this.attr("cols")-1),!0):(_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),!1);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.isScroll=function(t){var e=this.attr("id")+".isScroll",r=!1;return arguments.length<1?_.QCELL.log("log",e,this.attr("msg").err.PARAM_COUNT):"string"==typeof t?"vertical"===t?r=this.attr("vsinfo").bVScroll:"horizontal"===t&&(r=this.attr("hsinfo").bHScroll):_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.getUpdateInfo=function(){return{toprow:this.attr("vsinfo").nTopRow,bottomrow:this.attr("vsinfo").nBottomRow}},_.QCELL.BasicQCELL.prototype.getData=function(){return this.attr("currentdata")},_.QCELL.BasicQCELL.prototype.getAllData=function(){return this.attr("data").input},_.QCELL.BasicQCELL.prototype.getAllDataWithFormat=function(){for(var t=[],e=this.getRows("header");e<this.getRows();e++)t.push(this.getRowDataWithFormat(e));return t},_.QCELL.BasicQCELL.prototype.setData=function(t,e){var r=this.attr("id")+".setData";if(arguments.length<1)_.QCELL.log("log",r,this.attr("msg").err.PARAM_COUNT);else{if(_._.isArray(t))return!(!0===e||!this._checkData(t))||this._setData(t);_.QCELL.log("log",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.clearData=function(){var t=this.attr("id")+".clearData";return arguments.length>1?(_.QCELL.log("log",t,this.attr("msg").err.PARAM_COUNT),!1):(this.attr("clearingdata",!0,"boolean"),this._setData([]),this.attr("clearingdata",!1,"boolean"),!0)},_.QCELL.BasicQCELL.prototype.getRowData=function(t){var e=this.attr("id")+".getRowData";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowData(t):void 0;_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.getRowDataWithFormat=function(t){var e=this.attr("id")+".getRowDataWithFormat";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowDataWithFormat(t):void 0;_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.getSelectedRowData=function(){for(var t=this._getIdxInfo("selected","row").keys().sort(),e=[],r=0;r<t.length;r++)e.push(this.getRowData(t[r]));return e},_.QCELL.BasicQCELL.prototype.setRowData=function(t,e){var r=this.attr("id")+".setRowData";if(t=Number(t),arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{var i=this.attr("data").type;if("number"==typeof t&&"array"===i&&_._.isArray(e)||"object"===i&&"object"===n(e)&&!1===_._.isArray(e)){var o=t<this.attr("rows")&&t>=this.attr("headerrows")&&this._setRowData(t,e);return!1!==o&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),o}_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.setRowDataEx=function(t,e){var r=this.attr("id")+".setRowData";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{var i=this.attr("data").type;if("number"==typeof t&&"array"===i&&_._.isArray(e)||"object"===i&&"object"===n(e)&&!1===_._.isArray(e)){var o=t<this.attr("rows")&&t>=this.attr("headerrows")&&this._setRowDataEx(t,e);return!1!==o&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),o}_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getColData=function(t){var e=this.attr("id")+".getColData";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t<this.attr("cols")&&t>=this.attr("headercols")?this._getColData(t):[];_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return[]},_.QCELL.BasicQCELL.prototype.setColData=function(t,e){var r=this.attr("id")+".setColData";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&_._.isArray(e))return t<this.attr("cols")&&t>=this.attr("headercols")&&this._setColData(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getCellData=function(t,e){var r=this.attr("id")+".getCellData";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=this.attr("headerrows")&&e<this.attr("cols")&&e>=this.attr("headercols")?this._cellValue(t,e):void 0;_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.getCellDataEx=function(t,e){var r=this.attr("id")+".getCellDataEx";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e)return t<this.attr("rows")&&t>=this.attr("headerrows")?this._getRowData(t)[e]:void 0;_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.getInitCellDataEx=function(t,e){var r=this.attr("id")+".getInitCellDataEx";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){if(t<this.attr("rows")&&t>=this.attr("headerrows")){var i=this._getRowData(t);return void 0!==i.rt_qcell_initdata?i.rt_qcell_initdata[e]:this.getCellDataEx(t,e)}return}_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.setCellData=function(t,e,r){var i=this.attr("id")+".setCellData";if(arguments.length<3)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){var o=t<this.attr("rows")&&t>=this.attr("headerrows")&&e<this.attr("cols")&&e>=this.attr("headercols")&&this._cellValue(t,e,r);return!1!==o&&!0===this.attr("setstatewithapi")&&this._setRowState(t,"u"),o}_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.setCellDataEx=function(t,e,r){var i=this.attr("id")+".setCellDataEx",o=!0;if(arguments.length<3)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t&&"string"==typeof e){if(t>this.attr("rows")||t<this.attr("headerrows"))return!1;var a=this.getColsOfKey(e);if(a.length>0){var s;for(s=0;s<a.length;s++)o=this.setCellData(t,a[s],r);return o}var n=this.getRowData(t);if(void 0!==n)return n[e]=r,this.setRowData(t,n),!0}else _.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE);return!1},_.QCELL.BasicQCELL.prototype.getCellLabel=function(t,e){var r=this.attr("id")+".getCellLabel";if(arguments.length<2)_.QCELL.log("log",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t>=0&&t<this.attr("rows")&&e>=0&&e<this.attr("cols")?this._getCellLabel(t,e):void 0;_.QCELL.log("log",r,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.setCellLabel=function(t,e,r){var i=this.attr("id")+".setCellLabel";return arguments.length<3?(_.QCELL.log("log",i,this.attr("msg").err.PARAM_COUNT),!1):"number"==typeof t&&"number"==typeof e&&("string"==typeof r||"number"==typeof r)?t>=0&&t<this.attr("rows")&&e>=0&&e<this.attr("cols")&&this._setCellLabel(t,e,r):(_.QCELL.log("log",i,this.attr("msg").err.PARAM_TYPE),!1)},_.QCELL.BasicQCELL.prototype.requestData=function(t){var e=this.attr("id")+".requestData",r=this,i="";try{"string"==typeof t.url?(!1===_._.isUndefined(t.param)&&(i=_._.isObject(t.param)?JSON.stringify(t.param):t.param),_.$.post(t.url,i,(function(e){return!1===_._.isUndefined(t.callback)&&_._.isFunction(t.callback)?t.callback(JSON.parse(e)):r._setData(JSON.parse(e))}))):_.QCELL.log("err",e,'Please check parameter. This url parameter\'s type is "string".')}catch(t){return _.QCELL.log("err",e,t.message),!1}},_.QCELL.BasicQCELL.prototype.showProgress=function(){var t=this.attr("id")+".showProgress";try{this._showProgressUI(!0)}catch(e){return _.QCELL.log("err",t,e.message),!1}return!0},_.QCELL.BasicQCELL.prototype.hideProgress=function(t){var e=this.attr("id")+".hideProgress";try{this._showProgressUI(!1,t)}catch(t){return _.QCELL.log("err",e,t.message),!1}return!0},_.QCELL.BasicQCELL.prototype.setHeaderCellValue=function(t,e,r){var i=this.attr("id")+".setHeaderCellValue";if(arguments.length<3)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){var o=this.attr("headercols"),a=this.attr("cols"),s=t<this.attr("headerrows")&&e>=o&&e<a&&this._cellValue(t,e,r);return!0===s&&(this._setRoleTitle(),this._resetAriaLabel(e)),s}_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.setHeaderCellValueEx=function(t,e,r){var i=this.attr("id")+".setHeaderCellValueEx";if(arguments.length<3)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){var o=this.attr("headercols"),a=this.attr("cols"),s=this.getColOfKey(e);return-1!==s?t<this.attr("headerrows")&&s>=o&&s<a&&this._cellValue(t,s,r):this._hiddenHeaderCellValue(t,e,r)}_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.getHeaderCellValueEx=function(t,e){var r=this.attr("id")+".getHeaderCellValueEx";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"string"==typeof e){var i=this.attr("headercols"),o=this.attr("cols"),a=this.getColOfKey(e);return-1!==a?t<this.attr("headerrows")&&a>=i&&a<o?this._cellValue(t,a):null:this._hiddenHeaderCellValue(t,e)}_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.resetData=function(){var t=this.attr("id")+".resetData";try{return this._resetData()}catch(e){return _.QCELL.log("err",t,e.message),!1}},_.QCELL.BasicQCELL.prototype.getFocusRowData=function(){var t=this.attr("id")+".getFocusRowData";try{return this._getFocusRowData()}catch(e){return _.QCELL.log("err",t,e.message),!1}},_.QCELL.BasicQCELL.prototype.findRow=function(t,e,r){var i=this._getKeyOfCol(r);return""===i||void 0===i?-1:this._findRowSub(t,e,i)},_.QCELL.BasicQCELL.prototype.findRowEx=function(t,e,r){return""===r||void 0===r?-1:this._findRowSub(t,e,r)},_.QCELL.BasicQCELL.prototype.swapData=function(t,e){var r=this.attr("currentdata"),i=this.getRows("header");if(t-i<0||e-i<0)return!1;if(t-i>=r.length||e-i>=r.length)return!1;var o=_._.clone(r[t-i]),a=_._.clone(r[e-i]);return r[t-i]=a,r[e-i]=o,this.refresh(),!0},_.QCELL.BasicQCELL.prototype.setFrozenDataEx=function(t,e){var r=this.attr("id")+".setFrozenDataEx",i=!0,o=this.getRows()-1;if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof o&&"string"==typeof t){if(o>this.attr("rows")||o<this.attr("headerrows"))return!1;var a=this.getRowData(o);if(!0!==this.attr("makefrozenbottomdata"))return!1;if(!0!==a.rt_qc_fbrd)return!1;if("rt_qc_seq"===t){for(var s=this.attr("rowheaders"),n=0;n<s.length;n++)if("sequence"===s[n]){var l=this._getCellDOM(o,n);null!==l&&(l.textContent=e)}}else{var c=this.getColsOfKey(t);if(c.length>0){var h;for(h=0;h<c.length;h++)i=this.setCellData(o,c[h],e);return i}}if(void 0!==a)return a[t]=e,this.setRowData(o,a),!0}else _.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE);return!1},_.QCELL.BasicQCELL.prototype.getFrozenDataEx=function(t){var e=this.attr("id")+".getFrozenDataEx",r=this.getRows()-1;if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{var i=this.getRowData(r);if(!0!==this.attr("makefrozenbottomdata"))return;if(!0!==i.rt_qc_fbrd)return;if("rt_qc_seq"===t)for(var o=this.attr("rowheaders"),a=0;a<o.length;a++)if("sequence"===o[a])return this._getRowData(r)[t];if("number"==typeof r&&"string"==typeof t)return r<this.attr("rows")&&r>=this.attr("headerrows")?this._getRowData(r)[t]:void 0;_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.getFrozenCellStyleEx=function(t){var e=this.attr("id")+".getCellStyle";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{var r=this.getRows()-1,i=this.getRowData(r);if(!0!==this.attr("makefrozenbottomdata"))return{};if(!0!==i.rt_qc_fbrd)return{};if("number"==typeof r&&"number"==typeof t)return r<this.attr("rows")&&r>=0&&t<this.attr("cols")&&t>=0?this._getCellStyle(r,t):{};_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return{}},_.QCELL.BasicQCELL.prototype.getUseEmptyMessage=function(){return!1!==this.attr("useemptymessage")},_.QCELL.BasicQCELL.prototype.setUseEmptyMessage=function(t){this.getProperties().useemptymessage=!0===t,this.attr("useemptymessage",t,"boolean")},_.QCELL.BasicQCELL.prototype.swapData=function(t,e){if(_._.isString(e))if("first"===e)e=this.getRows("header");else{if("last"!==e)return!1;e=!0===this.attr("makefrozenbottomdata")?this.getRows()-2:this.getRows()-1}if(t===e)return!1;var r,i,o=this.getRowData(t),a=this.getRowData(e);if(void 0===o||void 0===a)return!1;if(this.setRowData(t,a),this.setRowData(e,o),this.attr("useall")||this.attr("usetreeall"))for(r=this.getCols("header");r<this.getCols();r++){var s=this._getCellDOM(t,r);null!=s&&(i=void 0===(i=this.getCellData(t,r))?"":i,this._setAriaLabel(s,t,r,i,!1));var n=this._getCellDOM(e,r);null!=n&&(i=void 0===(i=this.getCellData(e,r))?"":i,this._setAriaLabel(n,e,r,i,!1))}return!0},_.QCELL.BasicQCELL.prototype.moveData=function(t,e){if(_._.isString(e))if("first"===e)e=this.getRows("header");else{if("last"!==e)return!1;e=!0===this.attr("makefrozenbottomdata")?this.getRows()-1:this.getRows()}if(t===e)return!1;if(t<this.attr("headerrows")||e<this.attr("headerrows"))return!1;var r=this.attr("currentdata"),i=-1,o=-1;-1!==this.getIdx("row","focus")&&-1!==this.getIdx("col","focus")&&(i=this.getIdx("row","focus"),o=this.getIdx("col","focus"),r[i-this.attr("headerrows")]._rt_qc_focus={row:i,col:o});var a=this.getRowData(t);if(void 0===a)return!1;var s=[];if(s.push(a),(t-=this.attr("headerrows"))>(e-=this.attr("headerrows"))?(r.splice(t,1),r.RT_insertArray(e,s)):(r.RT_insertArray(e+1,s),r.splice(t,1)),e>r.length)return!1;if(e<0)return!1;var n=this.attr("vsinfo"),l=e+this.attr("headerrows");n.bVScroll?n.nTopRow<=l&&l<=n.nBottomRow?this._updateNRs():this._scrollTop(l):this._updateNRs();for(var c=-1,h=-1,d=0;d<r.length;d++)if(void 0!==r[d]._rt_qc_focus){c=d+this.attr("headerrows"),h=r[d]._rt_qc_focus.col,delete r[d]._rt_qc_focus;break}if(-1!==c&&-1!==h){var u=this;setTimeout((function(){switch(u._focusCell(c,h),u.attr("selectmode")){case"row":case"rows":u._clearSelection(),u._selectRow(c);break;case"col":case"cols":u._clearSelection(),u._selectCol(h);break;default:u._clearSelection(),u._selectCell(c,h)}}),0)}return!0},_.QCELL.BasicQCELL.prototype.resetCustomPanel=function(t){var e=_.QCELL.def,r=this.attr("id"),i="#"+e.areaname.SHEETPANEL+"-span-"+r;return!1!==this.attr("bottompanel")&&(null!==this.attr("bottompanelcallback")&&_._.isFunction(this.attr("bottompanelcallback"))&&(t=this.attr("bottompanelcallback").call(this,-1,-1,t)),_.$(i).html(t),!0)},_.QCELL.BasicQCELL.prototype.getCustomPanel=function(){var t=_.QCELL.def,e=this.attr("id"),r="#"+t.areaname.SHEETPANEL+"-span-"+e,i=_.$(r).text();if(!1!==this.attr("bottompanel"))return null!==this.attr("bottompanelcallback")&&_._.isFunction(this.attr("bottompanelcallback"))&&(i=this.attr("bottompanelcallback").call(this,-1,-1,"")),i},_.QCELL.BasicQCELL.prototype.lookup=function(t,e){var r,i={},o=this.attr("data").input;if(e=void 0===e?"or":e,!_._.isArray(t))return!1;r=t.length;for(var a=0;a<t.length;a++){var s=t[a];if(void 0===s.key||void 0===s.condition)return!1;for(var n=s.key,l=s.condition,c=0;c<o.length;c++)if(void 0!==o[c][n]&&_._.isString(o[c][n]))try{void 0!==o[c][n]&&_._.isString(o[c][n])&&-1!==o[c][n].indexOf(l)&&(void 0===i["k_"+c]?i["k_"+c]=1:i["k_"+c]=i["k_"+c]+1)}catch(t){continue}}var h=[],d=[];for(var u in i){var p=i[u],g=-1;("or"===e||p===r)&&(g=Number(u.replace("k_",""))),-1!==g&&d.push(g)}d.sort();for(var f=0;f<d.length;f++)h.push(_._.clone(o[d[f]]));return this._setCurrentData(h),!0},_.QCELL.BasicQCELL.prototype.resetLookup=function(){var t=this.attr("id")+".resetSearch";try{this._setCurrentData(this.attr("data").input)}catch(e){return _.QCELL.log("err",t,e.message),!1}return!0},_.QCELL.BasicQCELL.prototype.sort=function(t){var e=this.attr("id")+".sort";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(_._.isArray(t))return!0!==this.attr("isSorting")&&this._sort(t);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.sortEx=function(t){var e=this.attr("id")+".sortEx";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(!0===this.attr("isSorting"))return!1;if(_._.isArray(t))return this._sort(t);_.QCELL.log("log",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.bind=function(t,e,r){var i=this.attr("id")+".bind";if(arguments.length<2)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t&&_._.isFunction(e))return this._bind(t,e,!0,r);_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.unbind=function(t){var e=this.attr("id")+".unbind";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._unbind(t,!0);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getUserEventInfo=function(){return _._.clone(this.attr("usereventinfo"))},_.QCELL.BasicQCELL.prototype.trigger=function(t){var e=this.attr("id")+".trigger";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("string"==typeof t)return this._trigger(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.clickCell=function(t,e){var r=this.attr("id")+".clickCell";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._clickCell(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.dblClickCell=function(t,e){var r=this.attr("id")+".dblClickCell";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e)return t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0&&this._dblClickCell(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.focusCell=function(t,e,r){var i=this,o=this.attr("id")+".focusCell";if(r=void 0===r?200:r,arguments.length<2)_.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){if(!(t<this.attr("rows")&&t>=0&&e<this.attr("cols")&&e>=0))return!1;var a=this._getCellDOM(t,e);return _._.isElement(a)&&_.util.hasClass(a,_.QCELL.def.css.CELL)||(this.scrollTop(t),this.scrollLeft(e)),setTimeout((function(){i.clickCell(t,e)}),r),!0}_.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}},_.QCELL.BasicQCELL.prototype.excelDownload=function(t){var e=this.attr("id")+".excelDownload",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?(this._excelDownload(t),r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.excelUpload=function(t){var e=this.attr("id")+".excelUpload",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?(this._excelUpload(t),r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.excelExportInfo=function(t){var e=this.attr("id")+".excelExportInfo",r={};return 0===arguments.length?r=this._exportCellInfo():arguments.length>1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?r=this._exportCellInfo(t):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.htmlDownload=function(t){var e=this.attr("id")+".htmlDownload",r=!1;return arguments.length<1?(_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),r=!1):"object"===n(t)?r=this._htmlDownload(t):(_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r=!1),r},_.QCELL.BasicQCELL.prototype.htmlExport=function(t){var e=this.attr("id")+".htmlExport",r=!1;return arguments.length<1?(_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),r=!1):"object"===n(t)?(t.export=!0,t.filename="temp",r=this._htmlDownload(t)):(_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r=!1),r},_.QCELL.BasicQCELL.prototype.pdfDownload=function(t){var e=this.attr("id")+".pdfDownload",r=!1;return arguments.length<1?(_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),r=!1):"object"===n(t)?r=this._pdfDownload(t):(_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r=!1),r},_.QCELL.BasicQCELL.prototype.txtDownload=function(t){var e=this.attr("id")+".txtDownload",r=!1;return arguments.length<1?(_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),r=!1):"object"===n(t)?r=this._txtDownload(t):(_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r=!1),r},_.QCELL.BasicQCELL.prototype.excelDownloadURLHuge=function(t){var e=this.attr("id")+".excelDownloadURLHuge",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?(this._excelDownloadURLHuge(t),r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.exportCellInfoURLHuge=function(t){var e=this.attr("id")+".excelExportInfoURLHuge",r={};return 0===arguments.length?r=this._exportCellInfo():arguments.length>1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"object"===n(t)?r=this._exportCellInfoURLHuge(t):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.merge=function(t,e){var r=null,i=this.attr("merge");switch(e){case"row":case"col":case"rowandcol":case"colandrow":case"group":case"none":break;default:return!1}if("header"===t)r=this.attr("merge_header_info"),this._clearMergeHeader(),r&&r.RT_clear(),i.header=e,this._createHeaderMergeInfo(),this._updateMergeHeader(),this._refresh();else{if("data"!==t)return!1;r=this.attr("merge_data_info"),this._clearMergeData(),r&&r.RT_clear(),i.data=e,this._createDataMergeInfo(),this._updateMergeData(),this._refresh()}return!0},_.QCELL.BasicQCELL.prototype.setPageIndex=function(t){var e=this.attr("id")+".setPageIndex",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):_._.isNumber(t)?(this._movePage(t),r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.getPageIndex=function(){return _._.clone(this.attr("paginationinfo").pageindex)},_.QCELL.BasicQCELL.prototype.setPageUnit=function(t){var e=this.attr("id")+".setPageUnit",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):_._.isNumber(t)?(this._movePage(this.attr("paginationinfo").pageindex,t),r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.getPageUnit=function(){return _._.clone(this.attr("paginationinfo").pageunit)},_.QCELL.BasicQCELL.prototype.setPaginationParam=function(t){var e=this.attr("id")+".setPaginationParam",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):_._.isObject(t)&&!1===_._.isArray(t)?(this._setPaginationParam(t),r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.getPaginationParam=function(){return _._.clone(this.attr("paginationinfo").param)},_.QCELL.BasicQCELL.prototype.setPaginationDatacount=function(t){var e=this.attr("id")+".setPaginationDatacount",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===_._.isNumber(t)?(this.attr("paginationinfo").datacount=t,r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.getPaginationDatacount=function(){return _._.clone(this.attr("paginationinfo").datacount)},_.QCELL.BasicQCELL.prototype.setPaginationUrl=function(t){var e=this.attr("id")+".setPaginationUrl",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===_._.isString(t)?(this.attr("paginationinfo").url=t,r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.getPaginationUrl=function(){return _._.clone(this.attr("paginationinfo").url)},_.QCELL.BasicQCELL.prototype.setPaginationLoadonce=function(t){var e=this.attr("id")+".setPaginationLoadonce",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!0===_._.isBoolean(t)?(this.attr("paginationinfo").loadonce=t,r=!0):_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),r},_.QCELL.BasicQCELL.prototype.getPaginationLoadonce=function(){return _._.clone(this.attr("paginationinfo").loadonce)},_.QCELL.BasicQCELL.prototype.setPaginationInitSort=function(){return this.attr("paginationinfo").initsort=!0,!0},_.QCELL.BasicQCELL.prototype.getRowheaderChecked=function(t){var e=this.attr("id")+".getRowheaderChecked",r=[];if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(_._.isNumber(t)){var i=this.attr("rowheaders")[t];if("checkbox"===i||"radio"===i){for(var o,a=void 0!==this.attr("staticrowsinfo")?this.attr("staticrowsinfo"):[],s=a.length,n=!1,l=this.attr("headerrows"),c=this.attr("rows");l<c;l++)if(!0===this._getRowheaderData(l,t)){if(void 0!==this._getQCellCol(t).attr("cellinvisible")[l]&&!0===this._getQCellCol(t).attr("cellinvisible")[l])continue;if(s>0)for(n=!1,o=0;o<s;o++)if(a[o].nRow===l){n=!0;break}if(n)continue;r.push(l)}}else _.QCELL.log("err",e,'This Rowheader Type is not "Checkbox".')}else _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return r},_.QCELL.BasicQCELL.prototype.setRowheaderChecked=function(t,e,r){var i=this.attr("id")+".setRowheaderChecked",o=!1;if(arguments.length<3)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else if(_._.isNumber(e)){var a=this.attr("rowheaders")[e];if("checkbox"===a||"radio"===a)if(_._.isNumber(t)&&_._.isBoolean(r)){var s=this._getCellDOM(t,e);if(this._setRowheaderData(t,e,r),null!==s){var n=s.childNodes[0];if(void 0!==n&&(n.checked=r),t<this.attr("headerrows"))for(var l=this.attr("headerrows");l<this.getRows();l++){var c=this._getCellDOM(l,e);if(null!==c){var h=c.childNodes[0];void 0!==h&&(h.checked=r)}}}else if("radio"===a)for(var d=this.getRows("header");d<this.getRows();d++){var u=this._getCellDOM(d,e);if(null!==u){var p=u.childNodes[0];void 0!==p&&(p.checked=this._getRowheaderData(d,e))}}o=!0}else _.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE);else _.QCELL.log("err",i,'This Rowheader Type is not "Checkbox".')}else _.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE);return o},_.QCELL.BasicQCELL.prototype.setRowheaderCheckedArr=function(t,e){var r=this.attr("id")+".setRowheaderChecked",i=!1;if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE);else if(_._.isArray(t)&&_._.isNumber(e)){for(var o=0;o<t.length;o++){var a=this._getCellDOM(t[o],e);if(this._setRowheaderData(t[o],e,!0),null!=a)a.childNodes[0].checked=!0}i=!0}else _.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE);return i},_.QCELL.BasicQCELL.prototype.setGroup=function(t){var e=this.attr("id")+".setGroup";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(_._.isObject(t)&&!1===_._.isArray(t))return this._setGroup(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.clearGroup=function(){return this._clearGroup()},_.QCELL.BasicQCELL.prototype.setGrandTotal=function(t){var e=this.attr("id")+".setGrandTotal";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(_._.isObject(t)&&!1===_._.isArray(t))return this._setGrandTotal(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.clearGrandTotal=function(){return this._clearGrandTotal()},_.QCELL.BasicQCELL.prototype.setTree=function(t){var e=this.attr("id")+".setTree";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(_._.isObject(t)&&!1===_._.isArray(t))return this._setTree(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.insertTreeNode=function(t,e,r){var i=this.attr("id")+".insertTreeNode";if(arguments.length<1)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(_._.isObject(e)&&_._.isArray(t))return this._insertTreeNode(t,e,r);_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.removeTreeNode=function(t){var e=this.attr("id")+".removeTreeNode";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(_._.isArray(t))return this._removeTreeNode(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.updateTreeNode=function(t,e){var r=this.attr("id")+".updateTreeNode";if(arguments.length<1)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(_._.isArray(t))return this._updateTreeNode(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.moveTreeNode=function(t,e){var r=this.attr("id")+".updateTreeNode";if(arguments.length<1)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(_._.isArray(t))return this._moveTreeNode(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.moveTreeNodeEx=function(t,e,r){var i=this.attr("id")+".moveTreeNodeEx";if(arguments.length<1)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(_._.isArray(t)&&_._.isArray(e))return this._moveTreeNodeEx(t,e,r);_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.getTreeState=function(t){var e=this.attr("id")+".getTreeState";return _._.isString(t)||void 0===t?this._getTreeState(t):(_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),"")},_.QCELL.BasicQCELL.prototype.clearTreeState=function(){return this._clearTreeState()},_.QCELL.BasicQCELL.prototype.setHierachy=function(t){var e=this.attr("id")+".setHierarchy";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(_._.isObject(t)&&!1===_._.isArray(t))return this._setHierachy(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.setDisableContextmenu=function(t){var e=this.attr("id")+".setDisableContextmenu",r=!0;if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(_._.isArray(t)){for(var i=0;i<t.length;i++)!1===_._.isString(t[i])&&(r=!1);if(r)return this._setDisableContextmenu(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}else _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return!1},_.QCELL.BasicQCELL.prototype.setAbleContextmenu=function(t){var e=this.attr("id")+".setAbleContextmenu",r=!0;if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if(_._.isArray(t)){for(var i=0;i<t.length;i++)!1===_._.isString(t[i])&&(r=!1);if(r)return this._setAbleContextmenu(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}else _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return!1};_.QCELL.BasicQCELL.prototype.setContextmenu=function(t){var e=this.attr("id")+".setContextmenu",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):!1===_._.isObject(t)||_._.isArray(t)?_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):(this._initContextMenu(),r=this._setContextMenu(t)),r},_.QCELL.BasicQCELL.prototype.getContextmenuId=function(){return this._getContextmenuId()},_.QCELL.BasicQCELL.prototype.filter=function(t,e){var r=this.attr("id")+".filter";if(arguments.length<1)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else if(_._.isArray(e)||_._.isObject(e)){if(_._.isNumber(t))return this._filter(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}else _.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE);return!1},_.QCELL.BasicQCELL.prototype.filterEx=function(t,e){var r=this.attr("id")+".filterEx";if(arguments.length<1)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else if(_._.isArray(e)||_._.isObject(e)){if(_._.isNumber(t)||_._.isString(t))return this._filter(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}else _.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE);return!1},_.QCELL.BasicQCELL.prototype.resetFilter=function(t){var e=this.attr("id")+".resetFilter";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(_._.isNumber(t))return this._resetFilter(t);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.BasicQCELL.prototype.resetFilterEx=function(t){var e=this.attr("id")+".resetFilterEx";return _._.isNumber(t)||_._.isString(t)||void 0===t?this._resetFilter(t):(_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),!1)},_.QCELL.config=_._.extend(_._.clone(_.QCELL.config),{width:"100%",height:"100%",moduletype:"basic",rowheaders:[],frozenrows:0,frozenbottomrows:0,frozenbottomstyle:"",makefrozenbottomdata:!1,frozencols:0,highlightrepeat:0,rowheight:{header:40,data:40,footer:40},data:{type:"object",input:[]},events:{},selectmode:"cells",merge:{header:"none",data:"none"},copy:!1,paste:!1,pagination:{},group:{type:"normal",expand:[],showpanel:!1,header:{},footer:{}},emptymessage:"",contextmenu:{header:{},data:{}},useGroupUI:!1,original:!1,bottompanel:!1,bottompanelheight:40,bottompanelstyle:"excel",useheadersort:!1,useheadercolmove:!1,excelexportwithformat:!1,usetooltipinellipsis:!1,policy:"dynamic",rowheaderssort:[],useexcelstylepanel:!0,disabletooltip:!1}),_.QCELL.isForceDynamic=!1,_.QCELL.def.msg=_._.extend(_._.clone(_.QCELL.def.msg),{kr:{err:{PARAM_COUNT:"매개변수의 개수를 확인하세요.",PARAM_TYPE:"매개변수의 데이터타입을 확인하세요.",FILE_EXT_NOT_XLSX:"엑셀 파일이 아니거나 파일의 확장자가 'xlsx'가 아닙니다. 확인하여 주십시오."}},en:{err:{PARAM_COUNT:"Please check parameter's count.",PARAM_TYPE:"Please check parameter's type.",FILE_EXT_NOT_XLSX:"Please check, This File is not Excel File or File`s extension is not 'xlsx'."}}}),_.QCELL.BasicQCELL.create=function(t){return _.QCELL.hasInstance(t.id)&&_.QCELL.deleteInstance(t.id),this._create(t)},_.QCELL.BasicQCELL._create=function(t){return this._checkRequiredProps(t)&&this._checkValidationOfProps(t)?new this(this._adjustProps(t)):null},_.QCELL.BasicQCELL._checkRequiredProps=function(t){var e=!0;if(_._.isObject(t)&&!1===_._.isArray(t)){for(var r=["id","parentid","columns"],i=0,o=r.length;i<o;i++){var a=r[i];if(void 0===t[a]){_.QCELL.log("err","QCELL.create",'Please check "'+a+'" property.'),e=!1;break}}void 0===t.data&&(t.data={input:[]}),r.RT_clear(),r=null}else _.QCELL.log("err","QCELL.create",'Please check first parameter\'s type is "object".'),e=!1;return e},_.QCELL.BasicQCELL._checkValidationOfProps=function(t){var e=!0;return _.$.each(t,(function(t,r){return e=_.QCELL.BasicQCELL._checkValidationOfProp(t,r)})),e},_.QCELL.BasicQCELL._checkValidationOfProp=function(t,e){var r=!0,i=!0,o="";switch(t){case"id":case"onloadurl":o="string",!1===_._.isString(e)&&(r=!1);break;case"parentid":if(o="string",!1===_._.isString(e))r=!1;else{var a=document.getElementById(e);_._.isElement(a)?_.$(a).is(":visible"):(_.QCELL.log("err","QCELL.create",'Please check that "'+t+'" property is "element".'),r=!1,i=!1)}break;case"width":case"height":o="string",!1===_._.isString(e)?!1===_._.isNumber(e)&&(r=!1):e.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0&&(_.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "number" or "px" or "%" as value.'),r=!1,i=!1);break;case"rowheader":o="string",!1===_._.isString(e)?r=!1:"none"!==e&&"sequence"!==e&&"reverse"!==e&&"checkbox"!==e&&"state"!==e&&"custom"!==e&&"radio"!==e&&(_.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "sequence" or "reverse" or "checkbox" or "state" or "custom" as value.'),r=!1,i=!1);break;case"selectmode":if(o="string",!1===_._.isString(e))r=!1;else switch(e){case"cells":case"cell":case"rows":case"row":case"cols":case"col":case"group":break;default:_.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "free" or "row" or "rows" or "col" or "cols" or "group" as value.'),r=!1,i=!1}break;case"frozenrows":case"frozenbottomrows":case"frozencols":case"highlightrepeat":!1===_._.isNumber(e)&&(o="number",r=!1);break;case"copy":case"paste":case"useGroupUI":case"original":o="boolean",!1===_._.isBoolean(e)&&(r=!1);break;case"columns":o="array",!1===_._.isArray(e)&&(r=!1);break;case"rowheaders":o="array",!1===_._.isArray(e)?r=!1:!1===_._.every(e,(function(t){return"sequence"===t||"reverse"===t||"checkbox"===t||"radio"===t||"state"===t||"custom"===t}))&&(_.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. It can use "sequence" or "reverse" or "checkbox" or "radio" or "state" or "custom" .'),r=!1,i=!1);break;case"data":o="object",!1===_._.isObject(e)||_._.isArray(e)?r=!1:!1===_._.every(_._.keys(e),(function(t){return"type"===t||"input"===t}))?(_.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "type" or "input" as key.'),r=!1,i=!1):_.$.each(e,(function(e,o){if("type"===e){if(!1===_._.isString(o))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else{if("input"!==e)return;if(!1===_._.isArray(o))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),r=!1,i=!1,!1}}));break;case"rowheight":o="object",!1===_._.isObject(e)||_._.isArray(e)?r=!1:!1===_._.every(_._.keys(e),(function(t){return"header"===t||"data"===t||"footer"===t}))?(_.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "header" or "data" or "footer" as key.'),r=!1,i=!1):_.$.each(e,(function(e,o){if(!1===_._.isNumber(o))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "number".'),r=!1,i=!1,!1}));break;case"events":if(o="object",!1===_._.isObject(e)||_._.isArray(e))r=!1;else if(!1===_._.every(e,(function(t,e){return"string"==typeof e&&_._.isFunction(t)})))return _.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property\'s value is "Function".'),r=!1,i=!1,!1;break;case"group":o="object",!1===_._.isObject(e)||_._.isArray(e)?r=!1:_.$.each(e,(function(e,o){if("showpanel"===e){if(!1===_._.isBoolean(o))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1}else if("type"===e){if(!1===_._.isString(o))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else{if("expand"!==e&&"header"!==e&&"footer"!==e)return;if(!1===_._.isObject(o)||_._.isArray(o))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "object".'),r=!1,i=!1,!1}}));break;case"contextmenu":o="object",!1===_._.isObject(e)||_._.isArray(e)?r=!1:_.$.each(e,(function(e,o){if("id"===e){if(!1===_._.isString(o))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else if("contents"===e){if(!1===_._.isArray(o))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),r=!1,i=!1,!1;_._.each(o,(function(o){_.$.each(o,(function(o,a){if("header"===o){if(!1===_._.isObject(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+o+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1;_.$.each(a,(function(o,a){if("divine"===o&&!1===_._.isBoolean(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1;if("disabled"===o){if(!1===_._.isBoolean(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1}else if("icon"===o){if(!1===_._.isString(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else if("label"===o){if(!1===_._.isString(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else if("items"===o){if(!1===_._.isArray(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+'" property. This property\'s type is "array".'),r=!1,i=!1,!1}else if("callback"===o&&!1===_._.isFunction(a)&&(!1===_._.isString(a)||!1===_._.isFunction(window[a])))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+'" property. This property\'s type is "function".'),r=!1,i=!1,!1}))}else if("data"===o){if(!1===_._.isObject(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+o+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1;_.$.each(a,(function(o,a){"base"===o?_.$.each(a,(function(a,s){if("divine"===a&&!1===_._.isBoolean(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1;if("disabled"===a){if(!1===_._.isBoolean(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1}else if("icon"===a){if(!1===_._.isString(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else if("label"===a){if(!1===_._.isString(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else if("items"===a){if(!1===_._.isArray(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "array".'),r=!1,i=!1,!1}else if("callback"===a&&!1===_._.isFunction(s)&&(!1===_._.isString(s)||!1===_._.isFunction(window[s])))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "function".'),r=!1,i=!1,!1})):"except"===o&&_.$.each(a,(function(a,s){if("col"===a&&!1===_._.isNumber(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "number".'),r=!1,i=!1,!1;if("divine"===a&&!1===_._.isBoolean(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1;if("disabled"===a){if(!1===_._.isBoolean(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1}else if("icon"===a){if(!1===_._.isString(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else if("label"===a){if(!1===_._.isString(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "string".'),r=!1,i=!1,!1}else if("items"===a){if(!1===_._.isArray(s))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "array".'),r=!1,i=!1,!1}else if("callback"===a&&!1===_._.isFunction(s)&&(!1===_._.isString(s)||!1===_._.isFunction(window[s])))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+"."+o+"."+a+'" property. This property\'s type is "function".'),r=!1,i=!1,!1}))}))}}))}))}}));break;case"pagination":o="object",_._.isArray(e)||!1===_._.isObject(e)?r=!1:_.$.each(e,(function(e,a){switch(e){case"unitlist":if(o="array",!1===_._.isArray(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "array".'),r=!1,i=!1,!1;break;case"param":if(o="object",!1===_._.isObject(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "object".'),r=!1,i=!1,!1;break;case"pageunit":case"pageIndex":case"pagecount":if(o="number",!1===_._.isNumber(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "number".'),r=!1,i=!1,!1;break;case"url":if(o="string",!1===_._.isString(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),r=!1,i=!1,!1;break;case"mode":if(o="string",!1===_._.isString(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "string".'),r=!1,i=!1,!1;if(!1==("simple"===a||"extend"===a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+'" property. This property can use "simple" or "extend".'),r=!1,i=!1,!1;break;case"load":case"extendmove":case"loadonce":case"totalsort":case"initsort":if(o="boolean",!1===_._.isBoolean(a))return _.QCELL.log("err","QCELL.create",'Please check "'+t+"."+e+'" property. This property\'s type is "boolean".'),r=!1,i=!1,!1}}))}return!1===r&&i&&_.QCELL.log("err","QCELL.create",'Please check "'+t+'" property\'s type is "'+o+'".'),r},_.QCELL.BasicQCELL._adjustProps=function(t){var e=_._.mapValues(t,(function(t,e){return _.QCELL.BasicQCELL._adjustProp(e,t)}));return void 0!==e.rowheader&&"none"!==e.rowheader&&(e.rowheaders=[e.rowheader],delete e.rowheader),_._.assign(_._.clone(_.QCELL.config),e)},_.QCELL.BasicQCELL._adjustProp=function(t,e){var r=this._getDefaultValueOfProp(t);if(void 0!==e)switch(t){case"width":case"height":r=_._.isNumber(e)||_._.isString(e)&&-1===e.indexOf("%")&&-1===e.indexOf("px")?e+"px":e;break;case"data":r={type:void 0===e.type||"object"!==e.type&&"array"!==e.type?r.type:e.type,input:void 0===e.input?r.input:e.input};break;case"rowheight":r={header:void 0===e.header?r.header:e.header,data:void 0===e.data?r.data:e.data,footer:void 0===e.footer?r.footer:e.footer};break;case"group":r={showpanel:void 0===e.showpanel?r.showpanel:e.showpanel,type:void 0===e.type||"normal"!==e.type&&"tree"!==e.type?r.type:e.type,expand:void 0===e.expand?r.expand:e.expand,header:void 0===e.header?r.header:e.header,footer:void 0===e.footer?r.footer:e.footer};break;default:r=e}return r},_.QCELL.BasicQCELL._getDefaultValueOfProp=function(t){var e=_.QCELL.config[t];return _._.isArray(e)||_._.isObject(e)&&!1===_._.isArray(e)?_._.clone(e):e},_.QCELL.def.cssprefix="rt-qc-",_.QCELL.def.cellstyle="cell-style",_.QCELL.def.textstyle="text-style",_.QCELL.def.wrapstyle="wrap-style",_.QCELL.def.singlestyle="-style",_.QCELL.def.type=_._.extend(_.QCELL.def.type,{STATIC:"static",INPUT:"input",INPUTBUTTON:"inputbutton",HTML:"html",CHART:"chart",CHECKBOX:"checkbox",SELECTMENU:"selectmenu",TEXTAREA:"textarea",DATEPICKER:"datepicker",IMAGE:"image",RADIO:"radio",MULTICHECKBOX:"multicheckbox",NUMBER:"number",SLIDER:"slider",BUTTON:"button",EDITOR:"editor",INPUT_DATEPICKER:"inputdatepicker",INVISIBLE:"invisible"}),_.QCELL.def.rowgroup=_._.extend(_.QCELL.def.rowgroup,{}),_.QCELL.def.css=_._.extend(_.QCELL.def.css,{TYPE_STATIC_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.STATIC+"-"+_.QCELL.def.cellstyle,TYPE_INPUT_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.INPUT+"-"+_.QCELL.def.cellstyle,TYPE_INPUT_EDIT_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.INPUT+"-edit-"+_.QCELL.def.cellstyle,TYPE_HTML_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.HTML+"-"+_.QCELL.def.cellstyle,TYPE_CHECKBOX_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.CHECKBOX+"-"+_.QCELL.def.cellstyle,TYPE_RADIO_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.RADIO+"-"+_.QCELL.def.cellstyle,TYPE_SELECTMENU_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.SELECTMENU+"-"+_.QCELL.def.cellstyle,TYPE_TEXTAREA_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.TEXTAREA+"-"+_.QCELL.def.cellstyle,TYPE_DATEPICKER_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.DATEPICKER+"-"+_.QCELL.def.cellstyle,TYPE_IMAGE_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.IMAGE+"-"+_.QCELL.def.cellstyle,TYPE_MULTICHECKBOX_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.MULTICHECKBOX+"-"+_.QCELL.def.cellstyle,TYPE_NUMBER_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.NUMBER+"-"+_.QCELL.def.cellstyle,TYPE_SLIDER_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.SLIDER+"-"+_.QCELL.def.cellstyle,TYPE_BUTTON_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.BUTTON+"-"+_.QCELL.def.cellstyle,TYPE_INPUT_TEXT_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.INPUT+"-"+_.QCELL.def.textstyle,TYPE_TEXTAREA_TEXT_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.TEXTAREA+"-"+_.QCELL.def.textstyle,TYPE_NUMBER_TEXT_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.NUMBER+"-"+_.QCELL.def.textstyle,TYPE_DATEPICKER_WRAP_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.DATEPICKER+"-"+_.QCELL.def.wrapstyle,TYPE_SELECTMENU_WRAP_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.SELECTMENU+"-"+_.QCELL.def.wrapstyle,TYPE_CHECKBOX_WRAP_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.CHECKBOX+"-"+_.QCELL.def.wrapstyle,TYPE_MULTICHECKBOX_WRAP_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.MULTICHECKBOX+"-"+_.QCELL.def.wrapstyle,TYPE_HTML_WRAP_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.HTML+"-"+_.QCELL.def.wrapstyle,TYPE_SLIDER_WRAP_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.SLIDER+"-"+_.QCELL.def.wrapstyle,TYPE_BUTTON_WRAP_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.BUTTON+"-"+_.QCELL.def.wrapstyle,TYPE_EDITOR_WARP_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.EDITOR+"-"+_.QCELL.def.wrapstyle,TYPE_STATIC_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.STATIC+"-type-cell",TYPE_INPUT_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.INPUT+"-type-cell",TYPE_INPUTBUTTON_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.INPUTBUTTON+"-type-cell",TYPE_HTML_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.HTML+"-type-cell",TYPE_CHECKBOX_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.CHECKBOX+"-type-cell",TYPE_RADIO_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.RADIO+"-type-cell",TYPE_SELECTMENU_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.SELECTMENU+"-type-cell",TYPE_TEXTAREA_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.TEXTAREA+"-type-cell",TYPE_DATEPICKER_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.DATEPICKER+"-type-cell",TYPE_INPUTDATEPICKER_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.INPUT_DATEPICKER+"-type-cell",TYPE_IMAGE_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.IMAGE+"-type-cell",TYPE_MULTICHECKBOX_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.MULTICHECKBOX+"-type-cell",TYPE_NUMBER_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.NUMBER+"-type-cell",TYPE_SLIDER_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.SLIDER+"-type-cell",TYPE_BUTTON_CELL:_.QCELL.def.cssprefix+_.QCELL.def.type.BUTTON+"-type-cell",TYPE_SLIDER_SINGLE_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.SLIDER+_.QCELL.def.singlestyle,TYPE_SLIDER_RESULT_SINGLE_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.SLIDER+"-result"+_.QCELL.def.singlestyle,TYPE_BUTTON_SINGLE_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.BUTTON+_.QCELL.def.singlestyle,TYPE_BUTTON_LABEL_SINGLE_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.BUTTON+"-label"+_.QCELL.def.singlestyle,TYPE_EDITOR_SINGLE_STYLE:_.QCELL.def.csspx+_.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.DATEPICKER+_.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_DATE_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.DATEPICKER+"-date"+_.QCELL.def.singlestyle,TYPE_DATEPICKER_SINGLE_IMG_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.DATEPICKER+"-img"+_.QCELL.def.singlestyle,TYPE_INVISIBLE_SINGLE_STYLE:_.QCELL.def.cssprefix+_.QCELL.def.type.INVISIBLE+_.QCELL.def.singlestyle,TYPE_DATEPICKER:_.QCELL.def.cssprefix+_.QCELL.def.type.DATEPICKER+"-type",TYPE_INPUT_DATEPICKER:_.QCELL.def.cssprefix+_.QCELL.def.type.INPUT_DATEPICKER+"-type"}),_.QCELL.module="normal",_.QCELL.NormalQCELL=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.BasicQCELL.call(this,t)},_.util.inherit(_.QCELL.NormalQCELL,_.QCELL.BasicQCELL),_.QCELL.NormalQCELL.prototype._initMOL=function(){_.QCELL.BasicQCELL.prototype._initMOL.call(this),_.util.addMethod(this,"_dataCellValue",(function(t,e,r){try{var i=this._getCellDOM(t,e),o="rt_qcell_initdata",a=!1;if(!1!==this.attr("useinitdata")?void 0===this.attr("currentdata")[t-this.attr("headerrows")][o]&&(this.attr("currentdata")[t-this.attr("headerrows")][o]=_._.clone(this.attr("currentdata")[t-this.attr("headerrows")])):this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]!==r&&(a=!0),this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=r,_._.isElement(i))if(void 0===r)_.util.textContent(i,""),this._setAriaLabel(i,t,e,"");else if(this._isBottomPanel(i))"checkbox"!==this._getColType(e)||!0!==r&&!1!==r||(r=""),void 0===r?_.util.textContent(i,""):_.util.textContent(i,r),this._setAriaLabel(i,t,e,r);else{var s=i.getElementsByTagName("input")[0];switch(this._getColType(e)){case"selectmenu":var n={},l=!1;this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=r,_.$.each(this._getColElement(e).attr("input"),(function(t,e){_.$.each(e,(function(t,i){return"value"===t&&r===i?(n=e,!1):"label"===t&&r===i?(n=e,l=!0,!1):void 0}))})),!0===l&&void 0!==n&&void 0!==n.value&&(this.attr("currentdata")[t-this.attr("headerrows")][this._getKeyOfCol(e)]=n.value),void 0!==n&&void 0!==n.label?_.util.textContent(i,n.label):""===r&&_.util.textContent(i,""),this._setAriaLabelEx(i,t,e,!1);break;case"checkbox":var c=this._getColElement(e).attr("checkedvalue"),h=this._getColElement(e).attr("uncheckedvalue");if(""!==r&&null!=r||(r=h),void 0===s&&(this._getColElement(e)._show(i,t,e),s=i.getElementsByTagName("input")[0]),c===r?(s.checked=!0,s.value=r):h===r&&(s.checked=!1,s.value=r),!0!==this.attr("_hcskip")&&this._getColElement(e)._isHeaderCheckbox(e)){var d,u=0,p=this._getKeyOfCol(e),g=this.attr("currentdata"),f=!0===this.attr("makefrozenbottomdata")?this.attr("frozenbottomrows"):0,m=(this.attr("rows"),this.attr("headerrows"));for(d=0,m=this.attr("rows")-this.attr("headerrows");d<m;d++)g[d][p]===r&&u++;var C,L=this.attr("headerrows")-1;do{if(null===(C=this._getCellDOM(L,e)))return;if("none"!==_.$(C).css("display"))break}while(L-- >=0);if(L<0)return;var b=C.childNodes[0].childNodes[0];void 0!==b&&u===g.length-f?h===r?(b.checked=!1,this._getColElement(e).attr("_checkedstate",!1,"boolean")):(b.checked=!0,this._getColElement(e).attr("_checkedstate",!0,"boolean")):(b.checked=!1,b.checked=!1,this._getColElement(e).attr("_checkedstate",!1,"boolean"))}break;case"image":s=i.getElementsByTagName("img")[0],_._.isUndefined(s)||_._.isString(r)&&(s.src=r),this._setAriaLabelEx(i,t,e,!1);break;case"html":case"chart":case"button":this._getColElement(e)._show(i,t,e),this._setAriaLabelEx(i,t,e,!1);break;case"inputbutton":case"datepicker":this._getColElement(e)._showDataLabel(i,t,e,r),this._setAriaLabelEx(i,t,e,!1);break;default:r=this._showDataFormat(t,e,r),_.util.textContent(i,r),this._setAriaLabel(i,t,e,r)}}if(!0===this.attr("pagesyncorgindata")&&(void 0===this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state||"i"!==this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state)&&(this.attr("currentdata")[t-this.attr("headerrows")].rt_qc_page_state="u"),"i"!==this.getRowState(t)&&"d"!==this.getRowState(t)){var E=!1,v=this.attr("currentdata")[t-this.attr("headerrows")],y=v[o],w=this.getRowState(t);if(void 0!==y)for(var x in v)if(o!==x&&y[x]!==v[x]){E=!0;break}!1===this.attr("useinitdata")&&(E=a),!0===E?"u"!==w&&this._updateRowState(t,"u"):"n"!==w&&(this.removeRowState(t),delete this.attr("currentdata")[t-this.attr("headerrows")][o])}return!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._dataCellValue",t.message),!1}}))},_.QCELL.NormalQCELL.prototype._initTag=function(){this.tag("QBOX.QCELL.NormalQCELL")},_.QCELL.NormalQCELL.prototype._initAttrs=function(t){_.QCELL.BasicQCELL.prototype._initAttrs.call(this,t),this.attr("oneclickedit",t.oneclickedit,"boolean"),this.attr("editcolids",[],"array"),this.attr("idxinfo",_._.extend(this.attr("idxinfo"),{state:{row:new i._QHashtable,col:new i._QHashtable}}),"object"),this.attr("idxinfo",_._.extend(this.attr("idxinfo"),{valuechanged:{row:new i._QHashtable,col:new i._QHashtable}}),"object"),this.attr("idxinfo",_._.extend(this.attr("idxinfo"),{celldisabled:{row:new i._QHashtable,col:new i._QHashtable}}),"object"),this.attr("idxinfo",_._.extend(this.attr("idxinfo"),{cellinvisible:{row:new i._QHashtable,col:new i._QHashtable}}),"object"),this.attr("deletedrowsdata",[],"array"),this.attr("staticrowsinfo",[],"array");var e=void 0===t.statetype?"immediate":t.statetype;this.attr("statetype",e,"string"),this._initAttr("delkeymode",t.delkeymode,"string"),this._initAttr("setstatewithapi",t.setstatewithapi,"boolean"),this._initAttr("useenterkeytonextcol",t.useenterkeytonextcol,"boolean"),this._initAttr("keepeditmode",t.keepeditmode,"boolean"),this._initAttr("datepickerautosettoday",t.datepickerautosettoday,"boolean"),this._initAttr("useinitdata",t.useinitdata,"boolean")},_.QCELL.NormalQCELL.prototype._initAttr=function(t,e,r){this.attr(t,void 0===e?_.QCELL.config[t]:e,r)},_.QCELL.NormalQCELL.prototype._clearAttrs=function(){_.QCELL.BasicQCELL.prototype._clearAttrs.call(this),_.$(document).off("mousedown."+this.attr("id"))},_.QCELL.NormalQCELL.QCellCol=function(t){if(!1===_.util.checkType(t,"object"))return null;_.Base.call(this,t)},_.util.inherit(_.QCELL.NormalQCELL.QCellCol,_.QCELL.BasicQCELL.QCellCol),_.util.addMethod(_.QCELL.NormalQCELL.QCellCol,"create",(function(t){return new _.QCELL.NormalQCELL.QCellCol(this._adjustProps(t))})),_.util.addMethod(_.QCELL.NormalQCELL.QCellCol,"create",(function(t,e){return this._create(t,e)})),_.QCELL.NormalQCELL.QCellCol.prototype._initMOL=function(){_.QCELL.BasicQCELL.QCellCol.prototype._initMOL.call(this)},_.QCELL.NormalQCELL.QCellCol.prototype._initTag=function(){this.tag("QBOX.QCELL.NormalQCELL.QCellCol")},_.QCELL.NormalQCELL.QCellCol.prototype._init=function(t){_.QCELL.BasicQCELL.QCellCol.prototype._init.call(this,t),this._createColElement()},_.QCELL.NormalQCELL.QCellCol.prototype._initAttrs=function(t){_.QCELL.BasicQCELL.QCellCol.prototype._initAttrs.call(this,t),this.attr("colelement",null,"object"),this._initAttr("type",t.type,"string"),this._initAttr("disabled",t.disabled,"boolean"),this._initAttr("mask",t.options.mask,"object"),this._initAttr("html",t.options.html,"object"),this._initAttr("chart",t.options.chart,"object"),this._initAttr("invisibled",t.options.invisibled,"boolean"),this._initAttr("celldisabled",[],"array"),this._initAttr("cellinvisible",[],"array"),this._initAttr("tabindex",t.tabindex,"boolean");var e=void 0!==t.options.required&&t.options.required;this._initAttr("required",e,"boolean")},_.QCELL.NormalQCELL.QCellCol.prototype._initAttr=function(t,e,r){_.QCELL.BasicQCELL.QCellCol.prototype._initAttr.call(this,t,e,r)},_.QCELL.colconfig=_._.extend(_._.clone(_.QCELL.colconfig),{disabled:!1,invisibled:!1,options:{},html:{data:null,datacallback:null,header:null},tabindex:!0}),_.QCELL.NormalQCELL.QCellCol._create=function(t,e){return this._checkRequiredProps(t,e)&&this._checkValidationOfProps(t,e)?new _.QCELL.NormalQCELL.QCellCol(this._adjustProps(e)):null},_.QCELL.NormalQCELL.QCellCol._checkRequiredProps=function(t,e){return!!_.QCELL.BasicQCELL.QCellCol._checkRequiredProps(t,e)},_.QCELL.NormalQCELL.QCellCol._checkValidationOfProps=function(t,e){var r=!1;return _.QCELL.BasicQCELL.QCellCol._checkValidationOfProps(t,e)&&_.$.each(e,(function(e,i){return r=_.QCELL.NormalQCELL.QCellCol._checkValidationOfProp(t,e,i)})),r},_.QCELL.NormalQCELL.QCellCol._checkValidationOfProp=function(t,e,r){var i=!0,o=!0,a="";switch(e){case"type":if(a="string",!1===_._.isString(r))i=!1;else switch(r){case"input":case"textarea":case"datepicker":case"selectmenu":case"image":case"checkbox":case"number":case"static":case"html":case"chart":case"multicheckbox":case"slider":case"button":case"editor":case"inputbutton":case"inputdatepicker":break;default:_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'" property. This property can use "input" or "textarea" or "datepicker" or "selectmenu" or "image" or "checkbox" or "number" or "html" or "chart" or "multicheckbox" or "slider" or "button" or "editor" as value.'),i=!1,o=!1}break;case"options":if(void 0!==r&&!1===_._.isObject(r)||!0===_._.isArray(r))a="object",i=!1;else if(void 0!==r.maxlength&&!1===_._.isNumber(r.maxlength))a="number",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.maxlength"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.numrange&&!1===_._.isString(r.numrange))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.numrange"\'s type is "'+a+'".'),i=!1,o=!1;else if(!0===_._.isString(r.numrange)){!1===/^([+-]?\d*(\.?\d*))(\:)([+-]?\d*(\.?\d*))$/.test(r.numrange)&&(a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+".numrange\"'s data setting."),i=!1,o=!1)}else if(void 0!==r.limit&&null!==r.limit)void 0!==r.limit&&!1===_._.isObject(r.limit)?(a="object",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit"\'s type is "'+a+'".'),i=!1,o=!1):!1===_._.isString(r.limit.type)?(a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.type"\'s type is "'+a+'".'),i=!1,o=!1):"all"===r.limit.type&&"string"===r.limit.type&&"number"===r.limit.type&&"other"===r.limit.type?(_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.type"\'s val is "string or number or other".'),i=!1,o=!1):"other"===r.limit.type&&void 0!==r.limit.expreg&&!1===_._.isString(r.limit.expreg)&&(a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.limit.expreg"\'s type is "'+a+'".'),i=!1,o=!1);else if(void 0!==r.exclude&&null!==r.exclude)void 0!==r.exclude&&!1===_._.isArray(r.exclude)&&(a="array",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.exclude"\'s type is "'+a+'".'),i=!1,o=!1);else if(void 0!==r.html&&null!==r.html)void 0!==r.html&&!1===_._.isObject(r.html)||!0===_._.isArray(r.html)?(a="object",i=!1):(void 0!==r.html.data&&!1===_._.isFunction(r.html.data)||void 0!==r.html.header&&!1===_._.isFunction(r.html.header)||void 0!==r.html.datacallback&&!1===_._.isFunction(r.html.datacallback))&&(a="function",i=!1);else if(void 0!==r.textareawidth&&!1===_._.isString(r.textareawidth))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.textareawidth"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.dateformat&&!1===_._.isString(r.dateformat))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.dateformat"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.timeformat&&!1===_._.isString(r.timeformat))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timeformat"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.timetype&&!1===_._.isString(r.timetype))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timetype"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.timeseparator&&!1===_._.isString(r.timeseparator))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.separator"\'s type is "'+a+'".'),i=!1,o=!1;else if(!0===_._.isString(r.timetype))switch(r.timetype){case"none":case"with":case"only":break;default:_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.timetype." This property can use "none" or "with" or "only" as value.'),i=!1,o=!1}else if(void 0!==r.locale&&!1===_._.isString(r.locale))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.locale"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.yearrange&&!1===_._.isString(r.yearrange))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.yearrange"\'s type is "'+a+'".'),i=!1,o=!1;else if(!0===_._.isString(r.yearrange)){!1===/^(((c\-)[0-9]{1,4})(\:)(c\+)[0-9]{1,4})|((\-)[0-9]{1,4}(\:)(\+)[0-9]{1,4})|([0-9]{1,4}(\:)[0-9]{1,4})$/.test(r.yearrange)&&(a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+".yearrange\"'s data setting."),i=!1,o=!1)}else if(void 0!==r.changeyear&&!1===_._.isBoolean(r.changeyear))a="boolean",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.changeyear"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.changemonth&&!1===_._.isBoolean(r.changemonth))a="boolean",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.changemonth"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.input&&!1===_._.isArray(r.input))a="array",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.input"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.itemcount&&!1===_._.isNumber(r.itemcount))a="number",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.itemcount"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.selectedEnd&&!1===_._.isBoolean(r.selectedEnd))a="boolean",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.selectedEnd"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.selectclickopen&&!1===_._.isBoolean(r.selectclickopen))a="boolean",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.selectclickopen"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.wholeselect&&!1===_._.isBoolean(r.wholeselect))a="boolean",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.wholeselect"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.checkedvalue&&!1===(_._.isBoolean(r.checkedvalue)||_._.isString(r.checkedvalue)))a="boolean or string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.checkedvalue"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.uncheckedvalue&&!1===(_._.isBoolean(r.uncheckedvalue)||_._.isString(r.uncheckedvalue)))a="boolean or string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.uncheckedvalue"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.imagealt&&!1===_._.isString(r.imagealt))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagealt"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.imageheight&&!1===_._.isString(r.imageheight))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageheight"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.imagewidth&&!1===_._.isString(r.imagewidth))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagewidth"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.imagestyle&&!1===_._.isObject(r.imagestyle))a="object",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imagestyle"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.imageclick)!0!==_._.isString(r.imageclick)&&!0!==_._.isFunction(r.imageclick)&&(a="string or function",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageclick"\'s type is "'+a+'".'),i=!1,o=!1);else if(void 0!==r.imageuri&&!1===_._.isString(r.imageuri))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageuri"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.imageerroruri&&!1===_._.isString(r.imageerroruri))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.imageerroruri"\'s type is "'+a+'".'),i=!1,o=!1;else if(void 0!==r.buttonwidth&&!1===_._.isString(r.buttonwidth))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonwidth"\'s type is "'+a+'".'),i=!1,o=!1;else if(_._.isString(r.buttonwidth)&&r.buttonwidth.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0)_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonwidth" property. This property can use "number" or "px" or "%" as value.'),i=!1,o=!1;else if(void 0!==r.buttonheight&&!1===_._.isString(r.buttonheight))a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonheight"\'s type is "'+a+'".'),i=!1,o=!1;else if(_._.isString(r.buttonheight)&&r.buttonheight.replace(/[-\.0-9]/g,"").replace(/px/,"").replace(/%/,"").length>0)_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonheight" property. This property can use "number" or "px" or "%" as value.'),i=!1,o=!1;else if(void 0!==r.buttonposition&&!1===_._.isString(r.buttonposition))r.buttonposition="left";else if(_._.isString(r.buttonposition))switch(r.buttonposition){case"left":case"right":case"center":break;default:_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonlabel" property. This property can use "left" or "right" or "center" as value.'),i=!1,o=!1}else void 0!==r.buttonlabel&&!1===_._.isString(r.buttonlabel)?(a="string",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonlabel"\'s type is "'+a+'".'),i=!1,o=!1):void 0!==r.buttonclick&&!1===_._.isFunction(r.buttonclick)&&(a="function",_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'.buttonclick"\'s type is "'+a+'".'),i=!1,o=!1)}return!1===i&&o&&_.QCELL.log("err","QCELL.create",'Please check "columns['+t+"]."+e+'"\'s type is "'+a+'".'),i},_.QCELL.NormalQCELL.QCellCol._adjustProps=function(t){var e=_._.mapValues(_.QCELL.BasicQCELL.QCellCol._adjustProps(t),(function(t,e){return _.QCELL.NormalQCELL.QCellCol._adjustProp(e,t)}));return _._.assign(_._.clone(_.QCELL.colconfig),e)},_.QCELL.NormalQCELL.QCellCol._adjustProp=function(t,e){var r=null;if(void 0===e)r=_.QCELL.BasicQCELL._getDefaultValueOfProp(t);else if("disabled"===t)r=!0===_._.isBoolean(e)&&e;else r=e;return r},_.QCELL.NormalQCELL.QCellCol.prototype._createColElement=function(){var t=this.attr("parent").attr("id"),e=this.attr("id"),r=t+"_"+e+"_",i={colid:e,parentid:t,parent:this.attr("parent"),options:this.attr("options"),html:this.attr("html"),chart:this.attr("chart"),disabled:this.attr("disabled"),invisible:this.attr("invisible")};switch(this.attr("type")){case"input":i.id=r+"input",this.attr("colelement",new _.QCELL.Input(i),"object");break;case"inputbutton":i.id=r+"inputbutton",this.attr("colelement",new _.QCELL.InputButton(i),"object");break;case"textarea":i.id=r+"textarea",this.attr("colelement",new _.QCELL.Textarea(i),"object");break;case"datepicker":i.id=r+"datepicker",this.attr("colelement",new _.QCELL.Datepicker(i),"object");break;case"selectmenu":i.id=r+"selectmenu",this.attr("colelement",new _.QCELL.Selectmenu(i),"object");break;case"image":i.id=r+"image",this.attr("colelement",new _.QCELL.Image(i),"object");break;case"checkbox":i.id=r+"checkbox",this.attr("colelement",new _.QCELL.Checkbox(i),"object");break;case"html":i.id=r+"html",this.attr("colelement",new _.QCELL.Html(i),"object");break;case"chart":i.id=r+"chart",this.attr("colelement",new _.QCELL.Chart(i),"object");break;case"multicheckbox":i.id=r+"multicheckbox",this.attr("colelement",new _.QCELL.Multicheckbox(i),"object");break;case"number":i.id=r+"number",this.attr("colelement",new _.QCELL.Number(i),"object");break;case"slider":i.id=r+"slider",this.attr("colelement",new _.QCELL.Slider(i),"object");break;case"button":i.id=r+"button",this.attr("colelement",new _.QCELL.Button(i),"object");break;case"editor":i.id=r+"editor",this.attr("colelement",new _.QCELL.Editor(i),"object");break;case"inputdatepicker":i.id=r+"inputdatepicker",this.attr("colelement",new _.QCELL.InputDatepicker(i),"object")}},_.QCELL.ColElement=function(t){if(!1===_.util.checkType(t,"object"))return null;_.Element.call(this,t)},_.util.inherit(_.QCELL.ColElement,_.Element),_.QCELL.ColElement.prototype._initTag=function(){this.tag("QBOX.QCELL.ColElement")},_.QCELL.ColElement.prototype._init=function(t){_.Element.prototype._init.call(this,t),this._createElement(),this._initEvent()},_.QCELL.ColElement.prototype._initAttrs=function(t){_.Element.prototype._initAttrs.call(this,t),this.attr("parent",t.parent,"object"),this.attr("colid",t.colid,"string"),void 0!==t.options&&(this.titlekey=t.options.titlekey)},_.QCELL.ColElement.prototype._createElement=function(){},_.QCELL.ColElement.prototype._initEvent=function(){},_.QCELL.ColElement.prototype._show=function(){},_.QCELL.ColElement.prototype._hide=function(){},_.QCELL.ColElement.prototype.show=function(){},_.QCELL.ColElement.prototype.hide=function(){},_.QCELL.ColElement.prototype._changeMergeCellValue=function(t,e,r,i){var o,a,s,n,l=this.attr("parent"),c=l._findNextCell(t,e,"up"),h=l.attr("cols"),d=l.attr("rows"),u=l.attr("frozenrows"),p=l.attr("headercols"),g=l.attr("frozencols"),f=l._cellValue(t,e),m=l._getColType(e);switch(l.attr("merge").data){case"row":if(e<g+p){for(n=c.col;n<g+p&&f===l._cellValue(t,n);n++)if(l._cellValue(t,n,r),_._.isObject(i))switch(o=l._showDataFormat(t,n,void 0===r?"":r),a=l._getCellDOM(t,n),m){case"number":case"input":case"slider":null!==a&&_.util.textContent(a,o);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,o)}else if("selectmenu"===m)null!==(a=l._getCellDOM(t,n))&&l._getColElement(e)._showDataLabel(a,t,e,r)}else for(n=c.col;n<h&&f===l._cellValue(t,n);n++)if(l._cellValue(t,n,r),_._.isObject(i))switch(o=l._showDataFormat(t,n,void 0===r?"":r),a=l._getCellDOM(t,n),m){case"number":case"input":case"slider":null!==a&&_.util.textContent(a,o);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,o)}else if("selectmenu"===m)null!==(a=l._getCellDOM(t,n))&&l._getColElement(e)._showDataLabel(a,t,e,r);break;case"col":if(t<u+l.attr("headerrows")){for(s=c.row;s<u+l.attr("headerrows")&&f===l._cellValue(s,e);s++)if(l._cellValue(s,e,r),_._.isObject(i))switch(o=l._showDataFormat(s,e,void 0===r?"":r),a=l._getCellDOM(s,e),m){case"number":case"input":case"slider":null!==a&&_.util.textContent(a,o);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,o)}else if("selectmenu"===m)null!==(a=l._getCellDOM(s,e))&&l._getColElement(e)._showDataLabel(a,t,e,r)}else if(t>=l.attr("rows")-l.attr("frozenbottomrows")){for(s=c.row;s<d&&f===l._cellValue(s,e);s++)if(l._cellValue(s,e,r),_._.isObject(i))switch(m){case"number":case"input":case"slider":null!==a&&_.util.textContent(a,o);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,o)}else if("selectmenu"===m)null!==(a=l._getCellDOM(s,e))&&l._getColElement(e)._showDataLabel(a,t,e,r)}else for(s=c.row;s<l.attr("rows")-l.attr("frozenbottomrows")&&f===l._cellValue(s,e);s++)if(l._cellValue(s,e,r),_._.isObject(i))switch(m){case"number":case"input":case"slider":null!==a&&_.util.textContent(a,o);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,o)}else if("selectmenu"===m)null!==(a=l._getCellDOM(s,e))&&l._getColElement(e)._showDataLabel(a,t,e,r);break;case"group":var C=[];if(t<u+l.attr("headerrows"))for(s=c.row;s<u+l.attr("headerrows")&&(c.row===l._findNextCell(s,e,"up").row&&f===l._cellValue(s,e));s++)C.push(s);else if(t>=l.attr("rows")-l.attr("frozenbottomrows"))for(s=c.row;s<d&&(c.row===l._findNextCell(s,e,"up").row&&f===l._cellValue(s,e));s++)C.push(s);else for(s=c.row;s<l.attr("rows")-l.attr("frozenbottomrows")&&(c.row===l._findNextCell(s,e,"up").row&&f===l._cellValue(s,e));s++)C.push(s);for(s=0;s<C.length;s++)if(l._cellValue(C[s],e,r),_._.isObject(i))switch(o=l._showDataFormat(C[s],e,void 0===r?"":r),a=l._getCellDOM(C[s],e),m){case"number":case"input":case"slider":null!==a&&_.util.textContent(a,o);break;case"datepicker":case"inputbutton":null!==a&&l._getColElement(e)._showDataLabel(a,t,e,o)}else if("selectmenu"===m)null!==(a=l._getCellDOM(C[s],e))&&l._getColElement(e)._showDataLabel(a,t,e,r)}},_.QCELL.Checkbox=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Checkbox,_.QCELL.ColElement),_.QCELL.Checkbox.prototype._initTag=function(){this.tag("QBOX.QCELL.Checkbox")},_.QCELL.Checkbox.prototype._createDiv=function(t){var e=_.QCELL.def.css,r=document.createElement("div"),i=document.createElement("input"),o=document.createElement("label"),a=this.attr("parent");return!0===this.attr("likeradio")?i.setAttribute("type","radio"):i.setAttribute("type","checkbox"),!0!==this.attr("showheaderlabel")&&o.setAttribute("aria-hidden","true"),i.setAttribute("name",this.attr("id")),i.className+=_.QCELL.def.css.COLHEADER_CHECKBOX,o.setAttribute("for",this.attr("id")),r.className+=t?" "+e.COLHEADER_CHECKBOX:e.TYPE_CHECKBOX_WRAP_STYLE+" "+e.COLHEADER_CHECKBOX,r.appendChild(i),r.appendChild(o),(a.attr("useall")||a.attr("usetreeall"))&&i.setAttribute("tabindex","0"),r},_.QCELL.Checkbox.prototype._createElement=function(){try{return this.attr("headerelement",this._createDiv(!0),"element"),this._setElement(this._createDiv()),!0}catch(t){return _.QCELL.log("err","QCELL.Checkbox.prototype._createElement",t.message),!1}},_.QCELL.Checkbox.prototype._initEvent=function(){var t="click",e=this.attr("parent");t=!0===e.attr("useall")||!0===e.attr("usetreeall")?t+" focusin keydown":t,_.$(this.attr("element")).on(t,{target:this},_.st.eventProcess),_.$(this.attr("headerelement")).on(t,{target:this},_.st.eventProcess)},_.QCELL.Checkbox.prototype._defaultAction=function(t){switch(t.type){case"click":this.onClick(t);break;case"focusin":this.onFocusIn(t);break;case"keydown":this.onKeyDown(t)}},_.QCELL.Checkbox.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("tabindex",-1,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this._extendAttrs(t.options)},_.QCELL.Checkbox.prototype._extendAttrs=function(t){try{var e=!0;return!_._.isUndefined(t.checkedvalue)||!_._.isUndefined(t.uncheckedvalue)||_._.isUndefined(_.QCELL.config.options)||_._.isUndefined(_.QCELL.config.options.checkedvalue)||_._.isUndefined(_.QCELL.config.options.uncheckedvalue)||(t.checkedvalue=_.QCELL.config.options.checkedvalue,t.uncheckedvalue=_.QCELL.config.options.uncheckedvalue),_._.isUndefined(t.checkedvalue)&&_._.isUndefined(t.uncheckedvalue)?(t.checkedvalue=!0,t.uncheckedvalue=!1):_._.isString(t.checkedvalue)&&_._.isString(t.uncheckedvalue)?e=!1:_._.isBoolean(t.checkedvalue)&&_._.isBoolean(t.uncheckedvalue)?e=!0:(_._.isUndefined(t.checkedvalue)||_._.isUndefined(t.uncheckedvalue)?_.QCELL.log("err","QCELL.Checkbox",'checkedvalue and uncheckedvalue props is not same type, so setting default Boolean type "true" and "false".'):_.QCELL.log("err","QCELL.Checkbox",'checkedvalue and uncheckedvalue props is only support "stirng" or "boolean" types.'),t.checkedvalue=!0,t.uncheckedvalue=!1),this.attr("checkedvalue",t.checkedvalue,!0===e?"boolean":"string"),this.attr("uncheckedvalue",t.uncheckedvalue,!0===e?"boolean":"string"),_._.isUndefined(t.wholeselect)?t.wholeselect=!1:!1===_._.isBoolean(t.wholeselect)&&(_.QCELL.log("err","QCELL.Checkbox",'wholeselect property type is "boolean".'),t.wholeselect=!0),_._.isUndefined(t.likeradio)?t.likeradio=!1:!1===_._.isBoolean(t.likeradio)&&(_.QCELL.log("err","QCELL.Checkbox",'selectone property type is "boolean".'),t.likeradio=!1),this.attr("usefixedcheckbox",t.wholeselect,"boolean"),this.attr("likeradio",t.likeradio,"boolean"),this.attr("showheaderlabel",t.showheaderlabel,"boolean"),!0}catch(t){return _.QCELL.log("err","QCELL.Checkbox.prototype._extendAttrs",t.message),!1}},_.QCELL.Checkbox.prototype._headershow=function(t,e,r){try{var i=this.attr("parent"),o=i._cellValue(e,r),a=_.$(this.attr("headerelement")).clone(!0).get(0),s=this.attr("usefixedcheckbox"),n=this.attr("likeradio"),l=i.attr("headerrows"),c=i._getColElement(r).attr("checkedvalue"),h=a.childNodes[0],d=a.childNodes[1],u=i._cellValue(l-1,r);if(u=void 0===u||""===u?r+"":u,t.innerHTML="",a.setAttribute("data-row",e),a.setAttribute("data-col",r),h.setAttribute("data-row",e),h.setAttribute("data-col",r),h.title=u+"열 전체 선택",a.className+=" "+_.QCELL.def.css.COLHEADER_AREA,h.className+=" "+_.QCELL.def.css.COLHEADER_AREA,h.onchange=function(t){i._trigger("checkbox_all_changed",{status:t.target.checked,col:r})},e===l-1&&s&&!n){h.name=h.name+"_all";for(var p=0,g=!0===i.attr("makefrozenbottomdata")?i.attr("frozenbottomrows"):0,f=i.attr("rows")-i.attr("headerrows")-g,m=0;m<f;m++)i.attr("currentdata")[m][i._getKeyOfCol(r)]===c&&p++;if(p===i.attr("currentdata").length-g&&i.attr("currentdata").length>0&&(h.checked=!0),!0===this.attr("showheaderlabel")){d.setAttribute("data-row",e),d.setAttribute("data-col",r),d.className+=" "+_.QCELL.def.css.COLHEADER_AREA,d.setAttribute("for",h.name);var C=o.split("\n");if(C.length>0){a.style.display="flex",a.style.justifyContent="center",a.style.alignItems="center";for(var L=document.createElement("div"),b=0;b<C.length;b++){if(0!==b){0;var E=document.createElement("br");L.appendChild(E)}var v=document.createElement("span"),y=document.createTextNode(C[b]);v.setAttribute("data-row",e),v.setAttribute("data-col",r),L.setAttribute("data-row",e),L.setAttribute("data-col",r),v.appendChild(y),L.appendChild(v)}d.appendChild(L)}else{var w=document.createTextNode(o);d.appendChild(w)}}t.appendChild(a),i._getQCellCol(r).attr("move")&&t.appendChild(i._getColHeaderDragDropArea()),i._getQCellCol(r).attr("search")&&t.appendChild(i.attr("colsearcharea").clone(!0).get(0)),i._getQCellCol(r).attr("sort")&&t.appendChild(i._getDefaultSortArea(r)),i._getQCellCol(r).attr("resize")&&t.appendChild(i._getColResizeArea()),i._getQCellCol(r).attr("filter")&&t.appendChild(i._getFilterArea(r))}else{i._getQCellCol(r).attr("topmove")&&t.appendChild(i._getColHeaderDragDropArea()),void 0===o&&(o="");var x=o.split("\n");if((i.attr("useall")||i.attr("usetreeall"))&&t.setAttribute("aria-hidden","true"),x.length>0){t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center";for(var k=document.createElement("div"),S=0;S<x.length;S++){if(S){var Q=document.createElement("br");k.appendChild(Q)}var q=document.createElement("span"),T=document.createTextNode(x[S]);q.setAttribute("data-row",e),q.setAttribute("data-col",r),k.setAttribute("data-row",e),k.setAttribute("data-col",r),q.appendChild(T),k.appendChild(q)}t.appendChild(k)}else _.util.textContent(t,o)}return!0}catch(t){return _.QCELL.log("err","QCELL.Checkbox._headershow",t.message),!1}},_.QCELL.Checkbox.prototype._show=function(t,e,r){try{var i,o=this.attr("parent"),a=_.QCELL.def.css,s=o._cellValue(e,r),n=_.$(this.attr("element")).clone(!0).get(0),l=this.attr("checkedvalue"),c=this.attr("likeradio"),h=o._getQCellCol(r).attr("celldisabled")[e],d=o._getQCellCol(r).attr("cellinvisible")[e],u=n.childNodes[0];if(o._showDisableText(t,e,r))return;if(o._isBottomPanel(t))return void _.util.textContent(t,"");if(t.innerHTML="",n.setAttribute("data-row",e),n.setAttribute("data-col",r),u.setAttribute("data-row",e),u.setAttribute("data-col",r),u.onchange=function(t){o._trigger("checkbox_changed",{status:t.target.checked,row:e,col:r})},c&&_.util.addClass(u,a.TYPE_RADIO_STYLE),s===l&&(u.checked=!0,o.attr("isFocussing",!0,"boolean"),c&&(o.attr("useall")||o.attr("usetreeall"))?setTimeout((function(){u.focus(),o.attr("isFocussing",!1,"boolean")}),0):o.attr("isFocussing",!1,"boolean")),null!==this.titlekey&&!0===_._.isFunction(this.titlekey)){if(void 0!==(i=o.getRowData(e))){var p=this.titlekey(e,r,i);void 0!==p&&""!==p&&(o.attr("useall")||o.attr("usetreeall")?u.setAttribute("title",p):u.setAttribute("aria-label",p))}}else null!==this.titlekey&&""!==this.titlekey&&void 0!==this.titlekey&&void 0!==(i=o.getRowData(e))&&(o.attr("useall")||o.attr("usetreeall")?u.setAttribute("title",void 0!==i[this.titlekey]?i[this.titlekey]:""):u.setAttribute("aria-label",void 0!==i[this.titlekey]?i[this.titlekey]:""));return h?_.$(u).attr("disabled",h):_.$(u).removeAttr("disabled"),_.util.addClass(u,a.TYPE_CHECKBOX_STYLE),_.$(t).empty(),t.appendChild(n),this.attr("row",e,"number"),this.attr("col",r,"number"),d&&o._setInitCellInvisible(e,r),!0}catch(t){return _.QCELL.log("err","QCELL.Checkbox._show",t.message),!1}},_.QCELL.Checkbox.prototype._isHeaderCheckbox=function(t){var e=!1;return this.attr("parent")._getColElement(t).attr("usefixedcheckbox")&&(e=!0),e},_.QCELL.Checkbox.prototype._getHeaderCheckedState=function(t){var e=this.attr("id")+"._getHeaderCheckedState",r=this.attr("parent");return this._isHeaderCheckbox(t)?null!==r._getColElement(t).attr("_checkedstate")&&r._getColElement(t).attr("_checkedstate"):void _.QCELL.log("err",e,r.attr("msg").err.NOT_HAVE_HEADER_CHECKBOX)},_.QCELL.Checkbox.prototype._setHeaderChecked=function(t,e){var r=this.attr("id")+"._setHeaderChecked",i=this.attr("parent"),o=i.attr("headerrows")-1;do{var a=i._getCellDOM(o,t);if(null===a)return;if("none"!==_.$(a).css("display"))break}while(o-- >=0);o<0||(this._isHeaderCheckbox(t)?this._HeaderCheckBoxChecked(o,t,e):_.QCELL.log("err",r,i.attr("msg").err.NOT_HAVE_HEADER_CHECKBOX))},_.QCELL.Checkbox.prototype._outerClick=function(t,e,r){var i,o,a=this.attr("parent"),s=a._getCellDOM(t,e),n=s.getElementsByTagName("input")[0],l=a._getColElement(e).attr("checkedvalue"),c=a._getColElement(e).attr("uncheckedvalue"),h=a._getColElement(e).attr("likeradio"),d=a._getQCellCol(e).attr("celldisabled")[t],u=a.getIdx("row","focus"),p=a.getIdx("col","focus");if(a._clearFocusAllCSS(),_._.isElement(n)&&(a._onScrollHideEditCellsDOM(),a._clearSelection(),a._updateIdx("focus",-1,-1),!1===_._.isBoolean(d)||!1===d))if(!0===r||_._.isUndefined(r)&&!1===n.checked)if(_.util.hasClass(s,_.QCELL.def.css.CELL_VIEWPORT)){if(!0===h){for(i=0,o=a.attr("rows")-a.attr("headerrows");i<o;i++)a.attr("currentdata")[i][a._getKeyOfCol(e)]=c;n.checked=!0,n.value=l,a._cellValue(t,e,l)}else n.checked=!0,n.value=l,a._cellValue(t,e,l);a._selectCell(t,e),a._focusCell(t,e),a._scrollToFocusCell(t,e),a._processValueChanged(t,e),a._treecheckbox(t,e,!0),a._mergedCheckboxClick(t,e,!0)}else this._HeaderCheckBoxChecked(t,e,!0),-1!==u&&-1!==p&&(a._selectCell(u,p),a._focusCell(u,p));else if(!1===r||_._.isUndefined(r)&&!0===n.checked)if(_.util.hasClass(s,_.QCELL.def.css.CELL_VIEWPORT)){if(!0===h){for(i=0,o=a.attr("rows")-a.attr("headerrows");i<o;i++)a.attr("currentdata")[i][a._getKeyOfCol(e)]=c;n.checked=!0,n.value=l,a._cellValue(t,e,l)}else n.checked=!1,n.value=c,a._cellValue(t,e,c);a._selectCell(t,e),a._focusCell(t,e),a._scrollToFocusCell(t,e),a._processValueChanged(t,e),a._treecheckbox(t,e,!1),a._mergedCheckboxClick(t,e,!1)}else this._HeaderCheckBoxChecked(t,e,!1),-1!==u&&-1!==p&&(a._selectCell(u,p),a._focusCell(u,p))},_.QCELL.Checkbox.prototype._HeaderCheckBoxChecked=function(t,e,r){var i,o,a,s,n,l=this.attr("parent"),c=l._getCellDOM(t,e),h=l._getColElement(e).attr("checkedvalue"),d=l._getColElement(e).attr("uncheckedvalue"),u=[],p=!0,g=-1,f=-1,m=!1,C=!1,L="panel"===l.attr("frozenbottomstyle");if(_._.isUndefined(r)||r||(p=!p),l._getColElement(e).attr("_checkedstate",p,"boolean"),null!=c){var b=c.childNodes[0].childNodes[0],E=b.name.replace("_all","");u=document.getElementsByName(E),b.checked=p}for(i=0,a=u.length;i<a;i++)g=(n=u[i].parentNode).getAttribute("data-row"),f=n.getAttribute("data-col"),m=l._getQCellCol(f).attr("cellinvisible")[g],C=l._getQCellCol(f).attr("celldisabled")[g],m||C||(u[i].checked=p);for(l.attr("_hcskip",!0,"boolean"),o=l.attr("headerrows"),s=l.attr("rows");o<s;o++)if(!0!==L||!0!==l.getCellDataEx(o,"rt_qc_fbrd")){l._cellValue(o,e)!==h&&l._cellValue(o,e)!==d&&(l.attr("currentdata")[o-l.attr("headerrows")][l._getKeyOfCol(e)]=d),m=l._getQCellCol(e).attr("cellinvisible")[o],C=l._getQCellCol(e).attr("celldisabled")[o];var v=l.getRowData(o);(void 0===v||"gt"!==v._rtqc_state&&!0!==v.rt_qc_header&&!0!==v.rt_qc_footer)&&(m||C||(p?l._cellValue(o,e,h):l._cellValue(o,e,d)))}l.attr("_hcskip",!1,"boolean")},_.QCELL.Checkbox.prototype.onKeyDown=function(t){var e=this.attr("parent"),r=e.attr("vsinfo"),i=t.keyCode;if((e.attr("useall")||e.attr("usetreeall"))&&r.bVScroll){var o=Number(t.currentTarget.parentNode.getAttribute("data-row")),a=Number(t.currentTarget.parentNode.getAttribute("data-col"));if(isNaN(o)||isNaN(a))return;if((i===_.def.key.UP||i===_.def.key.LEFT)&&o===r.nStartRow)return t.stopPropagation(),void t.preventDefault();if((i===_.def.key.UP||i===_.def.key.LEFT)&&o===r.nTopRow){var s=o-1;return e._scrollTop(s-1),setTimeout((function(){var t=e._getCellDOM(s+1,a);if(null!==t){var r=t.getElementsByTagName("input")[0];void 0!==r&&r.focus()}}),100),t.stopPropagation(),void t.preventDefault()}if((i===_.def.key.DOWN||i===_.def.key.RIGHT)&&o===r.nEndRow)return t.stopPropagation(),void t.preventDefault();if((i===_.def.key.DOWN||i===_.def.key.RIGHT)&&o===r.nBottomRow)return t.stopPropagation(),void t.preventDefault();e.attr("isFocussing")&&(t.stopPropagation(),t.preventDefault())}},_.QCELL.Checkbox.prototype.onClick=function(t){var e=this.attr("parent"),r=t.target,i=Number(r.parentNode.getAttribute("data-row")),o=Number(r.parentNode.getAttribute("data-col"));"LABEL"===t.target.tagName?r=t.target.parentElement.firstElementChild:"SPAN"===t.target.tagName&&((r=t.target.parentElement.parentElement.parentElement.firstElementChild).checked=!r.checked),_._.isElement(r)&&(isNaN(i)||isNaN(o)||e._updateIdx("click",i,o),_.util.hasClass(r,_.QCELL.def.css.TYPE_CHECKBOX_WRAP_STYLE)?(r=r.childNodes[0]).checked?this._outerClick(i,o,!1):this._outerClick(i,o,!0):r.checked?this._outerClick(i,o,!0):this._outerClick(i,o,!1))},_.QCELL.Checkbox.prototype.onFocusIn=function(t){var e=this.attr("parent"),r=t.target,i=Number(r.parentNode.getAttribute("data-row")),o=Number(r.parentNode.getAttribute("data-col"));if((e.attr("useall")||e.attr("usetreeall"))&&-1!==i&&-1!==o)if(i>=e.getRows("header")){if(this.attr("likeradio"))return;e._focusCell(i,o),e._scrollToFocusCell(i,o)}else i>=e.attr("headerrows")&&e._scrollLeft(o)},_.QCELL.Datepicker=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Datepicker,_.QCELL.ColElement),_.QCELL.Datepicker.prototype._initTag=function(){this.tag("QBOX.QCELL.Datepicker")},_.QCELL.Datepicker.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("showkey",!1,"boolean"),this.attr("visible",!1,"boolean"),this.attr("changeyear",void 0!==t.options.changeyear&&t.options.changeyear,"boolean"),this.attr("changemonth",void 0!==t.options.changemonth&&t.options.changemonth,"boolean"),this.attr("insertdata","","string"),this.attr("dateformat",void 0===t.options.dateformat?"YYMMDD":t.options.dateformat,"string"),this.attr("locale",void 0===t.options.locale?"ko":t.options.locale,"string"),this.attr("yearrange",void 0===t.options.yearrange?"c-10:c+10":t.options.yearrange,"string"),this.minDate=void 0===t.options.mindate?null:t.options.mindate,this.maxDate=void 0===t.options.maxdate?null:t.options.maxdate,this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("format",t.options.format,"object"),this.attr("timetype",void 0===t.options.timetype?"none":t.options.timetype,"string"),this.attr("timeformat",void 0===t.options.timeformat?"HHmmss":t.options.timeformat,"string"),void 0!==_.$.timepicker&&this.attr("timeseparator",void 0===t.options.timeseparator?_.$.timepicker._defaults.separator:t.options.timeseparator,"string"),this.attr("dateimage",void 0===t.options.dateimage?"":t.options.dateimage,"string"),this.attr("dateimageside",void 0===t.options.dateimageside?"right":t.options.dateimageside,"string"),this.attr("dateimageonly",void 0!==t.options.dateimageonly&&t.options.dateimageonly,"boolean"),this.attr("direction",t.options.direction,"string"),this.attr("validator",t.options.validator,"function"),this.attr("initdate",t.options.initdate,"string")},_.QCELL.Datepicker.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")),t.className+=_.QCELL.def.css.TYPE_DATEPICKER_WRAP_STYLE,this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Datepicker.prototype._createElement",t.message),!1}},_.QCELL.Datepicker.prototype._initEvent=function(){},_.QCELL.Datepicker.prototype._defaultAction=function(t){},_.QCELL.Datepicker.prototype._show=function(t){try{var e=this.attr("parent"),r=this.attr("element"),i=parseInt(t.getAttribute("data-row")),o=parseInt(t.getAttribute("data-col")),a=e._getQCellCol(o).attr("cellinvisible")[i],s=e._getQCellCol(o).attr("celldisabled")[i],n=e.attr("elementpool").get("$container"),l=this,c=this.attr("locale"),h=this.attr("timetype");this.attr("useinitdate",!1,"boolean");var d=void 0===e._cellValue(i,o)||null===e._cellValue(i,o)?"":_.util.replaceAll(e._cellValue(i,o),"/","");e._onScrollHideEditCellsDOM(),""!==d&&void 0!==d||""!==(d=null!==this.attr("initdate")&&""!==this.attr("initdate")?this.attr("initdate"):"")&&this.attr("useinitdate",!0,"boolean");var u={defaultDate:d,changeYear:this.attr("changeyear"),changeMonth:this.attr("changemonth"),dateFormat:this.attr("dateformat").toLowerCase(),yearRange:this.attr("yearrange"),minDate:this.minDate,maxDate:this.maxDate,firstDay:0,onSelect:function(e,r){l.attr("insertdata",e,"string"),l.attr("isselect",!0,"boolean"),l._hide(t,"api")},showButtonPanel:!0,showAnim:"fold"};if(s)return!0;if(_.$.datepicker.setDefaults(_.$.datepicker.regional[c]),"none"===h)_.$(r).datepicker(u),!0===e.attr("datepickerautosettoday")?_.$.datepicker._gotoToday=function(e){_.$(e).datepicker("setDate",new Date);var r=new Date,i=r.getFullYear(),o="0"+(r.getMonth()+1);o=o.substring(o.length-2,o.length);var a="0"+r.getDate();a=a.substring(a.length-2,a.length),setTimeout((function(){l.attr("insertdata",i+o+a,"string"),l.attr("isselect",!0,"boolean"),l._hide(t,"api")}))}:_.$.datepicker._gotoToday=function(t){_.$(t).datepicker("setDate",new Date)};else{d=void 0!==d?d:"";var p=this.attr("timeseparator"),g=this.attr("timeformat"),f=void 0!==d?d.split(p)[0]:"",m=d.replace(f+p,""),C=this.attr("format"),L={defaultDate:f,timeFormat:this.attr("timeformat"),showButtonPanel:!0,onSelect:function(r,a){if(l.attr("insertdata",r,"string"),_._.isObject(C)){var s=e._showDataFormat(i,o,void 0===r?"":r);_.util.textContent(t,s)}}};void 0!==_.$.timepicker&&(_.$.timepicker.setDefaults(_.$.timepicker.regional[c]),_.$.timepicker.setDefaults({separator:p})),_._.extend(u,_._.extend(L,_.$.datepicker.parseTime(g,m,{}))),"with"===h?_.$(r).datetimepicker(u).off("click").on("click",(function(e){_.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&l._hide(t)})):"only"===h&&_.$(r).timepicker(u).off("click").on("click",(function(e){_.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&l._hide(t)}))}return n.append(r),t.focus(),this._calculateTopNLeft(r,t),this.attr("row",i,"number"),this.attr("col",o,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",d,"string"),this.attr("isselect",!1,"boolean"),e._addEditColId(this.attr("colid")),a&&e._setInitCellInvisible(i,o),_.$(r).bind("click",(function(e){_.$(e.target).hasClass("rt-qc-ui-datepicker-close")&&l._hide(t)})),!0}catch(t){return _.QCELL.log("err","QCELL.Datepicker.prototype._show",t.message),!1}},_.QCELL.Datepicker.prototype._hidesub=function(t,e){this.attr("isselect",!1,"boolean"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata","","string"),t._removeEditColId(this.attr("colid"))},_.QCELL.Datepicker.prototype._hide=function(t,e){try{if(null===t)return;var r=this.attr("parent"),i=this.attr("element"),o=this.attr("row"),a=this.attr("col"),s=this.attr("insertdata"),n=this.attr("format"),l=this.attr("validator");if(-1===o||-1===a)return;if(_.$(i).datepicker("destroy"),_.$(i).detach(),void 0===s)return;if(!0===this.attr("isselect")&&l)return this._hidesub(r),void l(o,a,s);if(!0!==this.attr("isselect")&&!0===this.attr("useinitdate")&&s===this.attr("initdate"))return void this._hidesub(r);if(this.attr("isselect",!1,"boolean"),s!==r._cellValue(o,a)?("none"===r.attr("merge").data||_._.isUndefined(r.attr("merge").data)||!1===r._getColDataMergeCol(a)?(r._cellValue(o,a,s),this._showDataLabel(t,o,a,s),_._.isObject(n)&&this._showDataLabel(t,o,a,void 0===s?"":s)):this._changeMergeCellValue(o,a,s,n),r._processValueChanged(o,a)):void 0!==s&&(_._.isObject(n),this._showDataLabel(t,o,a,void 0===s?"":s)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)r.attr("elementpool").get("$container").focus();if("msie"!==_.$.browser.name?_.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():_.$(t).focus(),this._hidesub(r),r.attr("useall")){var c=!0!==r.attr("hideedit");r._setAriaLabelEx(t,o,a,c)}return!0}catch(t){return _.QCELL.log("err","QCELL.Datepicker.prototype._hide",t.message),!1}},_.QCELL.Datepicker.prototype._calculateTopNLeft=function(t,e){var r=this.attr("parent"),i=parseInt(_.$(e).css("height")),o=parseFloat(_.$(t).children().css("height")),a=parseInt(_.$(e).css("top"))+r.attr("layoutsize").colheader.offsetHeight+i,s=parseInt(_.$(e).position().top),n=0,l=!0,c=parseInt(_.$(e).css("width")),h=parseFloat(_.$(t).css("width")),d=parseInt(_.$(e).css("left"))+r.attr("layoutsize").rowheader.offsetWidth,u=void 0===window.scrollY?0:window.scrollY;"down"===this.attr("direction")?(_.$(t).css({top:a}),_.$(t).css({bottom:"auto"})):"up"===this.attr("direction")?(n=r.attr("layoutsize").root.offsetHeight-s-i,_.$(t).css({bottom:n}),_.$(t).css({top:"auto"})):(s&&r.attr("layoutsize").root.offsetHeight<a+o?window.pageYOffset+e.getBoundingClientRect().top+o+a>window.innerHeight+u?(n=r.attr("layoutsize").root.offsetHeight-s-i,_.$(t).css({bottom:n}),_.$(t).css({top:"auto"})):(l=!1,n=r.attr("layoutsize").root.offsetHeight-s-i,_.$(t).css({bottom:n}),_.$(t).css({top:"auto"})):r.attr("layoutsize").root.offsetHeight>a+o?(_.$(t).css({top:a}),_.$(t).css({bottom:"auto"})):window.pageYOffset+e.getBoundingClientRect().top+o+a>window.innerHeight+u?(n=r.attr("layoutsize").root.offsetHeight-s-i,_.$(t).css({bottom:n}),_.$(t).css({top:"auto"})):(_.$(t).css({top:a}),_.$(t).css({bottom:"auto"})),!1===l&&n<o&&a<o&&window.pageYOffset+e.getBoundingClientRect().top+o<window.innerHeight+u&&(_.$(t).css({top:a}),_.$(t).css({bottom:"auto"}))),r.attr("layoutsize").root.offsetWidth<d+h&&(d+h-r.attr("layoutsize").root.offsetWidth<c?d-=h-c:d-=1.5*(h-c)),_.$(t).css({left:d})},_.QCELL.Datepicker.prototype._showDataLabel=function(t,e,r,i){try{this.attr("row",e,"number"),this.attr("col",r,"number");var o,a=this.attr("parent"),s=this.attr("dateimage"),n=this.attr("dateimageside"),l=this.attr("dateimageonly"),c=a._showDataFormat(e,r,i),h=a._getQCellCol(r).attr("colstyleeditordata"),d=document.createElement("div"),u=document.createElement("img"),p="dblclick",g=0,f=a.getRowData(e);if(!0===f.rt_qc_footer||!0===f.rt_qc_header)return _.util.textContent(t,i),void a._setAriaLabel(t,e,r,i);if(_.$(d).css({height:_.$(t).height()+"px"}),a._isBottomPanel(t))return void(void 0===i?_.util.textContent(t,""):_.util.textContent(t,i));if(a._showDisableText(t,e,r))return;var m=d.cloneNode(),C=d.cloneNode();return d.setAttribute("data-row",e),d.setAttribute("data-col",r),_.util.addClass(d,_.QCELL.def.css.TYPE_DATEPICKER_SINGLE_STYLE),_.util.addClass(d,_.QCELL.def.css.TYPE_DATEPICKER),_.util.addClass(m,_.QCELL.def.css.TYPE_DATEPICKER_SINGLE_DATE_STYLE),_.util.addClass(m,_.QCELL.def.css.TYPE_DATEPICKER),_.util.addClass(C,_.QCELL.def.css.TYPE_DATEPICKER_SINGLE_IMG_STYLE),_.util.addClass(C,_.QCELL.def.css.TYPE_DATEPICKER),o=c,h.replace("QCELL_COL_DATA","").length>0&&(o=h.replace("QCELL_COL_DATA",c)),a.attr("oneclickedit")&&(p="click"),m.innerHTML=o,""!==s&&(g=25,u.src=s,C.appendChild(u),_.$(C).css("width",g+"px"),_.$(C.childNodes[0]).off(p).on(p,{target:this},this.onClick)),_.$(m).css("width","calc( 100% - "+g+"px )"),_.$(m).css("float","left"),_.$(C).css("float","right"),"left"===n&&(_.$(m).css("float","right"),_.$(C).css("float","left")),d.appendChild(m),d.appendChild(C),!1===l&&_.$(m).off(p).on(p,{target:this},this.onClick),_.$(t).empty(),a._setAriaLabel(t,e,r,c),t.appendChild(d),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL.Datepicker._showDataLabel",t.message),!1}},_.QCELL.Datepicker.prototype.onClick=function(t){var e=t.target,r=Number(e.parentNode.getAttribute("data-row")),i=Number(e.parentNode.getAttribute("data-col")),o=t.data.target,a=o.attr("parent"),s=a._getCellDOM(r,i);if(0===r&&0===i){var n=e.parentNode;r=Number(n.parentNode.getAttribute("data-row")),i=Number(n.parentNode.getAttribute("data-col")),s=a._getCellDOM(r,i)}o._show(s)},_.QCELL.Html=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Html,_.QCELL.ColElement),_.QCELL.Html.prototype._initTag=function(){this.tag("QBOX.QCELL.Html")},_.QCELL.Html.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),t.options.html=void 0===t.options.html?{}:t.options.html,this.attr("renderer",t.options.html.data,"function"),this.attr("afterrenderer",t.options.html.datacallback,"function"),this.attr("headerrenderer",t.options.html.header,"function"),this.attr("row",-1,"number"),this.attr("col",-1,"number")},_.QCELL.Html.prototype._headershow=function(t,e,r){try{var i=this.attr("parent"),o=i._cellValue(e,r),a=i._getColHtml(r);if(_.util.addClass(t,_.QCELL.def.css.TYPE_HTML_CELL),_._.isFunction(this.attr("headerrenderer"))&&_._.isFunction(a.header)){var s=a.header(i,e,r,!0===_._.isUndefined(o)?"":o);_._.isString(s)&&(t.innerHTML=s)}else t.innerHTML=i._getHeaderCellSpan(o,e,r);return!0}catch(t){return _.QCELL.log("err","QCELL.Html._headershow",t.message),!1}},_.QCELL.Html.prototype._show=function(t,e,r){try{var i=this.attr("parent"),o=i._cellValue(e,r),a=i._getColHtml(r),s=i.attr("currentdata"),n=i._getQCellCol(r).attr("cellinvisible")[e];if(_.util.addClass(t,_.QCELL.def.css.TYPE_HTML_CELL),o=i._showDataFormat(e,r,o),i._isBottomPanel(t))return void 0===o?_.util.textContent(t,""):_.util.textContent(t,o),!0;var l=void 0===s[e-i.attr("headerrows")]?{}:s[e-i.attr("headerrows")],c=o;if(_._.isFunction(this.attr("renderer"))&&_._.isFunction(a.data)){var h=a.data(i,e,r,!0===_._.isUndefined(o)?"":o,l);_._.isString(h)?(t.innerHTML=h,c=_.$(t).text()):_.$(t).empty(),_._.isFunction(this.attr("afterrenderer"))&&_._.isFunction(a.datacallback)&&setTimeout((function(){a.datacallback(i,e,r,!0===_._.isUndefined(o)?"":o,l)}),0)}else _.util.textContent(t,o);return this.attr("row",e,"number"),this.attr("col",r,"number"),n&&i._setInitCellInvisible(e,r),i._setAriaLabel(t,e,r,c),!0!==i.attr("useall")&&!0!==i.attr("usetreeall")||_.$(t).bind("focusin",(function(t){!0!==i.attr("isClick")&&i._adjustScrollPos()})),!0}catch(t){return _.QCELL.log("err","QCELL.Html._show",t.message),!1}},_.QCELL.Image=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Image,_.QCELL.ColElement),_.QCELL.Image.prototype._initTag=function(){this.tag("QBOX.QCELL.Image")},_.QCELL.Image.prototype._createElement=function(){try{var t=document.createElement("img");return t.setAttribute("name",this.attr("id")),this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Image.prototype._createElement",t.message),!1}},_.QCELL.Image.prototype._initEvent=function(){_.$(this.attr("element")).on("click",{target:this},_.st.eventProcess)},_.QCELL.Image.prototype._defaultAction=function(t){if("click"===t.type)this.onClick(t)},_.QCELL.Image.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this._extendAttrs(t.options)},_.QCELL.Image.prototype._extendAttrs=function(t){try{var e=!0;return _._.isUndefined(t.imagealt)||_._.isString(t.imagealt)?_._.isUndefined(t.imageheight)||_._.isString(t.imageheight)?_._.isUndefined(t.imagewidth)||_._.isString(t.imagewidth)?_._.isUndefined(t.imagestyle)||_._.isObject(t.imagestyle)?_._.isUndefined(t.imageuri)||_._.isString(t.imageuri)?_._.isUndefined(t.imageerroruri)||_._.isString(t.imageerroruri)?_._.isUndefined(t.imageclick)||(_._.isFunction(t.imageclick)?e=!0:_._.isString(t.imageclick)?e=!1:_.QCELL.log("err","QCELL.Image",'imageclick property type is "function".')):_.QCELL.log("err","QCELL.Image",'imageerroruri property type is "string".'):_.QCELL.log("err","QCELL.Image",'imageuri property type is "string".'):_.QCELL.log("err","QCELL.Image",'imagestyle property type is "object".'):_.QCELL.log("err","QCELL.Image",'imagewidth property type is "string".'):_.QCELL.log("err","QCELL.Image",'imageheight property type is "string".'):_.QCELL.log("err","QCELL.Image",'imagealt property type is "string".'),this.attr("imagealt",t.imagealt,"string"),this.attr("imageheight",t.imageheight,"string"),this.attr("imagewidth",t.imagewidth,"string"),this.attr("imagestyle",t.imagestyle,"object"),this.attr("imageuri",t.imageuri,"string"),this.attr("imageerroruri",t.imageerroruri,"string"),this.attr("imageclick",t.imageclick,!0===e?"function":"string"),!0}catch(t){return _.QCELL.log("err","QCELL.Image.prototype._extendAttrs",t.message),!1}},_.QCELL.Image.prototype._show=function(t,e,r){try{var i=this.attr("parent"),o=_.QCELL.def.css,a=_.$(this.attr("element")).clone(!0).get(0),s=t.style,n=i._cellValue(e,r),l={"max-width":Number(s.width.replace("px",""))-4+"px","max-height":s.height},c=i._getQCellCol(r).attr("celldisabled")[e],h=i._getQCellCol(r).attr("cellinvisible")[e];return _.$(t).empty(),i._isBottomPanel(t)?(void 0===n?_.util.textContent(t,""):_.util.textContent(t,n),!0):(a.src=n,_.$(a).css({visibility:"visible"}),_.$(a).css(l),void 0===this.attr("imageerroruri")&&null===this.attr("imageerroruri")||(_.$.browser.msie&&_.$.browser.version<9?_.$(a).on("error",(function(t){_.$(t.target).css({visibility:"hidden"})})):a.onerror=function(t){_.$(t.target).css({visibility:"hidden"})}),_.$.each(i._getColOptions(r),(function(t,e){switch(t){case"imagealt":a.alt=e;break;case"imageheight":a.setAttribute("height",e);break;case"imagewidth":a.setAttribute("width",e);break;case"imagestyle":_.$.each(e,(function(t,e){l[t]=e.replace(/\;/gi,"")})),_.$(a).css(l);break;case"imageclick":!1!==_._.isBoolean(c)&&!1!==c||(a.onclick=function(t){var r=parseInt(t.target.parentElement.getAttribute("data-row")),i=parseInt(t.target.parentElement.getAttribute("data-col"));_._.isFunction(e)?e(t,r,i):void 0!==window[e]&&window[e](t,r,i)});break;case"imageuri":a.src=e;break;case"imageerroruri":_.$.browser.msie&&_.$.browser.version<9?_.$(a).on("error",(function(t){t.target.src=e})):a.onerror=function(t){t.target.src=e}}})),_.$(a).on("dragstart",(function(t){t.preventDefault()})),_.util.addClass(t,o.TYPE_IMAGE_STYLE),t.appendChild(a),h&&i._setInitCellInvisible(e,r),this.attr("row",e,"number"),this.attr("col",r,"number"),i._setAriaLabel(t,e,r,""),!0)}catch(t){return _.QCELL.log("err","QCELL.Image._show",t.message),!1}},_.QCELL.Image.prototype._outerClick=function(t,e){},_.QCELL.Image.prototype.onClick=function(t){var e=this.attr("parent"),r=t.target,i=Number(r.parentNode.getAttribute("data-row")),o=Number(r.parentNode.getAttribute("data-col"));_._.isElement(r)&&(e._clearSelection(),e._selectCell(i,o),e._focusCell(i,o))},_.QCELL.Input=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Input,_.QCELL.ColElement),_.QCELL.Input.prototype._initTag=function(){this.tag("QBOX.QCELL.Input")},_.QCELL.Input.prototype._setOptionsAttrs=function(t){this.attr("maxlength",t.maxlength,"number"),this.attr("maxbyte",t.maxbyte,"number"),this.attr("mask",t.mask,"object"),this.attr("format",t.format,"object"),this.attr("limit",t.limit,"object"),this.attr("numrange",t.numrange,"string"),this.attr("exclude",t.exclude,"array"),this.attr("validator",t.validator,"function"),this.attr("placeholder",t.placeholder,"string"),t.inputclass=void 0===t.inputclass?"":t.inputclass,_._.isString(t.inputclass)||(t.inputclass=""),this.attr("placeholder",t.placeholder,"string"),this.attr("inputclass",t.inputclass,"string"),this.titlekey=t.titlekey,this.attr("useenterkeytonext",t.useenterkeytonext,"boolean")},_.QCELL.Input.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("maxlength",t.options.maxlength,"number"),this.attr("maxbyte",t.options.maxbyte,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("mask",t.options.mask,"object"),this.attr("format",t.options.format,"object"),this.attr("limit",t.options.limit,"object"),this.attr("numrange",t.options.numrange,"string"),this.attr("exclude",t.options.exclude,"array"),this.attr("validator",t.options.validator,"function"),this.attr("bkeycode",void 0,"number"),this.attr("convert",t.options.convert,"object"),this.attr("isshow",!1,"boolean"),this.attr("placeholder",t.options.placeholder,"string"),t.options.inputclass=void 0===t.options.inputclass?"":t.options.inputclass,_._.isString(t.options.inputclass)||(t.options.inputclass=""),this.attr("inputclass",t.options.inputclass,"string"),void 0!==t.options.enterkey?(this.attr("useenterkeytonext",t.options.enterkey.tonext,"boolean"),this.attr("movescroll",t.options.enterkey.movescroll,"boolean"),this.attr("delaytime",t.options.enterkey.delaytime,"number")):(this.attr("useenterkeytonext",!1,"boolean"),this.attr("movescroll",!1,"boolean"),this.attr("delaytime",100,"number")),this.attr("delaytime")<100&&this.attr("delaytime",100,"number")},_.QCELL.Input.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),_.$(t).attr("autocomplete","off"),t.className+=_.QCELL.def.css.TYPE_INPUT_TEXT_STYLE+" "+this.attr("inputclass"),this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Input.prototype._createElement",t.message),!1}},_.QCELL.Input.prototype._initEvent=function(){_.$(this.attr("element")).on("keydown keyup keypress blur paste",{target:this},_.st.eventProcess)},_.QCELL.Input.prototype._defaultAction=function(t){var e=t.keyCode,r=this.attr("bkeycode");switch(t.type){case"keydown":this.onKeyDown(t);break;case"keyup":this.onKeyUp(t);break;case"blur":if(void 0===e&&void 0===this.attr("bkeycode"))break;if(r===_.def.key.ENTER||r===_.def.key.TAB||r===_.def.key.ESC)break;this.onBlur(t);break;case"keypress":this.onKeyPress(t);break;case"paste":this.onPaste(t),t.stopPropagation()}},_.QCELL.Input.prototype._show=function(t,e){try{var r=this.attr("parent"),i=this.attr("element"),o=parseInt(t.getAttribute("data-row")),a=parseInt(t.getAttribute("data-col")),s=void 0===r._cellValue(o,a)?"":r._cellValue(o,a),n=_.$(t).empty(),l=r.attr("elementpool").get("$viewportinner"),c=r._getQCellCol(a).attr("cellinvisible")[o];if(r._isValidEditColId(this.attr("colid")))return;null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?s=_.util.replaceAll(s,"%",""):_._.isFunction(this.attr("convert").callback)&&(s=this.attr("convert").callback.call(this,o,a,s))),this.attr("isshow",!0,"boolean"),_.$(i).val(s),i.value=s;var h=r._cellValue(r.getRows("header")-1,a);return i.setAttribute("aria-label",o+"행 "+h+"열 "+s),void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(i.placeholder=this.attr("placeholder")),r._showMask(a,i),_.$(i).css({width:n.css("width"),height:n.css("height"),left:n.css("left"),top:n.css("top")}),l.append(i),i.focus(),i.select(),this.attr("row",o,"number"),this.attr("col",a,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[s],"array"),r._addEditColId(this.attr("colid")),c&&r._setInitCellInvisible(o,a),!0}catch(t){return _.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},_.QCELL.Input.prototype._hide=function(t,e){try{if(null===t)return;if(!1===this.attr("isshow")&&!0!==this.attr("parent").attr("oneclickedit"))return;var r,i=this.attr("parent"),o=this.attr("element"),a=this.attr("row"),s=this.attr("col"),n=o.value,l=this.attr("format"),c=this.attr("validator"),h=null===i._cellValue(a,s)||void 0===i._cellValue(a,s)?"":i._cellValue(a,s);if(!_._.isNull(this.attr("maxbyte"))&&!_._.isUndefined(this.attr("maxbyte"))&&_.util.strbyte.getByteLength(n)>this.attr("maxbyte")?n=_.util.strbyte.cutByteLength(n,this.attr("maxbyte")):!_._.isNull(this.attr("maxlength"))&&!_._.isUndefined(this.attr("maxlength"))&&n.length>this.attr("maxlength")&&(n=n.slice(0,this.attr("maxlength"))),this.attr("isshow",!1,"boolean"),-1===a||-1===s)return;void 0!==l&&(n=i._showUnMask(s,n,l)),n=null===(n=void 0===n?"":n)?"":n,null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?n+="%":_._.isFunction(this.attr("convert").afterCallback)&&(n=this.attr("convert").afterCallback.call(this,a,s,n)));var d=o.parentElement;setTimeout((function(){try{var t=0;if(void 0===d)return;if(null===d.childNodes)return;for(t=0;t<d.childNodes.length;t++)if(o===d.childNodes[t]){if(d.removeChild(o),null===d.childNodes)return;break}}catch(t){return}}),0),void 0!==this.attr("exclude")&&_._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{_._.isString(t)&&(n=n.split(t).join(""))}catch(t){_.QCELL.log("err","QCELL.Input.prototype._hide",t.message)}}));var u=!0;c&&(u=c(a,s,n));var p=n,g=h;if(_._.isObject(l)&&"number"===l.type&&""!==h&&void 0!==h&&("string"==typeof h&&(h=_.util.replaceAll(h,",",""),n=_.util.replaceAll(n,",","")),void 0===l.invalidchar||!isNaN(Number(n))&&""!==n?(h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)):n=h=l.invalidchar),!0===u?n!==h?""===n&&void 0===h?(_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),_.util.textContent(t,r)):_.util.textContent(t,n),i._treeRefresh(a,s)):_._.isObject(l)&&"number"===l.type&&isNaN(Number(p))?(_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===g?"":g+""),_.util.textContent(t,r)):_.util.textContent(t,g),i._treeRefresh(a,s)):("none"===i.attr("merge").data||_._.isUndefined(i.attr("merge").data)||!1===i._getColDataMergeCol(s)?(i._cellValue(a,s,n),_._.isObject(l)&&(r=i._showDataFormat(a,s,void 0===n?"":n),_.util.textContent(t,r))):(this._changeMergeCellValue(a,s,n,l),i._cellValue(a,s,n)),i._processValueChanged(a,s)):(!_._.isObject(l)||"number"!==l.type||""!==p||""!==g&&void 0!==g?_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),_.util.textContent(t,r)):_.util.textContent(t,n):_.util.textContent(t,p),i._treeRefresh(a,s)):(n=i._cellValue(a,s),_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),_.util.textContent(t,r)):_.util.textContent(t,n),i._treeRefresh(a,s)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)i.attr("elementpool").get("$container").focus();if("msie"!==_.$.browser.name?_.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),i._removeEditColId(this.attr("colid")),i.attr("useall")||i.attr("usetreeall")){var f=!0!==i.attr("hideedit");i._setAriaLabelEx(t,a,s,f)}return u}catch(t){return _.QCELL.log("err","QCELL.Input.prototype._hide",t.message),!1}},_.QCELL.Input.prototype.onKeyDown=function(t){var e,r,i=this.attr("element"),o=this.attr("parent"),a=o._getCellDOM(this.attr("row"),this.attr("col")),s=o._getColElement(this.attr("col")).attr("mask"),n=t.keyCode,l=this.attr("row"),c=this.attr("col"),h=i.value,u=this;if(!(n!==_.def.key.UP&&n!==_.def.key.DOWN||!0!==u.attr("useenterkeytonext")||n!==_.def.key.UP&&n!==_.def.key.DOWN))return _._.isObject(s)&&(null!==(h=d.unmask(h,{alias:s.alias}))&&"null"!==h||(h="")),r=(e=0!==u.attr("delaytime")&&null!==u.attr("delaytime")?u.attr("delaytime"):200)>=200?100:0,e=200,setTimeout((function(){u.attr("insertdata",[h],"array"),u._hide(a,t.type)}),r),setTimeout((function(){var t=void 0===o._getCellDOM(l+1,c)||null===o._getCellDOM(l+1,c);!0===u.attr("movescroll")&&(t=!0);var e=l+1;n===_.def.key.UP&&(e=l-1),o.editCell(e,c,t)}),e),t.preventDefault(),void t.stopPropagation();this.attr("bkeycode",n,"number"),n===_.def.key.ENTER||n===_.def.key.TAB?(_._.isObject(s)&&(null!==(h=d.unmask(h,{alias:s.alias}))&&"null"!==h||(h="")),r=(e=0!==u.attr("delaytime")&&null!==u.attr("delaytime")?u.attr("delaytime"):200)>=200?100:0,setTimeout((function(){u.attr("insertdata",[h],"array"),u._hide(a,t.type)}),r),!0===o.attr("useenterkeytonextcol")&&n===_.def.key.ENTER?o._moveNextCell(l,c,e):!0===u.attr("useenterkeytonext")&&n===_.def.key.ENTER&&setTimeout((function(){var t=void 0===o._getCellDOM(l+1,c)||null===o._getCellDOM(l+1,c);!0===u.attr("movescroll")&&(t=!0),o.editCell(l+1,c,t)}),e),t.stopPropagation(),t.preventDefault()):n===_.def.key.ESC?this._hide(a,t.type):(n>=48&&n<=90||n>=96&&n<=111||229===n)&&(!_._.isNull(this.attr("maxbyte"))&&!_._.isUndefined(this.attr("maxbyte"))&&_.util.strbyte.getByteLength(h)>this.attr("maxbyte")?i.value=h.slice(0,-1):!_._.isNull(this.attr("maxlength"))&&!_._.isUndefined(this.attr("maxlength"))&&h.length>this.attr("maxlength")&&(i.value=h.slice(0,this.attr("maxlength"))))},_.QCELL.Input.prototype.onKeyPress=function(t){var e=this.attr("element"),r=this.attr("parent")._getColElement(this.attr("col")).attr("limit");if(!1===_._.isUndefined(r)&&_._.isObject(r)&&"other"===r.type){var i="",o=0;if(void 0!==r.exclude){var a=r.exclude;for(i=e.value,o=0;o<i.length;o++)if(-1!==a.indexOf(i.charAt(o))){e.value=i.substring(0,o)+i.substring(o+1,i.length);break}}}},_.QCELL.Input.prototype.onKeyUp=function(t){if(-1!==this.attr("col")){var e=this.attr("element"),r=this.attr("parent"),i=r._getCellDOM(this.attr("row"),this.attr("col")),o=r._getColElement(this.attr("col")).attr("limit"),a=r._getColElement(this.attr("col")).attr("numrange"),s=t.keyCode;if(!1===_._.isUndefined(o)&&_._.isObject(o)){var n=e.value;if("string"===o.type)e.value=n.replace(/[0-9]/gi,"");else if("number"===o.type)e.value=n.replace(/[^0-9\.\,\-]/gi,"");else if("other"===o.type){var l="",c=0;if(void 0!==o.exclude){var h=o.exclude;for(l=e.value,c=0;c<l.length;c++)if(-1!==h.indexOf(l.charAt(c))){e.value=l.substring(0,c)+l.substring(c+1,l.length);break}}else if(void 0!==o.expreg){var d=o.expreg;for(l=e.value,c=0;c<l.length;c++)if(-1===d.indexOf(l.charAt(c))){e.value=l.substring(0,c)+l.substring(c+1,l.length);break}}}}if(s>=48&&s<=90||s>=96&&s<=111||229===s)if(!_._.isNull(this.attr("maxbyte"))&&!_._.isUndefined(this.attr("maxbyte"))&&_.util.strbyte.getByteLength(e.value)>this.attr("maxbyte"))e.value=e.value.slice(0,-1);else if(!_._.isNull(this.attr("maxlength"))&&!_._.isUndefined(this.attr("maxlength"))&&e.value.length>this.attr("maxlength")){e.value=e.value.slice(0,this.attr("maxlength"));var u=this;setTimeout((function(){u.attr("ismp",!0,"boolean"),u.attr("insertdata",[n],"array"),u._hide(i,t.type),u.attr("ismp",!1,"boolean")}),0),t.stopPropagation(),t.preventDefault()}if(!1===_._.isUndefined(a)&&_._.isString(a)){var p=Number(a.split(":")[0]),g=Number(a.split(":")[1]);!1===/^[+-]?\d*(\.?\d*)$/.test(e.value)?e.value="":e.value<p?e.value=p:e.value>g&&(e.value=g)}}},_.QCELL.Input.prototype.onBlur=function(t){!0!==this.attr("ismp")&&this.attr("parent")._onScrollHideEditCellsDOM()},_.QCELL.Input.prototype.onPaste=function(t){var e=this.attr("element"),r=this.attr("parent"),i=this,o=t.originalEvent,a="";o.clipboardData&&o.clipboardData.getData?a=o.clipboardData.getData("text"):t.clipboardData&&t.clipboardData.getData?a=t.clipboardData.getData("text/plain"):window.clipboardData&&window.clipboardData.getData&&(a=window.clipboardData.getData("Text"));var s=void 0===e.value||null===e.value?"":e.value;if(s+=a,!_._.isNull(this.attr("maxbyte"))&&!_._.isUndefined(this.attr("maxbyte"))&&_.util.strbyte.getByteLength(s)>this.attr("maxbyte")?setTimeout((function(){e.value=_.util.strbyte.cutByteLength(s,i.attr("maxbyte"))})):!_._.isNull(this.attr("maxlength"))&&!_._.isUndefined(this.attr("maxlength"))&&s.length>this.attr("maxlength")&&setTimeout((function(){e.value=s.slice(0,i.attr("maxlength"))})),"number"===r._getColDataType(this.attr("col"))){var n=s;n=n.replaceAll(",",""),isNaN(Number(n))&&(e.value=0,t.stopPropagation(),t.preventDefault())}},_.QCELL.Selectmenu=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Selectmenu,_.QCELL.ColElement),_.QCELL.Selectmenu.prototype._initTag=function(){this.tag("QBOX.QCELL.Selectmenu")},_.QCELL.Selectmenu.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("input",t.options.input,"array"),this.attr("position",{},"object"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("itemheight",-1,"number"),this.attr("itemcount",t.options.itemcount,"number"),this.attr("selectedEnd",t.options.selectedEnd,"boolean"),this.attr("selectclickopen",t.options.selectclickopen,"boolean"),this.attr("inputCallback",t.options.inputCallback,"function"),this.attr("direction",t.options.direction,"string")},_.QCELL.Selectmenu.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")+"_wrap"),t.className+=_.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE,this._setElement(t),this._calculateItemHeight(),!0}catch(t){return _.QCELL.log("err","QCELL.Selectmenu.prototype._createElement",t.message),!1}},_.QCELL.Selectmenu.prototype._initEvent=function(){var t=this;_.$(this.attr("element")).on("keydown keyup",{target:this},(function(e){switch(e.keyCode){case _.def.key.ESC:t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault();break;case _.def.key.LEFT:case _.def.key.RIGHT:case _.def.key.TAB:t._defaultSelect(),t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault();break;case _.def.key.ENTER:if(!0===t.attr("showkey"))return void t.attr("showkey",!1,"boolean");!0===t.attr("isopen")?_.$(t.attr("element")).selectmenu("open"):(t._defaultSelect(),t.attr("parent")._onScrollHideEditCellsDOM(),e.stopPropagation(),e.preventDefault());break;default:return!0}}))},_.QCELL.Selectmenu.prototype._getDataArray=function(){var t;if(_._.isFunction(this.attr("inputCallback"))){var e=this.attr("row"),r=this.attr("col");return-1===e||-1===r||void 0===(t=this.attr("inputCallback")(e,r,this.attr("parent")))?[]:t}return this.attr("input")},_.QCELL.Selectmenu.prototype._defaultSelect=function(t){var e=this._getDataArray();if(void 0!==e.length&&e.length&&void 0===this.attr("insertdata")[0]){var r=e[0].value;this.attr("insertdata",[r],"array")}},_.QCELL.Selectmenu.prototype._defaultAction=function(t){},_.QCELL.Selectmenu.prototype._show=function(t,e){try{var r,i=this.attr("parent"),o=parseInt(t.getAttribute("data-row")),a=parseInt(t.getAttribute("data-col")),s=i._cellValue(o,a),n=_.$(t).empty(),l=i._getQCellCol(a).attr("cellinvisible")[o],c=this;if(this.attr("insertdata",[s],"array"),this.attr("row",o,"number"),this.attr("col",a,"number"),this._calculateItemHeight(),this._initSelect(),r=this.attr("element"),n.append(r),r.focus(),this.attr("isopen",!1,"boolean"),_.QCELL.config.htmlselectmenu)r.getElementsByTagName("select")[0].value=this.attr("parent")._cellValue(o,a),_.$(r.getElementsByTagName("select")).css("width",parseInt(n.css("width"))-4),_.$(r.getElementsByTagName("select")).css("height",parseInt(n.css("height"))-4),_.$(r.getElementsByTagName("select")).bind("change",(function(t){s=t.target.value;for(var e=c._getDataArray(),o=0;o<e.length&&e[o].value!==s;o++)if(e[o].value+""===s){s=Number(s);break}c.attr("insertdata",[s],"array"),_.$(r).trigger("selected",[c.attr("row"),c.attr("col"),s]),c.attr("selectedEnd")&&c._hide(i._getCellDOM(c.attr("row"),c.attr("col")),"selected")}));else{_.$(r.getElementsByTagName("select")).selectmenu({width:parseInt(n.css("width"))-4,position:this._calculatePosition(t),close:function(t,e){c.attr("isopen",!1,"boolean")},open:function(t,e){c.attr("isopen",!0,"boolean")},select:function(t,e){if(t.keyCode!==_.def.key.LEFT&&t.keyCode!==_.def.key.RIGHT){s=e.item.value;for(var o=c._getDataArray(),a=0;a<o.length&&o[a].value!==s;a++)if(o[a].value+""===s){s=Number(s);break}c.attr("insertdata",[s],"array"),_.$(r).trigger("selected",[c.attr("row"),c.attr("col"),e]),c.attr("selectedEnd")&&c._hide(i._getCellDOM(c.attr("row"),c.attr("col")),"selected")}}}),c.attr("selectclickopen")&&setTimeout((function(){_.$(r.getElementsByTagName("select")).selectmenu("open")}));var h="#"+this.attr("id")+"-button";_.$(h).focus(),_.$(h).css("margin-bottom","3px"),_._.isUndefined(this.attr("itemcount"))||_.$(r.getElementsByTagName("select")).selectmenu("menuWidget").css("height",this.attr("itemheight"))}var d=t.getElementsByClassName("rt-qc-ui-selectmenu-text");if(d.length>0){var u=d[0],p=i._cellValue(i.getRows("header")-1,a),g=this._getDataLabel(o,a);u.setAttribute("aria-label",o+"행 "+p+"열 "+g)}return this.attr("visible",!0,"boolean"),i._addEditColId(this.attr("colid")),l&&i._setInitCellInvisible(o,a),!0}catch(t){return _.QCELL.log("err","QCELL.Selectmenu.prototype._show",t.message),!1}},_.QCELL.Selectmenu.prototype._hide=function(t,e){try{if(null===t)return;var r=this.attr("parent"),i=this.attr("element"),o=this.attr("row"),a=this.attr("col"),s=this.attr("insertdata")[0];if(_.QCELL.config.htmlselectmenu||_.$(i.getElementsByTagName("select")).selectmenu("destroy"),_.$(i).remove().html(""),t.hasChildNodes())for(var n=0;n<t.childNodes.length;n++){var l=t.childNodes[n];_.$(l).hasClass(_.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE)&&t.removeChild(l)}if(s!==r._cellValue(o,a)?("none"===r.attr("merge").data||_._.isUndefined(r.attr("merge").data)||!1===r._getColDataMergeCol(a)?(r._cellValue(o,a,s),this._showDataLabel(t,o,a,s)):this._changeMergeCellValue(o,a,s,void 0),r._processValueChanged(o,a)):(_.util.textContent(t,s),this._showDataLabel(t,o,a,s)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)r.attr("elementpool").get("$container").focus();if("msie"!==_.$.browser.name?_.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),r._removeEditColId(this.attr("colid")),r.attr("useall")||r.attr("usetreeall")){var c=!0!==r.attr("hideedit");r._setAriaLabelEx(t,o,a,c),_.util.textContent(t,s),this._showDataLabel(t,o,a,s)}var h=t.textContent,d=this;return setTimeout((function(){var e=r._getCellDOM(o,a);null!=e&&e.textContent!==h&&d._showDataLabel(t,o,a,void 0===s?"":s)}),100),!0}catch(t){return _.QCELL.log("err","QCELL.Selectmenu.prototype._hide",t.message),!1}},_.QCELL.Selectmenu.prototype._initSelect=function(){try{var t,e,r=_.$(this.attr("element")).empty(),i=document.createElement("select"),o=null;i.setAttribute("id",this.attr("id")),i.className=_.QCELL.def.css.TYPE_SELECTMENU_WRAP_STYLE;for(var a=this._getDataArray(),s=0;s<a.length;s++)o=document.createElement("option"),t=a[s].label,e=a[s].value,o.setAttribute("value",e),e===this.attr("insertdata")[0]&&o.setAttribute("selected","selected"),o.innerHTML=t,_.$(i).append(o),o=null;return r.append(i),this._setElement(r[0]),!0}catch(t){return _.QCELL.log("err","QCELL.Selectmenu.prototype._initSelect",t.message),!1}},_.QCELL.Selectmenu.prototype._calculateItemHeight=function(){var t=0,e=0,r=this._getDataArray();if(void 0!==r){if(!_._.isUndefined(this.attr("itemcount"))&&this.attr("itemcount")<r.length)for(e=0;e<this.attr("itemcount");e++)"mozilla"===_.$.browser.name||"msie"===_.$.browser.name&&8===_.$.browser.versionNumber?t+=21:"msie"===_.$.browser.name&&8!==_.$.browser.versionNumber?t+=20:t+=22;else for(e=0;e<r.length;e++)"mozilla"===_.$.browser.name||"msie"===_.$.browser.name&&8===_.$.browser.versionNumber?t+=21:"msie"===_.$.browser.name&&8!==_.$.browser.versionNumber?t+=20:t+=22;this.attr("itemheight",t,"number")}else this.attr("itemheight",t,"number")},_.QCELL.Selectmenu.prototype._calculatePosition=function(t){var e=this.attr("parent"),r=parseInt(_.$(t).css("height")),i=parseInt(_.$(t).css("top"))+e.attr("layoutsize").colheader.offsetHeight;return"down"===this.attr("direction")?{my:"left top",at:"left bottom"}:"up"===this.attr("direction")||e.attr("layoutsize").root.offsetHeight<i+r+this.attr("itemheight")?{my:"left bottom",at:"left top"}:{my:"left top",at:"left bottom"}},_.QCELL.Selectmenu.prototype._showDataLabel=function(t,e,r,i){try{this.attr("row",e,"number"),this.attr("col",r,"number");var o=this.attr("parent"),a=this._getDataArray(),s=o.getRowData(e);if(!0===s.rt_qc_footer||!0===s.rt_qc_header)return _.util.textContent(t,i),void o._setAriaLabel(t,e,r,i);if(o._isBottomPanel(t))return void(void 0===i?_.util.textContent(t,""):_.util.textContent(t,i));if(o._showDisableText(t,e,r))return;void 0===i&&(i="");var n="";if(!_._.isUndefined(a)&&!_._.isNull(a))for(var l=0;l<a.length;l++){if(i===a[l].value){_.util.textContent(t,a[l].label),n=a[l].label;break}l===a.length-1&&_.util.textContent(t,"")}return o._setAriaLabel(t,e,r,n),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL.Selectmenu._showDataLabel",t.message),!1}},_.QCELL.Selectmenu.prototype._getDataLabel=function(t,e){try{this.attr("row",t,"number"),this.attr("col",e,"number");var r=this.attr("parent").getCellData(t,e),i=this._getDataArray();if(!_._.isUndefined(i)&&!_._.isNull(i))for(var o=0;o<i.length;o++){if(r===i[o].value)return i[o].label;if(o===i.length-1)return""}return""}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL.Selectmenu._getDataLabel",t.message),""}},_.QCELL.Textarea=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Textarea,_.QCELL.ColElement),_.QCELL.Textarea.prototype._initTag=function(){this.tag("QBOX.QCELL.Textarea")},_.QCELL.Textarea.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("insertdata","","string"),this.attr("width",t.options.textareawidth,"string"),this.attr("height","150px","string"),this.attr("maxlength",t.options.maxlength,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("limit",t.options.limit,"object"),this.attr("exclude",t.options.exclude,"array"),this.attr("validator",t.options.validator,"function"),this.attr("bkeycode",void 0,"number"),t.options.inputclass=void 0===t.options.inputclass?"":t.options.inputclass,_._.isString(t.options.inputclass)||(t.options.inputclass=""),this.attr("inputclass",t.options.inputclass,"string"),this.attr("placeholder",t.options.placeholder,"string")},_.QCELL.Textarea.prototype._createElement=function(){try{var t=document.createElement("textarea");return t.setAttribute("id",this.attr("id")),_.$(t).attr("autocomplete","off"),t.className+=_.QCELL.def.css.TYPE_TEXTAREA_TEXT_STYLE+" "+this.attr("inputclass"),_.$(t).css({width:this.attr("width"),height:this.attr("height")}),this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Textarea.prototype._createElement",t.message),!1}},_.QCELL.Textarea.prototype._initEvent=function(){_.$(this.attr("element")).on("keydown keyup keypress blur",{target:this},_.st.eventProcess)},_.QCELL.Textarea.prototype._defaultAction=function(t){var e=t.keyCode,r=this.attr("bkeycode");switch(t.type){case"keydown":this.onKeyDown(t);break;case"keyup":this.onKeyUp(t);break;case"blur":if(void 0===e&&void 0===r)break;if(r===_.def.key.ENTER||r===_.def.key.TAB||r===_.def.key.ESC)break;this.onBlur(t);break;case"keypress":this.onKeyPress(t)}},_.QCELL.Textarea.prototype._show=function(t,e){try{var r,i,o=this.attr("parent"),a=this.attr("element"),s=parseInt(t.getAttribute("data-row")),n=parseInt(t.getAttribute("data-col")),l=void 0===o._cellValue(s,n)?"":o._cellValue(s,n),c=_.$(t).empty(),h=o.attr("elementpool").get("$container"),d=o._getQCellCol(n).attr("cellinvisible")[s];if(o._isValidEditColId(this.attr("colid")))return;return a.value=l,void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(a.placeholder=this.attr("placeholder")),_._.isUndefined(this.attr("width"))&&(_.$(a).css("width",c.css("width")),this.attr("width",_.$(a).css("width"),"string")),h.append(a),a.focus(),a.select(),r=this._calculateTop(a,t),i=this._calculateLeft(a,t),_.$(a).css({left:i,top:r}),this.attr("row",s,"number"),this.attr("col",n,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",l,"string"),o._addEditColId(this.attr("colid")),d&&o._setInitCellInvisible(s,n),!0}catch(t){return _.QCELL.log("err","QCELL.Textarea.prototype._show",t.message),!1}},_.QCELL.Textarea.prototype._hide=function(t,e){try{if(null===t)return;var r=this.attr("parent"),i=this.attr("element"),o=this.attr("row"),a=this.attr("col"),s=i.value,n=this.attr("validator");"keydown"===e&&(s=this.attr("insertdata")),!_._.isNull(this.attr("maxbyte"))&&!_._.isUndefined(this.attr("maxbyte"))&&_.util.strbyte.getByteLength(s)>this.attr("maxbyte")?s=_.util.strbyte.cutByteLength(s,this.attr("maxbyte")):!_._.isNull(this.attr("maxlength"))&&!_._.isUndefined(this.attr("maxlength"))&&s.length>this.attr("maxlength")&&(s=s.slice(0,this.attr("maxlength"))),void 0!==this.attr("exclude")&&_._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{_._.isString(t)&&(s=s.split(t).join(""))}catch(t){_.QCELL.log("err","QCELL.Textarea.prototype._hide",t.message)}}));var l=i.parentElement;setTimeout((function(){try{var t=0;if(void 0===l)return;if(null===l.childNodes)return;for(t=0;t<l.childNodes.length;t++)if(i===l.childNodes[t]){if(l.removeChild(i),null===l.childNodes)return;break}}catch(t){return}}),0);var c=!0;if(n&&(c=n(o,a,s)),!0===c?s!==r._cellValue(o,a)?("none"===r.attr("merge").data||_._.isUndefined(r.attr("merge").data)||!1===r._getColDataMergeCol(a)?r._cellValue(o,a,s):this._changeMergeCellValue(o,a,s,void 0),r._processValueChanged(o,a)):!1===_._.isNull(t)&&_.util.textContent(t,s):(s=r._cellValue(o,a),!1===_._.isNull(t)&&_.util.textContent(t,s)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber){var h=r.attr("elementpool");h.get("$container").focus(),h=null}if("msie"!==_.$.browser.name?_.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata","","string"),this.attr("showkey",!1,"boolean"),r._removeEditColId(this.attr("colid")),r.attr("useall")||r.attr("usetreeall")){var d=!0!==r.attr("hideedit");r._setAriaLabelEx(t,o,a,d)}return!0}catch(t){return _.QCELL.log("err","QCELL.Textarea.prototype._hide",t.message),!1}},_.QCELL.Textarea.prototype._calculateTop=function(t,e){var r=this.attr("parent"),i=parseInt(_.$(e).css("height")),o=parseFloat(_.$(t).css("height")),a=parseInt(_.$(e).css("top"))+r.attr("layoutsize").colheader.offsetHeight;return r.attr("layoutsize").root.offsetHeight<a+o&&(a-=o-i),a},_.QCELL.Textarea.prototype._calculateLeft=function(t,e){var r=this.attr("parent"),i=parseInt(_.$(e).css("width")),o=parseFloat(_.$(t).css("width")),a=parseInt(_.$(e).css("left"))+r.attr("layoutsize").rowheader.offsetWidth;return r.attr("layoutsize").root.offsetWidth<a+o&&(a-=o-i),a},_.QCELL.Textarea.prototype.onKeyDown=function(t){var e=this.attr("element"),r=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),i=t.keyCode,o=e.value;if(this.attr("bkeycode",i,"number"),!1===t.altKey)if(i===_.def.key.ENTER||i===_.def.key.TAB){var a=this;setTimeout((function(){a.attr("insertdata",o,"string"),a._hide(r,t.type)}),100),t.stopPropagation(),t.preventDefault()}else i===_.def.key.ESC?this._hide(r,t.type):(i>=48&&i<=90||i>=96&&i<=111||229===i)&&!_._.isNull(this.attr("maxlength"))&&!_._.isUndefined(this.attr("maxlength"))&&o.length>this.attr("maxlength")&&(e.value=o.slice(0,-1));else i===_.def.key.ENTER&&(e.value+="\r")},_.QCELL.Textarea.prototype.onKeyPress=function(t){var e=this.attr("element"),r=this.attr("parent")._getColElement(this.attr("col")).attr("limit");if(!1===_._.isUndefined(r)&&_._.isObject(r)&&"other"===r.type){var i="",o=0;if(void 0!==r.exclude){var a=r.exclude;for(i=e.value,o=0;o<i.length;o++)if(-1!==a.indexOf(i.charAt(o))){e.value=i.substring(0,o)+i.substring(o+1,i.length);break}}}},_.QCELL.Textarea.prototype.onKeyUp=function(t){var e=this.attr("element"),r=this.attr("parent"),i=r._getCellDOM(this.attr("row"),this.attr("col")),o=r._getColElement(this.attr("col")).attr("limit"),a=t.keyCode;if(!1===_._.isUndefined(o)&&_._.isObject(o))if("string"===o.type)e.value=e.value.replace(/[0-9]/gi,"");else if("number"===o.type)e.value=e.value.replace(/[^0-9\.\,\-]/gi,"");else if("other"===o.type){var s="",n=0;if(void 0!==o.exclude){var l=o.exclude;for(s=e.value,n=0;n<s.length;n++)if(-1!==l.indexOf(s.charAt(n))){e.value=s.substring(0,n)+s.substring(n+1,s.length);break}}else if(void 0!==o.expreg){var c=o.expreg;for(s=e.value,n=0;n<s.length;n++)if(-1===c.indexOf(s.charAt(n))){e.value=s.substring(0,n)+s.substring(n+1,s.length);break}}}if((a>=48&&a<=90||a>=96&&a<=111||229===a)&&!_._.isNull(this.attr("maxlength"))&&!_._.isUndefined(this.attr("maxlength"))&&e.value.length>this.attr("maxlength")){e.value=e.value.slice(0,this.attr("maxlength"));var h=this;setTimeout((function(){h._hide(i,t.type)}),0)}},_.QCELL.Textarea.prototype.onBlur=function(t){this.attr("parent")._onScrollHideEditCellsDOM()},_.QCELL.Chart=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Chart,_.QCELL.ColElement),_.QCELL.Chart.prototype._initTag=function(){this.tag("QBOX.QCELL.Chart")},_.QCELL.Chart.prototype._initAttrs=function(t){if(_.QCELL.ColElement.prototype._initAttrs.call(this,t),void 0!==t.options.chart){var e=void 0===t.options.chart.datatype?"data":t.options.chart.datatype;e="data"===e?"data":"key"===e?"key":"data";var r=void 0===t.options.chart.type?"line":t.options.chart.type;switch(r){case"line":case"bar":case"tristate":case"discrete":case"bullet":case"pie":case"box":break;default:r="line"}var i=void 0===t.options.chart.keys?[]:t.options.chart.keys;this.attr("dataType",e,"string"),this.attr("chartType",r,"string"),this.attr("keys",i,"array"),this.attr("customoption",t.options.chart.customoption,"function"),this.attr("chartClicked",t.options.chart.chartClicked,"function"),this.attr("option",t.options.chart.option,"object")}},_.QCELL.Chart.prototype._show=function(t,e,r){try{var i,o=this.attr("parent"),a=o._cellValue(e,r),s=o.attr("currentdata"),n=this,l=o._getColChart(r),c=this.attr("option"),h=this.attr("keys"),d=o._getQCellCol(r).attr("cellinvisible")[e],u=o.attr("headerrows");if(o._isBottomPanel(t))return void(void 0===a?_.util.textContent(t,""):_.util.textContent(t,a));if("data"===this.attr("dataType"))i=a;else{i=[];for(var p=0;p<h.length;p++)i.push(s[e-u][h[p]])}if(void 0===i||0===i.length)return;null!==t.firstChild&&t.removeChild(t.firstChild);var g=document.createElement("span");g.style.textAlign="center",t.appendChild(g);var f={height:(o._getRowHeight(e)-10).toString(),width:(o._getColWidth(r)-10).toString(),type:this.attr("chartType")};if("bar"===this.attr("chartType")||"tristate"===this.attr("chartType")?f.barWidth=o._getColWidth(r)/(i.length+1):"pie"===this.attr("chartType")?f.height=o._getRowHeight(e).toString():"discrete"===this.attr("chartType")&&(f.width=o._getColWidth(r).toString()),null!==c)for(var m in c)f[m]=c[m];return _._.isFunction(this.attr("customoption"))&&(f=l.customoption(o,e,r,i,f)),"bar"!==f.type&&"tristate"!==f.type||void 0!==f.barWidth||(f.barWidth=o._getColWidth(r)/(i.length+1)),"pie"===f.type&&delete f.width,setTimeout((function(){_.$(g).sparkline(i,f),_.$(g).bind("sparklineClick",(function(t){o._clickCell(e,r),_._.isFunction(n.attr("customoption"))&&l.chartClicked(o,e,r,i,f)})),null!==g.firstChild&&(g.firstChild.style.verticalAlign="middle","pie"===f.type&&(g.firstChild.style.display="block",g.firstChild.style.margin="auto"))}),0),d&&o._setInitCellInvisible(e,r),!0}catch(t){return _.QCELL.log("err","QCELL.Chart._show",t.message),!1}},_.QCELL.Multicheckbox=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Multicheckbox,_.QCELL.ColElement),_.QCELL.Multicheckbox.prototype._initTag=function(){this.tag("QBOX.QCELL.Multicheckbox")},_.QCELL.Multicheckbox.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("visible",!1,"boolean"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("input",t.options.input,"array"),this.attr("position",{},"object"),this.attr("width",-1,"number"),this.attr("tabindex",-1,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("likeradio",void 0!==t.options.likeradio&&t.options.likeradio,"boolean")},_.QCELL.Multicheckbox.prototype._getDataArray=function(){return this.attr("input")},_.QCELL.Multicheckbox.prototype._defaultSelect=function(t){var e=this._getDataArray();if(void 0!==e.length&&e.length&&void 0===this.attr("insertdata")[0]){var r=e[0].value;this.attr("insertdata",[r],"array")}},_.QCELL.Multicheckbox.prototype._createElement=function(){try{var t=document.createElement("div");return t.setAttribute("id",this.attr("id")+"_wrap"),t.setAttribute("data-row",this.attr("row")),t.setAttribute("data-col",this.attr("col")),t.className+=_.QCELL.def.css.TYPE_MULTICHECKBOX_WRAP_STYLE,this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Multicheckbox.prototype._createElement",t.message),!1}},_.QCELL.Multicheckbox.prototype._initEvent=function(){_.$(this.attr("element")).on("click keyup focusout",{target:this},_.st.eventProcess)},_.QCELL.Multicheckbox.prototype._defaultAction=function(t){switch(t.type){case"click":this.onClick(t);break;case"keyup":this.onKeyUp(t);break;case"focusout":this.onFocusOut(t)}},_.QCELL.Multicheckbox.prototype._initMulticheckbox=function(t,e,r,i){try{var o=_.$(this.attr("element")).empty(),a=document.createElement("span"),s=this.attr("input"),n=_.$(t).empty(),l=0;this.attr("insertdata",i,"array"),o.addClass(_.QCELL.def.css.CELL),o.addClass(_.QCELL.def.css.CELL_VIEWPORT),o.addClass(_.QCELL.def.css.CELL_FOCUS),o.addClass(_.QCELL.def.css.CELL_SELECT);for(var c=0;c<s.length;c++){var h=document.createElement("input"),d=document.createElement("label"),u=!1;if(h.setAttribute("type","checkbox"),h.setAttribute("name",this.attr("id")),h.setAttribute("id",this.attr("id")+"-"+c),h.setAttribute("data-row",e),h.setAttribute("data-col",r),h.className+=_.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE,this.attr("likeradio")&&(h.className+=" "+_.QCELL.def.css.TYPE_RADIO_STYLE),d.setAttribute("for",this.attr("id")+"-"+c),d.innerText=s[c].label,l+=s[c].label.length,!_._.isUndefined(i))for(var p=0;p<i.length;p++)if(s[c].value===i[p]){_.$(h).prop("checked",!0),this.attr("likeradio")&&u&&_.$(h).prop("checked",!1),u=!0;break}_.$(a).append(h),_.$(a).append(d)}a.style.height=n.css("height"),a.style.lineHeight=n.css("height"),o[0].setAttribute("data-row",e),o[0].setAttribute("data-col",r),o.append(a),this.attr("width",25*l<100?100:25*l,"number")}catch(t){return _.QCELL.log("err","QCELL.Multicheckbox.prototype._initMulticheckbox",t.message),!1}},_.QCELL.Multicheckbox.prototype._show=function(t,e,r){try{var i=this.attr("parent"),o=this.attr("element"),a=i._cellValue(e,r),s=_.$(t).empty(),n=i.attr("elementpool").get("$viewportinner"),l=i._getQCellCol(r).attr("cellinvisible")[e];return this._initMulticheckbox(t,e,r,a),_.$(o).css({width:this.attr("width"),height:s.css("height")}),this._adjustPosition(o,s),n.append(o),_.$(o).find("."+_.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE)[0].focus(),this.attr("row",e,"number"),this.attr("col",r,"number"),this.attr("insertdata",a,"array"),this.attr("visible",!0,"boolean"),i._addEditColId(this.attr("colid")),l&&i._setInitCellInvisible(e,r),!0}catch(t){return _.QCELL.log("err","QCELL.Multicheckbox._show",t.message),!1}},_.QCELL.Multicheckbox.prototype._hide=function(t,e){try{var r=this.attr("parent"),i=this.attr("element"),o=this.attr("row"),a=this.attr("col"),s=this.attr("insertdata");if("esc"===e&&(s=this.attr("insertdata")),_.$(i).detach(),s!==r._cellValue(o,a)?("none"===r.attr("merge").data||_._.isUndefined(r.attr("merge").data)||!1===r._getColDataMergeCol(a)?(r._cellValue(o,a,s),this._showDataLabel(t,o,a,s)):this._changeMergeCellValue(o,a,s,void 0),r._updateIdx("valuechanged",o,a),r._trigger("valuechanged")):(_.util.textContent(t,s),this._showDataLabel(t,o,a,s)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)r.attr("elementpool").get("$container").focus();"msie"!==_.$.browser.name?_.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),this.attr("isopen",!1,"boolean"),r._removeEditColId(this.attr("colid"))}catch(t){return _.QCELL.log("err","QCELL.Multicheckbox.prototype._hide",t.message),!1}},_.QCELL.Multicheckbox.prototype._adjustPosition=function(t,e){var r=this.attr("parent"),i=parseInt(_.$(t).css("width")),o=parseInt(_.$(t).css("height")),a=parseInt(e.css("left")),s=parseInt(e.css("top")),n=r.attr("layoutsize").root.offsetHeight;a+i>r.attr("layoutsize").root.offsetWidth?_.$(t).css("right",0):_.$(t).css("left",a),s+o>n?_.$(t).css("bottom",0):_.$(t).css("top",s)},_.QCELL.Multicheckbox.prototype._showDataLabel=function(t,e,r,i){try{this.attr("row",e,"number"),this.attr("col",r,"number");var o=this.attr("parent"),a=o.getRowData(e);if(!0===a.rt_qc_footer||!0===a.rt_qc_header)return _.util.textContent(t,i),void o._setAriaLabel(t,e,r,i);if(o._isBottomPanel(t))return void(void 0===i?_.util.textContent(t,""):_.util.textContent(t,i));if(o._showDisableText(t,e,r))return;var s=this._getDataArray(),n=[],l="";if(!_._.isUndefined(s)&&!_._.isNull(s)){if(!_._.isUndefined(i)){for(var c=0;c<i.length;c++)for(var h=0;h<s.length;h++){if(i[c]===s[h].value){n[c]=s[h].label;break}h===s.length-1&&(n[c]="")}for(var d=0;d<n.length;d++)0===d?l+=n[d]:""!==n[d-1]&&(l+=", "+n[d])}_.util.textContent(t,l)}return!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL.Multicheckbox._showDataLabel",t.message),!1}},_.QCELL.Multicheckbox.prototype._setMultiCheckboxCellData=function(t){var e,r=this.attr("parent"),i=Number(t.getAttribute("data-col")),o=r._getColElement(i),a=[];null===o&&(i=Number(t.getAttribute("data-col"))),o=r._getColElement(i),e=o.attr("input"),_.$(t).is("span")||_.$(t).is("div")||(t=t.parentNode),_.$(t).find('input[type="checkbox"]').each((function(t){this.checked&&a.push(e[t].value)})),this.attr("insertdata",a,"array")},_.QCELL.Multicheckbox.prototype._setMultiCheckboxClick=function(t,e){var r=this.attr("likeradio"),i=t.name,o=parseInt(t.getAttribute("data-row")),a=parseInt(t.getAttribute("data-col"));this.attr("row",o,"number"),this.attr("col",a,"number"),r&&(_.$('input[type="checkbox"][name="'+i+'"]').prop("checked",!1),_.$(t).prop("checked",!0))},_.QCELL.Multicheckbox.prototype.onFocusOut=function(t){var e=this.attr("element"),r=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),i=t.relatedTarget;if(_._.isElement(i)&&!r.parentNode.isSameNode(i)){var o=Number(i.getAttribute("data-row")),a=Number(i.getAttribute("data-col"));0===o&&0===a&&(this._setMultiCheckboxCellData(e),this._hide(r,t.type),r.focus())}else null===i&&this.attr("isopen")&&(this.attr("isopen",!1,"boolean"),this._hide(r,"esc"))},_.QCELL.Multicheckbox.prototype.onKeyUp=function(t){var e=this.attr("parent"),r=e._getCellDOM(this.attr("row"),this.attr("col")),i=t.keyCode,o=this.attr("isopen");if(null===r){var a=parseInt(t.target.getAttribute("data-row")),s=parseInt(t.target.getAttribute("data-col"));r=e._getCellDOM(a,s),this.attr("row",a,"number"),this.attr("col",s,"number")}switch(i){case _.def.key.ENTER:!1===o?this.attr("isopen",!0,"boolean"):(this.attr("isopen",!1,"boolean"),this._setMultiCheckboxCellData(t.target),this._hide(r,t.type));break;case _.def.key.ESC:this.attr("isopen",!1,"boolean"),this._hide(r,"esc");break;case _.def.key.TAB:!1===o&&this.attr("isopen",!0,"boolean")}},_.QCELL.Multicheckbox.prototype.onClick=function(t){var e=t.target,r=Number(e.parentNode.getAttribute("data-row")),i=Number(e.parentNode.getAttribute("data-col")),o=this.attr("parent"),a=this;if(_.util.hasClass(e,_.QCELL.def.css.TYPE_MULTICHECKBOX_STYLE)||_.$(e).is("label"))this.attr("isopen",!0,"boolean"),this._setMultiCheckboxClick(e,e.checked);else{r=Number(e.getAttribute("data-row")),i=Number(e.getAttribute("data-col"));var s=o._getCellDOM(r,i);_.$(e.parentNode).off("keyup").on("keyup",(function(t){switch(t.keyCode){case _.def.key.ENTER:case _.def.key.ESC:a._hide(s,t.type)}}))}},_.QCELL.Number=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Number,_.QCELL.Input),_.QCELL.Number.prototype._initTag=function(){this.tag("QBOX.QCELL.Number")},_.QCELL.Number.prototype._initAttrs=function(t){_.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("min",t.options.min,"number"),this.attr("max",t.options.max,"number"),this.attr("step",t.options.step,"number")},_.QCELL.Number.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),t.setAttribute("type","number"),t.className+=_.QCELL.def.css.TYPE_NUMBER_TEXT_STYLE,void 0!==this.attr("max")&&null!==this.attr("max")&&t.setAttribute("max",this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&t.setAttribute("min",this.attr("min")),void 0!==this.attr("step")&&null!==this.attr("step")&&t.setAttribute("step",this.attr("step")),this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Number.prototype._createElement",t.message),!1}},_.QCELL.Number.prototype._show=function(t,e){try{var r=this.attr("parent"),i=this.attr("element"),o=parseInt(t.getAttribute("data-row")),a=parseInt(t.getAttribute("data-col")),s=void 0===r._cellValue(o,a)?"":r._cellValue(o,a),n=_.$(t).empty(),l=r.attr("elementpool").get("$viewportinner"),c=r._getQCellCol(a).attr("cellinvisible")[o];return isNaN(s)&&(s=0),void 0!==this.attr("max")&&null!==this.attr("max")&&s>this.attr("max")&&(s=this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&s<this.attr("min")&&(s=this.attr("min")),_.$(i).val(s),i.value=s,r._showMask(a,i),_.$(i).css({width:n.css("width"),height:n.css("height"),left:n.css("left"),top:n.css("top")}),l.append(i),i.focus(),i.select(),this.attr("row",o,"number"),this.attr("col",a,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[s],"array"),r._addEditColId(this.attr("colid")),c&&r._setInitCellInvisible(o,a),!0}catch(t){return _.QCELL.log("err","QCELL.Number.prototype._show",t.message),!1}},_.QCELL.Number.prototype._hide=function(t,e){try{if(null===t)return;var r,i=this.attr("parent"),o=this.attr("element"),a=this.attr("row"),s=this.attr("col"),n=o.value,l=this.attr("format"),c=this.attr("validator"),h=i._cellValue(a,s);n=i._showUnMask(s,n,l),void 0!==this.attr("max")&&null!==this.attr("max")&&n>this.attr("max")&&(n=this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&n<this.attr("min")&&(n=this.attr("min")),_.$(o).detach(),void 0!==this.attr("exclude")&&_._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{_._.isString(t)&&(n=n.split(t).join(""))}catch(t){_.QCELL.log("err","QCELL.Number.prototype._hide",t.message)}}));var d=!0;c&&(d=c(a,s,n));var u=n,p=h;if(_._.isObject(l)&&"number"===l.type&&("string"==typeof h&&(h=h.replaceAll(",",""),n=n.replaceAll(",","")),h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)),!0===d?n!==Number(i._cellValue(a,s))?""===n&&void 0===i._cellValue(a,s)?_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),_.util.textContent(t,r)):_.util.textContent(t,n):("none"===i.attr("merge").data||_._.isUndefined(i.attr("merge").data)||!1===i._getColDataMergeCol(s)?(i._cellValue(a,s,n),_._.isObject(l)&&(r=i._showDataFormat(a,s,void 0===n?"":n),_.util.textContent(t,r))):this._changeMergeCellValue(a,s,n,l),i._processValueChanged(a,s)):!_._.isObject(l)||"number"!==l.type||""!==u||""!==p&&void 0!==p?_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),_.util.textContent(t,r)):_.util.textContent(t,n):_.util.textContent(t,u):(n=i._cellValue(a,s),_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),_.util.textContent(t,r)):_.util.textContent(t,n)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)i.attr("elementpool").get("$container").focus();return"msie"!==_.$.browser.name?_.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),i._removeEditColId(this.attr("colid")),d}catch(t){return _.QCELL.log("err","QCELL.Number.prototype._hide",t.message),!1}},_.QCELL.Slider=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Slider,_.QCELL.ColElement),_.QCELL.Slider.prototype._initTag=function(){this.tag("QBOX.QCELL.Slider")},_.QCELL.Slider.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("min",t.options.min,"number"),this.attr("max",t.options.max,"number"),this.attr("step",t.options.step,"number"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata",[],"array"),this.attr("validator",t.options.validator,"function")},_.QCELL.Slider.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("input"),r=document.createElement("label");return e.setAttribute("id",this.attr("id")),e.setAttribute("type","range"),_.util.addClass(e,_.QCELL.def.css.TYPE_SLIDER_SINGLE_STYLE),void 0!==this.attr("max")&&null!==this.attr("max")&&e.setAttribute("max",this.attr("max")),void 0!==this.attr("min")&&null!==this.attr("min")&&e.setAttribute("min",this.attr("min")),void 0!==this.attr("step")&&null!==this.attr("step")&&e.setAttribute("step",this.attr("step")),r.setAttribute("id",this.attr("id")+"-result"),_.util.addClass(r,_.QCELL.def.css.TYPE_SLIDER_RESULT_SINGLE_STYLE),t.appendChild(e),t.appendChild(r),_.util.addClass(t,_.QCELL.def.css.TYPE_SLIDER_WRAP_STYLE),this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Slider.prototype._createElement",t.message),!1}},_.QCELL.Slider.prototype._show=function(t,e){try{var r,i,o=this.attr("parent"),a=this.attr("element"),s=parseInt(t.getAttribute("data-row")),n=parseInt(t.getAttribute("data-col")),l=void 0===o._cellValue(s,n)?"":o._cellValue(s,n),c=_.$(t).empty(),h=o.attr("elementpool").get("$viewportinner"),d=a.childNodes[0],u=a.childNodes[1],p=o.attr("currentdata"),g=o.attr("colkeys")[n],f=o._getQCellCol(n).attr("cellinvisible")[s],m=[];return isNaN(l)&&(l=0),m=_._.pluck(p,g),_._.uniq(m),m=m.sort(),void 0!==this.attr("max")&&null!==this.attr("max")?(l>this.attr("max")&&(l=this.attr("max")),r=parseInt(this.attr("max"))):r=m[m.length],void 0!==this.attr("min")&&null!==this.attr("min")?(l<this.attr("min")&&(l=this.attr("min")),i=parseInt(this.attr("min"))):i=m[0],d.setAttribute("max",r),d.setAttribute("min",i),d.value=l,d.setAttribute("data-value",l),u.innerHTML=l,o._showMask(n,a),_.$(a).css({width:c.css("width"),height:c.css("height"),left:c.css("left"),top:c.css("top")}),_.$.browser.msie?d.addEventListener("change",(function(t){_.$(u).empty(),u.innerHTML=this.value})):d.addEventListener("input",(function(t){_.$(u).empty(),u.innerHTML=this.value})),h.append(a),a.focus(),this.attr("row",s,"number"),this.attr("col",n,"number"),this.attr("insertdata",[l],"array"),o._addEditColId(this.attr("colid")),f&&o._setInitCellInvisible(s,n),!0}catch(t){return _.QCELL.log("err","QCELL.Slider.prototype._show",t.message),!1}},_.QCELL.Slider.prototype._hide=function(t,e){try{if(null===t)return;var r=this.attr("parent"),i=this.attr("element"),o=this.attr("row"),a=this.attr("col"),s=i.childNodes[0].value,n=this.attr("validator");s=r._showUnMask(a,s),_.$(i).detach();var l=!0;if(n&&(l=n(o,a,s)),!0===l?s!==r._cellValue(o,a)?""===s&&void 0===r._cellValue(o,a)?_.util.textContent(t,s):("none"===r.attr("merge").data||_._.isUndefined(r.attr("merge").data)||!1===r._getColDataMergeCol(a)?(r._cellValue(o,a,s),_.util.textContent(t,s)):this._changeMergeCellValue(o,a,s),r._processValueChanged(o,a)):_.util.textContent(t,s):(s=r._cellValue(o,a),_.util.textContent(t,s)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)r.attr("elementpool").get("$container").focus();return"msie"!==_.$.browser.name?_.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata",[],"array"),r._removeEditColId(this.attr("colid")),l}catch(t){return _.QCELL.log("err","QCELL.Slider.prototype._hide",t.message),!1}},_.QCELL.Button=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Button,_.QCELL.ColElement),_.QCELL.Button.prototype._initTag=function(){this.tag("QBOX.QCELL.Button")},_.QCELL.Button.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("input"),r=document.createElement("label");return e.setAttribute("type","button"),e.setAttribute("name",this.attr("id")),_.util.addClass(e,_.QCELL.def.css.TYPE_BUTTON_SINGLE_STYLE),_.util.addClass(e,this.attr("id")+"-style"),_._.isString(this.attr("buttonwidth"))&&(e.style.width=this.attr("buttonwidth").indexOf("%")>-1||this.attr("buttonwidth").indexOf("px")>-1?this.attr("buttonwidth"):this.attr("buttonwidth")+"px"),_._.isString(this.attr("buttonheight"))?e.style.height=this.attr("buttonheight").indexOf("%")>-1||this.attr("buttonheight").indexOf("px")>-1?this.attr("buttonheight"):this.attr("buttonheight")+"px":e.style.height="20px",_._.isString(this.attr("buttonlabel"))&&(e.value=this.attr("buttonlabel")),_._.isString(this.attr("buttonposition"))&&"right"===this.attr("buttonposition")?e.style.float="right":"center"===this.attr("buttonposition")?t.style.textAlign="center":e.style.float="left",r.setAttribute("for",this.attr("id")),_.util.addClass(r,_.QCELL.def.css.TYPE_BUTTON_LABEL_SINGLE_STYLE),_.util.addClass(t,_.QCELL.def.css.TYPE_BUTTON_WRAP_STYLE),t.appendChild(e),t.appendChild(r),this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Button.prototype._createElement",t.message),!1}},_.QCELL.Button.prototype._initEvent=function(){_.$(this.attr("element")).on("click",{target:this},_.st.eventProcess)},_.QCELL.Button.prototype._defaultAction=function(t){if("click"===t.type)this.onClick(t)},_.QCELL.Button.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("buttonwidth",t.options.buttonwidth,"string"),this.attr("buttonheight",t.options.buttonheight,"string"),this.attr("buttonposition",t.options.buttonposition,"string"),this.attr("buttonlabel",t.options.buttonlabel,"string"),this.attr("buttonclick",t.options.buttonclick,"function"),this.attr("labeltype",t.options.labeltype,"string")},_.QCELL.Button.prototype._show=function(t,e,r){try{var i=this.attr("parent"),o=void 0===i._cellValue(e,r)?"":i._cellValue(e,r),a=_.$(this.attr("element")).clone(!0).get(0),s=i._getQCellCol(r).attr("celldisabled")[e],n=a.childNodes[0],l=a.childNodes[1],c=(parseInt(_.$(t).css("line-height"))-parseInt(_.$(n).css("height")))/2,h=i._getQCellCol(r).attr("cellinvisible")[e],d=this;if(i._isBottomPanel(t))return void 0===o?_.util.textContent(t,""):_.util.textContent(t,o),!0;_.$(t).empty(),"left"!==n.style.float&&"right"!==n.style.float||(n.style.position="relative",n.style.top=c+"px"),a.setAttribute("data-row",e),a.setAttribute("data-col",r),n.setAttribute("data-row",e),n.setAttribute("data-col",r);var u=i.getID()+"_"+r+"_"+e;return n.setAttribute("id",u),n.setAttribute("name",u),l.setAttribute("for",u),l.setAttribute("data-row",e),l.setAttribute("data-col",r),_._.isFunction(this.attr("buttonclick"))&&(_.$(n).on("click",(function(){var t=parseInt(this.getAttribute("data-row")),e=parseInt(this.getAttribute("data-col"));d.attr("row",t,"number"),d.attr("col",e,"number")})),n.addEventListener("click",d.attr("buttonclick").bind(this,i,e,r),!1)),"button"===this.attr("labeltype")?n.value=o:l.innerHTML=o,s?_.$(n).attr("disabled",s):_.$(n).removeAttr("disabled"),t.appendChild(a),this.attr("row",e,"number"),this.attr("col",r,"number"),h&&i._setInitCellInvisible(e,r),!0}catch(t){return _.QCELL.log("err","QCELL.Button._show",t.message),!1}},_.QCELL.Button.prototype._outerClick=function(t,e){var r=this.attr("parent");r._selectCell(t,e),r._focusCell(t,e)},_.QCELL.Button.prototype.onClick=function(t){var e=t.target,r=parseInt(e.getAttribute("data-row")),i=parseInt(e.getAttribute("data-col"));_._.isElement(e)&&this._outerClick(r,i)},_.QCELL.Editor=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.Editor,_.QCELL.ColElement),_.QCELL.Editor.prototype._initTag=function(){this.tag("QBOX.QCELL.Editor")},_.QCELL.Editor.prototype._createElement=function(){try{var t=document.createElement("div"),e=document.createElement("textarea");return e.setAttribute("id",this.attr("id")+"_Editor"),e.style.width="600px",e.style.height="300px",e.className+=_.QCELL.def.css.TYPE_EDITOR_STYLE,t.appendChild(e),_.util.addClass(t,_.QCELL.def.css.TYPE_EDITOR_WARP_STYLE),this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.Editor.prototype._createElement",t.message),!1}},_.QCELL.Editor.prototype._initAttrs=function(t){_.QCELL.ColElement.prototype._initAttrs.call(this,t),this.attr("insertdata","","string"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("editor",{},"object"),this.attr("renderer",void 0===t.options.html?null:t.options.html.data,"function"),this.attr("editcellcol",!1,"boolean"),this.attr("editcellrow",[],"array"),this.attr("editorshow",!1,"boolean")},_.QCELL.Editor.prototype._show=function(t,e,r){try{var i=this.attr("parent"),o=this.attr("element"),a=_.$(t).clone(!0).empty(),s=i.attr("elementpool").get("$container"),n=_.$(i._getCellDOM(e,r)).clone(!0).get(0).innerHTML,l=i._getQCellCol(r).attr("cellinvisible")[e],c=o.childNodes[0],h=this;t.addClass+=_.QCELL.def.css.TYPE_HTML_CELL,c.style.width="606px",c.style.height="306px",c.value=n,s.append(o),o.focus();var d=document.getElementById(c.id);window.sceditor.create(d,{locale:"ko",plugins:"undo",format:"xhtml",icons:"monocons",emoticonsEnabled:!1,style:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/themes/content/default.min.css",emoticonsRoot:window.RightTechPath+"QCELL/js/modules/BasicQCELL/lib/sceditor/",toolbar:"bold,italic,underline,strike,subscript,superscript,left,center,right,justify,font,size,color,removeformat,cut,copy,paste,pastetext,source",fonts:"Malgun Gothic, NanumGothic, Dotum, Arial,Arial Black,Comic Sans MS,Courier New,Georgia,Impact,Sans-serif,Serif,Times New Roman,Trebuchet MS,Verdana"}),_.$(o).css(this._calculateColStyleEditorPosition(a,606,306));var u=window.sceditor.instance(d);return this.attr("editor",u,"object"),u.keyPress((function(t){h.onEditorKeyDown(t)}),!1,!0).keyUp((function(t){h.onEditorKeyUp(t)}),!1,!0),u.keyPress((function(t){h.onKeyDown(t)}),!0,!1).keyUp((function(t){h.onKeyDown(t)}),!0,!1),this.attr("row",e,"number"),this.attr("col",r,"number"),i._addEditColId(this.attr("colid")),this.attr("editorshow",!0,"boolean"),l&&i._setInitCellInvisible(e,r),!0}catch(t){return _.QCELL.log("err","QCELL.Editor._show",t.message),!1}},_.QCELL.Editor.prototype._hide=function(t,e){try{if(null===t)return;var r=this.attr("parent"),i=parseInt(t.getAttribute("data-row")),o=parseInt(t.getAttribute("data-col")),a=this.attr("editor"),s=this.attr("insertdata"),n=_.$(r._getCellDOM(i,o)).clone(!0).get(0).innerHTML,l=this.attr("editcellcol"),c=this.attr("editcellrow");if(a.destroy(),_.$(this.attr("element")).remove(),"api"===e)s=n;else{var h=!1;l?(_.$.each(c,(function(t,e){if(e.row===i)return h=!0,!1})),h||c.push({row:i,data:s})):(this.attr("editcellcol",!0,"boolean"),c.push({row:i,data:s})),t.vale=""}if(s=r._showDataFormat(i,o,s),t.innerHTML=s,"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)r.attr("elementpool").get("$container").focus();return"msie"!==_.$.browser.name?_.$(r._getCellDOM(r._idx("row","focus","current"),r._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("insertdata","","string"),r._removeEditColId(this.attr("colid")),this.attr("editorshow",!1,"boolean"),"api"!==e&&r._refresh(),!0}catch(t){return _.QCELL.log("err","QCELL.Editor.prototype._hide",t.message),!1}},_.QCELL.Editor.prototype._calculateColStyleEditorPosition=function(t,e,r){var i=this.attr("parent"),o=parseInt(t.css("left")),a=parseInt(t.css("top")),s=parseInt(t.css("width")),n=i.attr("layoutsize").root.offsetWidth,l=parseInt(t.css("height")),c=i.attr("layoutsize").root.offsetHeight,h=i.attr("layoutsize").colheader.offsetHeight,d=i.attr("layoutsize").rowheader.offsetWidth;return{left:o+s+d+e>n?o+s+d-e+6+"px":o+d+"px",top:a+l+h+r>c?a+h-r+6+"px":a+l+h+"px"}},_.QCELL.Editor.prototype._showDataLabel=function(t,e,r,i){try{this.attr("row",e,"number"),this.attr("col",r,"number");var o=this.attr("parent"),a=o._cellValue(e,r),s=o.attr("currentdata"),n=o._getColHtml(r),l=o.attr("qcellcols")[r].attr("colstyleeditordata"),c=this.attr("editcellcol"),h=this.attr("editcellrow"),d=!1,u=!1,p=!1,g="",f=o.getRowData(e);if(!0===f.rt_qc_footer||!0===f.rt_qc_header)return _.util.textContent(t,i),void o._setAriaLabel(t,e,r,i);if(o._isBottomPanel(t))return void(void 0===i?_.util.textContent(t,""):_.util.textContent(t,i));if(t.addClass+=_.QCELL.def.css.TYPE_HTML_CELL,a=o._showDataFormat(e,r,a),_._.isFunction(this.attr("renderer"))&&_._.isFunction(n.data)){var m=n.data(o,e,r,!0===_._.isUndefined(a)?"":a,s[e-o.attr("headerrows")]);_._.isString(m)&&(d=!0,g=m)}if(""!==l){var C=l.replace("QCELL_COL_DATA",a);u=!0,g=C}return c&&_.$.each(h,(function(t,r){if(r.row===e)return p=!0,g=r.data,!1})),d||u||p?t.innerHTML=g:_.util.textContent(t,a),_.$(t.childNodes[0]).off("dblclick").on("dblclick",{target:this},this.onDblClick),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL.Editor._showDataLabel",t.message),!1}},_.QCELL.Editor.prototype.onKeyDown=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),r=t.keyCode,i=this.attr("editor");if(r===_.def.key.ENTER||r===_.def.key.TAB){var o=this;setTimeout((function(){o.attr("insertdata",i.getSourceEditorValue(),"string"),o._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}},_.QCELL.Editor.prototype.onKeyUp=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),r=t.keyCode,i=this.attr("editor");if(!1===t.altKey)if(r===_.def.key.ENTER||r===_.def.key.TAB){var o=this;setTimeout((function(){o.attr("insertdata",i.getSourceEditorValue(),"string"),o._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}else r===_.def.key.ESC&&this._hide(e,"api");else r!==_.def.key.ENTER&&10!==r||i.sourceEditorInsertText("\r")},_.QCELL.Editor.prototype.onEditorKeyDown=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),r=t.keyCode,i=this.attr("editor");if(r===_.def.key.ENTER||r===_.def.key.TAB){var o=this,a=i.getWysiwygEditorValue();i.setSourceEditorValue(a),setTimeout((function(){o.attr("insertdata",i.getSourceEditorValue(a),"string"),o._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}},_.QCELL.Editor.prototype.onEditorKeyUp=function(t){var e=this.attr("parent")._getCellDOM(this.attr("row"),this.attr("col")),r=t.keyCode,i=this.attr("editor");if(!1===t.altKey)if(r===_.def.key.ENTER||r===_.def.key.TAB){var o=this,a=i.getWysiwygEditorValue();i.setSourceEditorValue(a),setTimeout((function(){o.attr("insertdata",i.getSourceEditorValue(a),"string"),o._hide(e,t.type)}),100),t.stopPropagation(),t.preventDefault()}else r===_.def.key.ESC&&this._hide(e,"api");else if(r===_.def.key.ENTER||10===r){t.stopPropagation(),t.preventDefault();var s=i.getRangeHelper();if("msie"===_.$.browser.name){var n=document.createElement("br");s.insertNode(n);for(var l=n.parentNode.childNodes,c=0,h=0;h<l.length;h++)l[h].isEqualNode(n)&&c++;1===c&&s.insertNode(n.cloneNode())}else s.insertHTML("<br><br>")}},_.QCELL.Editor.prototype.onDblClick=function(t){var e=t.target,r=Number(e.parentNode.getAttribute("data-row")),i=Number(e.parentNode.getAttribute("data-col")),o=t.data.target,a=o.attr("parent"),s=a._getCellDOM(r,i);if(0===r&&0===i){var n=e.parentNode;r=Number(n.parentNode.getAttribute("data-row")),i=Number(n.parentNode.getAttribute("data-col")),s=a._getCellDOM(r,i)}a._onScrollHideEditCellsDOM(),o._show(s,r,i)},_.QCELL.InputButton=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.InputButton,_.QCELL.Input),_.QCELL.InputButton.prototype._initTag=function(){this.tag("QBOX.QCELL.InputButton")},_.QCELL.InputButton.prototype._initAttrs=function(t){_.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("buttonwidth",t.options.buttonwidth,"string"),this.attr("buttonheight",t.options.buttonheight,"string"),this.attr("buttonposition",t.options.buttonposition,"string"),this.attr("buttonlabel",t.options.buttonlabel,"string"),this.attr("buttonclick",t.options.buttonclick,"function"),void 0===this.attr("buttonposition")&&this.attr("buttonposition","right","string"),void 0===this.attr("buttonwidth")&&this.attr("buttonwidth","20px","string"),void 0===this.attr("buttonheight")&&this.attr("buttonheight","20px","string"),this.attr("placeholder",t.options.placeholder,"string"),this.attr("editable",!1!==t.options.editable,"boolean")},_.QCELL.InputButton.prototype._showDataLabel=function(t,e,r,i){try{this.attr("row",e,"number"),this.attr("col",r,"number"),_.$(t).empty();var o=this.attr("parent"),a=o.getRowData(e);if(!0===a.rt_qc_footer||!0===a.rt_qc_header)return _.util.textContent(t,i),void o._setAriaLabel(t,e,r,i);var s=document.createElement("button"),n=document.createTextNode("data");if(o._isBottomPanel(t))return void(void 0===i?_.util.textContent(t,""):_.util.textContent(t,i));if(o._isBottomPanel(t))return void(void 0===i?_.util.textContent(t,""):_.util.textContent(t,i));_.util.addClass(s,_.QCELL.def.css.TYPE_BUTTON_SINGLE_STYLE),_.util.addClass(s,this.attr("id")+"-style"),_._.isString(this.attr("buttonwidth"))&&(s.style.width=this.attr("buttonwidth").indexOf("%")>-1||this.attr("buttonwidth").indexOf("px")>-1?this.attr("buttonwidth"):this.attr("buttonwidth")+"px"),_._.isString(this.attr("buttonheight"))?s.style.height=this.attr("buttonheight").indexOf("%")>-1||this.attr("buttonheight").indexOf("px")>-1?this.attr("buttonheight"):this.attr("buttonheight")+"px":s.style.height="20px";var l=parseInt(_.$(t).css("height"))/2-parseInt(_.$(s).css("height"))/2;return _._.isString(this.attr("buttonlabel"))&&(s.value=this.attr("buttonlabel")),s.style.position="absolute",s.style.right="1px",s.style.top=l+"px",s.style.cursor="pointer",_._.isString(this.attr("buttonposition"))&&"right"===this.attr("buttonposition")?s.style.float="right":"center"===this.attr("buttonposition")?s.style.textAlign="center":s.style.float="left",_.$(s).bind("click",(function(t){switch(t.stopPropagation(),o._onScrollHideEditCellsDOM(),o._updateIdx("click",e,r),o._focusCell(e,r),o.attr("selectmode")){case"row":case"rows":o._clearSelection(),o._selectRow(e);break;case"col":case"cols":o._clearSelection(),o._selectCol(r);break;default:o._clearSelection(),o._selectCell(e,r)}_.QCELL.config.usebuttonclickcallback?(t.preventDefault(),o._callButtonclickCallback()):o._trigger("buttonclick")})),_.util.textContent(n,i),t.appendChild(n),t.appendChild(s),o._setAriaLabel(t,e,r,i),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL.InputButton._showDataLabel",t.message),!1}},_.QCELL.InputButton.prototype._show=function(t,e){try{return!0===this.attr("editable")&&_.QCELL.Input.prototype._show.call(this,t,e),!0}catch(t){return _.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},_.QCELL.InputButton.prototype._hide=function(t,e){try{if(null===t)return;var r,i=this.attr("parent"),o=this.attr("element"),a=this.attr("row"),s=this.attr("col"),n=o.value,l=this.attr("format"),c=this.attr("validator"),h=i._cellValue(a,s);n=i._showUnMask(s,n,l),_.$(o).detach(),void 0!==this.attr("exclude")&&_._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{_._.isString(t)&&(n=n.split(t).join(""))}catch(t){_.QCELL.log("err","QCELL.InputButton.prototype._hide",t.message)}}));var d=!0;c&&(d=c(a,s,n));var u=n,p=h;if(_._.isObject(l)&&"number"===l.type&&("string"==typeof h&&(h=h.replaceAll(",",""),n=n.replaceAll(",","")),h=isNaN(Number(h))?0:Number(h),n=isNaN(Number(n))?0:Number(n)),!0===d?n!==h?""===n&&void 0===h?_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),this._showDataLabel(t,a,s,r)):this._showDataLabel(t,a,s,n):("none"===i.attr("merge").data||_._.isUndefined(i.attr("merge").data)||!1===i._getColDataMergeCol(s)?(i._cellValue(a,s,n),_._.isObject(l)&&(r=i._showDataFormat(a,s,void 0===n?"":n),this._showDataLabel(t,a,s,r))):this._changeMergeCellValue(a,s,n,l),i._processValueChanged(a,s)):!_._.isObject(l)||"number"!==l.type||""!==u||""!==p&&void 0!==p?_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),this._showDataLabel(t,a,s,r)):this._showDataLabel(t,a,s,n):this._showDataLabel(t,a,s,u):(n=h,_._.isObject(l)?(r=i._showDataFormat(a,s,void 0===n?"":n),this._showDataLabel(t,a,s,r)):this._showDataLabel(t,a,s,n)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)i.attr("elementpool").get("$container").focus();return"msie"!==_.$.browser.name?_.$(i._getCellDOM(i._idx("row","focus","current"),i._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),i._removeEditColId(this.attr("colid")),d}catch(t){return _.QCELL.log("err","QCELL.InputButton.prototype._hide",t.message),!1}},_.QCELL.InputDatepicker=function(t){if(!1===_.util.checkType(t,"object"))return null;_.QCELL.ColElement.call(this,t)},_.util.inherit(_.QCELL.InputDatepicker,_.QCELL.Input),_.QCELL.InputDatepicker.prototype._initTag=function(){this.tag("QBOX.QCELL.InputDatepicker")},_.QCELL.InputDatepicker.prototype._initEvent=function(){_.$(this.attr("element")).on("keydown keyup keypress",{target:this},_.st.eventProcess)},_.QCELL.InputDatepicker.prototype._initAttrs=function(t){_.QCELL.Input.prototype._initAttrs.call(this,t),this.attr("showkey",!1,"boolean"),this.attr("visible",!1,"boolean"),this.attr("changeyear",void 0!==t.options.changeyear&&t.options.changeyear,"boolean"),this.attr("changemonth",void 0!==t.options.changemonth&&t.options.changemonth,"boolean"),this.attr("insertdata","","string"),this.attr("dateformat",void 0===t.options.dateformat?"YYMMDD":t.options.dateformat,"string"),this.attr("locale",void 0===t.options.locale?"ko":t.options.locale,"string"),this.attr("yearrange",void 0===t.options.yearrange?"c-10:c+10":t.options.yearrange,"string"),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("format",t.options.format,"object"),this.attr("placeholder",t.options.placeholder,"string"),this.attr("timetype",void 0===t.options.timetype?"none":t.options.timetype,"string"),this.attr("timeformat",void 0===t.options.timeformat?"HHmmss":t.options.timeformat,"string"),void 0!==_.$.timepicker&&this.attr("timeseparator",void 0===t.options.timeseparator?_.$.timepicker._defaults.separator:t.options.timeseparator,"string"),this.attr("dateimage",void 0===t.options.dateimage?"":t.options.dateimage,"string"),this.attr("dateimageside",void 0===t.options.dateimageside?"right":t.options.dateimageside,"string"),this.attr("dateimageonly",void 0!==t.options.dateimageonly&&t.options.dateimageonly,"boolean"),this.attr("direction",t.options.direction,"string")},_.QCELL.InputDatepicker.prototype._createElement=function(){try{var t=document.createElement("input");return t.setAttribute("id",this.attr("id")),t.className+=_.QCELL.def.css.TYPE_INPUT_TEXT_STYLE+" "+this.attr("inputclass"),this._setElement(t),!0}catch(t){return _.QCELL.log("err","QCELL.InputDatepicker.prototype._createElement",t.message),!1}},_.QCELL.InputDatepicker.prototype._show=function(t,e){try{var r,i=this.attr("parent"),o=this.attr("element"),a=parseInt(t.getAttribute("data-row")),s=parseInt(t.getAttribute("data-col")),n=void 0===i._cellValue(a,s)?"":i._cellValue(a,s),l=_.$(t).empty(),c=i.attr("elementpool").get("$viewportinner"),h=this.attr("format"),d=i._getQCellCol(s).attr("cellinvisible")[a],u=this,p={defaultDate:r="yymmdd"===this.attr("dateformat").toLowerCase()?n:void 0!==h?i._showDataFormat(a,s,void 0===n?"":n):n,changeYear:this.attr("changeyear"),changeMonth:this.attr("changemonth"),dateFormat:this.attr("dateformat").toLowerCase(),yearRange:this.attr("yearrange"),firstDay:0,onSelect:function(e,r){u.attr("insertdata",e,"string"),u._hide(t,"api")},showAnim:"fold"};return null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?n=_.util.replaceAll(n,"%",""):_._.isFunction(this.attr("convert").callback)&&(n=this.attr("convert").callback.call(this,a,s,n))),this.attr("isshow",!0,"boolean"),o.value=r,void 0!==this.attr("placeholder")&&null!==this.attr("placeholder")&&(o.placeholder=this.attr("placeholder")),i._showMask(s,o),_.$(o).css({width:l.css("width"),height:l.css("height"),left:l.css("left"),top:l.css("top")}),_.$(o).datepicker(p),c.append(o),o.focus(),o.select(),this.attr("row",a,"number"),this.attr("col",s,"number"),this.attr("visible",!0,"boolean"),this.attr("insertdata",[n],"array"),i._addEditColId(this.attr("colid")),d&&i._setInitCellInvisible(a,s),!0}catch(t){return _.QCELL.log("err","QCELL.Input.prototype._show",t.message),!1}},_.QCELL.InputDatepicker.prototype._hide=function(t,e){try{if(null===t)return;if(!1===this.attr("isshow")&&!0!==this.attr("parent").attr("oneclickedit"))return;var r,i,o,a=this.attr("parent"),s=this.attr("element"),n=this.attr("row"),l=this.attr("col"),c=s.value,h=this.attr("format"),d=this.attr("validator");if(-1===n||-1===l)return;if(this.attr("isshow",!1,"boolean"),c=a._showUnMask(l,c,h),void 0!==h)for(o=h.rule.toLowerCase(),o=_.util.replaceAll(o,"y",""),o=_.util.replaceAll(o,"m",""),o=_.util.replaceAll(o,"d",""),i=0;i<o.length;i++)c=_.util.replaceAll(c,o.charAt(i),"");null!==this.attr("convert")&&void 0!==this.attr("convert")&&("999"===this.attr("convert").type?c+="%":_._.isFunction(this.attr("convert").afterCallback)&&(c=this.attr("convert").afterCallback.call(this,n,l,c)));var u=s.parentElement;setTimeout((function(){var t=0;if(void 0!==u)for(t=0;t<u.childNodes.length;t++)if(s===u.childNodes[t]){_.$(s).datepicker("hide"),_.$(s).datepicker("destroy"),_.$(s).detach();break}}),0),void 0!==this.attr("exclude")&&_._.isArray(this.attr("exclude"))&&this.attr("exclude").forEach((function(t){try{_._.isString(t)&&(c=c.split(t).join(""))}catch(t){_.QCELL.log("err","QCELL.Input.prototype._hide",t.message)}}));var p=!0;if(d&&(p=d(n,l,c)),!0===p?c!==a._cellValue(n,l)?""===c&&void 0===a._cellValue(n,l)?_._.isObject(h)?(r=a._showDataFormat(n,l,void 0===c?"":c),_.util.textContent(t,r)):_.util.textContent(t,c):("none"===a.attr("merge").data||_._.isUndefined(a.attr("merge").data)?_._.isObject(h)?(r=a._showDataFormat(n,l,void 0===c?"":c),_.util.textContent(t,r),"Invalid date"!==r&&a._cellValue(n,l,c)):a._cellValue(n,l,c):this._changeMergeCellValue(n,l,c,h),a._processValueChanged(n,l)):_._.isObject(h)?(r=a._showDataFormat(n,l,void 0===c?"":c),_.util.textContent(t,r)):_.util.textContent(t,c):(c=a._cellValue(n,l),_._.isObject(h)?(r=a._showDataFormat(n,l,void 0===c?"":c),_.util.textContent(t,r)):_.util.textContent(t,c)),"msie"===_.$.browser.name&&8===_.$.browser.versionNumber)a.attr("elementpool").get("$container").focus();return"msie"!==_.$.browser.name?_.$(a._getCellDOM(a._idx("row","focus","current"),a._idx("col","focus","current"))).focus():_.$(t).focus(),this.attr("row",-1,"number"),this.attr("col",-1,"number"),this.attr("visible",!1,"boolean"),this.attr("insertdata",[],"array"),this.attr("showkey",!1,"boolean"),a._removeEditColId(this.attr("colid")),p}catch(t){return _.QCELL.log("err","QCELL.Input.prototype._hide",t.message),!1}},_.QCELL.NormalQCELL.prototype._beforeFocusCell=function(){this.attr("adjustrow",!1,"boolean"),this._hideEditCellsDOM()},_.QCELL.NormalQCELL.prototype.onKeyDown=function(t){try{_.QCELL.BasicQCELL.prototype.onKeyDown.call(this,t);var e=t.target,r=t.keyCode,i=_.QCELL.def.css;if(_.util.hasClass(e,i.TYPE_INPUT_EDIT_STYLE)&&(e=e.parentElement),_.util.hasClass(e,i.CELL)){var o=parseInt(e.getAttribute("data-row")),a=parseInt(e.getAttribute("data-col")),s=t.data.target._idx("row","focus"),n=t.data.target._idx("col","focus");if(o!==s&&(o=s),a!==n&&(a=n),-1===o||-1===a)return;if(!0===this.attr("useenterkeytonextcol")&&r===_.def.key.ENTER)return this._moveNextCell(o,a,0),t.stopPropagation(),void t.preventDefault();var l=this._getQCellCol(a).attr("celldisabled")[o];if(l=void 0!==l&&l,e!==this._getCellDOM(s,n)&&(e=this._getCellDOM(s,n)),o>=this.attr("headerrows")&&a>=this.attr("headercols")){var c=this._getCellDOM(o,a);if(this._isBottomPanel(c))return;switch(this._getColType(a)){case"input":case"textarea":case"selectmenu":case"number":case"inputbutton":case"inputdatepicker":if(!1===this._getColElement(a).attr("visible"))switch(r){case _.def.key.F2:case _.def.key.SPACE:case _.def.key.BACKSPACE:case _.def.key.ENTER:(_._.isUndefined(l)||!1===l)&&(this._getColElement(a).attr("showkey",!0,"boolean"),this._getColElement(a)._show(e,t.type)),t.stopPropagation(),t.preventDefault();break;case _.def.key.LEFT:case _.def.key.RIGHT:case _.def.key.UP:case _.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;case"datepicker":switch(r){case _.def.key.SPACE:case _.def.key.ENTER:(_._.isUndefined(l)||!1===l)&&this._getColElement(a)._show(e),t.stopPropagation(),t.preventDefault();break;case _.def.key.LEFT:case _.def.key.RIGHT:case _.def.key.UP:case _.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;case"checkbox":switch(r){case _.def.key.SPACE:case _.def.key.ENTER:(_._.isUndefined(l)||!1===l)&&this._getColElement(a)._outerClick(o,a),t.stopPropagation(),t.preventDefault();break;case _.def.key.LEFT:case _.def.key.RIGHT:case _.def.key.UP:case _.def.key.DOWN:t.stopPropagation(),t.preventDefault()}break;case"multicheckbox":if(!1===this._getColElement(a).attr("visible"))switch(r){case _.def.key.F2:case _.def.key.SPACE:case _.def.key.BACKSPACE:case _.def.key.ENTER:(_._.isUndefined(l)||!1===l)&&(this._getColElement(a).attr("showkey",!0,"boolean"),this._getColElement(a)._show(e,o,a)),t.stopPropagation(),t.preventDefault();break;case _.def.key.LEFT:case _.def.key.RIGHT:case _.def.key.UP:case _.def.key.DOWN:this._onScrollHideEditCellsDOM(),t.stopPropagation(),t.preventDefault()}break;default:switch(r){case _.def.key.LEFT:case _.def.key.RIGHT:case _.def.key.SPACE:case _.def.key.ENTER:case _.def.key.UP:case _.def.key.DOWN:t.stopPropagation(),t.preventDefault()}}}if(_.def.key.DELETE===r){var h,d,u=this.attr("parentid"),p=!1;if("select"===this.attr("delkeymode")){if(_.$("#"+u).find("."+i.CELL_SELECT).length>0){var g,f,m,C,L=this._getIdxInfo("selected","row").keys(!0),b=this._getIdxInfo("selected","col").keys(!0);0===L.length?(g=this.attr("headerrows"),f=this.attr("rows")):(g=L[0],f=L[L.length-1]),0===b.length?(m=this.attr("headercols"),C=this.attr("cols")-1):(m=b[0],C=b[b.length-1]);for(var E=m;E<=C;E++){h=this._getQCellCol(E).attr("celldisabled"),d=this._getQCellCol(E).attr("type");for(var v=g;v<=f;v++)if(!0!==(l=void 0!==(l=h[v])&&l))switch(d){case"input":case"textarea":case"number":case"inputbutton":case"datepicker":case"inputdatepicker":this._cellValue(v,E,""),p=!0}}}}else if("focus"===this.attr("delkeymode")&&(o=this.getIdx("row"),a=this.getIdx("col"),-1!==o&&-1!==a)){if(h=this._getQCellCol(a).attr("celldisabled"),d=this._getQCellCol(a).attr("type"),!0===(l=void 0!==(l=h[o])&&l))return;switch(d){case"input":case"textarea":case"number":case"inputbutton":case"datepicker":case"inputdatepicker":this._cellValue(o,a,""),p=!0}}p&&this._processValueChanged(o,a)}}else if(_.util.hasClass(e,"rt-qc-ui-selectmenu-button")&&!0===this.attr("useenterkeytonextcol")&&r===_.def.key.ENTER){var y=e.parentElement.parentElement,w=parseInt(y.getAttribute("data-row")),x=parseInt(y.getAttribute("data-col"));this._moveNextCell(w,x,0),t.stopPropagation(),t.preventDefault()}}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onKeyDown",t.message)}},_.QCELL.NormalQCELL.prototype.onMouseWheel=function(t){this._onScrollHideEditCellsDOM(),_.QCELL.BasicQCELL.prototype.onMouseWheel.call(this,t)},_.QCELL.NormalQCELL.prototype.onMouseDown=function(t){try{_.QCELL.BasicQCELL.prototype.onMouseDown.call(this,t)}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onMouseDown",t.message)}},_.QCELL.NormalQCELL.prototype.onDblClick=function(t){try{var e,r,i=t.target,o=i,a=_.QCELL.def.css,s=!1;do{if(_.util.hasClass(o,a.CELL)&&(e=parseInt(o.getAttribute("data-col")),r=parseInt(o.getAttribute("data-row")),_._.isNumber(e)&&_._.isNumber(r))){this._updateIdx("dblclick",r,e),s=!0;break}o=o.parentElement}while(null!==o);if(!1===s&&(-1!==this.attr("temprow")&&-1!==this.attr("tempcol")?this._updateIdx("dblclick",this.attr("temprow"),this.attr("tempcol")):this._updateIdx("dblclick",-1,-1)),this.attr("temprow",-1,"number"),this.attr("tempcol",-1,"number"),_.util.hasClass(i,a.CELL)&&_.util.hasClass(i,a.CELL_VIEWPORT)){e=parseInt(i.getAttribute("data-col")),r=parseInt(i.getAttribute("data-row"));var n=this._getRightColOfScreen(),l=this._getLeftColOfScreen(),c=this._getQCellCol(e).attr("celldisabled")[r],h=this._getQCellCol(e).attr("disabled"),d=this.attr("groupstate");if(this._isBottomPanel(i))return;if(_.util.isMobile())return this._setInputformData(r),t.stopPropagation(),void t.preventDefault();if(!1===this._getQCellCol(e).attr("celldisabled")[r]&&(h=!1),null!==d&&(-1===_._.indexOf(d.headerrows,r)&&-1===_._.indexOf(d.footerrows,r)||(h=!0)),!0===this.attr("_isGTF")||!0===this.attr("_isGTH")){var u=this.getRowData(r);!0!==u.rt_qc_footer&&!0!==u.rt_qc_header||(h=!0)}var p=this;if(!0!==h){if(e>=n||e<=l)return void setTimeout((function(){if(p._idx("col","focus")===e)switch(p._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(_._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(i,t.type);break;case"datepicker":(_._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(i);break;case"multicheckbox":case"editor":(_._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(i,r,e)}}),200);if((this.attr("useall")||this.attr("usetreeall"))&&(e<=n||e>=l))return void setTimeout((function(){if(p._idx("col","focus")===e)switch(p._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(_._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(i,t.type);break;case"datepicker":(_._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(i);break;case"multicheckbox":case"editor":(_._.isUndefined(c)||!1===c)&&p._getColElement(e)._show(i,r,e)}}),200);if(!1===this.attr("oneclickedit")&&!1===this.attr("adjustrow")&&!1===this.attr("adjustcol"))switch(this._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"datepicker":case"inputbutton":case"inputdatepicker":(_._.isUndefined(c)||!1===c)&&this._getColElement(e)._show(i,t.type);break;case"multicheckbox":case"editor":(_._.isUndefined(c)||!1===c)&&this._getColElement(e)._show(i,r,e)}}}}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onDblClick",t.message)}},_.QCELL.NormalQCELL.prototype._getRowFromTarget=function(t){var e;do{if(void 0===t.getAttribute)return-1;if(e=parseInt(t.getAttribute("data-row")),!isNaN(e))return e;t=t.parentNode}while(null!==t);return-1},_.QCELL.NormalQCELL.prototype._getColFromTarget=function(t){var e;do{if(void 0===t.getAttribute)return-1;if(e=parseInt(t.getAttribute("data-col")),!isNaN(e))return e;t=t.parentNode}while(null!==t);return-1},_.QCELL.NormalQCELL.prototype.onClick=function(t){try{_.QCELL.BasicQCELL.prototype.onClick.call(this,t);var e,r,i=t.target,o=_.QCELL.def.css;if(!1===this.attr("isscrollleft")&&(_.util.hasClass(i,o.CELL)||_.util.hasClass(i,o.VIEWPORT_INNER)||_.util.hasClass(i,o.TYPE_DATEPICKER))&&(this._hideEditCellsDOM(),-1!==this._idx("row","hover")&&-1!==this._idx("col","hover")||this._onScrollHideEditCellsDOM()),_.util.hasClass(i,o.CELL)||_.util.hasClass(i,o.TYPE_DATEPICKER)||_.util.hasClass(i,o.TYPE_INPUT_EDIT_STYLE)){e=this._getRowFromTarget(i),r=this._getColFromTarget(i);var a,s,n=this._getQCellCol(r).attr("celldisabled")[e],l=this._getQCellCol(r).attr("disabled"),c=this.attr("groupstate");if(this._isBottomPanel(i))return;if(_.util.isMobile())return t.stopPropagation(),void t.preventDefault();if(!1===n&&(l=!1),null!==c&&(-1===_._.indexOf(c.headerrows,e)&&-1===_._.indexOf(c.footerrows,e)||(l=!0)),!0===this.attr("_isGTF")||!0===this.attr("_isGTH")){var h=this.getRowData(e);!0!==h.rt_qc_footer&&!0!==h.rt_qc_header||(l=!0)}if(!0!==l)if(this._updateIdx("dblclick",this._idx("row","cursor"),this._idx("col","cursor")),_.util.hasClass(i,o.TYPE_DATEPICKER)&&(_.util.hasClass(i.parentNode,o.CELL)?i=i.parentNode:_.util.hasClass(i.parentNode.parentNode,o.CELL)&&(i=i.parentNode.parentNode)),_.util.hasClass(i,o.TYPE_INPUT_EDIT_STYLE)&&_.util.hasClass(i.parentNode,o.CELL)&&(i=i.parentNode),n=void 0!==n&&n,_.util.hasClass(i,o.CELL_VIEWPORT)){if((this.attr("useall")||this.attr("usetreeall"))&&(s=this._getRowFromTarget(i),a=this._getColFromTarget(i),!isNaN(s)&&!isNaN(a))){var d=this._getCellDOM(s,a);if(null!=d)"none"!==this._getHScrollAdjustment(d)&&!0===this.attr("hsinfo").bHScroll&&this._scrollLeft(a)}var u=this.getID();setTimeout((function(){var o=_.QCELL.getInstance(u);if(null!==o){if(!1===o.attr("isscrollleft")&&o.attr("oneclickedit")&&!1===o.attr("adjustrow")&&!1===o.attr("adjustcol"))switch(o._hideEditCellsDOM(),o._getColType(r)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(_._.isUndefined(n)||!1===n)&&o._getColElement(r)._show(i,t.type);break;case"datepicker":(_._.isUndefined(n)||!1===n)&&o._getColElement(r)._show(i);break;case"multicheckbox":case"editor":(_._.isUndefined(n)||!1===n)&&o._getColElement(r)._show(i,e,r)}switch(o.attr("isscrollleft",!1,"boolean"),o._getColType(r)){case"checkbox":case"image":case"button":(_._.isUndefined(n)||!1===n)&&o._getColElement(r)._outerClick(e,r)}}}),200)}else if(_.util.hasClass(i,o.CELL_COLHEADER)&&t.which===_.def.which.LEFT_BUTTON&&"checkbox"===this._getColType(r))this._getColElement(r)._outerClick(e,r)}else if(_.util.hasClass(i,o.COLHEADER_AREA))e=i.parentNode.getAttribute("data-row"),r=i.parentNode.getAttribute("data-col"),this._updateIdx("click",Number(e),Number(r));else{for(var p=i.parentElement;p;){if(_.util.hasClass(p,o.COLHEADER_AREA))return e=i.parentNode.getAttribute("data-row"),r=i.parentNode.getAttribute("data-col"),void this._updateIdx("click",Number(e),Number(r));p=p.parentElement}for(p=i.parentElement;p;){if(_.util.hasClass(p,o.CELL)){if(e=p.getAttribute("data-row"),r=p.getAttribute("data-col"),isNaN(Number(r))||"html"!==this._getColType(Number(r)))break;return this._updateIdx("click",Number(e),Number(r),t),this._focusCell(Number(e),Number(r)),void i.focus()}p=p.parentElement}this._updateIdx("dblclick",-1,-1)}}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onClick",t.message)}},_.QCELL.NormalQCELL.prototype.onMouseEnter=function(t){try{_.$(document).off("mousedown."+this.attr("id"))}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onMouseEnter",t.message)}},_.QCELL.NormalQCELL.prototype.onMouseLeave=function(t){try{if("filter-dataindex"===this.attr("id"))return!1;var e=!1;if(_.$(document).bind("mousedown."+this.attr("id"),{target:this},(function(t){!1===(_.util.hasClass(t.target,"rt-qc-ui-widget")||_.util.hasClass(t.target,"rt-qc-ui-menu-item-wrapper")||_.util.hasClass(t.target.parentNode,"rt-qc-ui-datepicker-year")||_.util.hasClass(t.target.parentNode,"rt-qc-ui-datepicker-month")||_.util.hasClass(t.target.parentNode,"rt-qc-ui-selectmenu")||_.util.hasClass(t.target.parentNode,"rt-qc-input-text-style"))&&(t.data.target._hideEditCellsDOM(),_.$(this).unbind(t))})),_.util.hasClass(t.target,_.QCELL.def.css.CELL_COLHEADER))return!0!==this.attr("keepeditmode")&&this._onScrollHideEditCellsDOM(),void(!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()));if(!1===(_.util.hasClass(t.target,"rt-qc-ui-widget")||_.util.hasClass(t.target,_.QCELL.def.css.VIEWPORT)||_.util.hasClass(t.target,_.QCELL.def.css.CELL)||_.util.hasClass(t.target,"rt-qc-ui-selectmenu-text")||_.util.hasClass(t.target,"rt-qc-selectmenu-wrap-style")||_.util.hasClass(t.target,"rt-qc-input-text-style"))){if(!0===this.attr("isdatepicker")&&_.util.hasClass(t.target,"hasDatepicker"))return;!0!==this.attr("keepeditmode")&&this._onScrollHideEditCellsDOM(),!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()),e=!0}if(!1===((_.util.hasClass(t.target,_.QCELL.def.css.CELL)||_.util.hasClass(t.target,"rt-qc-input-text-style")||t.target.className.indexOf("selectmenu")>-1)&&null!==t.toElement&&(_.util.hasClass(t.toElement.parentNode,"rt-qc-ui-selectmenu-menu")||_.$(t.toElement).is("div")||_.$(t.toElement).is("li")))&&(!0!==this.attr("keepeditmode")&&!1===_.QCELL.config.htmlselectmenu&&this._onScrollHideEditCellsDOM(),!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus()),e=!0),!1===e){var r=this._getIdxInfo("focus","row").current,i=this._getIdxInfo("focus","col").current;if(void 0!==r&&void 0!==i&&-1!==r&&-1!==i)"selectmenu"!==this._getColType(i)||_.util.hasClass(t.target,"rt-qc-ui-selectmenu-button")||_.util.hasClass(t.target,"rt-qc-cell")||_.util.hasClass(t.target,"rt-qc-ui-selectmenu-text")||this._onScrollHideEditCellsDOM()}_.util.hasClass(t.currentTarget,"rt-qc-container")&&!0===this.attr("losefocusonleave")&&(this._clearSelection(),this._clearFocus())}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onMouseLeave",t.message)}},_.QCELL.NormalQCELL.prototype.onMouseMove=function(t){try{_.QCELL.BasicQCELL.prototype.onMouseMove.call(this,t);var e=_.QCELL.def.css,r=t.target,i=-1,o=-1,a=r.parentNode;_.util.hasClass(a,e.CELL)&&(i=parseInt(a.getAttribute("data-row")),o=parseInt(a.getAttribute("data-col")),this._idx("row","cursor")===i&&this._idx("col","cursor")===o||(this._updateIdx("cursor",i,o),0!==t.buttons&&t.which===_.def.which.LEFT_BUTTON&&this.attr("mousedown")&&this.onDrag(t)))}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onMouseMove",t.message)}},_.QCELL.NormalQCELL.prototype.onDrag=function(t){try{_.QCELL.BasicQCELL.prototype.onDrag.call(this,t)}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onDrag",t.message)}},_.QCELL.NormalQCELL.prototype._callButtonclickCallback=function(){if(null!==this.attr("buttonclickcallback")&&_._.isFunction(this.attr("buttonclickcallback"))){this._updateIdx("click",this._idx("row","cursor"),this._idx("col","cursor"));var t={type:"buttonclick",data:null===this.attr("eventparam_buttonclick")?{}:this.attr("eventparam_buttonclick")};t.data.target=this,this.attr("buttonclickcallback").call(this,t)}},_.QCELL.NormalQCELL.prototype.onResize=function(t){try{this._onScrollHideEditCellsDOM(),_.QCELL.BasicQCELL.prototype.onResize.call(this,t)}catch(t){_.QCELL.log("err","QCELL.NormalQCELL.onResize",t.message)}},_.QCELL.NormalQCELL.prototype._getColElement=function(t){return this.attr("qcellcols")[t].attr("colelement")},_.QCELL.NormalQCELL.prototype._getColTitlekey=function(t){var e=this.attr("qcellcols")[t].attr("colelement");return null!==e?e.titlekey:void 0},_.QCELL.NormalQCELL.prototype._getColType=function(t){return void 0===this.attr("qcellcols")[t]?"static":this.attr("qcellcols")[t].attr("type")},_.QCELL.NormalQCELL.prototype._getColHtml=function(t){return this.attr("qcellcols")[t].attr("html")},_.QCELL.NormalQCELL.prototype._getColChart=function(t){return this.attr("qcellcols")[t].attr("chart")},_.QCELL.NormalQCELL.prototype._getColDisabled=function(t){return this.attr("qcellcols")[t].attr("disabled")},_.QCELL.NormalQCELL.prototype._getColMask=function(t){return this.attr("qcellcols")[t].attr("mask")},_.QCELL.NormalQCELL.prototype._getColDatatype=function(t){return this.attr("qcellcols")[t].attr("datatype")},_.QCELL.NormalQCELL.prototype._getColFneditor=function(t){return this.attr("qcellcols")[t].attr("fneditor")},_.QCELL.NormalQCELL.prototype._hideEditCellsDOM=function(){var t=this.attr("editcolids");if(t.length>0){var e,r;this.attr("hideedit",!0,"boolean");for(var i=0;i<t.length;i++)r=this._getColElement(this.attr("colidsinfo")[t[i]]),e=this._getCellDOM(r.attr("row"),r.attr("col")),"multicheckbox"===this._getColType(this.attr("colidsinfo")[t[i]])?r._setMultiCheckboxCellData(r.attr("element")):"editor"===this._getColType(this.attr("colidsinfo")[t[i]])&&r._hide(e,"api"),("msie"!==_.$.browser.name&&"msedge"!==_.$.browser.name||r.attr("row")===this._idx("row","focus")&&r.attr("col")===this._idx("col","focus"))&&r.attr("row")===this._idx("row","focus")&&r.attr("col")===this._idx("col","focus")||r._hide(e,"api");e=r=null}this._removeTooltip(),this.attr("hideedit",!1,"boolean")},_.QCELL.NormalQCELL.prototype._onScrollHideEditCellsDOM=function(){try{var t=this.attr("editcolids");if(t.length>0){var e,r;this.attr("hideedit",!0,"boolean");for(var i=0;i<t.length;i++)r=this._getColElement(this.attr("colidsinfo")[t[i]]),e=this._getCellDOM(r.attr("row"),r.attr("col")),r._hide(e,"api");e=r=null}this._removeTooltip(),this.attr("hideedit",!1,"boolean")}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._onScrollHideEditCellsDOM",t.message),!1}},_.QCELL.NormalQCELL.prototype._isValidEditColId=function(t){var e,r=this.attr("editcolids");for(e=0;e<r.length;e++)if(r[e]===t)return!0;return!1},_.QCELL.NormalQCELL.prototype._addEditColId=function(t){var e=this.attr("editcolids");e.push(t),e=_._.uniq(e),this.attr("editcolids",e,"array")},_.QCELL.NormalQCELL.prototype._removeEditColId=function(t){var e=this.attr("editcolids");e=_._.without(e,t),this.attr("editcolids",e,"array")},_.QCELL.NormalQCELL.prototype._showMask=function(t,e){try{var r=this._getColMask(t);if(!_._.isUndefined(r)&&_._.isObject(r))if("currency"===r.alias){var i={alias:"currency"};i.prefix=void 0===r.prefix?"":r.prefix,i.digits=void 0===r.digits?0:r.digits,i.allowPlus=!1,_.$(e).inputmask(i)}else _.$(e).inputmask({mask:r.alias});return!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._showMask",t.message),!1}},_.QCELL.NormalQCELL.prototype._showUnMask=function(t,e,r){var i=e;try{var o=this._getColMask(t);if(!_._.isUndefined(o)&&_._.isObject(o)){if("currency"===o.alias){var a={alias:"currency"};return a.prefix=void 0===o.prefix?"":o.prefix,a.digits=void 0===o.digits?0:o.digits,i=d.unmask(i,a)}if(_._.isObject(r)&&"number"===r.type&&-1!==o.alias.indexOf(".")){var s=e.split(".");i="";for(var n=0;n<s.length;n++)""!==i&&(i+="."),i+=null===d.unmask(s[n],{alias:o.alias})?"0":d.unmask(s[n],{alias:o.alias})}else i=d.unmask(i,{alias:o.alias});null!==i&&"null"!==i||(i="")}}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._showUnMask",t.message),i=e}return i},_.QCELL.NormalQCELL.prototype._moveCols=function(t,e,r,i){this._onScrollHideEditCellsDOM(),_.QCELL.BasicQCELL.prototype._moveCols.call(this,t,e,r,i)},_.QCELL.NormalQCELL.prototype._setColWidth=function(t,e){this._onScrollHideEditCellsDOM(),_.QCELL.BasicQCELL.prototype._setColWidth.call(this,t,e)},_.QCELL.NormalQCELL.prototype._editcell=function(t,e){var r=this._getQCellCol(e).attr("celldisabled")[t];if(!0!==this._getQCellCol(e).attr("disabled")&&!r){var i=this._getCellDOM(t,e);if(null!==i){if(this._isBottomPanel(i))return;switch(this._hideEditCellsDOM(),this._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":case"inputdatepicker":(_._.isUndefined(r)||!1===r)&&(this._getColElement(e).attr("showkey",!0,"boolean"),this._getColElement(e)._show(i,""));break;case"datepicker":(_._.isUndefined(r)||!1===r)&&this._getColElement(e)._show(i);break;case"multicheckbox":case"editor":(_._.isUndefined(r)||!1===r)&&this._getColElement(e)._show(i,t,e)}switch(this._getColType(e)){case"checkbox":case"image":case"button":(_._.isUndefined(r)||!1===r)&&this._getColElement(e)._outerClick(t,e)}}}},_.QCELL.NormalQCELL.prototype._moveNextCell=function(t,e,r){for(var i,o=this.getID();;){if(++e>=this.getCols()){if(e=this.getCols("header"),++t>=this.getRows())return;this.attr("movescroll",!0,"boolean")}var a=this._getQCellCol(e).attr("celldisabled")[t];if(a=void 0!==a&&a,_._.isUndefined(a)||!0!==a){var s=!1;switch(this._getColType(e)){case"input":case"textarea":case"selectmenu":case"button":case"datepicker":s=!0}if(!0===s)break}}setTimeout((function(){var r=void 0===(i=_.QCELL.getInstance(o))._getCellDOM(t,e)||null===i._getCellDOM(t,e);!0===i.attr("movescroll")&&(r=!0),i.editCell(t,e,r),i=null}),r)},_.QCELL.NormalQCELL.prototype._createCols=function(){return _.QCELL.BasicQCELL.prototype._createCols.call(this)},_.QCELL.NormalQCELL.prototype._createHeaderCol=function(t){try{return _.QCELL.NormalQCELL.QCellCol.create(_._.extend(_._.clone(t),{parent:this,id:"col_"+this.attr("qcellcols").length,width:this.attr("headercolwidth")+"px",move:!1}))}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._createHeaderCol",t.message),null}},_.QCELL.NormalQCELL.prototype._createCol=function(t,e){try{return _.QCELL.NormalQCELL.QCellCol.create(t,_._.extend(_._.clone(e),{parent:this,id:"col_"+this.attr("qcellcols").length}))}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._createCol",t.message),null}},_.QCELL.NormalQCELL.prototype._createColHeaderCells=function(t){try{for(var e=this.attr("hsinfo"),r=_.QCELL.def.css,i=this.attr("elementpool"),o=this.attr("headerrows"),a=this.attr("headercols"),s=this.attr("frozencols"),n=this.attr("rowheight").header,l=this.attr("cellmatrix").get("row"),c=this.attr("headertext"),h=i.get("colheaderinner"),d=this.attr("id"),u=0;u<o;u++){var p=0,g=u;void 0===l[u]&&l.push([]);for(var f=0;f<e.nDynamicCols;f++){var m=this._createCell(t,!1),C=f+a,L=this._getColWidth(C),b=this._getColType(C),E=this._getQCellCol(C).attr("style");if(m.setAttribute("data-row",g),m.setAttribute("data-col",C),m.setAttribute("id",d+"_cell_"+g+"_"+C),m.style.width=L+"px",m.style.height=n+"px",m.style.display="flex",m.style.justifyContent="center",m.style.alignItems="center",m.style.left=p+"px",m.style.top=n*u+"px",m.className+=" "+r.CELL_COLHEADER+" "+r.CELL_HEADERROWS+" "+(f<s?r.CELL_FROZENCOLS:r.CELL_NORMALCOLS)+" "+this._getColStyleClassName(C,"header")+" "+r.COLHEADER_AREA,!_._.isEmpty(E)){if(_._.isObject(E.header))for(var v=Object.keys(E.header),y=0;y<v.length;y++)_.$(m).css(v[y],E.header[v[y]]);this.attr("qcellcols")[C].attr("style",{header:E.header,data:E.data},"object")}var w=void 0===c[C][g]?"":c[C][g];"checkbox"===b||"html"===b?("checkbox"===b?m.className+=" "+r.COLHEADER_CELL_CHECKBOX+" "+r.COLHEADER_AREA:(this.attr("useall")||this.attr("usetreeall"))&&m.setAttribute("aria-hidden","true"),this._getColElement(C)._headershow(m,g,C)):(m.innerHTML=this._getHeaderCellSpan(w,g,C),(this.attr("useall")||this.attr("usetreeall"))&&m.setAttribute("aria-hidden","true"),(g===o-1||this._isLastHeaderRowMasterCell(g,C))&&this.attr("useGroupUI")&&_.$(m).draggable({helper:this._setGroupMakeHelper,revert:"invalid"})),0===g&&this._getQCellCol(C).attr("topmove")&&m.appendChild(this._getColHeaderDragDropArea()),(g===o-1||this._isLastHeaderRowMasterCell(g,C))&&(this._getQCellCol(C).attr("move")&&m.appendChild(this._getColHeaderDragDropArea()),this._getQCellCol(C).attr("search")&&m.appendChild(this._getColSearchArea()),this._getQCellCol(C).attr("sort")&&(_._.isUndefined(this._getQCellCol(C).attr("options").wholeselect)||!1===this._getQCellCol(C).attr("options").wholeselect)&&("checkbox"!==b||!1===this.attr("paginationinfo").totalsort||!1===_._.isUndefined(this.attr("paginationinfo"))&&_._.isUndefined(this.attr("paginationinfo").url))&&m.appendChild(this._getDefaultSortArea(C)),this._getQCellCol(C).attr("resize")&&m.appendChild(this._getColResizeArea()),this._getQCellCol(C).attr("filter")&&(this._getQCellCol(C).attr("colfilterarea",null,"jquery"),m.appendChild(this._getFilterArea(C))),this._getQCellCol(C).attr("editor")&&m.appendChild(this._getColStyleEditorArea()),this._getQCellCol(C).attr("remove")&&(m.appendChild(this._getDefaultRemoveArea(C)),this.attr("useRemoveUI",!0,"boolean"))),h.appendChild(m),l[u].push(m),p+=parseFloat(L)}}return this._createDataIndexPool(),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._createColHeaderCells",t.message),!1}},_.QCELL.NormalQCELL.prototype._getTitleHeader=function(t){for(var e=this._cellValue(0,t),r="",i=1;i<this.getRows("header");i++){""!==r&&(r+=","),r+=void 0===this._cellValue(i,t)?"":this._cellValue(i,t)}return""!==r&&(r="( "+r+" )"),e+r},_.QCELL.NormalQCELL.prototype._getTitlekey=function(t,e,r,i,o){var a=this;if(!(e<this.attr("headerrows"))){var s,n,l,c,h=this._getColTitlekey(r),d=_.QCELL.def.css,u=this.getRows("header"),p=!0!==o?" 수정":"";if(u--,null!=h&&!0===_._.isFunction(h)){var g=this.getRowData(e);if(void 0===g)return;void 0!==(s=h(e,r,g))&&""!==s||(n=this._getTitleHeader(r),s=e-u+"행 "+n+"열 "+i+p),_.$(t).hasClass(d.CELL)?(t.setAttribute("role","gridcell"),void 0===t.getElementsByClassName("hide")[0]?(l=document.createElement("span"),_.util.addClass(l,"hide"),c=document.createTextNode(s),l.appendChild(c),t.insertBefore(l,t.firstChild)):_.$(t.getElementsByClassName("hide")[0]).text(s)):_.$(t).text(s)}else if(n=this._getTitleHeader(r),s=""!==p?e-u+"행 "+n+"열 "+i+p:e-u+"행 "+n+"열 "+p,_.$(t).hasClass(d.CELL)){var f=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate");if(!0===f.grouped)for(var m=f.columnsinfo.keys(!0),C=0;C<m.length;C++){if(this._getColOfID(m[C])===r)return l=document.createElement("span"),_.util.addClass(l,"hide"),c=document.createTextNode(s),l.appendChild(c),void t.insertBefore(l,t.firstChild)}if("html"===this._getColType(r)||"image"===this._getColType(r)||"checkbox"===this._getColType(r))void 0===t.getElementsByClassName("hide")[0]?(l=document.createElement("span"),_.util.addClass(l,"hide"),c=document.createTextNode(s),l.appendChild(c),t.insertBefore(l,t.firstChild)):_.$(t.getElementsByClassName("hide")[0]).text(s);else{var L=t.getElementsByTagName("button")[0],b=null;void 0!==L&&(b=L.cloneNode(!0)),_.$(t).html('<span class="hide">'+s+"</span>"+i),t.setAttribute("role","gridcell"),null!==b&&(b.onclick=function(t){a.focusCell(e,r),!0!==a.attr("oneclickedit")&&setTimeout((function(){a._editcell(e,r)}),100)},b.onfocus=function(t){a._focusCell(e,r),a._scrollToFocusCell(e,r)},t.appendChild(b))}}else _.$(t).text(s)}},_.QCELL.NormalQCELL.prototype._resetAriaLabel=function(t){for(var e=this.attr("vsinfo"),r=e.nTopRow;r<=e.nBottomRow;r++){var i=this._getCellDOM(r,t);if(null!=i){var o=this.getCellData(r,t);o=void 0===o?"":o,this._setAriaLabel(i,r,t,o,!1)}}},_.QCELL.NormalQCELL.prototype._setAriaLabel=function(t,e,r,i,o){var a=this,s=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=_.QCELL.def.css;if(i=void 0===i?"":i,s.grouped&&s.exclude.length>0){var l=0,c=this.getRowData(e);if(void 0!==s.level&&void 0!==c&&(l=c[s.level]),void 0!==l&&l>1)for(var h=0;h<s.exclude.length;h++)if(s.exclude[h]===this._getKeyOfCol(r)){i="",_.util.textContent(t,i);break}}if(this.attr("useall")||this.attr("usetreeall")){var d,u=this._getColType(r);if("input"===u||"selectmenu"===u||"datepicker"===u||"textarea"===u)if(0!==t.getElementsByClassName(n.TYPE_INPUT_EDIT_STYLE).length||this._isBottomPanel(t)){var p=t.getElementsByClassName(n.TYPE_INPUT_EDIT_STYLE)[0];!0===o&&_.$(p).focus(),this._getTitlekey(p,e,r,i),this._getTitlekey(t,e,r,i,!0)}else(d=document.createElement("button")).setAttribute("tabindex","0"),d.setAttribute("type","button"),d.className=n.TYPE_INPUT_EDIT_STYLE,t.appendChild(d),d.onclick=function(t){a.focusCell(e,r),!0!==a.attr("oneclickedit")&&setTimeout((function(){a._editcell(e,r)}),100)},d.onfocus=function(t){a._focusCell(e,r),a._scrollToFocusCell(e,r)},o&&_.$(d).focus(),this._getTitlekey(d,e,r,i),this._getTitlekey(t,e,r,i,!0);else this._getTitlekey(t,e,r,i,!0)}else{var g=this._getTitleHeader(r);t.setAttribute("aria-label",e+"행 "+g+"열 ")}},_.QCELL.NormalQCELL.prototype._setAriaLabelEx=function(t,e,r,i){if(!(r<this.getCols("header"))){var o=this.getCellLabel(e,r);this._setAriaLabel(t,e,r,o,i)}},_.QCELL.NormalQCELL.prototype._createViewPortCellsAll=function(t){try{var e,r,i,o,a,s,n,l,c=_.QCELL.def.rowgroup,h=_.QCELL.def.css,d=this.attr("elementpool").get("viewportinner"),u=this.attr("cellmatrix").get("row"),p=this.attr("currentdata"),g=this.attr("headerrows"),f=this.attr("headercols"),m=this.attr("frozencols"),C=this.attr("rowheight").data,L=this.attr("layoutsize").viewport.clientHeight,b=this.attr("vsinfo").nDynamicRows,E=this.attr("hsinfo").nDynamicCols,v=this.attr("highlightrepeat"),y=p.length,w=this.attr("emptymessage"),x=[],k=[],S=this.attr("data").input,Q="msie"===_.$.browser.name?0:2,q="panel"===this.attr("frozenbottomstyle"),T=this.attr("id");if(0===b&&0===S.length)_.$.trim(w).length>0&&!1!==this.attr("useemptymessage")&&(r=this._createEmptymessage(t),d.appendChild(r));else{var A=this.attr("cols"),R=this.attr("rows");for(this._setInitCellDisabled(R,A),this._setInitCellInvisible(R,A),e=0;e<b;e++){var O,D=e+g;for(o=0,t.cloneNode().setAttribute("role","rowgroup"),(l=t.cloneNode()).setAttribute("role","row"),l.setAttribute("aria-rowindex",D),O=this._getRowGroupOfDynamicRows(e),void 0===u[g+e]&&u.push([]),O===c.FROZENBOTTOM&&(D=y+g-(b-e)),a=0;a<E;a++){n=a+f;var B,I=this._getColType(n),N=this._getKeyOfCol(n),P=this._getQCellCol(n).attr("style");if(0===e&&(k.push(this._useDataTextAlign(n)),x.push(this._getDataTextAlign(n))),s=this._getColTabindex(n),r=this._createCell(t,s),i=this._getColWidth(n),r.style.width=i+"px",r.style.height=C+"px",k[a]&&(r.style.textAlign=x[a]),this._getColWordwrap(n)?r.style.whiteSpace="pre-wrap":r.style.lineHeight=C-Q+"px",r.style.left=o+"px",r.className+=" "+h.CELL_VIEWPORT+" "+(a<m?h.CELL_FROZENCOLS:h.CELL_NORMALCOLS)+" "+this._getColStyleClassName(n,"data"),r.setAttribute("data-row",D),r.setAttribute("data-col",n),r.setAttribute("id",T+"_cell_"+D+"_"+n),!_._.isEmpty(P)){if(_._.isObject(P.data))for(var M=Object.keys(P.data),H=0;H<M.length;H++)_.$(r).css(M[H],P.data[M[H]]);this.attr("qcellcols")[n].attr("style",{header:P.header,data:P.data},"object")}u[g+e].push(r),O===c.FROZENBOTTOM?(B=p[D-g][N],r.style.top=L-C*(b-e)+"px",!0===q?(I="static",r.className+=" "+h.CELL_FROZENBOTTOMROWS_PANEL):r.className+=" "+h.CELL_FROZENBOTTOMROWS):(B=p[e][N],r.style.top=C*e+"px",r.className+=" "+(O===c.FROZEN?h.CELL_FROZENROWS:h.CELL_NORMALROWS)),v>0&&(D-g+1)%v==0&&(r.className+=" "+h.CELL_HIGHLIGHTREPEAT),B=void 0===B?"":B;var U=this._showDataFormat(D,n,B);switch(!0===q&&O===c.FROZENBOTTOM&&(U=B,"checkbox"!==this._getColType(n)||!0!==U&&!1!==U||(U="")),I){case"input":case"number":case"slider":default:_.util.textContent(r,U),this._setAriaLabel(r,D,n,U);break;case"checkbox":case"image":case"html":case"chart":case"button":this._getColElement(n)._show(r,D,n);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":this._getColElement(n)._showDataLabel(r,D,n,B)}switch(I){case"input":r.className+=" "+h.TYPE_INPUT_CELL;break;case"inputbutton":r.className+=" "+h.TYPE_INPUTBUTTON_CELL;break;case"textarea":r.className+=" "+h.TYPE_TEXTAREA_CELL;break;case"selectmenu":r.className+=" "+h.TYPE_SELECTMENU_CELL;break;case"datepicker":r.className+=" "+h.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":r.className+=" "+h.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":r.className+=" "+h.TYPE_CHECKBOX_CELL;break;case"image":r.className+=" "+h.TYPE_IMAGE_CELL;break;case"html":r.className+=" "+h.TYPE_HTML_CELL;break;case"chart":r.className+=" "+h.TYPE_CHART_CELL;break;case"multicheckbox":r.className+=" "+h.TYPE_MULTICHECKBOX_CELL;break;case"number":r.className+=" "+h.TYPE_NUMBER_CELL;break;case"slider":r.className+=" "+h.TYPE_SLIDER_CELL;break;case"button":r.className+=" "+h.TYPE_BUTTON_CELL;break;case"editor":r.className+=" "+h.TYPE_EDITOR_CELL;break;default:r.className+=" "+h.TYPE_STATIC_CELL}d.appendChild(r),o+=parseFloat(i)}}}return this._setRoleTitle(this.attr("parent")),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._createViewPortCellsAll",t.message),!1}},_.QCELL.NormalQCELL.prototype._createViewPortCells=function(t){try{if(this.attr("useall")||this.attr("usetreeall"))return this._createViewPortCellsAll(t);var e,r,i,o,a,s,n=_.QCELL.def.rowgroup,l=_.QCELL.def.css,c=this.attr("elementpool").get("viewportinner"),h=this.attr("cellmatrix").get("row"),d=this.attr("currentdata"),u=this.attr("headerrows"),p=this.attr("headercols"),g=this.attr("frozencols"),f=this.attr("rowheight").data,m=this.attr("layoutsize").viewport.clientHeight,C=this.attr("vsinfo").nDynamicRows,L=this.attr("hsinfo").nDynamicCols,b=this.attr("highlightrepeat"),E=d.length,v=this.attr("emptymessage"),y=[],w=[],x=this.attr("data").input,k="msie"===_.$.browser.name?0:2,S="panel"===this.attr("frozenbottomstyle"),Q=this.attr("id");if(0===C&&0===x.length)_.$.trim(v).length>0&&!1!==this.attr("useemptymessage")&&(r=this._createEmptymessage(t),c.appendChild(r));else{var q=this.attr("cols"),T=this.attr("rows");for(this._setInitCellDisabled(T,q),this._setInitCellInvisible(T,q),C>E&&(C=E),e=0;e<C;e++){var A,R=e+u;for(o=0,A=this._getRowGroupOfDynamicRows(e),void 0===h[u+e]&&h.push([]),A===n.FROZENBOTTOM&&(R=E+u-(C-e)),a=0;a<L;a++){var O,D=a+p,B=this._getColType(D),I=this._getKeyOfCol(D),N=this._getQCellCol(D).attr("style");if(0===e&&(w.push(this._useDataTextAlign(D)),y.push(this._getDataTextAlign(D))),s=this._getColTabindex(D),r=this._createCell(t,s),i=this._getColWidth(D),r.style.width=i+"px",r.style.height=f+"px",w[a]&&(r.style.textAlign=y[a]),this._getColWordwrap(D)?r.style.whiteSpace="pre-wrap":r.style.lineHeight=f-k+"px",r.style.left=o+"px",r.className+=" "+l.CELL_VIEWPORT+" "+(a<g?l.CELL_FROZENCOLS:l.CELL_NORMALCOLS)+" "+this._getColStyleClassName(D,"data"),r.setAttribute("data-row",R),r.setAttribute("data-col",D),r.setAttribute("id",Q+"_cell_"+R+"_"+D),!_._.isEmpty(N)){if(_._.isObject(N.data))for(var P=Object.keys(N.data),M=0;M<P.length;M++)_.$(r).css(P[M],N.data[P[M]]);this.attr("qcellcols")[D].attr("style",{header:N.header,data:N.data},"object")}h[u+e].push(r),A===n.FROZENBOTTOM?(O=d[R-u][I],r.style.top=m-f*(C-e)+"px",!0===S?(B="static",r.className+=" "+l.CELL_FROZENBOTTOMROWS_PANEL):r.className+=" "+l.CELL_FROZENBOTTOMROWS):(O=d[e][I],r.style.top=f*e+"px",r.className+=" "+(A===n.FROZEN?l.CELL_FROZENROWS:l.CELL_NORMALROWS)),b>0&&(R-u+1)%b==0&&(r.className+=" "+l.CELL_HIGHLIGHTREPEAT),O=null==O?"":O;var H=this._showDataFormat(R,D,O);switch(!0===S&&A===n.FROZENBOTTOM&&(H=O,"checkbox"!==this._getColType(D)||!0!==H&&!1!==H||(H="")),B){case"input":case"number":case"slider":case"inputdatepicker":default:_.util.textContent(r,H),this._setAriaLabel(r,R,D,H);break;case"checkbox":case"image":case"html":case"chart":case"button":this._getColElement(D)._show(r,R,D);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":this._getColElement(D)._showDataLabel(r,R,D,O)}switch(B){case"input":r.className+=" "+l.TYPE_INPUT_CELL;break;case"inputbutton":r.className+=" "+l.TYPE_INPUTBUTTON_CELL;break;case"textarea":r.className+=" "+l.TYPE_TEXTAREA_CELL;break;case"selectmenu":r.className+=" "+l.TYPE_SELECTMENU_CELL;break;case"datepicker":r.className+=" "+l.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":r.className+=" "+l.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":r.className+=" "+l.TYPE_CHECKBOX_CELL;break;case"image":r.className+=" "+l.TYPE_IMAGE_CELL;break;case"html":r.className+=" "+l.TYPE_HTML_CELL;break;case"chart":r.className+=" "+l.TYPE_CHART_CELL;break;case"multicheckbox":r.className+=" "+l.TYPE_MULTICHECKBOX_CELL;break;case"number":r.className+=" "+l.TYPE_NUMBER_CELL;break;case"slider":r.className+=" "+l.TYPE_SLIDER_CELL;break;case"button":r.className+=" "+l.TYPE_BUTTON_CELL;break;case"editor":r.className+=" "+l.TYPE_EDITOR_CELL;break;default:r.className+=" "+l.TYPE_STATIC_CELL}c.appendChild(r),o+=parseFloat(i)}}}return!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._createViewPortCells",t.message),!1}},_.QCELL.NormalQCELL.prototype._insertRows=function(t,e){try{var r=this,i=this.attr("vsinfo"),o=this.attr("currentdata"),a=this.attr("headerrows"),s=e.length,n=i.bVScroll,l=this.attr("rowheaderdata"),c=this.attr("rowheadercheckboxclick"),h=this.attr("originstate"),d=0;if(t>o.length&&!0===this.attr("makefrozenbottomdata")&&(t=o.length+a-1),this._onScrollHideEditCellsDOM(),this._setAddCellDisabled(t),this._setAddCellInvisible(t),o.RT_insertArray(t-a,e),!0===this.attr("pagesyncorgindata")){var u=this.attr("paginationinfo");d=(u.pageindex-1)*u.pageunit,this.attr("data").input.RT_insertArray(t+d-a,e);for(var p=0;p<s;p++){e[p].rt_qc_page_state="i"}}this._updateCurrentData(o),l.RT_insertArray(t-a,[{}]),c.RT_insertArray(t-a,[{}]),this._updateRowheaderData(l,c),this._clearDynamicCSS("row","data"),this._makeRowUI(s,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,s,"i"),_._.each(_._.range(t,t+s),(function(e,i){r._setRowState(e,"i"),r.attr("original")&&h.i.push({nRow:t-a})})),this._refreshDRs(),this.attr("percentcolwidth")&&n!==i.bVScroll&&this._refreshDCs();for(var g=this.attr("rowheaders"),f=0;f<this.attr("headercols");f++)if("checkbox"===g[f])for(var m=this.attr("headerrows");m<this.getRows();m++){var C=this._getCellDOM(m,f);null===C||_.$(C).hasClass("rt-qc-cell-normalrows")||(C.classList+=" rt-qc-cell-normalrows rt-qc-rowheader-cell-checkbox")}return!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._insertRows",t.message),!1}},_.QCELL.NormalQCELL.prototype._deleteRows=function(t,e){try{var r,i,o,a=this,s=this.attr("vsinfo"),n=this.attr("currentdata"),l=this.attr("headerrows"),c=s.bVScroll,h=this.attr("rowheaderdata"),d=this.attr("rowheadercheckboxclick"),u=a.attr("originstate");if(t-l<0)return!1;if(t-l+e>n.length)return!1;if(this._onScrollHideEditCellsDOM(),this._setDeleteCellDisabled(t),this._setDeleteCellInvisible(t),e=e>n.length?n.length:e,r=n.splice(t-l,e),!0===this.attr("pagesyncorgindata")){var p=this.attr("paginationinfo"),g=(p.pageindex-1)*p.pageunit;this.attr("data").input.splice(t+g-l,e)}for(var f=0,m=r.length;f<m;f++)if("i"!==this._getRowState(t+f)&&a.attr("deletedrowsdata").push(r[f]),a.attr("original"))if("i"!==this._getRowState(t+f))u.d.push({nRow:t-l});else for(o=0;o<u.i.length;o++)u.i[o].nRow===t+f&&u.i.splice(o,1);return this._updateCurrentData(n),h.splice(t-l,e),d.splice(t-l,e),this._updateRowheaderData(h,d),i=this.attr("rows"),(this._idx("row","focus","current")>=i||this._getSelectedRows().sort(_.st.desc)[0]>=i)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(e,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,e,"d"),this._refreshDRs(),this.attr("percentcolwidth")&&c!==s.bVScroll&&this._refreshDCs(),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._deleteRows",t.message),!1}},_.QCELL.NormalQCELL.prototype._insertStaticRows=function(t,e){try{var r=this.attr("vsinfo"),i=this.attr("currentdata"),o=this.attr("headerrows"),a=e.length,s=r.bVScroll,n=this.attr("rowheaderdata"),l=this.attr("rowheadercheckboxclick"),c=this.attr("staticrowsinfo");if(t>this.getRows()&&(t=this.getRows()),this._onScrollHideEditCellsDOM(),i.RT_insertArray(t-o,e),this._updateCurrentData(i),n.RT_insertArray(t-o,[{}]),l.RT_insertArray(t-o,[{}]),!0===this.attr("pagesyncorgindata")){var h=this.attr("paginationinfo"),d=(h.pageindex-1)*h.pageunit;this.attr("data").input.RT_insertArray(t+d-o,e)}return this._updateRowheaderData(n,l),this._makeRowUI(a,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),_._.each(_._.range(t,t+a),(function(t,e){c.push({nRow:t})})),this._refreshDRs(),this.attr("percentcolwidth")&&s!==r.bVScroll&&this._refreshDCs(),this.setRowDisable(t,!0),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._insertRows",t.message),!1}},_.QCELL.NormalQCELL.prototype._deleteStaticRows=function(t,e){try{var r,i,o,a=this,s=this.attr("vsinfo"),n=this.attr("currentdata"),l=this.attr("headerrows"),c=s.bVScroll,h=this.attr("rowheaderdata"),d=this.attr("rowheadercheckboxclick"),u=a.attr("originstate"),p=this.attr("staticrowsinfo"),g=this.attr("headercols"),f=this.attr("cols"),m=_.QCELL.def.css;for(this._onScrollHideEditCellsDOM(),o=g;o<f;o++){var C=this._getCellDOM(t,o),L=this._getColID(o);_._.isUndefined(C)||_.util.removeClass(C,m.STATIC_ROW+" "+m.STATIC_ROW+"-"+L)}if(this._setDeleteCellDisabled(t),this._setDeleteCellInvisible(t),e=e>n.length?n.length:e,r=n.splice(t-l,e),!0===this.attr("pagesyncorgindata")){var b=this.attr("paginationinfo"),E=(b.pageindex-1)*b.pageunit;this.attr("data").input.splice(t+E-l,e)}for(var v=0,y=r.length;v<y;v++){if("i"!==this._getRowState(t+v)&&a.attr("deletedrowsdata").push(r[v]),a.attr("original"))if("i"!==this._getRowState(t+v))u.d.push({nRow:t-l});else for(o=0;o<u.i.length;o++)u.i[o].nRow===t+v&&u.i.splice(o,1);for(o=0;o<p.length;o++)p[o].nRow===t+v&&p.splice(o,1)}return this._updateCurrentData(n),h.splice(t-l,e),d.splice(t-l,e),this._updateRowheaderData(h,d),i=this.attr("rows"),(this._idx("row","focus","current")>=i||this._getSelectedRows().sort(_.st.desc)[0]>=i)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(e,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfo(t,e,"d"),this._deleteDStates(),this._refreshDRs(),this.attr("percentcolwidth")&&c!==s.bVScroll&&this._refreshDCs(),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._deleteStaticRows",t.message),!1}},_.QCELL.NormalQCELL.prototype._insertRowsEx=function(t){try{var e,r=this,i=this.attr("vsinfo"),o=this.attr("currentdata"),a=this.attr("headerrows"),s=t.length,n=i.bVScroll,l=this.attr("rowheaderdata"),c=this.attr("rowheadercheckboxclick"),h=r.attr("originstate");return this._onScrollHideEditCellsDOM(),t.sort((function(t,e){return e[0]-t[0]})),e=_._.pluck(t,0),_._.each(t,(function(t){if(o.RT_insert(t[0]-a,t[1]),l.RT_insertArray(t[0]-a,[{}]),c.RT_insertArray(t[0]-a,[{}]),!0===r.attr("pagesyncorgindata")){var e=r.attr("paginationinfo"),i=(e.pageindex-1)*e.pageunit;r.attr("data").input.RT_insertArray(t[0]+i-a,[{rt_qc_page_state:"i"}])}})),this._updateCurrentData(o),this._updateRowheaderData(l,c),this._makeRowUI(s,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfoEx(e,"i"),_._.each(e,(function(t,e){r._setAddCellDisabled(t),r._setAddCellInvisible(t),r._setRowState(t+(s-e-1),"i"),r.attr("original")&&h.i.push({nRow:t-a})})),this._refreshDRs(),this.attr("percentcolwidth")&&n!==i.bVScroll&&this._refreshDCs(),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._insertRowsEx",t.message),!1}},_.QCELL.NormalQCELL.prototype._deleteRowsEx=function(t){try{var e,r=this,i=this.attr("vsinfo"),o=this.attr("currentdata"),a=this.attr("headerrows"),s=i.bVScroll,n=this.attr("rowheaderdata"),l=this.attr("rowheadercheckboxclick"),c=r.attr("originstate");this._onScrollHideEditCellsDOM(),t.sort(_.st.desc);var h=!1,d=!1;return _._.each(t,(function(t){t-a<0?d=!0:t-a>=o.length&&(h=!0)})),!0===d?!1:!0!==h&&(_._.each(t,(function(t){r._setDeleteCellDisabled(t),r._setDeleteCellInvisible(t);var e=o.splice(t-a,1);if(n.splice(t-a,1),l.splice(t-a,1),!0===r.attr("pagesyncorgindata")){var i=r.attr("paginationinfo"),s=(i.pageindex-1)*i.pageunit;r.attr("data").input.splice(t+s-a,1)}if(e.length>0&&"i"!==r._getRowState(t)&&r.attr("deletedrowsdata").push(e[0]),r.attr("original"))if("i"!==this._getRowState(t))c.d.push({nRow:t-a});else for(var h=0;h<c.i.length;h++)c.i[h].nRow===t-a&&c.i.splice(h,1)})),this._updateCurrentData(o),this._updateRowheaderData(n,l),e=this.attr("rows"),(this._idx("row","focus","current")>=e||this._getSelectedRows().sort(_.st.desc)[0]>=e)&&(this._clearFocus(),this._clearSelection()),this._clearFocus(),this._clearSelection(),this._removeRowUI(t.length,!0),this._clearHighlightRepeatCSS(),this._clearDynamicCSS("row","data"),this._updateRowSyncInfoEx(t,"d"),this._refreshDRs(),this.attr("percentcolwidth")&&s!==i.bVScroll&&this._refreshDCs(),!0)}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._deleteRowsEx",t.message),!1}},_.QCELL.NormalQCELL.prototype._checkRequired=function(t){try{var e,r,i,o=[],a=this.attr("headercols"),s=this.attr("headerrows"),n=this.attr("cols"),l=this.attr("rows");for(r=a;r<n;r++)if(this._getQCellCol(r).attr("required"))for(e=s;e<l;e++)"string"==typeof(i=this._cellValue(e,r))?""!==(i=i.trim())&&null!=i||o.push({row:e,col:r}):null==i&&o.push({row:e,col:r});return o}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._checkRequired",t.message),[]}},_.QCELL.NormalQCELL.prototype._processValueChanged=function(t,e){var r,i,o=this.attr("rowheaders");for(r=0;r<o.length;r++)"state"===o[r]&&void 0!==(i=this._getCellDOM(t,r))&&this._setRowheaderState(i,t);null!=(i=this._getCellDOM(t,e))&&this._setAriaLabelEx(i,t,e),this._setMergedData(t,e),this._updateIdx("valuechanged",t,e),this._trigger("valuechanged"),!0===this.attr("treestate").grouped&&(this._setTreeState(t,"u"),this._treeRefresh(t,e))},_.QCELL.NormalQCELL.prototype._setMergedData=function(t,e){var r=this.attr("merge"),i=this._getColType(e),o=this.getCellData(t,e),a="";if("none"!==r.data){var s=r.data;if("checkbox"===i){var n=this._getColElement(e).attr("checkedvalue"),l=this._getColElement(e).attr("uncheckedvalue");a=o===n?l:n,"col"===s?this._setMergedDataSub_Col(t,e,o,a):"group"===s&&this._setMergedDataSub_Group(t,e,o,a)}}},_.QCELL.NormalQCELL.prototype._setMergedDataSub_Col=function(t,e,r,i){var o;for(o=t-1;o>=this.getRows("header")&&i===this.getCellData(o,e);o--)this.setCellData(o,e,r);for(o=t+1;o<this.getRows()&&i===this.getCellData(o,e);o++)this.setCellData(o,e,r)},_.QCELL.NormalQCELL.prototype._setMergedDataSub_Group=function(t,e,r,i){var o,a,s=this.getRows("header"),n=this.getRows();for(a=this.getCols("header");a<=e;a++){var l=this.getCellData(t,a);if(a===e&&(l=i),t-1>=this.getCols("header"))if(l===this.getCellData(t-1,a)){for(o=t;o>=s;o--)if((o!==t||a!==e)&&l!==this.getCellData(o,a)){s=o;break}}else s=t;for(o=t;o<n;o++)if((o!==t||a!==e)&&l!==this.getCellData(o,a)){n=o;break}}for(o=s;o<n;o++)this.setCellData(o,e,r)},_.QCELL.NormalQCELL.prototype._divisionSubmit=function(t,e){try{var r=0,i=0,o=this,a=function(t){t=t instanceof Object?t:JSON.parse(t),r=t instanceof Object?t.totalcnt:_._.clone(JSON.parse(t.totalcnt));var e=t instanceof Object&&t.data instanceof Object?_._.clone(t.data):_._.clone(JSON.parse(t.data)),i=o.attr("currentdata").length;if(i+e.length>r)for(var a=r;a<i+e.length;a++)e.pop();o._insertRows(o.attr("currentdata").length+1,e)};do{i++,_.$.ajax({url:t,async:!1,method:"POST",data:{pageindex:i,pagecnt:e}}).done(a)}while(o.attr("currentdata").length<r)}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._divisionSubmit",t.message),!1}return!0},_.QCELL.NormalQCELL.prototype._getCellLabel=function(t,e,r){var i="";switch(this._getColType(e)){case"checkbox":case"image":case"textarea":i=this._cellValue(t,e);break;case"selectmenu":var o=this._getColElement(e),a=this._cellValue(t,e),s=o._getDataArray();if(null==s)break;for(var n=0;n<s.length;n++)s[n].value===a&&(i=s[n].label);break;default:i=_.QCELL.BasicQCELL.prototype._getCellLabel.call(this,t,e,r)}return i},_.QCELL.NormalQCELL.prototype._getLabelByData=function(t,e){var r="";switch(this._getColType(t)){case"selectmenu":var i=this._getColElement(t)._getDataArray();if(null==i)break;for(var o=0;o<i.length;o++)i[o].value===e&&(r=i[o].label);break;default:r=null}return r},_.QCELL.NormalQCELL.prototype._getDataByLabel=function(t,e){var r="";switch(this._getColType(t)){case"selectmenu":var i=this._getColElement(t)._getDataArray();if(null==i)break;for(var o=0;o<i.length;o++)i[o].label===e&&(r=i[o].value);break;default:r=null}return r},_.QCELL.NormalQCELL.prototype._setInitCellDisabled=function(t,e){for(var r=0;r<e;r++)for(var i=this._getQCellCol(r).attr("celldisabled"),o=this._getQCellCol(r).attr("disabled"),a=0;a<t;a++)i.push(o)},_.QCELL.NormalQCELL.prototype._setAddCellDisabled=function(t){for(var e=this.attr("cols"),r=0;r<e;r++){var i=this._getQCellCol(r).attr("celldisabled"),o=this._getQCellCol(r).attr("disabled");i.splice(t,0,o)}},_.QCELL.NormalQCELL.prototype._setDeleteCellDisabled=function(t){for(var e=this.attr("cols"),r=0;r<e;r++){this._getQCellCol(r).attr("celldisabled").splice(t,1)}},_.QCELL.NormalQCELL.prototype._setCellDisabled=function(t,e,r,o){try{var a,s,n,l=this._getSyncInfo("row"),c=this._getSyncInfo("col"),h=this._getIdxInfo("celldisabled","row"),d=this._getIdxInfo("celldisabled","col"),u=this,p=-1;if("static"===this._getQCellCol(e).attr("type"))void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(n=this._getCellDOM(t,e).childNodes[0],(_.util.hasClass(n,_.QCELL.def.css.CELL_ROWHEADER_CHECKBOX)||_.util.hasClass(n,_.QCELL.def.css.CELL_ROWHEADER_RADIO))&&(this._setRowheaderDisable(t,e,r),!0===r?n.setAttribute("disabled","disabled"):n.removeAttribute("disabled")));else if("checkbox"===this._getQCellCol(e).attr("type")||"button"===this._getQCellCol(e).attr("type")){if(void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(n=this._getCellDOM(t,e).childNodes[0]).childNodes.length>0){var g=n.childNodes[0];!0===r?g.setAttribute("disabled","disabled"):g.removeAttribute("disabled")}}else"image"===this._getQCellCol(e).attr("type")&&void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)&&this._getCellDOM(t,e).childNodes.length>0&&(n=this._getCellDOM(t,e).childNodes[0],!0===r?n.onclick=null:!1===_._.isUndefined(this._getColOptions(e).imageclick)&&(p=e,n.onclick=function(t){window[u._getColOptions(p).imageclick](t)}));return this._getQCellCol(e).attr("celldisabled")[t]=r,!1===l.containsKey(t)&&l.put(t,new i._QHashSet),l.get(t).add("celldisabled"),!1===h.containsKey(t)&&h.put(t,new i._QHashtable),(a=h.get(t)).containsKey(e)?!1===r?a.remove(e):a.put(e,_._.extend(a.get(e),r)):!1===r?a.remove(e):a.put(e,_._.clone(r)),!1===c.containsKey(e)&&c.put(e,new i._QHashSet),c.get(e).add("style"),!1===d.containsKey(e)&&d.put(e,new i._QHashtable),(s=d.get(e)).containsKey(t)?!0===r?s.put(t,_._.extend(s.get(t),r)):s.remove(t):!0===r?s.put(t,_._.clone(r)):s.remove(t),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._setCellDisabled",t.message),!1}},_.QCELL.NormalQCELL.prototype._clearCellDisabled=function(){var t,e,r,i=this.attr("headerrows"),o=this.attr("headercols"),a=this.attr("rows"),s=this.attr("cols"),n=this,l=-1,c=function(t){window[n._getColOptions(l).imageclick](t)};for(r=0;r<o;r++)for(e=i;e<a;e++)!0===this._getQCellCol(r).attr("celldisabled")[e]&&("static"===this._getQCellCol(r).attr("type")&&void 0!==this._getCellDOM(e,r)&&null!==this._getCellDOM(e,r)&&this._getCellDOM(e,r).childNodes.length>0&&(t=this._getCellDOM(e,r).childNodes[0],(_.util.hasClass(t,_.QCELL.def.css.CELL_ROWHEADER_CHECKBOX)||_.util.hasClass(t,_.QCELL.def.css.CELL_ROWHEADER_RADIO))&&(this._setRowheaderDisable(e,r,!1),t.removeAttribute("disabled"))),this._getQCellCol(r).attr("celldisabled")[e]=!1);for(r=o;r<s;r++)for(e=i;e<a;e++)if(!0===this._getQCellCol(r).attr("celldisabled")[e]){if("checkbox"===this._getQCellCol(r).attr("type")||"button"===this._getQCellCol(r).attr("type")){if(void 0!==this._getCellDOM(e,r)&&null!==this._getCellDOM(e,r))if(this._getCellDOM(e,r).childNodes.length>0)if((t=this._getCellDOM(e,r).childNodes[0]).childNodes.length>0)t.childNodes[0].removeAttribute("disabled")}else"image"===this._getQCellCol(r).attr("type")&&void 0!==this._getCellDOM(e,r)&&null!==this._getCellDOM(e,r)&&this._getCellDOM(e,r).childNodes.length>0&&(t=this._getCellDOM(e,r).childNodes[0],!1===_._.isUndefined(this._getColOptions(r).imageclick)&&(l=r,t.onclick=c));this._getQCellCol(r).attr("celldisabled")[e]=!1}},_.QCELL.NormalQCELL.prototype._setRowheaderDisable=function(t,e,r){this.attr("rowheadercheckboxclick")[t][e]=!r},_.QCELL.NormalQCELL.prototype._checkValidationOfGroupProps=function(t){var e=this;return _.QCELL.BasicQCELL.prototype._checkValidationOfGroupProps.call(this,t)&&_._.every(t.columns,(function(t,r){var i=e._getColsOfKey(t.key);if(i.length>0){var o=i[0];return e._checkGroupPossibilityOfCol(o)}return!0}))},_.QCELL.NormalQCELL.prototype._checkGroupPossibilityOfCol=function(t){var e=!0;switch(this._getColType(t)){case"checkbox":case"image":case"html":case"selectmenu":case"chart":e=!1}return e},_.QCELL.NormalQCELL.prototype.onHScroll=function(t){this._onScrollHideEditCellsDOM(),_.QCELL.BasicQCELL.prototype.onHScroll.call(this,t)},_.QCELL.NormalQCELL.prototype._setInitCellInvisible=function(t,e){for(var r=0;r<e;r++)for(var i=this._getQCellCol(r).attr("cellinvisible"),o=this._getQCellCol(r).attr("invisibled"),a=0;a<t;a++)i.push(o)},_.QCELL.NormalQCELL.prototype._setAddCellInvisible=function(t){for(var e=this.attr("cols"),r=0;r<e;r++){var i=this._getQCellCol(r).attr("cellinvisible"),o=this._getQCellCol(r).attr("invisibled");i.splice(t,0,o)}},_.QCELL.NormalQCELL.prototype._setDeleteCellInvisible=function(t){for(var e=this.attr("cols"),r=0;r<e;r++){this._getQCellCol(r).attr("cellinvisible").splice(t,1)}},_.QCELL.NormalQCELL.prototype._setCellInvisible=function(t,e,r){try{var o,a,s,n=this._getSyncInfo("row"),l=this._getSyncInfo("col"),c=this._getIdxInfo("cellinvisible","row"),h=this._getIdxInfo("cellinvisible","col");if(void 0!==this._getCellDOM(t,e)&&null!==this._getCellDOM(t,e)){var d=document.createElement("div");d.className+=_.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE,d.setAttribute("data-row",t),d.setAttribute("data-col",e),r?this._getCellDOM(t,e).childNodes.length>0&&(s=_._.isElement(this._getCellDOM(t,e).childNodes[0])?this._getCellDOM(t,e).childNodes[0]:this._getCellDOM(t,e),parseInt(s.getAttribute("data-row"))===t&&(_.$(s).hasClass(_.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)||(_.$("#cell_"+t+"_"+e).prepend(d),_.$(s).css({visibility:"hidden"})))):this._getCellDOM(t,e).childNodes.length>0&&(s=_._.isElement(this._getCellDOM(t,e).childNodes[0])?this._getCellDOM(t,e).childNodes[0]:this._getCellDOM(t,e),parseInt(s.getAttribute("data-row"))===t&&(_.$(s).hasClass(_.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)?_.$(s).remove():_.$(s).hasClass(_.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)||_.$(s).css({visibility:"visible"})))}return this._getQCellCol(e).attr("cellinvisible")[t]=r,!1===n.containsKey(t)&&n.put(t,new i._QHashSet),n.get(t).add("celldisabled"),!1===c.containsKey(t)&&c.put(t,new i._QHashtable),(o=c.get(t)).containsKey(e)?o.put(e,_._.extend(o.get(e),r)):o.put(e,_._.clone(r)),!1===l.containsKey(e)&&l.put(e,new i._QHashSet),l.get(e).add("style"),!1===h.containsKey(e)&&h.put(e,new i._QHashtable),(a=h.get(e)).containsKey(t)?a.put(t,_._.extend(a.get(t),r)):a.put(t,_._.clone(r)),!0}catch(t){return _.QCELL.log("err","QCELL.NormalQCELL._setCellInvisible",t.message),!1}},_.QCELL.NormalQCELL.prototype._clearCellInvisible=function(){for(var t,e=this.attr("headerrows"),r=this.attr("headercols"),i=this.attr("rows"),o=this.attr("cols"),a=e;a<i;a++)for(var s=r;s<o;s++){if(null!=(t=this._getCellDOM(a,s))&&t.childNodes.length>0){var n=t.childNodes[0];_.$(n).hasClass(_.QCELL.def.css.TYPE_INVISIBLE_SINGLE_STYLE)&&_.$(n).remove()}this._getQCellCol(s).attr("cellinvisible")[a]=!1,t=null}},_.QCELL.NormalQCELL.prototype._singleSort=function(t,e,r){this._onScrollHideEditCellsDOM(),this._trigger("beforesort");var o=this;!0===this.attr("paginationinfo").totalsort&&this._movePage(1);var a,s,n,l,c,h,d,u=_._.isString(t)?t:this._getKeyOfCol(t),p=this.attr("headerrows"),g=this.attr("headercols"),f=this.attr("cols"),m=this.attr("currentdata"),C=this._getIdxInfo("style","row"),L=this._getIdxInfo("style","col"),b=this._getSyncInfo("row"),E=this._getSyncInfo("col"),v="rt_styleidxinfo",y="rt_syncinfo",w="rt_originrow",x=this._getIdxInfo("state","row"),k="rt_stateidxinfo",S=new i._QHashSet,Q=this._getIdxInfo("celldisabled","row"),q="rt_celldisabledidxinfo",T=this._getIdxInfo("cellinvisible","row"),A=this._getIdxInfo("cellinvisible","col"),R="rt_cellinvisibleidxinfo",O=[];if(_._.isNumber(t)){var D=this._getColFormat(t);null!=D&&void 0!==D.beforeformat&&_._.isFunction(D.beforeformat)&&(u="_rt_qc_bf_"+u)}if(!0===this.attr("makefrozenbottomdata")&&m.length>0&&!0===m[m.length-1].rt_qc_fbrd&&m.pop(),!0!==this.attr("isfirstsort")&&m.length>0){for(a=0;a<m.length;a++)m[a]._rt_qc_s_i=a;this.attr("isfirstsort",!0,"boolean")}b.size()>0&&b.each((function(t,e){t>m.length||_._.each(e.values(),(function(e){switch(e){case"style":case"state":case"celldisabled":case"cellinvisible":S.add(t)}}))}));var B=[],I=[];if(S.values().length>0){var N=this;if(N._clearDynamicCSS("row","data"),N._clearCellDisabled(),N._clearCellInvisible(),_._.each(S.values(),(function(t){t-p>=0&&(-1!==_._.indexOf(C.keys().sort(_.st.asc),t,!0)&&(m[t-p][v]=C.remove(t)),-1!==_._.indexOf(x.keys().sort(_.st.asc),t,!0)&&(m[t-p][k]=x.remove(t)),-1!==_._.indexOf(Q.keys().sort(_.st.asc),t,!0)&&(m[t-p][q]=Q.remove(t)),-1!==_._.indexOf(T.keys().sort(_.st.asc),t,!0)&&(m[t-p][R]=T.remove(t)),m[t-p][y]=b.remove(t),m[t-p][w]=t)})),!0===this.attr("_isGTF")||this.attr("_isGTH"))for(a=m.length-1;a>=0;a--)void 0!==m[a]._rtqc_state&&"gt"===m[a]._rtqc_state&&(d=_._.clone(m[a]),O.push({row:a,obj:d}),m.splice(a,1));if("none"===e?_.util.RT_sortBy(m,"_rt_qc_s_i",e,r):_.util.RT_sortBy(m,u,e,r),O.length>0)for(c=O.length-1;c>=0;c--)(h=[]).push(O[c].obj),m.RT_insertArray(O[c].row,h);for(a=0;a<m.length;a++){var P=m[a][v],M=m[a][k],H=m[a][q],U=m[a][R],F=m[a][y],z=m[a][w];if(delete m[a][v],delete m[a][k],delete m[a][q],delete m[a][R],delete m[a][y],delete m[a][w],void 0!==m[a]._rt_qc_style){for(var W in m[a]._rt_qc_style){var j=this._getColsOfKey(W)[0];if(void 0===j)break;var G=_._.clone(m[a]._rt_qc_style[W]);G.col=j,G.key=W,B.push({row:a+o.getRows("header"),style:G})}delete m[a]._rt_qc_style}if(F&&z){if(P)for(C.put(a+p,P),s=0;s<f;s++)if(null!==L.get(s))for(n=0;n<L.get(s).keys().length;n++)(l=L.get(s).keys()[n])===z&&L.get(s).put(a+p,L.get(s).remove(l));if(M&&x.put(a+p,M),H)for(s=g;s<f;s++)!0===H.get(s)&&I.push({row:a+p,col:s});if(U)for(T.put(a+p,U),s=0;s<f;s++)if(null!==A.get(s))for(n=0;n<A.get(s).keys().length;n++)l=A.get(s).keys()[n],!1===N._getQCellCol(s).attr("cellinvisible")[a+p]&&N._setCellInvisible(a+p,s,!0),l===z&&A.get(s).put(a+p,A.get(s).remove(l));b.put(a+p,F)}}}else{if(!0===this.attr("_isGTF")||this.attr("_isGTH"))for(a=m.length-1;a>=0;a--)void 0!==m[a]._rtqc_state&&"gt"===m[a]._rtqc_state&&(d=_._.clone(m[a]),O.push({row:a,obj:d}),m.splice(a,1));if("none"===e?_.util.RT_sortBy(m,"_rt_qc_s_i",e,r):_.util.RT_sortBy(m,u,e,r),O.length>0)for(c=O.length-1;c>=0;c--)(h=[]).push(O[c].obj),m.RT_insertArray(O[c].row,h)}if(!1===E.containsKey(t)&&E.put(t,new i._QHashSet),E.get(t).add("sort"),_._.each(E.keys(),(function(e){e!==t&&E.get(e).contains("sort")&&(E.get(e).remove("sort"),E.get(e).isEmpty()&&E.remove(e))})),_._.isNumber(t)&&setTimeout((function(){o.attr("qcellcols")[t]._initUserColStyle(),o.attr("qcellcols")[t]._initUserColStyle()}),0),this._setCurrentData(m,!1,!0),setTimeout((function(){o._trigger("aftersort")})),this.attr("isSorting",!1,"boolean"),B.length>0)for(var V=0;V<B.length;V++)this.setCellStyle(B[V].row,B[V].style.col,B[V].style.style);for(s=g;s<f;s++)(!0===this._getQCellCol(s).attr("_coldisable")||this._getGridCol(s).attr("disabled"))&&this.setColDisable(s,!0);if(I.length>0)for(c=0;c<I.length;c++)this._setCellDisabled(I[c].row,I[c].col,!0)},_.QCELL.NormalQCELL.prototype._multiSort=function(t){this._onScrollHideEditCellsDOM(),this._trigger("beforesort"),!0===this.attr("paginationinfo").totalsort&&this._movePage(1);var e,r,o,a,s,n,l,c,h=[],d=this.attr("headerrows"),u=this.attr("headercols"),p=this.attr("cols"),g=this.attr("currentdata"),f=this._getIdxInfo("style","row"),m=this._getIdxInfo("style","col"),C=this._getSyncInfo("row"),L=this._getSyncInfo("col"),b="rt_styleidxinfo",E="rt_syncinfo",v="rt_originrow",y=this._getIdxInfo("state","row"),w="rt_stateidxinfo",x=new i._QHashSet,k=this._getIdxInfo("celldisabled","row"),S="rt_celldisabledidxinfo",Q=this._getIdxInfo("cellinvisible","row"),q=this._getIdxInfo("cellinvisible","col"),T="rt_cellinvisibleidxinfo",A=this,R=[],O=[];for(!0===this.attr("makefrozenbottomdata")&&g.length>0&&!0===g[g.length-1].rt_qc_fbrd&&g.pop(),C.size()>0&&C.each((function(t,e){t>g.length||_._.each(e.values(),(function(e){switch(e){case"style":case"state":case"celldisabled":case"cellinvisible":x.add(t)}}))})),_._.each(t,(function(t){h.push(_._.clone(t))})),r=0;r<h.length;r++)e=_._.isString(h[r][0])?h[r][0]:this._getKeyOfCol(h[r][0]),h[r][0]=e;if(x.values().length>0){var D=this;if(D._clearDynamicCSS("row","data"),D._clearCellDisabled(),D._clearCellInvisible(),_._.each(x.values(),(function(t){-1!==_._.indexOf(f.keys().sort(_.st.asc),t,!0)&&(g[t-d][b]=f.remove(t)),-1!==_._.indexOf(y.keys().sort(_.st.asc),t,!0)&&(g[t-d][w]=y.remove(t)),-1!==_._.indexOf(k.keys().sort(_.st.asc),t,!0)&&(g[t-d][S]=k.remove(t)),-1!==_._.indexOf(Q.keys().sort(_.st.asc),t,!0)&&(g[t-d][T]=Q.remove(t)),g[t-d][E]=C.remove(t),g[t-d][v]=t})),!0===this.attr("_isGTF")||this.attr("_isGTH"))for(r=g.length-1;r>=0;r--)void 0!==g[r]._rtqc_state&&"gt"===g[r]._rtqc_state&&(c=_._.clone(g[r]),O.push({row:r,obj:c}),g.splice(r,1));if(_.util.RT_sortBy(g,h),O.length>0)for(n=O.length-1;n>=0;n--)(l=[]).push(O[n].obj),g.RT_insertArray(O[n].row,l);for(r=0;r<g.length;r++){var B=g[r][b],I=g[r][w],N=g[r][S],P=g[r][T],M=g[r][E],H=g[r][v];if(delete g[r][b],delete g[r][w],delete g[r][S],delete g[r][T],delete g[r][E],delete g[r][v],M&&H){if(B)for(f.put(r+d,B),o=0;o<p;o++)if(null!==m.get(o))for(a=0;a<m.get(o).keys().length;a++)(s=m.get(o).keys()[a])===H&&m.get(o).put(r+d,m.get(o).remove(s));if(I&&y.put(r+d,I),N)for(o=u;o<p;o++)!0===N.get(o)&&R.push({row:r+d,col:o});if(P)for(Q.put(r+d,P),o=0;o<p;o++)if(null!==q.get(o))for(a=0;a<q.get(o).keys().length;a++)s=q.get(o).keys()[a],!1===D._getQCellCol(o).attr("cellinvisible")[r+d]&&D._setCellInvisible(r+d,o,!0),s===H&&q.get(o).put(r+d,q.get(o).remove(s));C.put(r+d,M)}}}else{if(!0===this.attr("_isGTF")||this.attr("_isGTH"))for(r=g.length-1;r>=0;r--)void 0!==g[r]._rtqc_state&&"gt"===g[r]._rtqc_state&&(c=_._.clone(g[r]),O.push({row:r,obj:c}),g.splice(r,1));if(_.util.RT_sortBy(g,h),O.length>0)for(n=O.length-1;n>=0;n--)(l=[]).push(O[n].obj),g.RT_insertArray(O[n].row,l)}for(_._.each(t,(function(t){!1===L.containsKey(t[0])&&L.put(t[0],new i._QHashSet),L.get(t[0]).add("sort")})),this._setCurrentData(g),setTimeout((function(){A._trigger("aftersort")})),o=u;o<p;o++)!0===this._getQCellCol(o).attr("_coldisable")&&this.setColDisable(o,!0);if(R.length>0)for(n=0;n<R.length;n++)this._setCellDisabled(R[n].row,R[n].col,!0);this.attr("isSorting",!1,"boolean")},_.QCELL.NormalQCELL.prototype._getRowState=function(t){var e=this._getIdxInfo("state","row");return e.containsKey(t)?e.get(t):"n"},_.QCELL.NormalQCELL.prototype._setRowState=function(t,e){var r,o=this.attr("rowheaders"),a=this._getIdxInfo("state","row"),s=!1;switch(e){case"i":case"u":if("later"===this.attr("statetype")&&"u"===e&&"d"===this._getRowState(t))break;if("u"===e&&"i"===this._getRowState(t))break;a.put(t,e),s=!0;break;case"d":"later"===this.attr("statetype")&&(a.put(t,e),s=!0)}if(s){var n=this._getSyncInfo("row");!1===n.containsKey(t)&&n.put(t,new i._QHashSet),n.get(t).add("state")}for(var l=0;l<o.length;l++)"state"===o[l]&&null!=(r=this._getCellDOM(t,l))&&this._setRowheaderState(r,t);return s},_.QCELL.NormalQCELL.prototype._removeRowState=function(t){var e=this._getIdxInfo("state","row"),r=this.attr("rowheaders"),i=!1;if(e.containsKey(t)&&(e.remove(t),i=!0),i){var o=this._getSyncInfo("row");if(o.containsKey(t)){var a=o.get(t);a.remove("state"),a.isEmpty()&&o.remove(t)}}for(var s=0;s<r.length;s++)if("state"===r[s]){var n=this._getCellDOM(t,s);null!=n&&this._setRowheaderState(n,t)}return i},_.QCELL.NormalQCELL.prototype._clearRowStates=function(){var t=this._getIdxInfo("state","row"),e=this._getSyncInfo("row"),r=this.attr("rowheaders");_._.each(t.keys(),(function(t){if(e.containsKey(t)){var r=e.get(t);r.remove("state"),r.isEmpty()&&e.remove(t)}})),t.clear();for(var i=0;i<r.length;i++)if("state"===r[i])for(var o=this.getRows("header");o<this.getRows();o++){var a=this._getCellDOM(o,i);null!=a&&this._setRowheaderState(a,o)}return!0},_.QCELL.NormalQCELL.prototype._updateRowState=function(t,e){var r=!1;if("u"===e)"i"!==this._getRowState(t)&&(this._setRowState(t,e),r=!0);else r=this._setRowState(t,e);return r},_.QCELL.NormalQCELL.prototype._getState=function(t){var e,r=this,i=this._getIdxInfo("state","row"),o=this.attr("headerrows");return e=[],"d"===t&&"later"!==this.attr("statetype")?_._.each(this.attr("deletedrowsdata"),(function(t){e.push({row:-1,data:t})})):i.each((function(i,a){if(a===t){var s={row:i,data:r._getRowData(i)};if("i"===t)e.push(s);else if(r.attr("original")){var n=r.attr("origindata")[i-o];_._.isMatch(s.data,n)?s=_._.reject(e[a],(function(t){return t.row===i})):e.push(s)}else e.push(s)}})),e.sort((function(t,e){return t.row-e.row})),e},_.QCELL.NormalQCELL.prototype._clearStates=function(){var t=this._getIdxInfo("state","row"),e=this._getSyncInfo("row"),r=this.attr("rowheaders");this.attr("deletedrowsdata",[],"array"),_._.each(t.keys(),(function(t){if(e.containsKey(t)){var r=e.get(t);r.remove("state"),r.isEmpty()&&e.remove(t)}})),t.clear();for(var i=0;i<r.length;i++)if("state"===r[i])for(var o=this.getRows("header");o<this.getRows();o++){var a=this._getCellDOM(o,i);null!=a&&this._setRowheaderState(a,o)}return!0},_.QCELL.NormalQCELL.prototype._deleteDStates=function(){"later"!==this.attr("statetype")&&this.attr("deletedrowsdata").pop();this.attr("original")&&this.attr("originstate").d.pop()},_.QCELL.NormalQCELL.prototype._getStates=function(){var t,e=this,r=this._getIdxInfo("state","row"),i=this.attr("headerrows");if(t={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&_._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),r.each((function(r,o){var a={row:r,data:e._getRowData(r)};if("i"===o)t[o].push(a);else if(e.attr("original")){var s=e.attr("originstate"),n=r-i,l=0;for(l=0;l<s.d.length;l++)s.d[l].nRow<=n&&n++;for(l=0;l<s.i.length;l++)s.i[l].nRow>=n&&n++;var c=e.attr("origindata")[n];_._.isMatch(a.data,c)?a=_._.reject(t[o],(function(t){return t.row===r})):t[o].push(a)}else t[o].push(a)})),!0===this.attr("pagesyncorgindata")){t.i=[],t.u=[];for(var o=0;o<this.attr("data").input.length;o++){var a=this.attr("data").input[o];"u"===a.rt_qc_page_state?t.u.push({row:o,data:_._.clone(this.attr("data").input[o])}):"i"===a.rt_qc_page_state&&t.i.push({row:o,data:_._.clone(this.attr("data").input[o])})}}return _._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))})),t},_.QCELL.NormalQCELL.prototype._getAllDataStates=function(t,e){var r,i,o=this._getIdxInfo("state","row"),a=this.attr("headerrows");for(null==t&&(t="m"),null==e&&(e="rownum"),r=this.attr("currentdata").RT_clone(),i=0;i<r.length;i++)r[i][e]=i+a,r[i][t]="";return o.each((function(e,i){r[e-a][t]=i})),"later"!==this.attr("statetype")&&_._.each(this.attr("deletedrowsdata"),(function(i){i[e]=-1,i[t]="d",r.push(i)})),r},_.QCELL.NormalQCELL.prototype._getAllDataStatesBySep=function(t,e,r,i){var o,a=this,s=this._getIdxInfo("state","row"),n={},l=this.attr("headercols"),c=this.attr("cols"),h=[];null==t&&(t="m"),null==e&&(e="rownum"),null==r&&(r="^"),null==i&&(i="|");var d,u,p,_=this._getAllDataStates(t,e),g=0;for(o=l;o<c;o++)d=this._getKeyOfCol(o),n[d]=1;if(s.each((function(t,e){if("u"===e)for(p in u=a._getRowData(t))n[p]=1})),_.length)for(o=0;o<_.length;o++)if(""===(u=_[o])[t]){for(p in u)n[p]=1;if(3==g++)break}var f,m=t+i+e;for(p in n)p!==t&&p!==e&&(h.push(p),m+=i+p);for(m+=r,o=0;o<_.length;o++){for(m+=(u=_[o])[t]+i+u[e],f=0;f<h.length;f++)m+=i+(void 0===u[h[f]]?"":u[h[f]]);m+=r}return m},_.QCELL.NormalQCELL.prototype._getStatesEx=function(t){var e,r,i=this,o=this._getIdxInfo("state","row");return t=void 0===t?"status":t,e=[],"later"!==this.attr("statetype")&&_._.each(this.attr("deletedrowsdata"),(function(i){(r={row:-1,data:i})[t]="d",e.push(r)})),o.each((function(o,a){(r={row:o,data:i._getRowData(o)})[t]=a,e.push(r)})),e.sort((function(t,e){return t.row-e.row})),e},_.QCELL.NormalQCELL.prototype._getStatesBySep=function(t,e,r){var i,o,a=this,s=this._getIdxInfo("state","row"),n="_qcellState",l="";t=void 0===t?"|":t,e=void 0===e?"^":e,r=void 0===r?[]:r,i=[],"later"!==this.attr("statetype")&&_._.each(this.attr("deletedrowsdata"),(function(t){(o={row:-1,data:t})[n]="d",i.push(o)})),s.each((function(t,e){void 0!==(o={row:t,data:a._getRowData(t)}).data&&(o[n]=e,i.push(o))})),i.sort((function(t,e){return t.row-e.row}));var c,h,d=!0,u=[];return i.forEach((function(t){if(!0===d){u.push("isChecked"),u.push("tmHeader");for(var e=a.getCols("header");e<a.getCols();e++)u.push(a.getKeyOfCol(e));for(var i=0;i<r.length;i++)u.push(r[i])}for(var o in t.data)u.push(o);d=!1})),u=_._.uniq(u),l="",i.forEach((function(r){if(""===l&&(l="m"+e+"rownum"+e,d=!0),!0===d){for(c=0;c<u.length;c++)l+=u[c],c+1===u.length?l+=t:l+=e;d=!1}var i=r.row;for(l+=r[n]+e+i+e,c=0;c<u.length;c++)h=r.data[u[c]],h="isChecked"===u[c]?void 0===h?"true":h:"tmHeader"===u[c]?void 0===h?r._qcellState.toUpperCase():h:void 0===h?"":h,l+=h,c+1===u.length?l+=t:l+=e})),l},_.QCELL.NormalQCELL.prototype._getFocusRowState=function(){var t,e=this,r=this._getIdxInfo("state","row"),i=this._getIdxInfo("focus","row"),o=i.current>-1?i.current:-1,a=this.attr("headerrows"),s=[],n=0;t={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&_._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),r.each((function(r,i){var o={row:r,data:e._getRowData(r)};if("i"===i)t[i].push(o);else if(e.attr("original")){var s=e.attr("originstate"),n=r-a,l=0;for(l=0;l<s.d.length;l++)s.d[l].nRow<=n&&n++;for(l=0;l<s.i.length;l++)s.i[l].nRow>=n&&n++;var c=e.attr("origindata")[n];_._.isMatch(o.data,c)?o=_._.reject(t[i],(function(t){return t.row===r})):t[i].push(o)}else t[i].push(o)})),_._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))}));for(var l=0;l<Object.keys(t).length;l++)for(var c=Object.keys(t)[l],h=0;h<t[c].length;h++)if(o>-1&&t[c][h].row===o){s[n]=c,n++;break}return s},_.QCELL.NormalQCELL.prototype._getSelectRowState=function(t){var e,r=this,i=this._getIdxInfo("state","row"),o=this._getIdxInfo("focus","row"),a=o.current>-1?o.current:-1,s=this.attr("headerrows"),n=[],l=0;e={d:[],i:[],u:[]},"later"!==this.attr("statetype")&&_._.each(this.attr("deletedrowsdata"),(function(t){e.d.push({row:-1,data:t})})),i.each((function(t,i){var o={row:t,data:r._getRowData(t)};if("i"===i)e[i].push(o);else if(r.attr("original")){var a=r.attr("originstate"),n=t-s,l=0;for(l=0;l<a.d.length;l++)a.d[l].nRow<=n&&n++;for(l=0;l<a.i.length;l++)a.i[l].nRow>=n&&n++;var c=r.attr("origindata")[n];_._.isMatch(o.data,c)?o=_._.reject(e[i],(function(e){return e.row===t})):e[i].push(o)}else e[i].push(o)})),_._.each(e,(function(t,e){t.sort((function(t,e){return t.row-e.row}))}));for(var c=0;c<Object.keys(e).length;c++)for(var h=Object.keys(e)[c],d=0;d<e[h].length;d++)if(a>-1&&e[h][d].row===t){n[l]=h,l++;break}return n},_.QCELL.NormalQCELL.prototype._getAllStates=function(){var t,e,r=this,i=this._getIdxInfo("state","row"),o=this.attr("headerrows"),a=[];e=this.attr("currentdata").RT_clone(),t={d:[],i:[],u:[],m:[]},"later"!==this.attr("statetype")&&_._.each(this.attr("deletedrowsdata"),(function(e){t.d.push({row:-1,data:e})})),i.each((function(e,i){var s={row:e,data:r._getRowData(e)};if("i"===i)a.push(s.row),t[i].push(s);else if(r.attr("original")){var n=r.attr("originstate"),l=e-o,c=0;for(c=0;c<n.d.length;c++)n.d[c].nRow<=l&&l++;for(c=0;c<n.i.length;c++)n.i[c].nRow>=l&&l++;var h=r.attr("origindata")[l];_._.isMatch(s.data,h)?s=_._.reject(t[i],(function(t){return t.row===e})):(a.push(s.row),t[i].push(s))}else a.push(s.row),t[i].push(s)}));for(var s=0;s<e.length;s++)-1===a.indexOf(s+o)&&t.m.push({row:s+o,data:_._.clone(e[s])});return _._.each(t,(function(t,e){t.sort((function(t,e){return t.row-e.row}))})),t},_.QCELL.NormalQCELL.prototype._updateRowSyncInfo=function(t,e,r){var i=this._getSyncInfo("row");if(i.size()>0){var o=i.keys().sort(_.st.desc);switch(r){case"i":var a;a=_._.filter(o.sort(_.st.desc),(function(e){return e>=t})),this._pushRowSyncInfo(a,e);break;case"d":for(var s,n=0;n<e;n++)if(i.containsKey(t+n))for(var l=i.get(t+n).values(),c=0,h=l.length;c<h;c++){switch(l[c]){case"style":this._removeCellStylesOfRow(t+n,!1);break;case"state":this._removeRowState(t+n)}}o.reverse(),s=_._.filter(o,(function(r){return r>=t+e})),this._pullRowSyncInfo(s,e)}}},_.QCELL.NormalQCELL.prototype._updateRowSyncInfoEx=function(t,e){var r=this._getSyncInfo("row"),i=t.length;if(r.size()>0&&i>0){var o=this;switch(e){case"i":var a,s=[];a=_._.filter(r.keys().sort(_.st.asc),(function(e){return e>=t[i-1]})),_._.each(t,(function(t,e){var r=_._.filter(a,(function(e){return e>=t}));a.RT_difference(r),r.reverse(),s.push(r)})),_._.each(s,(function(t,e){o._pushRowSyncInfo(t,i-e)}));break;case"d":var n,l=[];_._.each(t,(function(t){if(r.containsKey(t))for(var e=r.get(t).values(),i=0,a=e.length;i<a;i++){switch(e[i]){case"style":o._removeCellStylesOfRow(t,!1);break;case"state":o._removeRowState(t)}}})),n=_._.filter(r.keys().sort(_.st.asc),(function(e){return e>t[i-1]})),_._.each(t,(function(t,e){var r=_._.filter(n,(function(e){return e>t}));n.RT_difference(r),l.push(r)})),l.reverse(),_._.each(l,(function(t,e){o._pullRowSyncInfo(t,e+1)}))}}},_.QCELL.NormalQCELL.prototype._pushRowSyncInfo=function(t,e){if(t.length>0){var r=this._getSyncInfo("row");if(r.size()>0){var i=this;_._.each(t,(function(t){var o=r.remove(t);_._.each(o.values(),(function(r){switch(r){case"style":var o=i._getIdxInfo("style","row"),a=i._getIdxInfo("style","col"),s=o.remove(t);o.put(t+e,s),_._.each(s.keys(),(function(r){var i=a.get(r);i.put(t+e,i.remove(t))}));break;case"state":var n=i._getIdxInfo("state","row");n.put(t+e,n.remove(t))}})),r.put(t+e,o)}))}}},_.QCELL.NormalQCELL.prototype._pullRowSyncInfo=function(t,e){if(t.length>0){var r=this._getSyncInfo("row");if(r.size()>0){var i=this;_._.each(t,(function(t){var o=r.remove(t);_._.each(o.values(),(function(r){switch(r){case"style":var o=i._getIdxInfo("style","row"),a=i._getIdxInfo("style","col"),s=o.remove(t);o.put(t-e,s),_._.each(s.keys(),(function(r){var i=a.get(r);i.put(t-e,i.remove(t))}));break;case"state":var n=i._getIdxInfo("state","row");n.put(t-e,n.remove(t))}})),r.put(t-e,o)}))}}},_.QCELL.NormalQCELL.prototype._setFooterCSS=function(t,e,r){_.util.textContent(t,e),!0===this.getRowData(r).rt_qc_footer?_.util.addClass(t,"rt-qc-cell-rowheader-footer"):_.util.removeClass(t,"rt-qc-cell-rowheader-footer")},_.QCELL.NormalQCELL.prototype._setColTypeCSS=function(t,e){var r=_.QCELL.def.css,i=this._getColType(e);if(_.util.removeClass(t,r.TYPE_INPUT_CELL+" "+r.TYPE_INPUTBUTTON_CELL+" "+r.TYPE_TEXTAREA_CELL+" "+r.TYPE_SELECTMENU_CELL+" "+r.TYPE_DATEPICKER_CELL+" "+r.TYPE_INPUTDATEPICKER_CELL+" "+r.TYPE_CHECKBOX_CELL+" "+r.TYPE_IMAGE_CELL+" "+r.TYPE_HTML_CELL+" "+r.TYPE_CHART_CELL+" "+r.TYPE_MULTICHECKBOX_CELL+" "+r.TYPE_NUMBER_CELL+" "+r.TYPE_SLIDER_CELL+" "+r.TYPE_BUTTON_CELL+" "+r.TYPE_STATIC_CELL),!_.util.hasClass(t,r.COLHEADER_AREA)){switch(i){case"input":t.className+=" "+r.TYPE_INPUT_CELL;break;case"inputbutton":t.className+=" "+r.TYPE_INPUTBUTTON_CELL;break;case"textarea":t.className+=" "+r.TYPE_TEXTAREA_CELL;break;case"selectmenu":t.className+=" "+r.TYPE_SELECTMENU_CELL;break;case"datepicker":t.className+=" "+r.TYPE_DATEPICKER_CELL;break;case"inputdatepicker":t.className+=" "+r.TYPE_INPUTDATEPICKER_CELL;break;case"checkbox":t.className+=" "+r.TYPE_CHECKBOX_CELL;break;case"image":t.className+=" "+r.TYPE_IMAGE_CELL;break;case"html":t.className+=" "+r.TYPE_HTML_CELL;break;case"chart":t.className+=" "+r.TYPE_CHART_CELL;break;case"multicheckbox":t.className+=" "+r.TYPE_MULTICHECKBOX_CELL;break;case"number":t.className+=" "+r.TYPE_NUMBER_CELL;break;case"slider":t.className+=" "+r.TYPE_SLIDER_CELL;break;case"button":t.className+=" "+r.TYPE_BUTTON_CELL;break;case"editor":t.className+=" "+r.TYPE_EDITOR_CELL;break;default:t.className+=" "+r.TYPE_STATIC_CELL}t=null}},_.QCELL.NormalQCELL.prototype._showGrandTotal=function(t,e,r,i){var o=_.QCELL.def.css,a=this.getRowData(e);void 0!==a&&"gt"===a._rtqc_state?(_.util.addClass(t,o.GRANDTOTAL),_.util.textContent(t,i)):_.util.removeClass(t,o.GRANDTOTAL),this._setAriaLabelEx(t,e,r)},_.QCELL.NormalQCELL.prototype._setTDSub=function(t,e,r,i,o){switch(e){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":this._setGroupTreeDataCell(t,r,o);break;default:this._setGroupTreeDataCell(t,i,o)}},_.QCELL.NormalQCELL.prototype._setTHSub=function(t,e,r,i,o){switch(r){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":this._setGroupTreeUICell(t,e,i);break;default:this._setGroupTreeUICell(t,e,o)}},_.QCELL.NormalQCELL.prototype._refreshHRs=function(){try{var t,e,r=this.getID(),i=this.attr("headertext"),o=this._getCellGroupDOMs("row","header"),a=this.attr("headerrows"),s=this.attr("headercols"),n=this.attr("id");this._clearMergeHeader(),this._createHeaderMergeInfo(),_._.each(o,(function(o,l){t=_.QCELL.getInstance(r);var c=l,h=t._isCellStyleRow(c);_._.each(o,(function(t,o){if(e=_.QCELL.getInstance(r),null!==t&&"true"!==t.getAttribute("data-footer")){var l=parseInt(t.getAttribute("data-col"));if(isNaN(l))return;var d=e._getColType(l),u=!!h&&e._hasCellStyle(c,l),p=void 0===i[l][c]?"":i[l][c];t.setAttribute("data-row",c),t.setAttribute("id",n+"_cell_"+c+"_"+l),l>=s&&("checkbox"===d||"html"===d?e._getColElement(l)._headershow(t,c,l):(t.innerHTML=e._getHeaderCellSpan(p,c,l),(c===a-1||e._isLastHeaderRowMasterCell(c,l))&&e.attr("useGroupUI")&&_.$(t).draggable({helper:e._setGroupMakeHelper,revert:"invalid"})),0===c&&e._getQCellCol(l).attr("topmove")&&t.appendChild(e._getColHeaderDragDropArea()),(c===a-1||e._isLastHeaderRowMasterCell(c,l))&&(e._getQCellCol(l).attr("move")&&t.appendChild(e._getColHeaderDragDropArea()),e._getQCellCol(l).attr("search")&&t.appendChild(e._getColSearchArea()),e._getQCellCol(l).attr("sort")&&(_._.isUndefined(e._getQCellCol(l).attr("options").wholeselect)||!1===e._getQCellCol(l).attr("options").wholeselect)&&("checkbox"!==d||!1===e.attr("paginationinfo").totalsort||!1===_._.isUndefined(e.attr("paginationinfo"))&&_._.isUndefined(e.attr("paginationinfo").url))&&t.appendChild(e._getDefaultSortArea(l)),e._getQCellCol(l).attr("resize")&&t.appendChild(e._getColResizeArea()),e._getQCellCol(l).attr("filter")&&t.appendChild(e._getFilterArea(l)),e._getQCellCol(l).attr("editor")&&t.appendChild(e._getColStyleEditorArea()),e._getQCellCol(l).attr("remove")&&t.appendChild(e._getDefaultRemoveArea(l)))),u&&e._setCellStyleCSS(t,e._getCellStyle(c,l))}t=null,e=null})),t=null})),this._updateMergeHeader()}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._refreshHRs",t.message)}},_.QCELL.NormalQCELL.prototype._getHFNodeLevel=function(t,e,r){var i,o=_._.indexOf(e.headerrows,r,!0);if(o>-1)i=e.headerrownodes[o];else{var a=_._.indexOf(e.footerrows,r,!0);a>-1&&(i=e.footerrownodes[a])}return null!==i&&void 0!==i.level?i.level:"lev0"},_.QCELL.NormalQCELL.prototype._refreshHCs=function(){try{var t,e,r=_.QCELL.def.css,i=this.getID(),o=this._getCellGroupDOMs("col","header"),a=this.attr("rowheaders"),s=this.attr("currentdata").length,n=this.attr("headerrows"),l=0,c=this.attr("staticrowsinfo"),h=!0,d=-1,u=this.attr("id"),p=0,g=!1!==this.attr("presentseqatfooter");this._isPanel()&&p++,_._.each(o,(function(o,f){t=_.QCELL.getInstance(i);var m=f,C=t._getColWidth(m),L=l,b=t._isCellStyleCol(m),E=t._getQCellCol(m).attr("style");_._.each(o,(function(t){if(e=_.QCELL.getInstance(i),null!==t&&(t.setAttribute("data-col",m),t.style.left=L+"px",C!==parseInt(t.style.width)&&(t.style.width=C+"px"),"true"!==t.getAttribute("data-footer"))){var o=parseInt(t.getAttribute("data-row")),l=o<n,f=!!b&&e._hasCellStyle(o,m),v=l?"header":"data";if(t.setAttribute("id",u+"_cell_"+o+"_"+m),_.util.addClass(t,e._getColStyleClassName(m,v)),h=!0,c.length>0)for(d=0;d<c.length;d++)c[d].nRow===o&&(h=!1);if(!_._.isEmpty(E)){if(_._.isObject(E[v]))for(var y=Object.keys(E[v]),w=0;w<y.length;w++)_.$(t).css(y[w],E[v][y[w]]);e.attr("qcellcols")[m].attr("style",{header:E.header,data:E.data},"object")}if(o>=n){var x,k=e.attr("paginationinfo");if(_._.isObject(k)&&_._.isEmpty(k)){if("sequence"===a[m]||"reverse"===a[m]){if(e._isBottomPanel(t))return void(void 0!==e.getRowData(o).rt_qc_seq&&(_.util.textContent(t,e.getRowData(o).rt_qc_seq),e._setAriaLabelEx(t,o,m)));g||!0!==e.getRowData(o).rt_qc_footer?e._setFooterCSS(t,"reverse"===a[m]?s-(o-n+p):o-n+1,o):e._setFooterCSS(t,"",o),e._setAriaLabelEx(t,o,m)}else if("checkbox"===a[m]||"radio"===a[m]){if(_.$(t).empty(),e._isBottomPanel(t))return;h&&(x=e._createRowheaderCheckbox(t,o,m,a[m]),t.appendChild(x),"checkbox"===a[m]?t.className+=" "+r.ROWHEADER_CELL_CHECKBOX:t.className+=" "+r.ROWHEADER_CELL_RADIO)}else if("state"===a[m]){if(e._isBottomPanel(t))return;e._setRowheaderState(t,o)}else if("custom"===a[m]){if(e._isBottomPanel(t))return;e._setRowheaderCustom(t,o,m)}}else{var S=o;if(n>1&&(S=o-(n-1)),"sequence"===a[m]||"reverse"===a[m]){if(e._isBottomPanel(t))return void(void 0!==e.getRowData(o).rt_qc_seq&&(_.util.textContent(t,e.getRowData(o).rt_qc_seq),e._setAriaLabelEx(t,o,m)));g||!0!==e.getRowData(o).rt_qc_footer?e._setFooterCSS(t,"reverse"===a[m]?k.datacount-((k.pageindex-1)*k.pageunit+(S-1)):(k.pageindex-1)*k.pageunit+S,o):e._setFooterCSS(t,"",o)}else if("checkbox"===a[m]||"radio"===a[m]){if(_.$(t).empty(),e._isBottomPanel(t))return void e._setAriaLabelEx(t,o,m);h&&(x=e._createRowheaderCheckbox(t,o,m,a[m]),t.appendChild(x),"checkbox"===a[m]?t.className+=" "+r.ROWHEADER_CELL_CHECKBOX:t.className+=" "+r.ROWHEADER_CELL_RADIO)}else if("state"===a[m]){if(e._isBottomPanel(t))return;e._setRowheaderState(t,o)}else if("custom"===a[m]){if(e._isBottomPanel(t))return;e._setRowheaderCustom(t,o,m)}e._setAriaLabelEx(t,o,m)}}f&&e._setCellStyleCSS(t,e._getCellStyle(o,m))}t=null,e=null})),l+=C,t=null}))}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._refreshHCs",t.message)}},_.QCELL.NormalQCELL.prototype._refreshFRs=function(){try{var t,e,r,i=_.QCELL.def.css,o=this.getID(),a=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),s=a.grouped?a.columnsinfo.keys(!0)[0]:"",n=this._getCellGroupDOMs("row","frozen"),l=this.attr("rowheaders"),c=this.attr("currentdata"),h=c.length,d=this.attr("headerrows"),u=this.attr("headercols"),p=this.attr("highlightrepeat"),g=this.attr("selectmode").indexOf("row")>-1,f=this.attr("staticrowsinfo"),m=!0,C=-1,L=this.attr("id"),b=0,E=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&b++,a.grouped&&"parentchild"===a.mode&&void 0!==a.treeUIColumn){var v=this._getColsOfKey(a.treeUIColumn)[0];void 0!==v&&(s=this._getColID(v))}this._clearMergeData(),this._createDataMergeInfo(),_._.each(n,(function(n,v){e=_.QCELL.getInstance(o);var y=d+v,w=-1,x=-1,k=-1,S=!1,Q=!1,q=!1,T=null,A=c[y-d],R=e._isFocusRow(y),O=e._isSelectedRow(y),D=e._isCellStyleRow(y),B=p>0&&(y-d+1)%p==0;if(m=!0,f.length>0)for(C=0;C<f.length;C++)f[C].nRow===y&&(m=!1);a.grouped&&("tree"!==a.type&&"step"!==a.type||(w=_._.indexOf(a.treeuirows,y,!0)),w>-1?(S=!0,T=a.treeuirownodes[w],Q=q=!1):(x=_._.indexOf(a.headerrows,y,!0))>-1?(Q=!0,T=a.headerrownodes[x],q=!1):(k=_._.indexOf(a.footerrows,y,!0))>-1&&(q=!0,T=a.footerrownodes[k],Q=!1)),_._.each(n,(function(e,n){if(r=_.QCELL.getInstance(o),"true"!==e.getAttribute("data-footer")){var c,p=parseInt(e.getAttribute("data-col")),v=r._getColID(p),w=r._getColType(p),x=r._getKeyOfCol(p),k=!!R&&!!r._isFocusCol(p),I=!!O&&(!!g||r._isSelectedCell(y,p)),N=!!D&&r._hasCellStyle(y,p),P=r._getQCellCol(p).attr("colstyleeditordata"),M=r._getQCellCol(p).attr("cellinvisible")[y],H=r._getDataTextAlign(p),U=r._useDataTextAlign(p);if(e.setAttribute("data-row",y),e.setAttribute("id",L+"_cell_"+y+"_"+p),p<u){var F=r.attr("paginationinfo");if(_._.isObject(F)&&_._.isEmpty(F)){if("sequence"===l[p]||"reverse"===l[p]){if(r._isBottomPanel(e))return void(void 0!==r.getRowData(y).rt_qc_seq&&(_.util.textContent(e,r.getRowData(y).rt_qc_seq),r._setAriaLabelEx(e,y,p)));E||!0!==r.getRowData(y).rt_qc_footer?r._setFooterCSS(e,"reverse"===l[p]?h-(y-d+b):y-d+1,y):r._setFooterCSS(e,"",y)}else if("checkbox"===l[p]||"radio"===l[p]){if(_.$(e).empty(),r._isBottomPanel(e))return;m&&(c=r._createRowheaderCheckbox(e,y,p,l[p]),e.appendChild(c),"checkbox"===l[p]?e.className+=" "+i.ROWHEADER_CELL_CHECKBOX:e.className+=" "+i.ROWHEADER_CELL_RADIO)}else if("state"===l[p]){if(r._isBottomPanel(e))return;r._setRowheaderState(e,y)}else if("custom"===l[p]){if(r._isBottomPanel(e))return;r._setRowheaderCustom(e,y,p)}r._setAriaLabelEx(e,y,p)}else{var z=y;if(d>1&&(z=y-(d-1)),"sequence"===l[p]||"reverse"===l[p]){if(r._isBottomPanel(e))return void(void 0!==r.getRowData(y).rt_qc_seq&&(_.util.textContent(e,r.getRowData(y).rt_qc_seq),r._setAriaLabelEx(e,y,p)));E||!0!==r.getRowData(y).rt_qc_footer?r._setFooterCSS(e,"reverse"===l[p]?F.datacount-((F.pageindex-1)*F.pageunit+(z-1)):(F.pageindex-1)*F.pageunit+z,y):r._setFooterCSS(e,"",y),r._setAriaLabelEx(e,y,p)}else if("checkbox"===l[p]||"radio"===l[p]){if(_.$(e).empty(),r._isBottomPanel(e))return;m&&(c=r._createRowheaderCheckbox(e,y,p,l[p]),e.appendChild(c),"checkbox"===l[p]?e.className+=" "+i.ROWHEADER_CELL_CHECKBOX:e.className+=" "+i.ROWHEADER_CELL_RADIO)}else if("state"===l[p]){if(r._isBottomPanel(e))return;r._setRowheaderState(e,y)}else if("custom"===l[p]){if(r._isBottomPanel(e))return;r._setRowheaderCustom(e,y,p)}}}else{t=void 0===A[x]?"":A[x];var W=r._showDataFormat(y,p,t),j=r._showDataFormatStatic(p,t);if(_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+v+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),a.grouped&&"step"===a.type)if(S)T.key===W&&T.level+u===p?r._setTHSub(e,T,w,W,t):""!==W?r._setTDSub(e,w,W,t,A):(_.util.textContent(e,W),r._setAriaLabelEx(e,y,p));else if(Q||q)switch((Q||q)&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+v+" rt-qc-gtui-lev"+r._getHFNodeLevel(T,a,y)),W=t),w){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):(_.util.textContent(e,W),r._setAriaLabelEx(e,y,p));break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(p)._show(e,y,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(p)._showDataLabel(e,y,p,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):(_.util.textContent(e,t),r._setAriaLabelEx(e,y,p))}else{for(var G={},V=0;V<a.treeuirows.length&&y>a.treeuirows[V];V++)G=a.treeuirownodes[V];if(p<=G.level+u)r._setTDSub(e,w,W,t,A);else switch(w){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):(_.util.textContent(e,W),r._setAriaLabelEx(e,y,p));break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(p)._show(e,y,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(p)._showDataLabel(e,y,p,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):(_.util.textContent(e,t),r._setAriaLabelEx(e,y,p))}}else if(a.grouped&&v===s&&"tree"===a.type)if(S)r._setTHSub(e,T,w,W,t);else if(Q||q)switch((Q||q)&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+v+" rt-qc-gtui-lev"+r._getHFNodeLevel(T,a,y)),W=t),w){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):(_.util.textContent(e,W),r._setAriaLabelEx(e,y,p));break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(p)._show(e,y,p);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(p)._showDataLabel(e,y,p,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):(_.util.textContent(e,t),r._setAriaLabelEx(e,y,p))}else r._setTDSub(e,w,W,t,A);else if(a.grouped&&"group"===a.type&&_._.indexOf(a.columnsinfo.keys(!0),v,!0)>=0)if(null!==(T=r._getGroupNode(A,x)))r._setGroupUICell(e,T,W);else if(Q||q)switch(parseInt(e.getAttribute("data-row"))===y&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+v+" rt-qc-gtui-lev"+r._getHFNodeLevel(T,a,y)),W=t),w){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":_.util.textContent(e,W),r._setAriaLabelEx(e,y,p);break;default:_.util.textContent(e,t),r._setAriaLabelEx(e,y,p)}else{switch(_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+v+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),w){case"static":case"input":case"datepicker":case"number":case"slider":_.util.textContent(e,W),r._setAriaLabelEx(e,y,p);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(p)._show(e,y,p);break;case"selectmenu":case"multicheckbox":case"inputbutton":r._getColElement(p)._showDataLabel(e,y,p,t);break;default:_.util.textContent(e,t),r._setAriaLabelEx(e,y,p)}if(f.length>0)for(C=0;C<f.length;C++)if(f[C].nRow===y){_.util.addClass(e," rt-qc-staticrow-"+v),_.util.textContent(e,j),r._setAriaLabelEx(e,y,p);break}r._showGrandTotal(e,y,p,t)}else if(Q||q)switch(parseInt(e.getAttribute("data-row"))===y&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+v+" rt-qc-gtui-lev"+r._getHFNodeLevel(T,a,y)),W=t),w){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):(_.util.textContent(e,W),r._setAriaLabelEx(e,y,p));break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):(_.util.textContent(e,t),r._setAriaLabelEx(e,y,p))}else{switch(_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+v+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),w){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):(m?_.util.textContent(e,W):_.util.textContent(e,t),r._setAriaLabelEx(e,y,p));break;case"checkbox":case"image":case"html":case"chart":case"button":m?r._getColElement(p)._show(e,y,p):_.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":m?r._getColElement(p)._showDataLabel(e,y,p,t):_.util.textContent(e,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,y,p)}if(f.length>0)for(C=0;C<f.length;C++)if(f[C].nRow===y){_.util.addClass(e,i.STATIC_ROW+" "+i.STATIC_ROW+"-"+v),_.util.textContent(e,j);break}r._showGrandTotal(e,y,p,t)}}M&&r._setCellInvisible(y,p,!0),p>=u&&B&&_.util.addClass(e,i.CELL_HIGHLIGHTREPEAT),r._setColTypeCSS(e,p),k&&r._addFocusStyleClass(e),I&&_.util.addClass(e,i.CELL_SELECT),N&&r._setCellStyleCSS(e,r._getCellStyle(y,p)),U&&(e.style.textAlign=H)}e=null,r=null})),e=null})),this._updateMergeData()}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._refreshFRs",t.message)}},_.QCELL.NormalQCELL.prototype._refreshFBRs=function(){try{var t,e,r,i=_.QCELL.def.css,o=this.attr("vsinfo"),a=this.getID(),s=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=s.grouped?s.columnsinfo.keys(!0)[0]:"",l=this._getCellGroupDOMs("row","frozenbottom"),c=this.attr("rowheaders"),h=this.attr("currentdata"),d=h.length,u=this.attr("headerrows"),p=this.attr("headercols"),g=this.attr("highlightrepeat"),f=this.attr("selectmode").indexOf("row")>-1,m=this.attr("staticrowsinfo"),C=!0,L=-1,b="panel"===this.attr("frozenbottomstyle"),E=this.attr("id"),v=0,y=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&v++,s.grouped&&"parentchild"===s.mode&&void 0!==s.treeUIColumn){var w=this._getColsOfKey(s.treeUIColumn)[0];void 0!==w&&(n=this._getColID(w))}this._clearMergeData(),this._createDataMergeInfo(),_._.each(l,(function(l,w){e=_.QCELL.getInstance(a);var x=o.nEndRow+w+1,k=-1,S=-1,Q=-1,q=!1,T=!1,A=!1,R=null,O=h[x-u],D=e._isFocusRow(x),B=e._isSelectedRow(x),I=e._isCellStyleRow(x),N=g>0&&(x-u+1)%g==0;if(C=!0,!(x<=u)){if(m.length>0)for(L=0;L<m.length;L++)m[L].nRow===x&&(C=!1);s.grouped&&("tree"!==s.type&&"step"!==s.type||(k=_._.indexOf(s.treeuirows,x,!0)),k>-1?(q=!0,R=s.treeuirownodes[k],T=A=!1):(S=_._.indexOf(s.headerrows,x,!0))>-1?(T=!0,R=s.headerrownodes[S],A=!1):(Q=_._.indexOf(s.footerrows,x,!0))>-1&&(A=!0,R=s.footerrownodes[Q],T=!1)),_._.each(l,(function(e,o){if(r=_.QCELL.getInstance(a),"true"!==e.getAttribute("data-footer")){var l,h=parseInt(e.getAttribute("data-col")),u=r._getColID(h),g=r._getColType(h),w=r._getKeyOfCol(h),k=!!D&&!!r._isFocusCol(h),S=!!B&&(!!f||r._isSelectedCell(x,h)),Q=!!I&&r._hasCellStyle(x,h),P=r.attr("headerrows"),M=r._getQCellCol(h).attr("colstyleeditordata"),H=r._getQCellCol(h).attr("cellinvisible")[x],U=r._getDataTextAlign(h),F=r._useDataTextAlign(h);if(!0===b&&"checkbox"!==g&&(g="static"),e.setAttribute("data-row",x),e.setAttribute("id",E+"_cell_"+x+"_"+h),h<p){var z=r.attr("paginationinfo");if(_._.isObject(z)&&_._.isEmpty(z)){if("sequence"===c[h]||"reverse"===c[h]){if(r._isBottomPanel(e))return void(void 0!==r.getRowData(x).rt_qc_seq?(_.util.textContent(e,r.getRowData(x).rt_qc_seq),r._setAriaLabelEx(e,x,h)):(_.util.textContent(e,""),r._setAriaLabelEx(e,x,h)));y||!0!==r.getRowData(x).rt_qc_footer?r._setFooterCSS(e,"reverse"===c[h]?d-(x-P+v):x-P+1,x):r._setFooterCSS(e,"",x),r._setAriaLabelEx(e,x,h)}else if("checkbox"===c[h]||"radio"===c[h]){if(_.$(e).empty(),r._isBottomPanel(e))return;C&&(l=r._createRowheaderCheckbox(e,x,h,c[h]),e.appendChild(l),"checkbox"===c[h]?e.className+=" "+i.ROWHEADER_CELL_CHECKBOX:e.className+=" "+i.ROWHEADER_CELL_RADIO)}else if("state"===c[h]){if(r._isBottomPanel(e))return;r._setRowheaderState(e,x)}else if("custom"===c[h]){if(r._isBottomPanel(e))return;r._setRowheaderCustom(e,x,h)}}else{var W=x;if(P>1&&(W=x-(P-1)),"sequence"===c[h]||"reverse"===c[h])y||!0!==r.getRowData(x).rt_qc_footer?r._setFooterCSS(e,"reverse"===c[h]?z.datacount-((z.pageindex-1)*z.pageunit+(W-1)):(z.pageindex-1)*z.pageunit+W,x):r._setFooterCSS(e,"",x),r._setAriaLabelEx(e,x,h);else if("checkbox"===c[h]||"radio"===c[h]){if(_.$(e).empty(),r._isBottomPanel(e))return;C&&(l=r._createRowheaderCheckbox(e,x,h,c[h]),e.appendChild(l),"checkbox"===c[h]?e.className+=" "+i.ROWHEADER_CELL_CHECKBOX:e.className+=" "+i.ROWHEADER_CELL_RADIO)}else"state"===c[h]?r._setRowheaderState(e,x):"custom"===c[h]&&r._setRowheaderCustom(e,x,h)}}else{t=void 0===O[w]?"":O[w];var j=r._showDataFormat(x,h,t),G=r._showDataFormatStatic(h,t);if(!0===b&&(j=t,G=t),_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),s.grouped&&"step"===s.type)if(q)R.key===j&&R.level+p===h?r._setTHSub(e,R,g,j,t):""!==j?r._setTDSub(e,g,j,t,O):_.util.textContent(e,j),r._setAriaLabelEx(e,x,h);else if(T||A)switch((T||A)&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev"+r._getHFNodeLevel(R,s,x)),j=t),g){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",j):_.util.textContent(e,j),r._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(h)._showDataLabel(e,x,h,t);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,x,h)}else{for(var V={},K=0;K<s.treeuirows.length&&x>s.treeuirows[K];K++)V=s.treeuirownodes[K];if(h<=V.level+p)r._setTDSub(e,g,j,t,O);else switch(g){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",j):_.util.textContent(e,j),r._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(h)._showDataLabel(e,x,h,t);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,x,h)}}else if(s.grouped&&u===n&&"tree"===s.type)if(q)r._setTHSub(e,R,g,j,t);else if(T||A)switch((T||A)&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev"+r._getHFNodeLevel(R,s,x)),j=t),g){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",j):_.util.textContent(e,j),r._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(h)._show(e,x,h);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(h)._showDataLabel(e,x,h,t);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,x,h)}else r._setTDSub(e,g,j,t,O);else if(s.grouped&&"group"===s.type&&_._.indexOf(s.columnsinfo.keys(!0),u,!0)>=0)if(null!==(R=r._getGroupNode(O,w)))r._setGroupUICell(e,R,j);else if(T||A){switch(parseInt(e.getAttribute("data-row"))===x&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev"+r._getHFNodeLevel(R,s,x)),j=t),g){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":_.util.textContent(e,j);break;default:_.util.textContent(e,t)}r._setAriaLabelEx(e,x,h)}else switch(_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),g){case"static":case"input":case"datepicker":case"number":case"slider":_.util.textContent(e,j),r._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(h)._show(e,x,h);break;case"selectmenu":case"multicheckbox":case"inputbutton":r._getColElement(h)._showDataLabel(e,x,h,t);break;default:_.util.textContent(e,t),r._setAriaLabelEx(e,x,h)}else if(T||A){switch(parseInt(e.getAttribute("data-row"))===x&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev"+r._getHFNodeLevel(R,s,x)),j=t),g){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",j):_.util.textContent(e,j);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):_.util.textContent(e,t)}r._setAriaLabelEx(e,x,h)}else{switch(_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+u+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),g){case"static":case"input":case"number":case"slider":M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",j):C?_.util.textContent(e,j):_.util.textContent(e,t),r._setAriaLabelEx(e,x,h);break;case"checkbox":case"image":case"html":case"chart":case"button":C?r._getColElement(h)._show(e,x,h):_.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":C?r._getColElement(h)._showDataLabel(e,x,h,t):_.util.textContent(e,t);break;default:M.replace("QCELL_COL_DATA","").length>0?e.innerHTML=M.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,x,h)}if(m.length>0)for(L=0;L<m.length;L++)if(m[L].nRow===x){_.util.addClass(e,i.STATIC_ROW+" "+i.STATIC_ROW+"-"+u),_.util.textContent(e,G),r._setAriaLabelEx(e,x,h);break}r._showGrandTotal(e,x,h,t)}}H&&r._setCellInvisible(x,h,!0),h>=p&&N&&_.util.addClass(e,i.CELL_HIGHLIGHTREPEAT),r._setColTypeCSS(e,h),k&&r._addFocusStyleClass(e),S&&_.util.addClass(e,i.CELL_SELECT),Q&&r._setCellStyleCSS(e,r._getCellStyle(x,h)),F&&(e.style.textAlign=U)}e=null,r=null})),e=null}})),this._updateMergeData()}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._refreshFBRs",t.message)}},_.QCELL.NormalQCELL.prototype._refreshNRs=function(){try{var t,e,r,i=_.QCELL.def.css,o=this.attr("vsinfo"),a=this.getID(),s=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=s.grouped?s.columnsinfo.keys(!0)[0]:"",l=this._getCellGroupDOMs("row","normal"),c=this.attr("rowheaders"),h=this.attr("currentdata"),d=h.length,u=this.attr("headerrows"),p=this.attr("headercols"),g=this.attr("highlightrepeat"),f=this.attr("selectmode").indexOf("row")>-1,m=this.attr("staticrowsinfo"),C=!0,L=-1,b=this.attr("id"),E=0,v=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&E++,s.grouped&&"parentchild"===s.mode&&void 0!==s.treeUIColumn){var y=this._getColsOfKey(s.treeUIColumn)[0];void 0!==y&&(n=this._getColID(y))}this._clearMergeData(),this._createDataMergeInfo(),_._.each(l,(function(l,y){e=_.QCELL.getInstance(a);var w=o.nTopRow+y,x=-1,k=-1,S=-1,Q=!1,q=!1,T=!1,A=null,R=h[w-u],O=e._isFocusRow(w),D=e._isSelectedRow(w),B=e._isCellStyleRow(w),I=g>0&&(w-u+1)%g==0;if(C=!0,m.length>0)for(L=0;L<m.length;L++)m[L].nRow===w&&(C=!1);s.grouped&&("tree"!==s.type&&"step"!==s.type||(x=_._.indexOf(s.treeuirows,w,!0)),x>-1?(Q=!0,A=s.treeuirownodes[x],q=T=!1):(k=_._.indexOf(s.headerrows,w,!0))>-1?(q=!0,A=s.headerrownodes[k],T=!1):(S=_._.indexOf(s.footerrows,w,!0))>-1&&(T=!0,A=s.footerrownodes[S],q=!1)),_._.each(l,(function(e,o){if(r=_.QCELL.getInstance(a),"true"!==e.getAttribute("data-footer")){var l=parseInt(e.getAttribute("data-col"));if(isNaN(l))return;var h,g=r._getColID(l),y=r._getColType(l),x=r._getKeyOfCol(l),k=!!O&&!!r._isFocusCol(l),S=!!D&&(!!f||r._isSelectedCell(w,l)),N=!!B&&r._hasCellStyle(w,l),P=r._getQCellCol(l).attr("colstyleeditordata"),M=r._getQCellCol(l).attr("cellinvisible")[w],H=r._getDataTextAlign(l),U=r._useDataTextAlign(l);if(e.setAttribute("data-row",w),e.setAttribute("id",b+"_cell_"+w+"_"+l),l<p){var F=r.attr("paginationinfo");if(_._.isObject(F)&&_._.isEmpty(F)){if("sequence"===c[l]||"reverse"===c[l]){if(r._isBottomPanel(e))return void(void 0!==r.getRowData(w).rt_qc_seq&&(_.util.textContent(e,r.getRowData(w).rt_qc_seq),r._setAriaLabelEx(e,w,l)));v||!0!==r.getRowData(w).rt_qc_footer?r._setFooterCSS(e,"reverse"===c[l]?d-(w-u+E):w-u+1,w):r._setFooterCSS(e,"",w),r._setAriaLabelEx(e,w,l)}else if("checkbox"===c[l]||"radio"===c[l]){if(_.$(e).empty(),r._isBottomPanel(e))return;C&&(h=r._createRowheaderCheckbox(e,w,l,c[l]),e.appendChild(h),"checkbox"===c[l]?e.className+=" "+i.ROWHEADER_CELL_CHECKBOX:e.className+=" "+i.ROWHEADER_CELL_RADIO)}else if("state"===c[l]){if(r._isBottomPanel(e))return;r._setRowheaderState(e,w)}else if("custom"===c[l]){if(r._isBottomPanel(e))return;r._setRowheaderCustom(e,w,l)}}else{var z=w;if(u>1&&(z=w-(u-1)),"sequence"===c[l]||"reverse"===c[l]){if(r._isBottomPanel(e))return void(void 0!==r.getRowData(w).rt_qc_seq&&(_.util.textContent(e,r.getRowData(w).rt_qc_seq),r._setAriaLabelEx(e,w,l)));v||!0!==r.getRowData(w).rt_qc_footer?r._setFooterCSS(e,"reverse"===c[l]?F.datacount-((F.pageindex-1)*F.pageunit+(z-1)):(F.pageindex-1)*F.pageunit+z,w):r._setFooterCSS(e,"",w),r._setAriaLabelEx(e,w,l)}else if("checkbox"===c[l]||"radio"===c[l]){if(_.$(e).empty(),r._isBottomPanel(e))return;C&&(h=r._createRowheaderCheckbox(e,w,l,c[l]),e.appendChild(h),"checkbox"===c[l]?e.className+=" "+i.ROWHEADER_CELL_CHECKBOX:e.className+=" "+i.ROWHEADER_CELL_RADIO)}else if("state"===c[l]){if(r._isBottomPanel(e))return;r._setRowheaderState(e,w)}else if("custom"===c[l]){if(r._isBottomPanel(e))return;r._setRowheaderCustom(e,w,l)}}}else{t=void 0!==R?void 0===R[x]?"":R[x]:"";var W=r._showDataFormat(w,l,t),j=r._showDataFormatStatic(l,t);if(_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),s.grouped&&"step"===s.type)if(Q)A.key===W&&A.level+p===l?r._setTHSub(e,A,y,W,t):""!==W?r._setTDSub(e,y,W,t,R):_.util.textContent(e,W),r._setAriaLabelEx(e,w,l);else if(q||T)switch((q||T)&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev"+r._getHFNodeLevel(A,s,w)),W=t),y){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):r._isBottomPanel(e)?_.util.textContent(e,t):_.util.textContent(e,W),r._setAriaLabelEx(e,w,l);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(l)._show(e,w,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(l)._showDataLabel(e,w,l,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,w,l)}else{for(var G={},V=0;V<s.treeuirows.length&&w>s.treeuirows[V];V++)G=s.treeuirownodes[V];if(l<=G.level+p)r._setTDSub(e,y,W,t,R);else switch(y){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):(r._isBottomPanel(e)?_.util.textContent(e,t):_.util.textContent(e,W),r._setAriaLabelEx(e,w,l));break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(l)._show(e,w,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(l)._showDataLabel(e,w,l,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,w,l)}}else if(s.grouped&&g===n&&"tree"===s.type)if(Q)r._setTHSub(e,A,y,W,t);else if(q||T)switch((q||T)&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev"+r._getHFNodeLevel(A,s,w)),W=t),y){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):r._isBottomPanel(e)?_.util.textContent(e,t):_.util.textContent(e,W),r._setAriaLabelEx(e,w,l);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(l)._show(e,w,l);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":r._getColElement(l)._showDataLabel(e,w,l,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,w,l)}else r._setTDSub(e,y,W,t,R);else if(s.grouped&&"group"===s.type&&_._.indexOf(s.columnsinfo.keys(!0),g,!0)>=0)if(null!==(A=r._getGroupNode(R,x)))r._setGroupUICell(e,A,W);else if(q||T){switch(parseInt(e.getAttribute("data-row"))===w&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev"+r._getHFNodeLevel(A,s,w)),W=t),y){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":r._isBottomPanel(e)?_.util.textContent(e,t):_.util.textContent(e,W);break;default:_.util.textContent(e,t)}r._setAriaLabelEx(e,w,l)}else switch(_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),y){case"static":case"input":case"datepicker":case"number":case"slider":r._isBottomPanel(e)?_.util.textContent(e,t):_.util.textContent(e,W),r._setAriaLabelEx(e,w,l);break;case"checkbox":case"image":case"html":case"chart":case"button":r._getColElement(l)._show(e,w,l);break;case"selectmenu":case"multicheckbox":case"inputbutton":r._getColElement(l)._showDataLabel(e,w,l,t);break;default:_.util.textContent(e,t),r._setAriaLabelEx(e,w,l)}else if(q||T)switch(parseInt(e.getAttribute("data-row"))===w&&(_.util.addClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev"+r._getHFNodeLevel(A,s,w)),W=t),y){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):r._isBottomPanel(e)?_.util.textContent(e,t):_.util.textContent(e,W),r._setAriaLabelEx(e,w,l);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,w,l)}else{switch(_.util.removeClass(e,i.GROUPTREEUI_HEADER+" "+i.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+g+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),y){case"static":case"input":case"number":case"slider":P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",W):r._isBottomPanel(e)?_.util.textContent(e,t):C?_.util.textContent(e,W):_.util.textContent(e,t),r._setAriaLabelEx(e,w,l);break;case"checkbox":case"image":case"html":case"chart":case"button":C?r._getColElement(l)._show(e,w,l):_.util.textContent(e,t);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":C?r._getColElement(l)._showDataLabel(e,w,l,t):_.util.textContent(e,t);break;default:P.replace("QCELL_COL_DATA","").length>0?e.innerHTML=P.replace("QCELL_COL_DATA",t):_.util.textContent(e,t),r._setAriaLabelEx(e,w,l)}if(m.length>0)for(L=0;L<m.length;L++)if(m[L].nRow===w){_.util.addClass(e,i.STATIC_ROW+" "+i.STATIC_ROW+"-"+g),_.util.textContent(e,j),r._setAriaLabelEx(e,w,l);break}r._showGrandTotal(e,w,l,t)}}M&&r._setCellInvisible(w,l,!0),l>=p&&I&&_.util.addClass(e,i.CELL_HIGHLIGHTREPEAT),r._setColTypeCSS(e,l),k&&r._addFocusStyleClass(e),S&&_.util.addClass(e,i.CELL_SELECT),N&&r._setCellStyleCSS(e,r._getCellStyle(w,l)),U&&(e.style.textAlign=H)}e=null,r=null})),e=null})),this._updateMergeData()}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._refreshNRs",t.message)}},_.QCELL.NormalQCELL.prototype._refreshFCs=function(){try{var t,e,r,i,o=_.QCELL.def.css,a=this.getID(),s=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),n=s.grouped?s.columnsinfo.keys(!0)[0]:"",l=this.attr("headertext"),c=this._getCellGroupDOMs("col","frozen"),h=this.attr("currentdata"),d=this.attr("headerrows"),u=this.attr("headercols"),p=this.attr("selectmode").indexOf("col")>-1,g=null,f=this.attr("staticrowsinfo"),m=!0,C=-1,L=this.attr("id");if(s.grouped&&"parentchild"===s.mode&&void 0!==s.treeUIColumn){var b=this._getColsOfKey(s.treeUIColumn)[0];void 0!==b&&(n=this._getColID(b))}this._clearMerge(),this._createMergeInfo(),t=0,_._.each(c,(function(c,b){r=_.QCELL.getInstance(a);var E=u+b,v=r._getColWidth(E),y=t,w=r._getColID(E),x=r._getColType(E),k=r._getKeyOfCol(E),S=w===n,Q=r._isFocusCol(E),q=r._isSelectedCol(E),T=r._isCellStyleCol(E),A=r._getQCellCol(E).attr("colstyleeditordata"),R=r._getQCellCol(E).attr("style"),O=r._getDataTextAlign(E),D=r._useDataTextAlign(E);_._.each(c,(function(t){if(i=_.QCELL.getInstance(a),t.setAttribute("data-col",E),t.style.left=y+"px",v!==parseInt(t.style.width)&&(t.style.width=v+"px"),"true"!==t.getAttribute("data-footer")){var r=parseInt(t.getAttribute("data-row")),n=r<d,c=!!Q&&!!i._isFocusRow(r),b=!n&&(!!q&&(!!p||i._isSelectedCell(r,E))),B=!!T&&i._hasCellStyle(r,E),I=n?"header":"data",N=void 0===l[E][r]?"":l[E][r],P=i._getQCellCol(E).attr("cellinvisible")[r];if(t.setAttribute("id",L+"_cell_"+r+"_"+E),_.util.addClass(t,i._getColStyleClassName(E,I)),m=!0,f.length>0)for(C=0;C<f.length;C++)f[C].nRow===r&&(m=!1);if(!_._.isEmpty(R)){if(_._.isObject(R[I]))for(var M=Object.keys(R[I]),H=0;H<M.length;H++)_.$(t).css(M[H],R[I][M[H]]);i.attr("qcellcols")[E].attr("style",{header:R.header,data:R.data},"object")}if(n)"checkbox"===x||"html"===x?i._getColElement(E)._headershow(t,r,E):(t.innerHTML=i._getHeaderCellSpan(N,r,E),(r===d-1||i._isLastHeaderRowMasterCell(r,E))&&i.attr("useGroupUI")&&_.$(t).draggable({helper:i._setGroupMakeHelper,revert:"invalid"})),0===r&&i._getQCellCol(E).attr("topmove")&&t.appendChild(i._getColHeaderDragDropArea()),(r===d-1||i._isLastHeaderRowMasterCell(r,E))&&(i._getQCellCol(E).attr("move")&&t.appendChild(i._getColHeaderDragDropArea()),i._getQCellCol(E).attr("search")&&t.appendChild(i._getColSearchArea()),i._getQCellCol(E).attr("sort")&&(_._.isUndefined(i._getQCellCol(E).attr("options").wholeselect)||!1===i._getQCellCol(E).attr("options").wholeselect)&&("checkbox"!==x||!1===i.attr("paginationinfo").totalsort||!1===_._.isUndefined(i.attr("paginationinfo"))&&_._.isUndefined(i.attr("paginationinfo").url))&&t.appendChild(i._getDefaultSortArea(E)),i._getQCellCol(E).attr("resize")&&t.appendChild(i._getColResizeArea()),i._getQCellCol(E).attr("filter")&&t.appendChild(i._getFilterArea(E)),i._getQCellCol(E).attr("editor")&&t.appendChild(i._getColStyleEditorArea()),i._getQCellCol(E).attr("remove")&&t.appendChild(i._getDefaultRemoveArea(E)));else{var U=h[r-d];if(void 0===U)return;e=void 0===U[k]?"":U[k];var F=i._showDataFormat(r,E,e),z=i._showDataFormatStatic(E,e),W=!1,j=!1,G=-1,V=-1,K=-1,Y=!1;if(_.util.removeClass(t,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),i._isBottomPanel(t)&&(x="static"),s.grouped&&"step"===s.type)if(G=-1,V=-1,K=-1,Y=!1,(G=_._.indexOf(s.treeuirows,r,!0))>-1?(Y=!0,g=s.treeuirownodes[G],W=j=!1):(V=_._.indexOf(s.headerrows,r,!0))>-1?(W=!0,g=s.headerrownodes[V],j=!1):(K=_._.indexOf(s.footerrows,r,!0))>-1&&(j=!0,g=s.footerrownodes[K],W=!1),Y)g.key===F?i._setTHSub(t,g,x,F,e):""!==F?i._setTDSub(t,x,F,e,U):_.util.textContent(t,F),i._setAriaLabelEx(t,r,E);else if(W||j)switch((W||j)&&(_.util.addClass(t,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+i._getHFNodeLevel(g,s,r)),F=e),x){case"static":case"input":case"number":case"slider":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):_.util.textContent(t,F),i._setAriaLabelEx(t,r,E);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(E)._show(t,r,E);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(E)._showDataLabel(t,r,E,e);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):_.util.textContent(t,e),i._setAriaLabelEx(t,r,E)}else{for(var $={},X=0;X<s.treeuirows.length&&r>s.treeuirows[X];X++)$=s.treeuirownodes[X];if(E<=$.level+u)i._setTDSub(t,x,F,e,U);else switch(x){case"static":case"input":case"number":case"slider":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):_.util.textContent(t,F),i._setAriaLabelEx(t,r,E);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(E)._show(t,r,E);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(E)._showDataLabel(t,r,E,e);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):_.util.textContent(t,e),i._setAriaLabelEx(t,r,E)}}else if(s.grouped&&S&&"tree"===s.type)if(G=-1,V=-1,K=-1,Y=!1,"tree"===s.type&&(G=_._.indexOf(s.treeuirows,r,!0)),G>-1?(Y=!0,g=s.treeuirownodes[G],W=j=!1):(V=_._.indexOf(s.headerrows,r,!0))>-1?(W=!0,g=s.headerrownodes[V],j=!1):(K=_._.indexOf(s.footerrows,r,!0))>-1&&(j=!0,g=s.footerrownodes[K],W=!1),Y)i._setTHSub(t,g,x,F,e);else if(W||j)if(s.grouped&&"group"===s.type&&_._.indexOf(s.columnsinfo.keys(!0),w,!0)>=0)if(null!==(g=i._getGroupNode(U,k)))i._setGroupUICell(t,g,F);else switch((W||j)&&(_.util.addClass(t,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+i._getHFNodeLevel(g,s,r)),F=e),x){case"static":case"input":case"datepicker":case"number":case"slider":_.util.textContent(t,F),i._setAriaLabelEx(t,r,E);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(E)._show(t,r,E);break;case"selectmenu":case"multicheckbox":case"inputbutton":i._getColElement(E)._showDataLabel(t,r,E,e);break;default:_.util.textContent(t,e),i._setAriaLabelEx(t,r,E)}else switch((W||j)&&(_.util.addClass(t,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+i._getHFNodeLevel(g,s,r)),F=e),x){case"static":case"input":case"number":case"slider":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):_.util.textContent(t,F),i._setAriaLabelEx(t,r,E);break;case"checkbox":case"image":case"html":case"chart":case"button":i._getColElement(E)._show(t,r,E);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":i._getColElement(E)._showDataLabel(t,r,E,e);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):_.util.textContent(t,e),i._setAriaLabelEx(t,r,E)}else i._setTDSub(t,x,F,e,U);else if(s.grouped&&(_._.indexOf(s.headerrows,r,!0)>-1&&(W=!0),_._.indexOf(s.footerrows,r,!0)>-1&&(j=!0)),W||j){if(parseInt(t.getAttribute("data-row"))===r&&(_.util.addClass(t,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev"+i._getHFNodeLevel(g,s,r)),F=e),f.length>0)for(C=0;C<f.length;C++)if(f[C].nRow===r){F=z;break}switch(x){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):_.util.textContent(t,F);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):_.util.textContent(t,e)}i._setAriaLabelEx(t,r,E)}else{switch(_.util.removeClass(t,o.GROUPTREEUI_HEADER+" "+o.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+w+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),x){case"static":case"input":case"number":case"slider":A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",F):m?_.util.textContent(t,F):_.util.textContent(t,e),i._setAriaLabelEx(t,r,E);break;case"checkbox":case"image":case"html":case"chart":case"button":m?i._getColElement(E)._show(t,r,E):_.util.textContent(t,e);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":m?i._getColElement(E)._showDataLabel(t,r,E,e):_.util.textContent(t,e);break;default:A.replace("QCELL_COL_DATA","").length>0?t.innerHTML=A.replace("QCELL_COL_DATA",e):_.util.textContent(t,e),i._setAriaLabelEx(t,r,E)}if(f.length>0)for(C=0;C<f.length;C++)if(f[C].nRow===r){_.util.addClass(t,o.STATIC_ROW+" "+o.STATIC_ROW+"-"+w),_.util.textContent(t,z),i._setAriaLabelEx(t,r,E);break}i._showGrandTotal(t,r,E,e)}}P&&i._setCellInvisible(r,E,!0),i._setColTypeCSS(t,E),c&&i._addFocusStyleClass(t),b&&_.util.addClass(t,o.CELL_SELECT),B&&i._setCellStyleCSS(t,i._getCellStyle(r,E)),D&&(t.style.textAlign=O)}t=null,i=null})),t+=v,r=null})),this._updateMerge()}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._refreshFCs",t.message)}},_.QCELL.NormalQCELL.prototype._refreshNCs=function(){try{var t,e,r,i,o,a=_.QCELL.def.css,s=this.attr("hsinfo"),n=this.getID(),l=s.objUpdateInfo,c=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=c.grouped?c.columnsinfo.keys(!0)[0]:"",d=this.attr("headertext"),u=this._getCellGroupDOMs("col","normal"),p=this.attr("currentdata"),g=this.attr("headerrows"),f=this.attr("headercols"),m=this.attr("frozencols"),C=this._getSumOfColWidth(f,f+m-1),L=this.attr("selectmode").indexOf("col")>-1,b=null,E=this.attr("staticrowsinfo"),v=!0,y=-1,w=this.attr("id");if(c.grouped&&"parentchild"===c.mode&&void 0!==c.treeUIColumn){var x=this._getColsOfKey(c.treeUIColumn)[0];void 0!==x&&(h=this._getColID(x))}this._clearMerge(),this._createMergeInfo(),e=l.objParams.nAdjustedLeft,t=C,_._.each(u,(function(l,u){i=_.QCELL.getInstance(n);var m=s.nLeftCol+u,C=i._getColWidth(m),x=t-e,k=i._getColID(m),S=i._getColType(m),Q=i._getKeyOfCol(m),q=k===h,T=i._isFocusCol(m),A=i._isSelectedCol(m),R=i._isCellStyleCol(m),O=i._getQCellCol(m).attr("colstyleeditordata"),D=i._getQCellCol(m).attr("style"),B=i._getDataTextAlign(m),I=i._useDataTextAlign(m);_._.each(l,(function(t){if(o=_.QCELL.getInstance(n),t.setAttribute("data-col",m),t.style.left=x+"px",C!==parseInt(t.style.width)&&(t.style.width=C+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),i=e<g,s=!!T&&!!o._isFocusRow(e),l=!i&&(!!A&&(!!L||o._isSelectedCell(e,m))),h=!!R&&o._hasCellStyle(e,m),u=i?"header":"data",N=void 0===d[m][e]?"":d[m][e],P=o._getQCellCol(m).attr("cellinvisible")[e];if(t.setAttribute("id",w+"_cell_"+e+"_"+m),_.util.addClass(t,o._getColStyleClassName(m,u)),v=!0,E.length>0)for(y=0;y<E.length;y++)E[y].nRow===e&&(v=!1);if(!_._.isEmpty(D)){if(_._.isObject(D[u]))for(var M=Object.keys(D[u]),H=0;H<M.length;H++)_.$(t).css(M[H],D[u][M[H]]);o.attr("qcellcols")[m].attr("style",{header:D.header,data:D.data},"object")}if(i)"checkbox"===S||"html"===S?o._getColElement(m)._headershow(t,e,m):(t.innerHTML=o._getHeaderCellSpan(N,e,m),(e===g-1||o._isLastHeaderRowMasterCell(e,m))&&o.attr("useGroupUI")&&_.$(t).draggable({helper:o._setGroupMakeHelper,revert:"invalid"})),0===e&&o._getQCellCol(m).attr("topmove")&&t.appendChild(o._getColHeaderDragDropArea()),(e===g-1||o._isLastHeaderRowMasterCell(e,m))&&(o._getQCellCol(m).attr("move")&&t.appendChild(o._getColHeaderDragDropArea()),o._getQCellCol(m).attr("search")&&t.appendChild(o._getColSearchArea()),o._getQCellCol(m).attr("sort")&&(_._.isUndefined(o._getQCellCol(m).attr("options").wholeselect)||!1===o._getQCellCol(m).attr("options").wholeselect)&&("checkbox"!==S||!1===o.attr("paginationinfo").totalsort||!1===_._.isUndefined(o.attr("paginationinfo"))&&_._.isUndefined(o.attr("paginationinfo").url))&&t.appendChild(o._getDefaultSortArea(m)),o._getQCellCol(m).attr("resize")&&t.appendChild(o._getColResizeArea()),o._getQCellCol(m).attr("filter")&&t.appendChild(o._getFilterArea(m)),o._getQCellCol(m).attr("editor")&&t.appendChild(o._getColStyleEditorArea()),o._getQCellCol(m).attr("remove")&&t.appendChild(o._getDefaultRemoveArea(m)));else{var U=p[e-g];if(void 0===U)return;r=void 0===U[Q]?"":U[Q];var F=o._showDataFormat(e,m,r),z=o._showDataFormatStatic(m,r),W=!1,j=!1,G=-1,V=-1,K=-1,Y=!1;if(!0===U.rt_qc_fbrd&&e===p.length&&(F=z=r),c.grouped&&"step"===c.type)if(G=-1,V=-1,K=-1,Y=!1,(G=_._.indexOf(c.treeuirows,e,!0))>-1?(Y=!0,b=c.treeuirownodes[G],W=j=!1):(V=_._.indexOf(c.headerrows,e,!0))>-1?(W=!0,b=c.headerrownodes[V],j=!1):(K=_._.indexOf(c.footerrows,e,!0))>-1&&(j=!0,b=c.footerrownodes[K],W=!1),Y)b.key===F&&b.level+f===m?o._setTHSub(t,b,S,F,r):""!==F?o._setTDSub(t,S,F,r,U):_.util.textContent(t,F),o._setAriaLabelEx(t,e,m);else if(W||j)switch((W||j)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev"+o._getHFNodeLevel(b,c,e)),F=r),S){case"static":case"input":case"number":case"slider":O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",F):_.util.textContent(t,F),o._setAriaLabelEx(t,e,m);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(m)._show(t,e,m);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(m)._showDataLabel(t,e,m,r);break;default:O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,m)}else{for(var $={},X=0;X<c.treeuirows.length&&e>c.treeuirows[X];X++)$=c.treeuirownodes[X];if(m<=$.level+f)o._setTDSub(t,S,F,r,U);else switch(S){case"static":case"input":case"number":case"slider":O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",F):_.util.textContent(t,F),o._setAriaLabelEx(t,e,m);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(m)._show(t,e,m);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(m)._showDataLabel(t,e,m,r);break;default:O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,m)}}else if(c.grouped&&q&&"tree"===c.type)if(G=-1,V=-1,K=-1,Y=!1,"tree"!==c.type&&"step"!==c.type||(G=_._.indexOf(c.treeuirows,e,!0)),G>-1?(Y=!0,b=c.treeuirownodes[G],W=j=!1):(V=_._.indexOf(c.headerrows,e,!0))>-1?(W=!0,b=c.headerrownodes[V],j=!1):(K=_._.indexOf(c.footerrows,e,!0))>-1&&(j=!0,b=c.footerrownodes[K],W=!1),Y)o._setTHSub(t,b,S,F,r);else if(W||j)switch((W||j)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev"+o._getHFNodeLevel(b,c,e)),F=r),S){case"static":case"input":case"number":case"slider":O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",F):_.util.textContent(t,F),o._setAriaLabelEx(t,e,m);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(m)._show(t,e,m);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(m)._showDataLabel(t,e,m,r);break;default:O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,m)}else o._setTDSub(t,S,F,r,U);else if(c.grouped&&"group"===c.type&&_._.indexOf(c.columnsinfo.keys(!0),k,!0)>=0)if(null!==(b=o._getGroupNode(p[e-g],Q)))o._setGroupUICell(t,b,F);else if(c.grouped&&(_._.indexOf(c.headerrows,e,!0)>-1&&(W=!0),_._.indexOf(c.footerrows,e,!0)>-1&&(j=!0)),W||j){switch(parseInt(t.getAttribute("data-row"))===e&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev"+o._getHFNodeLevel(b,c,e)),F=r),S){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":_.util.textContent(t,F);break;default:_.util.textContent(t,r)}o._setAriaLabelEx(t,e,m)}else switch(S){case"static":case"input":case"datepicker":case"number":case"slider":_.util.textContent(t,F),o._setAriaLabelEx(t,e,m);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(m)._show(t,e,m);break;case"selectmenu":case"multicheckbox":case"inputbutton":o._getColElement(m)._showDataLabel(t,e,m,r);break;default:_.util.textContent(t,r),o._setAriaLabelEx(t,e,m)}else if(c.grouped&&(_._.indexOf(c.headerrows,e,!0)>-1&&(W=!0),_._.indexOf(c.footerrows,e,!0)>-1&&(j=!0)),W||j){switch(parseInt(t.getAttribute("data-row"))===e&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+k+" rt-qc-gtui-lev"+o._getHFNodeLevel(b,c,e)),F=r),S){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",F):_.util.textContent(t,F);break;default:O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",r):_.util.textContent(t,r)}o._setAriaLabelEx(t,e,m)}else{switch(S){case"static":case"input":case"number":case"slider":O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",F):v?_.util.textContent(t,F):_.util.textContent(t,r),o._setAriaLabelEx(t,e,m);break;case"checkbox":case"image":case"html":case"chart":case"button":v?o._getColElement(m)._show(t,e,m):_.util.textContent(t,r);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":v?o._getColElement(m)._showDataLabel(t,e,m,r):_.util.textContent(t,r);break;default:O.replace("QCELL_COL_DATA","").length>0?t.innerHTML=O.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,m)}if(E.length>0)for(y=0;y<E.length;y++)if(E[y].nRow===e){_.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+k),_.util.textContent(t,z);break}o._showGrandTotal(t,e,m,r)}}P&&o._setCellInvisible(e,m,!0),o._setColTypeCSS(t,m),s&&o._addFocusStyleClass(t),l&&_.util.addClass(t,a.CELL_SELECT),h&&o._setCellStyleCSS(t,o._getCellStyle(e,m)),I&&(t.style.textAlign=B)}t=null,o=null})),t+=C,i=null})),this._updateMerge()}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._refreshNCs",t.message)}},_.QCELL.NormalQCELL.prototype._updateNRs=function(){try{var t,e,r,i,o,a=_.QCELL.def.css,s=this.attr("vsinfo"),n=this.getID(),l=s.objUpdateInfo,c=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=c.grouped?c.columnsinfo.keys(!0)[0]:"",d=this._getCellGroupDOMs("row","normal"),u=[],p=this.attr("rowheaders"),g=this.attr("currentdata"),f=g.length,m=this.attr("headerrows"),C=this.attr("frozenrows"),L=this.attr("frozenbottomrows"),b=this.attr("rows"),E=this.attr("headercols"),v=this.attr("highlightrepeat"),y=this.attr("layoutsize").viewport.offsetHeight,w=this._getSumOfRowHeight(m,m+C-1),x=this._getSumOfRowHeight(b-L,b-1),k=this.attr("selectmode").indexOf("row")>-1,S=this.attr("staticrowsinfo"),Q=!0,q=-1,T=this.attr("id"),A=0,R=!1!==this.attr("presentseqatfooter");if(this._isPanel()&&A++,c.grouped&&"parentchild"===c.mode&&void 0!==c.treeUIColumn){var O=this._getColsOfKey(c.treeUIColumn)[0];void 0!==O&&(h=this._getColID(O))}if(this._clearMergeData(),this._createDataMergeInfo(),l.bWholeUpdate)e=l.objParams.nAdjustedTop,t=w,_._.each(d,(function(l,d){i=_.QCELL.getInstance(n);var u=parseInt(l[0].getAttribute("data-row")),C=s.nTopRow+d,L=i._getRowHeight(C),b=t-e,y=-1,w=-1,x=-1,O=!1,D=!1,B=!1,I=null,N=g[C-m],P=i._isFocusRow(u),M=i._isFocusRow(C),H=i._isSelectedRow(u),U=i._isSelectedRow(C),F=i._isCellStyleRow(u),z=i._isCellStyleRow(C),W=v>0&&(C-m+1)%v==0;if(c.grouped&&("tree"!==c.type&&"step"!==c.type||(y=_._.indexOf(c.treeuirows,C,!0)),y>-1?(O=!0,I=c.treeuirownodes[y],D=B=!1):(w=_._.indexOf(c.headerrows,C,!0))>-1?(D=!0,I=c.headerrownodes[w],B=!1):(x=_._.indexOf(c.footerrows,C,!0))>-1&&(B=!0,I=c.footerrownodes[x],D=!1)),Q=!0,S.length>0)for(q=0;q<S.length;q++)S[q].nRow===C&&(Q=!1);_._.each(l,(function(t,e){if(o=_.QCELL.getInstance(n),t.setAttribute("data-row",C),t.style.top=b+"px",L!==parseInt(t.style.height)&&(t.style.height=L+"px"),"true"!==t.getAttribute("data-footer")){var i,s=parseInt(t.getAttribute("data-col")),l=o._getColID(s),d=o._getColType(s),g=o._getKeyOfCol(s),v=!!P&&!!o._isFocusCol(s),y=!!M&&!!o._isFocusCol(s),w=!!H&&(!!k||o._isSelectedCell(u,s)),x=!!U&&(!!k||o._isSelectedCell(C,s)),j=!!F&&o._hasCellStyle(u,s),G=!!z&&o._hasCellStyle(C,s),V=o._getQCellCol(s).attr("colstyleeditordata"),K=o._getQCellCol(s).attr("cellinvisible")[C],Y=o._getDataTextAlign(s),$=o._useDataTextAlign(s);if(t.setAttribute("id",T+"_cell_"+C+"_"+s),s<E){var X=o.attr("paginationinfo");if(_._.isObject(X)&&_._.isEmpty(X)){if("sequence"===p[s]||"reverse"===p[s]){if(o._isBottomPanel(t))return void(void 0!==o.getRowData(C).rt_qc_seq&&(_.util.textContent(t,o.getRowData(C).rt_qc_seq),o._setAriaLabelEx(t,C,s)));R||!0!==o.getRowData(C).rt_qc_footer?o._setFooterCSS(t,"reverse"===p[s]?f-(C-m+A):C-m+1,C):o._setFooterCSS(t,"",C)}else if("checkbox"===p[s]||"radio"===p[s]){if(o._isBottomPanel(t))return;_.$(t).empty(),Q&&(i=o._createRowheaderCheckbox(t,C,s,p[s]),t.appendChild(i),"checkbox"===p[s]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else"state"===p[s]?o._setRowheaderState(t,C):"custom"===p[s]&&o._setRowheaderCustom(t,C,s);o._setAriaLabelEx(t,C,s)}else{var Z=C;if(m>1&&(Z=C-(m-1)),"sequence"===p[s]||"reverse"===p[s]){if(o._isBottomPanel(t))return void 0!==o.getRowData(C).rt_qc_seq&&_.util.textContent(t,o.getRowData(C).rt_qc_seq),void o._setAriaLabelEx(t,C,s);R||!0!==o.getRowData(C).rt_qc_footer?o._setFooterCSS(t,"reverse"===p[s]?X.datacount-((X.pageindex-1)*X.pageunit+(Z-1)):(X.pageindex-1)*X.pageunit+Z,C):o._setFooterCSS(t,"",C)}else if("checkbox"===p[s]||"radio"===p[s]){if(o._isBottomPanel(t))return;_.$(t).empty(),Q&&(i=o._createRowheaderCheckbox(t,C,s,p[s]),t.appendChild(i),"checkbox"===p[s]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else"state"===p[s]?o._setRowheaderState(t,C):"custom"===p[s]&&o._setRowheaderCustom(t,C,s);o._setAriaLabelEx(t,C,s)}}else{r=void 0===N[g]?"":N[g];var J=o._showDataFormat(C,s,r),tt=o._showDataFormatStatic(s,r);if(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),c.grouped&&"step"===c.type)if(O)I.key===J&&I.level+E===s?o._setTHSub(t,I,d,J,r):""!==J?o._setTDSub(t,d,J,r,N):_.util.textContent(t,J),o._setAriaLabelEx(t,C,s);else if(D||B){if(S.length>0)for(q=0;q<S.length;q++)if(S[q].nRow===C){J=tt;break}switch((D||B)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,C)),J=r),d){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):_.util.textContent(t,J),o._setAriaLabelEx(t,C,s);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(s)._show(t,C,s);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(s)._showDataLabel(t,C,s,r);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,J),o._setAriaLabelEx(t,C,s)}}else{for(var et={},rt=0;rt<c.treeuirows.length&&C>c.treeuirows[rt];rt++)et=c.treeuirownodes[rt];if(s<=et.level+E)o._setTDSub(t,d,J,r,N);else{if(S.length>0)for(q=0;q<S.length;q++)if(S[q].nRow===C){J=tt;break}switch(d){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):_.util.textContent(t,J),o._setAriaLabelEx(t,C,s);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(s)._show(t,C,s);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(s)._showDataLabel(t,C,s,r);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,J),o._setAriaLabelEx(t,C,s)}}}else if(c.grouped&&l===h&&"tree"===c.type)if(O)o._setTHSub(t,I,d,J,r);else if(D||B)switch((D||B)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,C)),J=r),d){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):_.util.textContent(t,J),o._setAriaLabelEx(t,C,s);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(s)._show(t,C,s);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(s)._showDataLabel(t,C,s,r);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,J),o._setAriaLabelEx(t,C,s)}else o._setTDSub(t,d,J,r,N);else if(c.grouped&&"group"===c.type&&_._.indexOf(c.columnsinfo.keys(!0),l,!0)>=0)if(null!==(I=o._getGroupNode(N,g)))o._setGroupUICell(t,I,J);else if(D||B){switch(parseInt(t.getAttribute("data-row"))===C&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,C)),J=r),d){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":_.util.textContent(t,J);break;default:_.util.textContent(t,r)}o._setAriaLabelEx(t,C,s)}else if(D||B){switch(parseInt(t.getAttribute("data-row"))===C&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,C)),J=r),d){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":_.util.textContent(t,J);break;default:_.util.textContent(t,r)}o._setAriaLabelEx(t,C,s)}else switch(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),d){case"static":case"input":case"datepicker":case"number":case"slider":default:_.util.textContent(t,J),o._setAriaLabelEx(t,C,s);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(s)._show(t,C,s);break;case"selectmenu":case"multicheckbox":case"inputbutton":o._getColElement(s)._showDataLabel(t,C,s,r)}else if(D||B){switch(parseInt(t.getAttribute("data-row"))===C&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,C)),J=r),d){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):_.util.textContent(t,J);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,r)}o._setAriaLabelEx(t,C,s)}else{switch(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+l+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),d){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):Q?_.util.textContent(t,J):_.util.textContent(t,r),o._setAriaLabelEx(t,C,s);break;case"checkbox":case"image":case"html":case"chart":case"button":Q?o._getColElement(s)._show(t,C,s):_.util.textContent(t,r);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":Q?o._getColElement(s)._showDataLabel(t,C,s,r):_.util.textContent(t,r);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,J),o._setAriaLabelEx(t,C,s)}if(S.length>0)for(q=0;q<S.length;q++){if(S[q].nRow===C){_.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+l),_.util.textContent(t,tt);break}_.util.removeClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+l)}o._showGrandTotal(t,C,s,r)}}K&&o._setCellInvisible(C,s,!0),s>=E&&(W?!1===_.util.hasClass(t,a.CELL_HIGHLIGHTREPEAT)&&_.util.addClass(t,a.CELL_HIGHLIGHTREPEAT):_.util.hasClass(t,a.CELL_HIGHLIGHTREPEAT)&&_.util.removeClass(t,a.CELL_HIGHLIGHTREPEAT),o._setColTypeCSS(t,s),y&&!1===v?o._addFocusStyleClass(t):v&&!1===y&&o._removeFocusStyleClass(t)),x&&!1===w?_.util.addClass(t,a.CELL_SELECT):w&&!1===x&&_.util.removeClass(t,a.CELL_SELECT),j&&o._removeCellStyleCSS(t,o._getCellStyle(u,s)),G&&o._setCellStyleCSS(t,o._getCellStyle(C,s)),$&&(t.style.textAlign=Y)}o=null,t=null})),i=null,t+=L}));else{var D,B=l.objParams.bWholePositionChanged,I=l.objParams.nMovedCount,N=l.objParams.nCutRowsCount;if(N>0)I>0?(u=d.splice(0,N),t=w,D=s.nTopRow):(u=d.splice(d.length-N,N),t=w+this._getSumOfRowHeight(s.nTopRow,s.nTopRow+N-1),D=s.nTopRow+N),B||_._.each(d,(function(e,r){var a,s,l;i=_.QCELL.getInstance(n),a=D+r,s=i._getRowHeight(a),l=t,_._.each(e,(function(t){o=_.QCELL.getInstance(n);var e=parseInt(t.getAttribute("data-col")),r=o._getDataTextAlign(e),i=o._useDataTextAlign(e);t.style.top=l+"px",i&&(t.style.textAlign=r),o=null,t=null})),t+=s,i=null})),D=I>0?s.nBottomRow-N+1:s.nTopRow,t=I>0?w+this._getSumOfRowHeight(s.nTopRow,s.nBottomRow-N):w,_._.each(u,(function(e,s){i=_.QCELL.getInstance(n);var l=parseInt(e[0].getAttribute("data-row")),d=D+s,u=i._getRowHeight(d),C=t,L=-1,b=-1,y=-1,w=!1,x=!1,O=!1,I=null,N=g[d-m],P=i._isFocusRow(l),M=i._isFocusRow(d),H=i._isSelectedRow(l),U=i._isSelectedRow(d),F=i._isCellStyleRow(l),z=i._isCellStyleRow(d),W=v>0&&(d-m+1)%v==0;if(S.length>0)for(q=0;q<S.length;q++)S[q].nRow===d&&(Q=!1);c.grouped&&("tree"!==c.type&&"step"!==c.type||(L=_._.indexOf(c.treeuirows,d,!0)),L>-1?(w=!0,I=c.treeuirownodes[L],x=O=!1):(b=_._.indexOf(c.headerrows,d,!0))>-1?(x=!0,I=c.headerrownodes[b],O=!1):(y=_._.indexOf(c.footerrows,d,!0))>-1&&(O=!0,I=c.footerrownodes[y],x=!1)),_._.each(e,(function(t){if(o=_.QCELL.getInstance(n),t.setAttribute("data-row",d),u!==parseInt(t.style.height)&&(t.style.height=u+"px"),B||(t.style.top=C+"px"),"true"!==t.getAttribute("data-footer")){var e,i=parseInt(t.getAttribute("data-col")),s=o._getColID(i),g=o._getColType(i),L=o._getKeyOfCol(i),b=!!P&&!!o._isFocusCol(i),v=!!M&&!!o._isFocusCol(i),y=!!H&&(!!k||o._isSelectedCell(l,i)),D=!!U&&(!!k||o._isSelectedCell(d,i)),j=!!F&&o._hasCellStyle(l,i),G=!!z&&o._hasCellStyle(d,i),V=o._getQCellCol(i).attr("colstyleeditordata"),K=o._getQCellCol(i).attr("cellinvisible")[d],Y=o._getDataTextAlign(i),$=o._useDataTextAlign(i);if(t.setAttribute("id",T+"_cell_"+d+"_"+i),i<E){var X=o.attr("paginationinfo");if(_._.isObject(X)&&_._.isEmpty(X)){if("sequence"===p[i]||"reverse"===p[i])R||!0!==o.getRowData(d).rt_qc_footer?o._setFooterCSS(t,"reverse"===p[i]?f-(d-m+A):d-m+1,d):o._setFooterCSS(t,"",d);else if("checkbox"===p[i]||"radio"===p[i]){if(o._isBottomPanel(t))return void o._setAriaLabelEx(t,d,i);_.$(t).empty(),Q&&(e=o._createRowheaderCheckbox(t,d,i,p[i]),t.appendChild(e),"checkbox"===p[i]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else"state"===p[i]?o._setRowheaderState(t,d):"custom"===p[i]&&o._setRowheaderCustom(t,d,i);o._setAriaLabelEx(t,d,i)}else{var Z=d;if(m>1&&(Z=d-(m-1)),"sequence"===p[i]||"reverse"===p[i])R||!0!==o.getRowData(d).rt_qc_footer?o._setFooterCSS(t,"reverse"===p[i]?X.datacount-((X.pageindex-1)*X.pageunit+(Z-1)):(X.pageindex-1)*X.pageunit+Z,d):o._setFooterCSS(t,"",d);else if("checkbox"===p[i]||"radio"===p[i]){if(o._isBottomPanel(t))return void o._setAriaLabelEx(t,d,i);_.$(t).empty(),Q&&(e=o._createRowheaderCheckbox(t,d,i,p[i]),t.appendChild(e),"checkbox"===p[i]?t.className+=" "+a.ROWHEADER_CELL_CHECKBOX:t.className+=" "+a.ROWHEADER_CELL_RADIO)}else"state"===p[i]?o._setRowheaderState(t,d):"custom"===p[i]&&o._setRowheaderCustom(t,d,i);o._setAriaLabelEx(t,d,i)}}else{r=void 0===N[L]?"":N[L];var J=o._showDataFormat(d,i,r),tt=o._showDataFormatStatic(i,r);if(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+s+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),c.grouped&&"step"===c.type)if(w)I.key===J&&I.level+E===i?o._setTHSub(t,I,g,J,r):""!==J?o._setTDSub(t,g,J,r,N):_.util.textContent(t,J),o._setAriaLabelEx(t,d,i);else if(x||O)switch((x||O)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+s+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,d)),J=r),g){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):_.util.textContent(t,J),o._setAriaLabelEx(t,d,i);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(i)._show(t,d,i);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(i)._showDataLabel(t,d,i,r);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,J),o._setAriaLabelEx(t,d,i)}else{for(var et={},rt=0;rt<c.treeuirows.length&&d>c.treeuirows[rt];rt++)et=c.treeuirownodes[rt];if(i<=et.level+E)o._setTDSub(t,g,J,r,N);else switch(g){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):_.util.textContent(t,J),o._setAriaLabelEx(t,d,i);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(i)._show(t,d,i);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(i)._showDataLabel(t,d,i,r);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,J),o._setAriaLabelEx(t,d,i)}}else if(c.grouped&&s===h&&"tree"===c.type)if(w)o._setTHSub(t,I,g,J,r);else if(x||O)switch((x||O)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+s+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,d)),J=r),g){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):_.util.textContent(t,J),o._setAriaLabelEx(t,d,i);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(i)._show(t,d,i);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(i)._showDataLabel(t,d,i,r);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,J),o._setAriaLabelEx(t,d,i)}else o._setTDSub(t,g,J,r,N);else if(c.grouped&&"group"===c.type&&_._.indexOf(c.columnsinfo.keys(!0),s,!0)>=0)if(null!==(I=o._getGroupNode(N,L)))o._setGroupUICell(t,I,J);else if(x||O){switch(parseInt(t.getAttribute("data-row"))===d&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+s+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,d)),J=r),g){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":_.util.textContent(t,J);break;default:_.util.textContent(t,r)}o._setAriaLabelEx(t,d,i)}else switch(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+s+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),g){case"static":case"input":case"datepicker":case"number":case"slider":default:_.util.textContent(t,J),o._setAriaLabelEx(t,d,i);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(i)._show(t,d,i);break;case"selectmenu":case"multicheckbox":case"inputbutton":o._getColElement(i)._showDataLabel(t,d,i,r)}else if(x||O){switch(parseInt(t.getAttribute("data-row"))===d&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+s+" rt-qc-gtui-lev"+o._getHFNodeLevel(I,c,d)),J=r),g){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):_.util.textContent(t,J);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,r)}o._setAriaLabelEx(t,d,i)}else{switch(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+s+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),g){case"static":case"input":case"number":case"slider":V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",J):Q?_.util.textContent(t,J):_.util.textContent(t,r),o._setAriaLabelEx(t,d,i);break;case"checkbox":case"image":case"html":case"chart":case"button":Q?o._getColElement(i)._show(t,d,i):_.util.textContent(t,r);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":Q?o._getColElement(i)._showDataLabel(t,d,i,r):_.util.textContent(t,r);break;default:V.replace("QCELL_COL_DATA","").length>0?t.innerHTML=V.replace("QCELL_COL_DATA",r):_.util.textContent(t,J),o._setAriaLabelEx(t,d,i)}if(S.length>0)for(q=0;q<S.length;q++){if(S[q].nRow===d){_.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+s),_.util.textContent(t,tt);break}_.util.removeClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+s)}o._showGrandTotal(t,d,i,r)}}K&&o._setCellInvisible(d,i,!0),i>=E&&(W?!1===_.util.hasClass(t,a.CELL_HIGHLIGHTREPEAT)&&_.util.addClass(t,a.CELL_HIGHLIGHTREPEAT):_.util.hasClass(t,a.CELL_HIGHLIGHTREPEAT)&&_.util.removeClass(t,a.CELL_HIGHLIGHTREPEAT),o._setColTypeCSS(t,i),v&&!1===b?o._addFocusStyleClass(t):b&&!1===v&&o._removeFocusStyleClass(t)),D&&!1===y?_.util.addClass(t,a.CELL_SELECT):y&&!1===D&&_.util.removeClass(t,a.CELL_SELECT),j&&o._removeCellStyleCSS(t,o._getCellStyle(l,i)),G&&o._setCellStyleCSS(t,o._getCellStyle(d,i)),$&&(t.style.textAlign=Y)}o=null,t=null})),t+=u,i=null}));B?(I>0?(d=d.concat(u),e=s.nLastPos===s.nPos?w+this._getSumOfRowHeight(s.nTopRow,s.nEndRow)-(y-x):this._getSumOfRowHeight(s.nTopRow,s.nTopRow+(s.nPos-(s.nLastPos-s.nAdjustRows))-1)):(d=u.concat(d),e=this._getSumOfRowHeight(s.nTopRow,s.nTopRow+(s.nAdjustRows-(s.nLastPos-s.nPos))-1)),t=w,_._.each(d,(function(r,o){var a,l,c;i=_.QCELL.getInstance(n),a=s.nTopRow+o,l=i._getRowHeight(a),c=t-e,_._.each(r,(function(t){t.style.top=c+"px",t=null})),t+=l,i=null})),this._setCellGroupDOMs("row","normal",d)):I>0?this._setCellGroupDOMs("row","normal",d.concat(u)):this._setCellGroupDOMs("row","normal",u.concat(d)),this._syncCellMatrix("row")}this._updateMergeData(),u=null,d=null,p=null,g=null;var P=this;setTimeout((function(){P._trigger("viewport_changed")}))}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._updateNRs",t.message)}},_.QCELL.NormalQCELL.prototype._updateNCs=function(){try{var t,e,r,i,o,a=_.QCELL.def.css,s=this.attr("hsinfo"),n=this.getID(),l=s.objUpdateInfo,c=this.attr("groupstate").grouped?this.attr("groupstate"):this.attr("treestate"),h=c.grouped?c.columnsinfo.keys(!0)[0]:"",d=this.attr("headertext"),u=this._getCellGroupDOMs("col","normal"),p=[],g=this.attr("currentdata"),f=this.attr("headerrows"),m=this.attr("headercols"),C=this.attr("frozencols"),L=this.attr("layoutsize").viewport.offsetWidth,b=this._getSumOfColWidth(m,m+C-1),E=this.attr("selectmode").indexOf("col")>-1,v=null,y=this.attr("staticrowsinfo"),w=!0,x=-1,k=this.attr("id");if(c.grouped&&"parentchild"===c.mode&&void 0!==c.treeUIColumn){var S=this._getColsOfKey(c.treeUIColumn)[0];void 0!==S&&(h=this._getColID(S))}if(this._clearMerge(),this._createMergeInfo(),l.bWholeUpdate)e=l.objParams.nAdjustedLeft,t=b,_._.each(u,(function(l,u){i=_.QCELL.getInstance(n);var p=parseInt(l[0].getAttribute("data-col")),C=s.nLeftCol+u,L=i._getColWidth(C),b=t-e,S=i._getColID(C),Q=i._getColType(C),q=i._getKeyOfCol(C),T=S===h,A=i._isFocusCol(p),R=i._isFocusCol(C),O=i._isSelectedCol(p),D=i._isSelectedCol(C),B=i._isCellStyleCol(p),I=i._isCellStyleCol(C),N=i._getQCellCol(C).attr("colstyleeditordata"),P=i._getQCellCol(C).attr("style"),M=i._getDataTextAlign(C),H=i._useDataTextAlign(C);_._.each(l,(function(t){if(o=_.QCELL.getInstance(n),t.setAttribute("data-col",C),t.style.left=b+"px",L!==parseInt(t.style.width)&&(t.style.width=L+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),i=e<f,s=!!A&&!!o._isFocusRow(e),l=!!R&&!!o._isFocusRow(e),h=!i&&(!!O&&(!!E||o._isSelectedCell(e,p))),u=!i&&(!!D&&(!!E||o._isSelectedCell(e,C))),U=!!B&&o._hasCellStyle(e,p),F=!!I&&o._hasCellStyle(e,C),z=i?"header":"data",W=void 0===d[C][e]?"":d[C][e],j=o._getQCellCol(C).attr("cellinvisible")[e];if(t.style.display=i?"flex":"",t.setAttribute("id",k+"_cell_"+e+"_"+C),_.util.removeClass(t,o._getColStyleClassName(p,z)),_.util.addClass(t,o._getColStyleClassName(C,z)),w=!0,y.length>0)for(x=0;x<y.length;x++)y[x].nRow===e&&(w=!1);if(!_._.isEmpty(P)){if(_._.isObject(P[z]))for(var G=Object.keys(P[z]),V=0;V<G.length;V++)_.$(t).css(G[V],P[z][G[V]]);o.attr("qcellcols")[C].attr("style",{header:P.header,data:P.data},"object")}if(i)"checkbox"===Q||"html"===Q?o._getColElement(C)._headershow(t,e,C):(t.innerHTML=o._getHeaderCellSpan(W,e,C),(e===f-1||o._isLastHeaderRowMasterCell(e,C))&&o.attr("useGroupUI")&&_.$(t).draggable({helper:o._setGroupMakeHelper,revert:"invalid"})),0===e&&o._getQCellCol(C).attr("topmove")&&t.appendChild(o._getColHeaderDragDropArea()),(e===f-1||o._isLastHeaderRowMasterCell(e,C))&&(o._getQCellCol(C).attr("move")&&t.appendChild(o._getColHeaderDragDropArea()),o._getQCellCol(C).attr("search")&&t.appendChild(o._getColSearchArea()),o._getQCellCol(C).attr("sort")&&(_._.isUndefined(o._getQCellCol(C).attr("options").wholeselect)||!1===o._getQCellCol(C).attr("options").wholeselect)&&("checkbox"!==Q||!1===o.attr("paginationinfo").totalsort||!1===_._.isUndefined(o.attr("paginationinfo"))&&_._.isUndefined(o.attr("paginationinfo").url))&&t.appendChild(o._getDefaultSortArea(C)),o._getQCellCol(C).attr("resize")&&t.appendChild(o._getColResizeArea()),o._getQCellCol(C).attr("filter")&&t.appendChild(o._getFilterArea(C)),o._getQCellCol(C).attr("editor")&&t.appendChild(o._getColStyleEditorArea()),o._getQCellCol(C).attr("remove")&&t.appendChild(o._getDefaultRemoveArea(C)));else{var K=g[e-f];if(void 0===K)return;r=void 0===K[q]?"":K[q];var Y=o._showDataFormat(e,C,r),$=o._showDataFormatStatic(C,r),X=!1,Z=!1,J=-1,tt=-1,et=-1,rt=!1;if(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),c.grouped&&(_._.indexOf(c.headerrows,e,!0)>-1?(X=!0,Z=!1):_._.indexOf(c.footerrows,e,!0)>-1&&(Z=!0,X=!1)),c.grouped&&"step"===c.type)if(J=-1,tt=-1,et=-1,rt=!1,(J=_._.indexOf(c.treeuirows,e,!0))>-1?(rt=!0,v=c.treeuirownodes[J],X=Z=!1):(tt=_._.indexOf(c.headerrows,e,!0))>-1?(X=!0,v=c.headerrownodes[tt],Z=!1):(et=_._.indexOf(c.footerrows,e,!0))>-1&&(Z=!0,v=c.footerrownodes[et],X=!1),rt)v.key===Y&&v.level+m===C?o._setTHSub(t,v,Q,Y,r):""!==Y?o._setTDSub(t,Q,Y,r,K):_.util.textContent(t,Y),o._setAriaLabelEx(t,e,C);else if(X||Z)switch((X||Z)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev"+o._getHFNodeLevel(v,c,e)),Y=r),Q){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):(o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,Y),_.util.textContent(t,Y)),o._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(C)._show(t,e,C);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(C)._showDataLabel(t,e,C,r);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,C)}else{for(var it={},ot=0;ot<c.treeuirows.length&&e>c.treeuirows[ot];ot++)it=c.treeuirownodes[ot];if(C<=it.level+m)o._setTDSub(t,Q,Y,r,K);else switch(Q){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,Y),o._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(C)._show(t,e,C);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(C)._showDataLabel(t,e,C,r);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,C)}}else if(c.grouped&&T&&"tree"===c.type)if(J=-1,tt=-1,et=-1,rt=!1,"tree"===c.type&&(J=_._.indexOf(c.treeuirows,e,!0)),J>-1?(rt=!0,v=c.treeuirownodes[J],X=Z=!1):(tt=_._.indexOf(c.headerrows,e,!0))>-1?(X=!0,v=c.headerrownodes[tt],Z=!1):(et=_._.indexOf(c.footerrows,e,!0))>-1&&(Z=!0,v=c.footerrownodes[et],X=!1),rt)o._setTHSub(t,v,Q,Y,r);else if(X||Z)switch((X||Z)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev"+o._getHFNodeLevel(v,c,e)),Y=r),Q){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):(o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,Y),_.util.textContent(t,Y)),o._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(C)._show(t,e,C);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(C)._showDataLabel(t,e,C,r);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,C)}else o._setTDSub(t,Q,Y,r,K);else if(c.grouped&&"group"===c.type&&_._.indexOf(c.columnsinfo.keys(!0),S,!0)>=0)if(null!==(v=o._getGroupNode(g[e-f],q)))o._setGroupUICell(t,v,Y);else if(X||Z){switch(parseInt(t.getAttribute("data-row"))===e&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev"+o._getHFNodeLevel(v,c,e)),Y=r),Q){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,Y);break;default:_.util.textContent(t,r)}o._setAriaLabelEx(t,e,C)}else switch(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),Q){case"static":case"input":case"datepicker":case"number":case"slider":o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,Y),o._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(C)._show(t,e,C);break;case"selectmenu":case"multicheckbox":case"inputbutton":o._getColElement(C)._showDataLabel(t,e,C,r);break;default:_.util.textContent(t,r),o._setAriaLabelEx(t,e,C)}else if(X||Z){switch(parseInt(t.getAttribute("data-row"))===e&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev"+o._getHFNodeLevel(v,c,e)),Y=r),Q){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,Y);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r)}o._setAriaLabelEx(t,e,C)}else{switch(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+S+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),Q){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",Y):w?o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,Y):_.util.textContent(t,r),o._setAriaLabelEx(t,e,C);break;case"checkbox":case"image":case"html":case"chart":case"button":w?o._getColElement(C)._show(t,e,C):_.util.textContent(t,r);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":w?o._getColElement(C)._showDataLabel(t,e,C,r):_.util.textContent(t,r);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,C)}if(y.length>0)for(x=0;x<y.length;x++){if(y[x].nRow===e){_.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+S),_.util.textContent(t,$);break}_.util.removeClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+S)}o._showGrandTotal(t,e,C,r)}}j&&o._setCellInvisible(e,C,!0),o._setColTypeCSS(t,C),l&&!1===s?o._addFocusStyleClass(t):s&&!1===l&&o._removeFocusStyleClass(t),u&&!1===h?_.util.addClass(t,a.CELL_SELECT):h&&!1===u&&_.util.removeClass(t,a.CELL_SELECT),U&&o._removeCellStyleCSS(t,o._getCellStyle(e,p)),F&&o._setCellStyleCSS(t,o._getCellStyle(e,C)),H&&(t.style.textAlign=M)}t=null,o=null})),t+=L,i=null}));else{var Q,q=l.objParams.bWholePositionChanged,T=l.objParams.nMovedCount,A=l.objParams.nCutColsCount;if(A>0)T>0?(p=u.splice(0,A),t=b,Q=s.nLeftCol):(p=u.splice(u.length-A,A),t=b+this._getSumOfColWidth(s.nLeftCol,s.nLeftCol+A-1),Q=s.nLeftCol+A),q||_._.each(u,(function(e,r){var o,a,s;i=_.QCELL.getInstance(n),o=Q+r,a=i._getColWidth(o),s=t,_._.each(e,(function(t){t.style.left=s+"px",t=null})),t+=a,i=null})),Q=T>0?s.nRightCol-A+1:s.nLeftCol,t=T>0?b+this._getSumOfColWidth(s.nLeftCol,s.nRightCol-A):b,_._.each(p,(function(e,s){i=_.QCELL.getInstance(n);var l=parseInt(e[0].getAttribute("data-col")),u=Q+s,p=i._getColWidth(u),C=t,L=i._getColID(u),b=i._getColType(u),S=i._getKeyOfCol(u),T=L===h,A=i._isFocusCol(l),R=i._isFocusCol(u),O=i._isSelectedCol(l),D=i._isSelectedCol(u),B=i._isCellStyleCol(l),I=i._isCellStyleCol(u),N=i._getQCellCol(u).attr("colstyleeditordata"),P=i._getQCellCol(u).attr("style"),M=i._getDataTextAlign(u),H=i._useDataTextAlign(u);_._.each(e,(function(t){if(o=_.QCELL.getInstance(n),t.setAttribute("data-col",u),p!==parseInt(t.style.width)&&(t.style.width=p+"px"),q||(t.style.left=C+"px"),"true"!==t.getAttribute("data-footer")){var e=parseInt(t.getAttribute("data-row")),i=e<f,s=!!A&&!!o._isFocusRow(e),h=!!R&&!!o._isFocusRow(e),Q=!i&&(!!O&&(!!E||o._isSelectedCell(e,l))),U=!i&&(!!D&&(!!E||o._isSelectedCell(e,u))),F=!!B&&o._hasCellStyle(e,l),z=!!I&&o._hasCellStyle(e,u),W=i?"header":"data",j=void 0===d[u][e]?"":d[u][e],G=o._getQCellCol(u).attr("cellinvisible")[e];if(t.style.display=i?"flex":"",t.setAttribute("id",k+"_cell_"+e+"_"+u),_.util.removeClass(t,o._getColStyleClassName(l,W)),_.util.addClass(t,o._getColStyleClassName(u,W)),w=!0,y.length>0)for(x=0;x<y.length;x++)y[x].nRow===e&&(w=!1);if(!_._.isEmpty(P)){if(_._.isObject(P[W]))for(var V=Object.keys(P[W]),K=0;K<V.length;K++)_.$(t).css(V[K],P[W][V[K]]);o.attr("qcellcols")[u].attr("style",{header:P.header,data:P.data},"object")}if(i)"checkbox"===b||"html"===b?o._getColElement(u)._headershow(t,e,u):(t.innerHTML=o._getHeaderCellSpan(j,e,u),(e===f-1||o._isLastHeaderRowMasterCell(e,u))&&o.attr("useGroupUI")&&_.$(t).draggable({helper:o._setGroupMakeHelper,revert:"invalid"})),0===e&&o._getQCellCol(u).attr("topmove")&&t.appendChild(o._getColHeaderDragDropArea()),(e===f-1||o._isLastHeaderRowMasterCell(e,u))&&(o._getQCellCol(u).attr("move")&&t.appendChild(o._getColHeaderDragDropArea()),o._getQCellCol(u).attr("search")&&t.appendChild(o._getColSearchArea()),o._getQCellCol(u).attr("sort")&&(_._.isUndefined(o._getQCellCol(u).attr("options").wholeselect)||!1===o._getQCellCol(u).attr("options").wholeselect)&&("checkbox"!==b||!1===o.attr("paginationinfo").totalsort||!1===_._.isUndefined(o.attr("paginationinfo"))&&_._.isUndefined(o.attr("paginationinfo").url))&&t.appendChild(o._getDefaultSortArea(u)),o._getQCellCol(u).attr("resize")&&t.appendChild(o._getColResizeArea()),o._getQCellCol(u).attr("filter")&&t.appendChild(o._getFilterArea(u)),o._getQCellCol(u).attr("editor")&&t.appendChild(o._getColStyleEditorArea()),o._getQCellCol(u).attr("remove")&&t.appendChild(o._getDefaultRemoveArea(u)));else{var Y=g[e-f];if(void 0===Y)return;r=void 0===Y[S]?"":Y[S];var $=o._showDataFormat(e,u,r),X=o._showDataFormatStatic(u,r),Z=!1,J=!1,tt=-1,et=-1,rt=-1,it=!1;if(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+L+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),c.grouped&&(_._.indexOf(c.headerrows,e,!0)>-1?(Z=!0,J=!1):_._.indexOf(c.footerrows,e,!0)>-1&&(J=!0,Z=!1)),c.grouped&&"step"===c.type)if(tt=-1,et=-1,rt=-1,it=!1,(tt=_._.indexOf(c.treeuirows,e,!0))>-1?(it=!0,v=c.treeuirownodes[tt],Z=J=!1):(et=_._.indexOf(c.headerrows,e,!0))>-1?(Z=!0,v=c.headerrownodes[et],J=!1):(rt=_._.indexOf(c.footerrows,e,!0))>-1&&(J=!0,v=c.footerrownodes[rt],Z=!1),it)v.key===$&&v.level+m===u?o._setTHSub(t,v,b,$,r):""!==$?o._setTDSub(t,b,$,r,Y):_.util.textContent(t,$),o._setAriaLabelEx(t,e,u);else if(Z||J)switch((Z||J)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+L+" rt-qc-gtui-lev"+o._getHFNodeLevel(v,c,e)),$=r),b){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,$),o._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(u)._show(t,e,u);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(u)._showDataLabel(t,e,u,r);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,u)}else{for(var ot={},at=0;at<c.treeuirows.length&&e>c.treeuirows[at];at++)ot=c.treeuirownodes[at];if(u<=ot.level+m)o._setTDSub(t,b,$,r,Y);else switch(b){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,$),o._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(u)._show(t,e,u);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(u)._showDataLabel(t,e,u,r);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,u)}}else if(c.grouped&&T&&"tree"===c.type)if(tt=-1,et=-1,rt=-1,it=!1,"tree"===c.type&&(tt=_._.indexOf(c.treeuirows,e,!0)),tt>-1?(it=!0,v=c.treeuirownodes[tt],Z=J=!1):(et=_._.indexOf(c.headerrows,e,!0))>-1?(Z=!0,v=c.headerrownodes[et],J=!1):(rt=_._.indexOf(c.footerrows,e,!0))>-1&&(J=!0,v=c.footerrownodes[rt],Z=!1),it)o._setTHSub(t,v,b,$,r);else if(Z||J)switch((Z||J)&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+L+" rt-qc-gtui-lev"+o._getHFNodeLevel(v,c,e)),$=r),b){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,$),o._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(u)._show(t,e,u);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":o._getColElement(u)._showDataLabel(t,e,u,r);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,u)}else o._setTDSub(t,b,$,r,Y);else if(c.grouped&&"group"===c.type&&_._.indexOf(c.columnsinfo.keys(!0),L,!0)>=0)if(null!==(v=o._getGroupNode(g[e-f],S)))o._setGroupUICell(t,v,$);else if(Z||J){switch(parseInt(t.getAttribute("data-row"))===e&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+L+" rt-qc-gtui-lev"+o._getHFNodeLevel(v,c,e)),$=r),b){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,$);break;default:_.util.textContent(t,r)}o._setAriaLabelEx(t,e,u)}else switch(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+L+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),b){case"static":case"input":case"datepicker":case"number":case"slider":o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,$),o._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":o._getColElement(u)._show(t,e,u);break;case"selectmenu":case"multicheckbox":case"inputbutton":o._getColElement(u)._showDataLabel(t,e,u,r);break;default:_.util.textContent(t,r),o._setAriaLabelEx(t,e,u)}else if(Z||J){switch(parseInt(t.getAttribute("data-row"))===e&&(_.util.addClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+L+" rt-qc-gtui-lev"+o._getHFNodeLevel(v,c,e)),$=r),b){case"static":case"input":case"datepicker":case"number":case"slider":case"inputbutton":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,$);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r)}o._setAriaLabelEx(t,e,u)}else{switch(_.util.removeClass(t,a.GROUPTREEUI_HEADER+" "+a.GROUPTREEUI_FOOTER+" rt-qc-gtui-"+L+" rt-qc-gtui-lev-outer rt-qc-gtui-lev0 rt-qc-gtui-lev1 rt-qc-gtui-lev2 rt-qc-gtui-lev3 rt-qc-gtui-lev4 rt-qc-gtui-lev5"),b){case"static":case"input":case"number":case"slider":N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",$):w?o._isBottomPanel(t)?_.util.textContent(t,r):_.util.textContent(t,$):_.util.textContent(t,r),o._setAriaLabelEx(t,e,u);break;case"checkbox":case"image":case"html":case"chart":case"button":w?o._getColElement(u)._show(t,e,u):_.util.textContent(t,r);break;case"selectmenu":case"datepicker":case"multicheckbox":case"editor":case"inputbutton":w?o._getColElement(u)._showDataLabel(t,e,u,r):_.util.textContent(t,r);break;default:N.replace("QCELL_COL_DATA","").length>0?t.innerHTML=N.replace("QCELL_COL_DATA",r):_.util.textContent(t,r),o._setAriaLabelEx(t,e,u)}if(y.length>0)for(x=0;x<y.length;x++){if(y[x].nRow===e){_.util.addClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+L),_.util.textContent(t,X);break}_.util.removeClass(t,a.STATIC_ROW+" "+a.STATIC_ROW+"-"+L)}o._showGrandTotal(t,e,u,r)}}G&&o._setCellInvisible(e,u,!0),o._setColTypeCSS(t,u),h&&!1===s?o._addFocusStyleClass(t):s&&!1===h&&o._removeFocusStyleClass(t),U&&!1===Q?_.util.addClass(t,a.CELL_SELECT):Q&&!1===U&&_.util.removeClass(t,a.CELL_SELECT),F&&o._removeCellStyleCSS(t,o._getCellStyle(e,l)),z&&o._setCellStyleCSS(t,o._getCellStyle(e,u)),H&&(t.style.textAlign=M)}t=null,o=null})),t+=p,i=null}));q?(T>0?(u=u.concat(p),e=s.nLastPos===s.nPos?b+this._getSumOfColWidth(s.nLeftCol,s.nEndCol)-L:this._getSumOfColWidth(s.nLeftCol,s.nLeftCol+(s.nPos-(s.nLastPos-s.nAdjustCols))-1)):(u=p.concat(u),e=this._getSumOfColWidth(s.nLeftCol,s.nLeftCol+(s.nAdjustCols-(s.nLastPos-s.nPos))-1)),t=b,_._.each(u,(function(r,o){var a,l,c;i=_.QCELL.getInstance(n),a=s.nLeftCol+o,l=i._getColWidth(a),c=t-e,_._.each(r,(function(t){t.style.left=c+"px",t=null})),t+=l,i=null})),this._setCellGroupDOMs("col","normal",u)):T>0?this._setCellGroupDOMs("col","normal",u.concat(p)):this._setCellGroupDOMs("col","normal",p.concat(u)),this._syncCellMatrix("col")}this._updateMerge(),u=null,p=null}catch(t){_.QCELL.log("err","QCELL.NormalQCELL._updateNCs",t.message)}},_.QCELL.NormalQCELL.prototype.onVScroll=function(t){this._onScrollHideEditCellsDOM(),_.QCELL.BasicQCELL.prototype.onVScroll.call(this,t)},_.QCELL.NormalQCELL.prototype.addRow=function(t){var e=this.attr("id")+".addRow",r=this.attr("data").type;if(t=void 0===t?"array"===r?[]:{}:t,"array"===r&&_._.isArray(t)||"object"===r&&"object"===n(t)&&!1===_._.isArray(t)){var i=this._insertRows(this.attr("rows"),[t]);if(!0===i){var o=this;setTimeout((function(){o._trigger("rowinserted")}),0)}return i}return _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE),!1},_.QCELL.NormalQCELL.prototype.addRows=function(t){var e=this.attr("id")+".addRows";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>0&&this._insertRows(this.attr("rows"),_._.map(_._.range(t),(function(){return{}})));if(_._.isArray(t)){var r=this.attr("data").type;if("array"===r&&_._.every(t,(function(t){return _._.isArray(t)}))||"object"===r&&_._.every(t,(function(t){return!1===_._.isArray(t)&&"object"===n(t)}))){var i=t.length>0&&this._insertRows(this.attr("rows"),t);if(!0===i){var o=this;setTimeout((function(){o._trigger("rowinserted")}),0)}return i}}else _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.insertRow=function(t,e){var r=this.attr("id")+".insertRow",i=this.attr("data").type;if(e=void 0===e?"array"===i?[]:{}:e,"number"==typeof t&&"array"===i&&_._.isArray(e)||"object"===i&&"object"===n(e)&&!1===_._.isArray(e)){var o=t>=this.attr("headerrows")&&this._insertRows(t,[e]);if(!0===o){var a=this;setTimeout((function(){a._trigger("rowinserted")}),0)}return o}return _.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE),!1},_.QCELL.NormalQCELL.prototype.insertRows=function(t,e){var r=this.attr("id")+".insertRows";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else if("number"==typeof t){if("number"==typeof e)return t>=this.attr("headerrows")&&e>0&&this._insertRows(t,_._.map(_._.range(e),(function(){return{}})));if(_._.isArray(e)){var i=this.attr("data").type;if("array"===i&&_._.every(e,(function(t){return _._.isArray(t)}))||"object"===i&&_._.every(e,(function(t){return!1===_._.isArray(t)&&"object"===n(t)}))){var o=t>=this.attr("headerrows")&&e.length>0&&this._insertRows(t,e);if(!0===o){var a=this;setTimeout((function(){a._trigger("rowinserted")}),0)}return o}}else _.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.insertRowsEx=function(t){var e=this._insertRowsEx(t);if(!0===e){var r=this;setTimeout((function(){r._trigger("rowinserted")}),0)}return e},_.QCELL.NormalQCELL.prototype.removeRow=function(){var t=this._deleteRows(this.attr("rows")-1,1);if(!0===t){var e=this;setTimeout((function(){e._trigger("rowdeleted")}),0)}return t},_.QCELL.NormalQCELL.prototype.removeRows=function(t){var e=this.attr("id")+".removeRows";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){var r=t>0&&this._deleteRows(this.attr("rows")-t,t);if(!0===r){var i=this;setTimeout((function(){i._trigger("rowdeleted")}),0)}return r}_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.deleteRow=function(t){var e=this.attr("id")+".deleteRow";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t){if(this.getRows()<=t)return!1;var r=t>=this.attr("headerrows")&&this._deleteRows(t,1);if(!0===r){var i=this;setTimeout((function(){i._trigger("rowdeleted")}),0)}return r}_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.deleteRows=function(t,e){var r=this.attr("id")+".deleteRows";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t&&"number"==typeof e){if(this.getRows()<=t)return!1;var i=t>=this.attr("headerrows")&&e>0&&this._deleteRows(t,e);if(!0===i){var o=this;setTimeout((function(){o._trigger("rowdeleted")}),0)}return i}_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.deleteRowsEx=function(t){var e=this._deleteRowsEx(t);if(!0===e){var r=this;setTimeout((function(){r._trigger("rowdeleted")}),0)}return e},_.QCELL.NormalQCELL.prototype.getState=function(t){var e=this.attr("id")+".getState",r=[];if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("string"==typeof t)switch(t){case"d":case"i":case"u":r=this._getState(t)}else _.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);return r},_.QCELL.NormalQCELL.prototype.getStates=function(){return this._getStates()},_.QCELL.NormalQCELL.prototype.clearStates=function(){return this._clearStates()},_.QCELL.NormalQCELL.prototype.getStatesEx=function(t){return this._getStatesEx(t)},_.QCELL.NormalQCELL.prototype.getStatesBySep=function(t,e,r){return this._getStatesBySep(t,e,r)},_.QCELL.NormalQCELL.prototype.getAllStatesBySep=function(t,e,r,i){return this._getAllDataStatesBySep(t,e,r,i)},_.QCELL.NormalQCELL.prototype.setCellDisable=function(t,e,r,i){var o=this.attr("id")+".setCellDisable";if(arguments.length<3)_.QCELL.log("err",o,this.attr("msg").err.PARAM_COUNT);else{if(e>this.getCols())return!1;if(_._.isNumber(t)&&_._.isNumber(e)){this._setCellDisabled(t,e,r);var a,s=this.attr("currentdata"),n=this._getKeyOfCol(e);if(void 0!==i&&void 0!==(a=s[t-this.attr("headerrows")])&&(a["_rt_qc_d_"+n]=i,!0===r)){var l=this._getCellDOM(t,e);null!=l&&_.util.textContent(l,i)}return!1===r&&void 0!==(a=s[t-this.attr("headerrows")])&&void 0!==a["_rt_qc_d_"+n]&&(delete a["_rt_qc_d_"+n],this.setCellDataEx(t,n,a[n])),!0}_.QCELL.log("err",o,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.setCellsDisable=function(t,e,r,i,o){var a=this.attr("id")+".setCellsDisable";if(arguments.length<5)_.QCELL.log("err",a,this.attr("msg").err.PARAM_COUNT);else{if(_._.isNumber(t)&&_._.isNumber(e)&&_._.isNumber(r)&&_._.isNumber(i)){var s,n;for(s=t;s<=r;s++)for(n=e;n<=i;n++)this._setCellDisabled(s,n,o);return!0}_.QCELL.log("err",a,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.setRowDisable=function(t,e,r){var i=this.attr("id")+".setRowDisable";if(arguments.length<2)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(_._.isNumber(t)&&_._.isBoolean(e)){var o,a=this.attr("cols"),s=this.attr("headercols");if(_._.isUndefined(r))r="data";else if(!_._.isString(r))return _.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE),!1;if("rowheader"===r||"all"===r)for(o=0;o<s;o++)this.setCellDisable(t,o,e);if("data"===r||"all"===r)for(o=s;o<a;o++)this.setCellDisable(t,o,e);return!0}_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.setColDisable=function(t,e){var r=this.attr("id")+".setColDisable";if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(_._.isNumber(t)){if(t<this.getCols("header")||t>=this.getCols())return!1;for(var i=this.attr("headerrows"),o=this.attr("rows"),a=i;a<o;a++)this._setCellDisabled(a,t,e,!0);var s=this._getQCellCol(t);return null!==s&&s.attr("_coldisable",e,"boolean"),!0}_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.getColDisable=function(t){var e=this.attr("id")+".getColDisable";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if(_._.isNumber(t)){var r=this._getQCellCol(t);return null!==r&&(null!==r.attr("_coldisable")&&r.attr("_coldisable"))}_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.getDisable=function(){return!0===this.attr("bQcellDisable")},_.QCELL.NormalQCELL.prototype.setDisable=function(t){var e=this.attr("id")+".setDisable";if(!(arguments.length<1)){for(var r=this.attr("headercols"),i=this.attr("cols"),o=r;o<i;o++)this.setColDisable(o,t);return this.attr("bQcellDisable",t,"boolean"),!0}return _.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT),!1},_.QCELL.NormalQCELL.prototype.closeEditMode=function(){return this._onScrollHideEditCellsDOM(),!0},_.QCELL.NormalQCELL.prototype.getRowState=function(t){return this._getRowState(t)},_.QCELL.NormalQCELL.prototype.setRowState=function(t,e){return this._setRowState(t,e)},_.QCELL.NormalQCELL.prototype.removeRowState=function(t){return this._removeRowState(t)},_.QCELL.NormalQCELL.prototype.clearRowStates=function(){return this._clearRowStates()},_.QCELL.NormalQCELL.prototype.checkRequired=function(){return this._checkRequired()},_.QCELL.NormalQCELL.prototype.divisionSubmit=function(t,e){var r=this.attr("id")+".divisionSubmit";if(_._.isEmpty(this.attr("paginationinfo")))if(arguments.length<2)_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT);else{if(_._.isString(t)&&_._.isNumber(e))return this._divisionSubmit(t,e);_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE)}else _.QCELL.log("err",r,this.attr("msg").err.CAN_NOT_USE_WITH_PAGINATION);return!1},_.QCELL.NormalQCELL.prototype.insertStaticRow=function(t,e){var r=this.attr("id")+".insertRow",i=this.attr("data").type;return e=void 0===e?"array"===i?[]:{}:e,"number"==typeof t&&"array"===i&&_._.isArray(e)||"object"===i&&"object"===n(e)&&!1===_._.isArray(e)?t>=this.attr("headerrows")&&this._insertStaticRows(t,[e]):(_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE),!1)},_.QCELL.NormalQCELL.prototype.deleteStaticRow=function(t){var e=this.attr("id")+".deleteStaticRow";if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else{if("number"==typeof t)return t>=this.attr("headerrows")&&this._deleteStaticRows(t,1);_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.getFocusRowState=function(){return this._getFocusRowState()},_.QCELL.NormalQCELL.prototype.getSelectRowState=function(t){return this._getSelectRowState(t)},_.QCELL.NormalQCELL.prototype.setCellInvisible=function(t,e,r){var i=this.attr("id")+".setCellInvisible";if(arguments.length<3)_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT);else{if(_._.isNumber(t)&&_._.isNumber(e)&&_._.isBoolean(r))return this._setCellInvisible(t,e,r),!0;_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE)}return!1},_.QCELL.NormalQCELL.prototype.getColSum=function(t){var e=this.attr("headerrows"),r=this.attr("colkeys")[t],i=0,o=this;return _.$(this.attr("currentdata")).each((function(t,a){o.isStaticRow(t+e-1)||_._.isNumber(a[r])&&(i+=parseFloat(a[r]))})),i},_.QCELL.NormalQCELL.prototype.isStaticRow=function(t){for(var e=this.attr("staticrowsinfo"),r=!1,i=0;i<e.length;i++)if(e[i].nRow===t){r=!0;break}return r},_.QCELL.NormalQCELL.prototype.editCell=function(t,e,r){var i,o=this.getID();if(!(t>=this.getRows()||t<this.getRows("header"))){if(this.focusCell(t,e),!1!==r)this.scrollTop(t),this.scrollLeft(e);else if(null===this._getCellDOM(t,e))return;var a=200;return!0===this.attr("hsinfo").bHScroll&&this.attr("hsinfo").nRightCol===e&&(a=300),setTimeout((function(){var r=(i=_.QCELL.getInstance(o))._getQCellCol(e).attr("celldisabled")[t],a=i._getCellDOM(t,e);if(null!==a){switch(i._getColType(e)){case"input":case"textarea":case"selectmenu":case"number":case"slider":case"inputbutton":(_._.isUndefined(r)||!1===r)&&i._getColElement(e)._show(a,"");break;case"datepicker":(_._.isUndefined(r)||!1===r)&&i._getColElement(e)._show(a);break;case"multicheckbox":case"editor":(_._.isUndefined(r)||!1===r)&&i._getColElement(e)._show(a,t,e)}i=null}}),a),!0}},_.QCELL.NormalQCELL.prototype.getAllStates=function(){return this._getAllStates()},_.QCELL.NormalQCELL.prototype.setColOptions=function(t,e){if(t<this.getCols("header"))return!1;var r=this._getQCellCol(t);if(null==r)return!1;var i=_._.clone(e);r.attr("options",i,"object"),r._initAttr("format",i.format,"object");var o=this._getColMask(t);if(r._initAttr("mask",i.mask,"object"),r._initAttr("html",i.html,"object"),r._initAttr("chart",i.chart,"object"),r._initAttr("invisibled",i.invisibled,"boolean"),"input"===this._getColType(t)){var a=this._getColElement(t);a._setOptionsAttrs(i),!_._.isUndefined(o)&&_._.isObject(o)&&(_.$(a.attr("element")).inputmask().remove(),a._initEvent())}for(var s=this.attr("vsinfo"),n=s.nTopRow;n<=s.nBottomRow;n++){var l=this._getCellDOM(n,t);if(null!=l){var c=this.getCellData(n,t),h=this._showDataFormat(n,t,void 0===c?"":c);_.util.textContent(l,h)}}return!0},_.QCELL.NormalQCELL.prototype.getColOptions=function(t){return t<this.getCols("header")?null:this._getColOptions(t)},_.QCELL.NormalQCELL.prototype.isHeaderCheckbox=function(t){var e=this.attr("id")+".isHeaderCheckbox",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t||_._.isNull(this._getColElement(t))||"checkbox"!==this._getColType(t)?_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):r=this._getColElement(t)._isHeaderCheckbox(t),r},_.QCELL.NormalQCELL.prototype.getHeaderCheckedState=function(t){var e=this.attr("id")+".getHeaderCheckedState",r=!1;return arguments.length<1?_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t||_._.isNull(this._getColElement(t))||"checkbox"!==this._getColType(t)?_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE):r=this._getColElement(t)._getHeaderCheckedState(t),r},_.QCELL.NormalQCELL.prototype.setHeaderChecked=function(t,e){var r=this.attr("id")+".setHeaderChecked";arguments.length<2?_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT):"number"!=typeof t?_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE):_._.isNull(this._getColElement(t))&&"checkbox"!==this._getColType(t)?_.QCELL.log("err",r,this.attr("msg").err.TYPE_NOT_CHECKBOX):"boolean"!=typeof e?_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE):this._getColElement(t)._setHeaderChecked(t,e)},_.QCELL.NormalQCELL.prototype.getCheckedRows=function(t){var e=this.attr("id")+".getCheckedRows",r=[];if(arguments.length<1)_.QCELL.log("err",e,this.attr("msg").err.PARAM_COUNT);else if("number"!=typeof t)_.QCELL.log("err",e,this.attr("msg").err.PARAM_TYPE);else if(_._.isNull(this._getColElement(t))&&"checkbox"!==this._getColType(t))_.QCELL.log("err",e,this.attr("msg").err.TYPE_NOT_CHECKBOX);else for(var i=this.attr("headerrows"),o=this.attr("rows"),a=this._getColElement(t).attr("checkedvalue");i<o;i++)a===this._cellValue(i,t)&&r.push(i);return r},_.QCELL.NormalQCELL.prototype.setSelectmenuValue=function(t,e,r){var i=this.attr("id")+".setSelectmenuValue",o=!1;return arguments.length<3?_.QCELL.log("err",i,this.attr("msg").err.PARAM_COUNT):_._.isNumber(t)&&_._.isNumber(e)&&(_._.isString(r)||_._.isNumber(r))&&!_._.isNull(this._getColElement(e))&&"selectmenu"===this._getColType(e)?o=this._getColElement(e)._showDataLabel(this._getCellDOM(t,e),t,e,r):_.QCELL.log("err",i,this.attr("msg").err.PARAM_TYPE),o},_.QCELL.NormalQCELL.prototype.getSelectmenuLabel=function(t,e){var r=this.attr("id")+".getSelectmenuLabel",i="";return arguments.length<2?_.QCELL.log("err",r,this.attr("msg").err.PARAM_COUNT):_._.isNumber(t)&&_._.isNumber(e)&&!_._.isNull(this._getColElement(e))&&"selectmenu"===this._getColType(e)?i=this._getColElement(e)._getDataLabel(t,e):_.QCELL.log("err",r,this.attr("msg").err.PARAM_TYPE),i},_.QCELL.config=_._.extend(_._.clone(_.QCELL.config),{moduletype:"normal",oneclickedit:!1,htmlselectmenu:!1,usebuttonclickcallback:!1,delkeymode:"select",setstatewithapi:!0,sethtmlclicktoidx:!0,useenterkeytonextcol:!1,keepeditmode:!1,datepickerautosettoday:!1,useinitdata:!0}),_.QCELL.def.msg.kr.err=_._.extend(_._.clone(_.QCELL.def.msg.kr.err),{TYPE_NOT_CHECKBOX:"지정한 열의 타입은 'checkbox'가 아닙니다.",NOT_HAVE_HEADER_CHECKBOX:"지정한 열의 options 중 'wholeselect' 값이 설정되어 있지 않거나 사용 설정된 상태가 아닙니다.",CAN_NOT_USE_WITH_PAGINATION:"pagination 속성과 같이 사용할 수 없습니다."}),_.QCELL.def.msg.en.err=_._.extend(_._.clone(_.QCELL.def.msg.en.err),{TYPE_NOT_CHECKBOX:"Please check, This col`s Type. Is a 'checkbox'.",NOT_HAVE_HEADER_CHECKBOX:"Please check, This col`s options. Is not set up 'wholeselect' or 'wholeselect' value is not true.",CAN_NOT_USE_WITH_PAGINATION:"Please check, can`t use with a 'pagination' attribute."}),_.QCELL.NormalQCELL.create=function(t){return _.QCELL.BasicQCELL.create.call(this,t)},_.QCELL.NormalQCELL._create=function(t){return _.QCELL.BasicQCELL._create.call(this,t)},_.QCELL.NormalQCELL._checkRequiredProps=function(t){return!!_.QCELL.BasicQCELL._checkRequiredProps(t)},_.QCELL.NormalQCELL._checkValidationOfProps=function(t){var e=!1;return _.QCELL.BasicQCELL._checkValidationOfProps(t)&&_.$.each(t,(function(t,r){return e=_.QCELL.NormalQCELL._checkValidationOfProp(t,r)})),e},_.QCELL.NormalQCELL._checkValidationOfProp=function(t,e){var r=!0,i="";if("oneclickedit"===t)i="boolean",!1===_._.isBoolean(e)&&(r=!1);return!1===r&&_.QCELL.log("err","QCELL.create",'Please check "'+t+'" property\'s type is "'+i+'".'),r},_.QCELL.NormalQCELL._adjustProps=function(t){var e=_._.mapValues(_.QCELL.BasicQCELL._adjustProps(t),(function(t,e){return _.QCELL.NormalQCELL._adjustProp(e,t)}));return _._.assign(_._.clone(_.QCELL.config),e)},_.QCELL.NormalQCELL._adjustProp=function(t,e){return void 0===e?_.QCELL.BasicQCELL._getDefaultValueOfProp(t):e},_.QCELL.def.resource={search:"검색",reset:"초기화",adjust:"적용",cancel:"취소"},window.QCELL=_.QCELL;const g=_.QCELL;t.exports&&(t.exports=_.QCELL)},1283:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var r=function(t){var r="function",i="string";if("undefined"==("undefined"==typeof encodeURIComponent?"undefined":e(encodeURIComponent))||Array.prototype.splice===t||Object.prototype.hasOwnProperty===t)return null;function o(t){return e(t)==i?t:""+t}function a(t){var s;return e(t)==i?t:e(t.hashCode)==r?e(s=t.hashCode())==i?s:a(s):o(t)}function s(t,e){return t.equals(e)}function n(t,i){return e(i.equals)==r?i.equals(t):t===i}function l(e){return function(r){if(null===r)throw new Error("null is not a valid "+e);if(r===t)throw new Error(e+" must not be undefined")}}var c=l("key"),h=l("value");function d(t,e,r,i){this[0]=t,this.entries=[],this.addEntry(e,r),null!==i&&(this.getEqualityFunction=function(){return i})}function u(t){return function(e){for(var r,i=this.entries.length,o=this.getEqualityFunction(e);i--;)if(o(e,(r=this.entries[i])[0]))switch(t){case 0:return!0;case 1:return r;case 2:return[i,r[1]]}return!1}}function p(t){return function(e){for(var r=e.length,i=0,o=this.entries,a=o.length;i<a;++i)e[r+i]=o[i][t]}}function _(t,e){var r=t[e];return r&&r instanceof d?r:null}function g(){var e=[],r={},i={replaceDuplicateKey:!0,hashCode:a,equals:null},o=arguments[0],s=arguments[1];s!==t?(i.hashCode=o,i.equals=s):o!==t&&function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}(i,o);var n=i.hashCode,l=i.equals;this.properties=i,this.put=function(t,o){c(t);var a,s,h=n(t),u=null;return(a=_(r,h))?(s=a.getEntryForKey(t))?(i.replaceDuplicateKey&&(s[0]=t),u=s[1],s[1]=o):a.addEntry(t,o):(a=new d(h,t,o,l),e.push(a),r[h]=a),u},this.putAt=function(t,o,a){c(t);var s,h,u=n(t),p=null;return(s=_(r,u))?(h=s.getEntryForKey(t))?(i.replaceDuplicateKey&&(h[0]=t),p=h[1],h[1]=o):s.addEntry(t,o):(s=new d(u,t,o,l),e.RT_insertArray(a,[s]),r[u]=s),p},this.moveAt=function(t,r){if(r<0||r>e.length)return null;c(t);var i=this.remove(t);return this.putAt(t,i,r),i},this.get=function(t){c(t);var e=n(t),i=_(r,e);if(i){var o=i.getEntryForKey(t);if(o)return o[1]}return null},this.containsKey=function(t){c(t);var e=n(t),i=_(r,e);return!!i&&i.containsKey(t)},this.containsValue=function(t){h(t);for(var r=e.length;r--;)if(e[r].containsValue(t))return!0;return!1},this.clear=function(){e.length=0,r={}},this.isEmpty=function(){return!e.length};var u=function(t){return"keys"==t?function(r){for(var i=[],o=e.length;o--;)e[o][t](i);return r?i.reverse():i}:function(){for(var r=[],i=e.length;i--;)e[i][t](r);return r}};this.keys=u("keys"),this.values=u("values"),this.entries=u("getEntries"),this.remove=function(t){c(t);var i,o=n(t),a=null,s=_(r,o);return s&&null!==(a=s.removeEntryForKey(t))&&0==s.entries.length&&(i=function(t,e){for(var r=t.length;r--;)if(e===t[r][0])return r;return null}(e,o),e.splice(i,1),delete r[o]),a},this.size=function(){for(var t=0,r=e.length;r--;)t+=e[r].entries.length;return t}}return d.prototype={getEqualityFunction:function(t){return e(t.equals)==r?s:n},getEntryForKey:u(1),getEntryAndIndexForKey:u(2),removeEntryForKey:function(t){var e=this.getEntryAndIndexForKey(t);return e?(this.entries.splice(e[0],1),e[1]):null},addEntry:function(t,e){this.entries.push([t,e])},keys:p(0),values:p(1),getEntries:function(t){for(var e=t.length,r=0,i=this.entries,o=i.length;r<o;++r)t[e+r]=i[r].slice(0)},containsKey:u(0),containsValue:function(t){for(var e=this.entries,r=e.length;r--;)if(t===e[r][1])return!0;return!1}},g.prototype={each:function(t,e){var r,i=this.entries(),o=i.length;if(e)for(var a=0;a<o;a++)t((r=i[a])[0],r[1]);else for(;o--;)t((r=i[o])[0],r[1])},equals:function(t){var e,r,i,o=this.size();if(o==t.size()){for(e=this.keys();o--;)if(r=e[o],null===(i=t.get(r))||i!==this.get(r))return!1;return!0}return!1},putAll:function(t,i){for(var o,a,s,n,l=t.entries(),c=l.length,h=e(i)==r;c--;)a=(o=l[c])[0],s=o[1],h&&(n=this.get(a))&&(s=i(a,n,s)),this.put(a,s)},clone:function(){var t=new g(this.properties);return t.putAll(this),t}},g.prototype.toQueryString=function(){for(var t,e=this.entries(),r=e.length,i=[];r--;)t=e[r],i[r]=encodeURIComponent(o(t[0]))+"="+encodeURIComponent(o(t[1]));return i.join("&")},g}();t.exports={_QHashSet:function(t,e){var i=new r(t,e);this.add=function(t){i.put(t,!0)},this.addAll=function(t){for(var e=0,r=t.length;e<r;++e)i.put(t[e],!0)},this.values=function(t){return i.keys(t)},this.remove=function(t){return i.remove(t)?t:null},this.contains=function(t){return i.containsKey(t)},this.clear=function(){i.clear()},this.size=function(){return i.size()},this.isEmpty=function(){return i.isEmpty()},this.clone=function(){var r=new window._QHashSet(t,e);return r.addAll(i.keys()),r},this.intersection=function(r){for(var o,a=new window._QHashSet(t,e),s=r.values(),n=s.length;n--;)o=s[n],i.containsKey(o)&&a.add(o);return a},this.union=function(t){for(var e,r=this.clone(),o=t.values(),a=o.length;a--;)e=o[a],i.containsKey(e)||r.add(e);return r},this.isSubsetOf=function(t){for(var e=i.keys(),r=e.length;r--;)if(!t.contains(e[r]))return!1;return!0},this.complement=function(r){for(var i,o=new window._QHashSet(t,e),a=this.values(),s=a.length;s--;)i=a[s],r.contains(i)||o.add(i);return o}},_QHashtable:r}},6362:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var r={};(function(t){function r(t){for(var e="",r=t.length-1;r>=0;)e+=t.charAt(r--);return e}function i(t,e){for(var r="";r.length<e;)r+=t;return r}function o(t,e){var r=""+t;return r.length>=e?r:i("0",e-r.length)+r}function a(t,e){var r=""+t;return r.length>=e?r:i(" ",e-r.length)+r}function s(t,e){var r=""+t;return r.length>=e?r:r+i(" ",e-r.length)}function n(t,e){var r=""+Math.round(t);return r.length>=e?r:i("0",e-r.length)+r}function l(t,e){var r=""+t;return r.length>=e?r:i("0",e-r.length)+r}function c(t,e){return t>E||-E>t?n(t,e):l(Math.round(t),e)}function h(t,e){return t.length>=7+e&&103==(32|t.charCodeAt(e))&&101==(32|t.charCodeAt(e+1))&&110==(32|t.charCodeAt(e+2))&&101==(32|t.charCodeAt(e+3))&&114==(32|t.charCodeAt(e+4))&&97==(32|t.charCodeAt(e+5))&&108==(32|t.charCodeAt(e+6))}function d(t){for(var e=0;e!=v.length;++e)void 0===t[v[e][0]]&&(t[v[e][0]]=v[e][1])}function u(t,e,r){for(var i=0>t?-1:1,o=t*i,a=0,s=1,n=0,l=1,c=0,h=0,d=Math.floor(o);e>c&&(n=(d=Math.floor(o))*s+a,h=d*c+l,!(5e-10>o-d));)o=1/(o-d),a=s,s=n,l=c,c=h;if(h>e&&(h=c,n=s),h>e&&(h=l,n=a),!r)return[0,i*n,h];if(0===h)throw"Unexpected state: "+n+" "+s+" "+a+" "+h+" "+c+" "+l;var u=Math.floor(i*n/h);return[u,i*n-u*h,h]}function p(t,e){return""+t}function _(t,r){switch(e(t)){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?p(t):k(t,r)}throw new Error("unsupported value in General format: "+t)}function g(t,e,r){if(t>2958465||0>t)return null;var i=0|t,o=Math.floor(86400*(t-i)),a=0,s=[],n={D:i,T:o,u:86400*(t-i)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(n.u)<1e-6&&(n.u=0),d(null!=e?e:e=[]),e.date1904&&(i+=1462),n.u>.999&&(n.u=0,86400==++o&&(o=0,++i)),60===i)s=r?[1317,10,29]:[1900,2,29],a=3;else if(0===i)s=r?[1317,8,29]:[1900,1,0],a=6;else{i>60&&--i;var l=new Date(1900,0,1);l.setDate(l.getDate()+i-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),60>i&&(a=(a+6)%7),r&&(a=0)}return n.y=s[0],n.m=s[1],n.d=s[2],n.S=o%60,o=Math.floor(o/60),n.M=o%60,o=Math.floor(o/60),n.H=o,n.q=a,n}function f(t,e,r,i){var a,s="",n=0,l=0,c=r.y,h=0;switch(t){case 98:c=r.y+543;case 121:switch(e.length){case 1:case 2:a=c%100,h=2;break;default:a=c%1e4,h=4}break;case 109:switch(e.length){case 1:case 2:a=r.m,h=e.length;break;case 3:return x[r.m-1][1];case 5:return x[r.m-1][0];default:return x[r.m-1][2]}break;case 100:switch(e.length){case 1:case 2:a=r.d,h=e.length;break;case 3:return w[r.q][0];default:return w[r.q][1]}break;case 104:switch(e.length){case 1:case 2:a=1+(r.H+11)%12,h=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:a=r.H,h=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:a=r.M,h=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(0===r.u)switch(e){case"s":case"ss":return o(r.S,e.length)}switch(e){case"s":case"ss":case".0":case".00":case".000":return l=i>=2?3===i?1e3:100:1===i?10:1,(n=Math.round(l*(r.S+r.u)))>=60*l&&(n=0),"s"===e?0===n?"0":""+n/l:(s=o(n,2+i),"ss"===e?s.substr(0,2):"."+s.substr(2,e.length-1));default:throw"bad second format: "+e}case 90:switch(e){case"[h]":case"[hh]":a=24*r.D+r.H;break;case"[m]":case"[mm]":a=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":a=60*(60*(24*r.D+r.H)+r.M)+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+e}h=3===e.length?1:2;break;case 101:a=c,h=1}return h>0?o(a,h):""}function m(t){if(t.length<=3)return t;for(var e=t.length%3,r=t.substr(0,e);e!=t.length;e+=3)r+=(r.length>0?",":"")+t.substr(e,3);return r}function C(t){for(var e=[],r=!1,i=0,o=0;i<t.length;++i)switch(t.charCodeAt(i)){case 34:r=!r;break;case 95:case 42:case 92:++i;break;case 59:e[e.length]=t.substr(o,i-o),o=i+1}if(e[e.length]=t.substr(o),!0===r)throw new Error("Format |"+t+"| unterminated string ");return e}function L(t,e,r,i){for(var o,a,s,n,l=[],c="",d=0,u="",p="t",m="H";d<t.length;)switch(u=t[d]){case"G":if(!h(t,d))throw new Error("unrecognized character "+u+" in "+t);l[l.length]={t:"G",v:"General"},d+=7;break;case'"':for(c="";34!==(n=t.charCodeAt(++d))&&d<t.length;)c+=String.fromCharCode(n);l[l.length]={t:"t",v:c},++d;break;case"\\":var C=t[++d],L="("===C||")"===C?C:"t";l[l.length]={t:L,v:C},++d;break;case"_":l[l.length]={t:"t",v:" "},d+=2;break;case"@":l[l.length]={t:"T",v:e},++d;break;case"B":case"b":if("1"===t[d+1]||"2"===t[d+1]){if(null==a&&null==(a=g(e,r,"2"===t[d+1])))return"";l[l.length]={t:"X",v:t.substr(d,2)},p=u,d+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(0>e)return"";if(null==a&&null==(a=g(e,r)))return"";for(c=u;++d<t.length&&t[d].toLowerCase()===u;)c+=u;"m"===u&&"h"===p.toLowerCase()&&(u="M"),"h"===u&&(u=m),l[l.length]={t:u,v:c},p=u;break;case"A":if(o={t:u,v:"A"},null==a&&(a=g(e,r)),"A/P"===t.substr(d,3)?(null!=a&&(o.v=a.H>=12?"P":"A"),o.t="T",m="h",d+=3):"AM/PM"===t.substr(d,5)?(null!=a&&(o.v=a.H>=12?"PM":"AM"),o.t="T",d+=5,m="h"):(o.t="t",++d),null==a&&"T"===o.t)return"";l[l.length]=o,p=u;break;case"[":for(c=u;"]"!==t[d++]&&d<t.length;)c+=t[d];if("]"!==c.substr(-1))throw'unterminated "[" block: |'+c+"|";if(c.match(Q)){if(null==a&&null==(a=g(e,r)))return"";l[l.length]={t:"Z",v:c.toLowerCase()}}else c="";break;case".":if(null!=a){for(c=u;"0"===(u=t[++d]);)c+=u;l[l.length]={t:"s",v:c};break}case"0":case"#":for(c=u;"0#?.,E+-%".indexOf(u=t[++d])>-1||"\\"==u&&"-"==t[d+1]&&"0#".indexOf(t[d+2])>-1;)c+=u;l[l.length]={t:"n",v:c};break;case"?":for(c=u;t[++d]===u;)c+=u;o={t:u,v:c},l[l.length]=o,p=u;break;case"*":(" "==t[++d]||"*"==t[d])&&++d;break;case"(":case")":l[l.length]={t:1===i?"t":u,v:u},++d;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(c=u;"0123456789".indexOf(t[++d])>-1;)c+=t[d];l[l.length]={t:"D",v:c};break;case" ":l[l.length]={t:u,v:u},++d;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxz".indexOf(u))throw new Error("unrecognized character "+u+" in "+t);l[l.length]={t:"t",v:u},++d}var b,E=0,v=0;for(d=l.length-1,p="t";d>=0;--d)switch(l[d].t){case"h":case"H":l[d].t=m,p="h",1>E&&(E=1);break;case"s":(b=l[d].v.match(/\.0+$/))&&(v=Math.max(v,b[0].length-1)),3>E&&(E=3);case"d":case"y":case"M":case"e":p=l[d].t;break;case"m":"s"===p&&(l[d].t="M",2>E&&(E=2));break;case"X":l[d].v;break;case"Z":1>E&&l[d].v.match(/[Hh]/)&&(E=1),2>E&&l[d].v.match(/[Mm]/)&&(E=2),3>E&&l[d].v.match(/[Ss]/)&&(E=3)}switch(E){case 0:break;case 1:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M),a.M>=60&&(a.M=0,++a.H);break;case 2:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M)}var y,w="";for(d=0;d<l.length;++d)switch(l[d].t){case"t":case"T":case" ":case"D":break;case"X":l[d]=void 0;break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":l[d].v=f(l[d].t.charCodeAt(0),l[d].v,a,v),l[d].t="t";break;case"n":case"(":case"?":for(y=d+1;null!=l[y]&&("?"===(u=l[y].t)||"D"===u||(" "===u||"t"===u)&&null!=l[y+1]&&("?"===l[y+1].t||"t"===l[y+1].t&&"/"===l[y+1].v)||"("===l[d].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===l[y].v||"$€".indexOf(l[y].v)>-1||" "===l[y].v&&null!=l[y+1]&&"?"==l[y+1].t));)l[d].v+=l[y].v,l[y]=void 0,++y;w+=l[d].v,d=y-1;break;case"G":l[d].t="t",l[d].v=_(e,r)}var x,k,q="";if(w.length>0){x=0>e&&45===w.charCodeAt(0)?-e:e,y=(k=S(40===w.charCodeAt(0)?"(":"n",w,x)).length-1;var T=l.length;for(d=0;d<l.length;++d)if(null!=l[d]&&l[d].v.indexOf(".")>-1){T=d;break}var A=l.length;if(T===l.length&&-1===k.indexOf("E")){for(d=l.length-1;d>=0;--d)null!=l[d]&&-1!=="n?(".indexOf(l[d].t)&&(y>=l[d].v.length-1?(y-=l[d].v.length,l[d].v=k.substr(y+1,l[d].v.length)):0>y?l[d].v="":(l[d].v=k.substr(0,y+1),y=-1),l[d].t="t",A=d);y>=0&&A<l.length&&(l[A].v=k.substr(0,y+1)+l[A].v)}else if(T!==l.length&&-1===k.indexOf("E")){for(y=k.indexOf(".")-1,d=T;d>=0;--d)if(null!=l[d]&&-1!=="n?(".indexOf(l[d].t)){for(s=l[d].v.indexOf(".")>-1&&d===T?l[d].v.indexOf(".")-1:l[d].v.length-1,q=l[d].v.substr(s+1);s>=0;--s)y>=0&&("0"===l[d].v[s]||"#"===l[d].v[s])&&(q=k[y--]+q);l[d].v=q,l[d].t="t",A=d}for(y>=0&&A<l.length&&(l[A].v=k.substr(0,y+1)+l[A].v),y=k.indexOf(".")+1,d=T;d<l.length;++d)if(null!=l[d]&&(-1!=="n?(".indexOf(l[d].t)||d===T)){for(s=l[d].v.indexOf(".")>-1&&d===T?l[d].v.indexOf(".")+1:0,q=l[d].v.substr(0,s);s<l[d].v.length;++s)y<k.length&&(q+=k[y++]);l[d].v=q,l[d].t="t",A=d}}}for(d=0;d<l.length;++d)null!=l[d]&&"n(?".indexOf(l[d].t)>-1&&(x=i>1&&0>e&&d>0&&"-"===l[d-1].v?-e:e,l[d].v=S(l[d].t,l[d].v,x),l[d].t="t");var R="";for(d=0;d!==l.length;++d)null!=l[d]&&(R+=l[d].v);return R}function b(t,e){if(null==e)return!1;var r=parseFloat(e[2]);switch(e[1]){case"=":if(t==r)return!0;break;case">":if(t>r)return!0;break;case"<":if(r>t)return!0;break;case"<>":if(t!=r)return!0;break;case">=":if(t>=r)return!0;break;case"<=":if(r>=t)return!0}return!1}t.version="0.8.1";var E=Math.pow(2,32),v=[["date1904",0],["output",""],["WTF",!1]];t.opts=v;var y={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "',65535:"General"},w=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],x=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];t._general_int=p;var k=function(){function t(t){var e=t.toFixed(11).replace(i,".$1");return e.length>(0>t?12:11)&&(e=t.toPrecision(6)),e}function e(t){for(var e=0;e!=t.length;++e)if(101==(32|t.charCodeAt(e)))return t.replace(a,".$1").replace(s,"E").replace("e","E").replace(n,"$10$2");return t}function r(t){return t.indexOf(".")>-1?t.replace(o,"").replace(i,".$1"):t}var i=/\.(\d*[1-9])0+$/,o=/\.0*$/,a=/\.(\d*[1-9])0+/,s=/\.0*[Ee]/,n=/(E[+-])(\d)$/;return function(i,o){var a,s=Math.floor(Math.log(Math.abs(i))*Math.LOG10E);return a=s>=-4&&-1>=s?i.toPrecision(10+s):Math.abs(s)<=9?function(t){var e=0>t?12:11,i=r(t.toFixed(12));return i.length<=e||(i=t.toPrecision(10)).length<=e?i:t.toExponential(5)}(i):10===s?i.toFixed(10).substr(0,12):t(i),r(e(a))}}();t._general_num=k,t._general=_,t.parse_date_code=g;var S=function(){function t(t,e,r){var o=e.replace(_,""),a=e.length-o.length;return S(t,o,r*Math.pow(10,2*a))+i("%",a)}function e(t){for(var e,r="",i=0;i!=t.length;++i)switch(e=t.charCodeAt(i)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(e)}return r}function n(t,e){var r=Math.pow(10,e);return""+Math.round(t*r)/r}function l(t,e){return Math.round((t-Math.floor(t))*Math.pow(10,e))}function h(d,p,_){if(40===d.charCodeAt(0)&&!p.match(C)){var b=p.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return _>=0?h("n",b,_):"("+h("n",b,-_)+")"}if(44===p.charCodeAt(p.length-1))return function(t,e,r){for(var i=e.length-1;44===e.charCodeAt(i-1);)--i;return S(t,e.substr(0,i),r/Math.pow(10,3*(e.length-i)))}(d,p,_);if(-1!==p.indexOf("%"))return t(d,p,_);if(-1!==p.indexOf("E"))return function(t,e){var r,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){var o=t.indexOf(".");-1===o&&(o=t.indexOf("E"));var a=Math.floor(Math.log(Math.abs(e))*Math.LOG10E)%o;if(0>a&&(a+=o),-1===(r=(e/Math.pow(10,a)).toPrecision(i+1+(o+a)%o)).indexOf("e")){var s=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);for(-1===r.indexOf(".")?r=r[0]+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a);"0."===r.substr(0,2);)r=(r=r[0]+r.substr(2,o)+"."+r.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,r,i){return e+r+i.substr(0,(o+a)%o)+"."+i.substr(a)+"E"}))}else r=e.toExponential(i);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r[r.length-1]),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(p,_);if(36===p.charCodeAt(0))return"$"+h(d,p.substr(" "==p[1]?2:1),_);var E,v,y,w,x=Math.abs(_),k=0>_?"-":"";if(p.match(/^00+$/))return k+c(x,p.length);if(p.match(/^[#?]+$/))return"0"===(E=c(_,0))&&(E=""),E.length>p.length?E:e(p.substr(0,p.length-E.length))+E;if(null!==(v=p.match(g)))return function(t,e,r){var s=parseInt(t[4]),n=Math.round(e*s),l=Math.floor(n/s),c=n-l*s,h=s;return r+(0===l?"":""+l)+" "+(0===c?i(" ",t[1].length+1+t[4].length):a(c,t[1].length)+t[2]+"/"+t[3]+o(h,t[4].length))}(v,x,k);if(null!==p.match(/^#+0+$/))return k+c(x,p.length-p.indexOf("0"));if(null!==(v=p.match(f)))return E=n(_,v[1].length).replace(/^([^\.]+)$/,"$1."+v[1]).replace(/\.$/,"."+v[1]).replace(/\.(\d*)$/,(function(t,e){return"."+e+i("0",v[1].length-e.length)})),-1!==p.indexOf("0.")?E:E.replace(/^0\./,".");if(p=p.replace(/^#+([0.])/,"$1"),null!==(v=p.match(/^(0*)\.(#*)$/)))return k+n(x,v[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,v[1].length?"0.":".");if(null!==(v=p.match(/^#,##0(\.?)$/)))return k+m(c(x,0));if(null!==(v=p.match(/^#,##0\.([#0]*0)$/)))return 0>_?"-"+h(d,p,-_):m(""+Math.floor(_))+"."+o(l(_,v[1].length),v[1].length);if(null!==(v=p.match(/^#,#*,#0/)))return h(d,p.replace(/^#,#*,/,""),_);if(null!==(v=p.match(/^([0#]+)(\\?-([0#]+))+$/)))return E=r(h(d,p.replace(/[\\-]/g,""),_)),y=0,r(r(p.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return y<E.length?E[y++]:"0"===t?"0":""})));if(null!==p.match(L))return"("+(E=h(d,"##########",_)).substr(0,3)+") "+E.substr(3,3)+"-"+E.substr(6);var Q="";if(null!==(v=p.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)))return y=Math.min(v[4].length,7),w=u(x,Math.pow(10,y)-1,!1),E=""+k," "==(Q=S("n",v[1],w[1]))[Q.length-1]&&(Q=Q.substr(0,Q.length-1)+"0"),E+=Q+v[2]+"/"+v[3],(Q=s(w[2],y)).length<v[4].length&&(Q=e(v[4].substr(v[4].length-Q.length))+Q),E+=Q;if(null!==(v=p.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)))return y=Math.min(Math.max(v[1].length,v[4].length),7),k+((w=u(x,Math.pow(10,y)-1,!0))[0]||(w[1]?"":"0"))+" "+(w[1]?a(w[1],y)+v[2]+"/"+v[3]+s(w[2],y):i(" ",2*y+1+v[2].length+v[3].length));if(null!==(v=p.match(/^[#0?]+$/)))return E=c(_,0),p.length<=E.length?E:e(p.substr(0,p.length-E.length))+E;if(null!==(v=p.match(/^([#0?]+)\.([#0]+)$/))){E=""+_.toFixed(Math.min(v[2].length,10)).replace(/([^0])0+$/,"$1"),y=E.indexOf(".");var q=p.indexOf(".")-y,T=p.length-E.length-q;return e(p.substr(0,q)+E+p.substr(p.length-T))}if(null!==(v=p.match(/^00,000\.([#0]*0)$/)))return y=l(_,v[1].length),0>_?"-"+h(d,p,-_):m(function(t){return 2147483647>t&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(_)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?o(0,3-t.length):"")+t}))+"."+o(y,v[1].length);if("#,###"===p){var A=m(c(x,0));return"0"!==A?k+A:""}throw new Error("unsupported format |"+p+"|")}function d(t,e,r){var o=e.replace(_,""),a=e.length-o.length;return S(t,o,r*Math.pow(10,2*a))+i("%",a)}function p(t,n,l){if(40===t.charCodeAt(0)&&!n.match(C)){var c=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return l>=0?p("n",c,l):"("+p("n",c,-l)+")"}if(44===n.charCodeAt(n.length-1))return function(t,e,r){for(var i=e.length-1;44===e.charCodeAt(i-1);)--i;return S(t,e.substr(0,i),r/Math.pow(10,3*(e.length-i)))}(t,n,l);if(-1!==n.indexOf("%"))return d(t,n,l);if(-1!==n.indexOf("E"))return function(t,e){var r,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){var o=t.indexOf(".");-1===o&&(o=t.indexOf("E"));var a=Math.floor(Math.log(Math.abs(e))*Math.LOG10E)%o;if(0>a&&(a+=o),!(r=(e/Math.pow(10,a)).toPrecision(i+1+(o+a)%o)).match(/[Ee]/)){var s=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);-1===r.indexOf(".")?r=r[0]+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,r,i){return e+r+i.substr(0,(o+a)%o)+"."+i.substr(a)+"E"}))}else r=e.toExponential(i);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r[r.length-1]),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(n,l);if(36===n.charCodeAt(0))return"$"+p(t,n.substr(" "==n[1]?2:1),l);var h,_,b,E,v=Math.abs(l),y=0>l?"-":"";if(n.match(/^00+$/))return y+o(v,n.length);if(n.match(/^[#?]+$/))return h=""+l,0===l&&(h=""),h.length>n.length?h:e(n.substr(0,n.length-h.length))+h;if(null!==(_=n.match(g)))return function(t,e,r){return r+(0===e?"":""+e)+i(" ",t[1].length+2+t[4].length)}(_,v,y);if(null!==n.match(/^#+0+$/))return y+o(v,n.length-n.indexOf("0"));if(null!==(_=n.match(f)))return h=(""+l).replace(/^([^\.]+)$/,"$1."+_[1]).replace(/\.$/,"."+_[1]).replace(/\.(\d*)$/,(function(t,e){return"."+e+i("0",_[1].length-e.length)})),-1!==n.indexOf("0.")?h:h.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),null!==(_=n.match(/^(0*)\.(#*)$/)))return y+(""+v).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,_[1].length?"0.":".");if(null!==(_=n.match(/^#,##0(\.?)$/)))return y+m(""+v);if(null!==(_=n.match(/^#,##0\.([#0]*0)$/)))return 0>l?"-"+p(t,n,-l):m(""+l)+"."+i("0",_[1].length);if(null!==(_=n.match(/^#,#*,#0/)))return p(t,n.replace(/^#,#*,/,""),l);if(null!==(_=n.match(/^([0#]+)(\\?-([0#]+))+$/)))return h=r(p(t,n.replace(/[\\-]/g,""),l)),b=0,r(r(n.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return b<h.length?h[b++]:"0"===t?"0":""})));if(null!==n.match(L))return"("+(h=p(t,"##########",l)).substr(0,3)+") "+h.substr(3,3)+"-"+h.substr(6);var w="";if(null!==(_=n.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)))return b=Math.min(_[4].length,7),E=u(v,Math.pow(10,b)-1,!1),h=""+y," "==(w=S("n",_[1],E[1]))[w.length-1]&&(w=w.substr(0,w.length-1)+"0"),h+=w+_[2]+"/"+_[3],(w=s(E[2],b)).length<_[4].length&&(w=e(_[4].substr(_[4].length-w.length))+w),h+=w;if(null!==(_=n.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)))return b=Math.min(Math.max(_[1].length,_[4].length),7),y+((E=u(v,Math.pow(10,b)-1,!0))[0]||(E[1]?"":"0"))+" "+(E[1]?a(E[1],b)+_[2]+"/"+_[3]+s(E[2],b):i(" ",2*b+1+_[2].length+_[3].length));if(null!==(_=n.match(/^[#0?]+$/)))return h=""+l,n.length<=h.length?h:e(n.substr(0,n.length-h.length))+h;if(null!==(_=n.match(/^([#0]+)\.([#0]+)$/))){h=""+l.toFixed(Math.min(_[2].length,10)).replace(/([^0])0+$/,"$1"),b=h.indexOf(".");var x=n.indexOf(".")-b,k=n.length-h.length-x;return e(n.substr(0,x)+h+n.substr(n.length-k))}if(null!==(_=n.match(/^00,000\.([#0]*0)$/)))return 0>l?"-"+p(t,n,-l):m(""+l).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?o(0,3-t.length):"")+t}))+"."+o(0,_[1].length);if("#,###"===n){var Q=m(""+v);return"0"!==Q?y+Q:""}throw new Error("unsupported format |"+n+"|")}var _=/%/g,g=/# (\?+)( ?)\/( ?)(\d+)/,f=/^#*0*\.(0+)/,C=/\).*[0#]/,L=/\(###\) ###\\?-####/;return function(t,e,r){return(0|r)===r?p(t,e,r):h(t,e,r)}}();t._split=C;var Q=/\[[HhMmSs]*\]/;t._eval=L;var q=/\[[=<>]/,T=/\[([=<>]*)(-?\d+\.?\d*)\]/;t._table=y,t.load=function(t,e){y[e]=t},t.format=function(t,r,i){d(null!=i?i:i=[]);var o="";switch(e(t)){case"string":o=t;break;case"number":o=(null!=i.table?i.table:y)[t]}if(h(o,0))return _(r,i);var a=function(t,e){var r=C(t),i=r.length,o=r[i-1].indexOf("@");if(4>i&&o>-1&&--i,r.length>4)throw"cannot find right format for |"+r+"|";if("number"!=typeof e)return[4,4===r.length||o>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=o>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=o>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=o>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"]}var a=e>0?r[0]:0>e?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[i,a];if(null!=r[0].match(q)||null!=r[1].match(q)){var s=r[0].match(T),n=r[1].match(T);return b(e,s)?[i,r[0]]:b(e,n)?[i,r[1]]:[i,r[null!=s&&null!=n?2:1]]}return[i,a]}(o,r);if(h(a[1]))return _(r,i);if(!0===r)r="TRUE";else if(!1===r)r="FALSE";else if(""===r||null==r)return"";return L(a[1],r,i,a[0])},t.get_table=function(){return y},t.load_table=function(e){for(var r=0;392!=r;++r)void 0!==e[r]&&t.load(e[r],r)}})(r),"undefined"==typeof DO_NOT_EXPORT_SSF&&(t.exports=r)},1325:(t,e,r)=>{var i,o;i=[r(4692)],void 0===(o=function(t){return function(t){"use strict";function e(t){void 0===t&&(t=window.navigator.userAgent),t=t.toLowerCase();var e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],r=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(silk)/.exec(t)||/(android)/.exec(t)||/(win)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||/(playbook)/.exec(t)||/(bb)/.exec(t)||/(blackberry)/.exec(t)||[],i={},o={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",versionNumber:e[4]||e[2]||"0",platform:r[0]||""};if(o.browser&&(i[o.browser]=!0,i.version=o.version,i.versionNumber=parseInt(o.versionNumber,10)),o.platform&&(i[o.platform]=!0),(i.android||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"])&&(i.mobile=!0),(i.cros||i.mac||i.linux||i.win)&&(i.desktop=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){var a="msie";o.browser=a,i[a]=!0}if(i.edge){delete i.edge;var s="msedge";o.browser=s,i[s]=!0}if(i.safari&&i.blackberry){var n="blackberry";o.browser=n,i[n]=!0}if(i.safari&&i.playbook){var l="playbook";o.browser=l,i[l]=!0}if(i.bb){var c="blackberry";o.browser=c,i[c]=!0}if(i.opr){var h="opera";o.browser=h,i[h]=!0}if(i.safari&&i.android){var d="android";o.browser=d,i[d]=!0}if(i.safari&&i.kindle){var u="kindle";o.browser=u,i[u]=!0}if(i.safari&&i.silk){var p="silk";o.browser=p,i[p]=!0}return i.name=o.browser,i.platform=o.platform,i}return window.jQBrowser=e(window.navigator.userAgent),window.jQBrowser.uaMatch=e,t&&(t.browser=window.jQBrowser),window.jQBrowser}(t)}.apply(e,i))||(t.exports=o)},1163:(t,e,r)=>{var i,o,a;o=[r(4692)],void 0===(a="function"==typeof(i=function(t){function e(e){var s=e||window.event,n=l.call(arguments,1),c=0,d=0,u=0,p=0,_=0,g=0;if((e=t.event.fix(s)).type="mousewheel","detail"in s&&(u=-1*s.detail),"wheelDelta"in s&&(u=s.wheelDelta),"wheelDeltaY"in s&&(u=s.wheelDeltaY),"wheelDeltaX"in s&&(d=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(d=-1*u,u=0),c=0===u?d:u,"deltaY"in s&&(c=u=-1*s.deltaY),"deltaX"in s&&(d=s.deltaX,0===u&&(c=-1*d)),0!==u||0!==d){if(1===s.deltaMode){var f=t.data(this,"mousewheel-line-height");c*=f,u*=f,d*=f}else if(2===s.deltaMode){var m=t.data(this,"mousewheel-page-height");c*=m,u*=m,d*=m}if(p=Math.max(Math.abs(u),Math.abs(d)),(!a||a>p)&&(a=p,i(s,p)&&(a/=40)),i(s,p)&&(c/=40,d/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/a),d=Math[d>=1?"floor":"ceil"](d/a),u=Math[u>=1?"floor":"ceil"](u/a),h.settings.normalizeOffset&&this.getBoundingClientRect){var C=this.getBoundingClientRect();_=e.clientX-C.left,g=e.clientY-C.top}return e.deltaX=d,e.deltaY=u,e.deltaFactor=a,e.offsetX=_,e.offsetY=g,e.deltaMode=0,n.unshift(e,c,d,u),o&&clearTimeout(o),o=setTimeout(r,200),(t.event.dispatch||t.event.handle).apply(this,n)}}function r(){a=null}function i(t,e){return h.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var o,a,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var c=s.length;c;)t.event.fixHooks[s[--c]]=t.event.mouseHooks;var h=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var r=n.length;r;)this.addEventListener(n[--r],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",h.getLineHeight(this)),t.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var r=n.length;r;)this.removeEventListener(n[--r],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var r=t(e),i=r["offsetParent"in t.fn?"offsetParent":"parent"]();return i.length||(i=t("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})?i.apply(e,o):i)||(t.exports=a)},706:(t,e,r)=>{var i,o,a,s,n,l;function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}s=document,n=Math,function(s){o=[r(4692)],void 0===(a="function"==typeof(i=s)?i.apply(e,o):i)||(t.exports=a)}((function(t){"use strict";var e,r,i,o,a,h,d,u,p,_,g,f,m,C,L,b,E,v,y,w,x,k,S,Q,q,T,A,R,O,D={},B=0;e=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:l,normalRangeMax:l,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:l,chartRangeMax:l,chartRangeMinX:l,chartRangeMaxX:l,tooltipFormat:new i('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:l,nullColor:l,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:l,chartRangeMin:l,chartRangeClip:!1,colorMap:l,tooltipFormat:new i('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new i('<span style="color: {{color}}">&#9679;</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:l,thresholdValue:0,chartRangeMax:l,chartRangeMin:l,chartRangeClip:!1,tooltipFormat:new i("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:l,tooltipFormat:new i("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new i('<span style="color: {{color}}">&#9679;</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:l,targetColor:"#4a2",chartRangeMax:l,chartRangeMin:l,tooltipFormat:new i("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},r=function(){var e,r;return e=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(e.prototype=t.extend(new arguments[0],arguments[arguments.length-1]),e._super=arguments[0].prototype):e.prototype=arguments[arguments.length-1],arguments.length>2&&((r=Array.prototype.slice.call(arguments,1,-1)).unshift(e.prototype),t.extend.apply(t,r))):e.prototype=arguments[0],e.prototype.cls=e,e},t.SPFormatClass=i=r({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,r){var i,o,a,s,n,c=this,h=t;return this.format.replace(this.fre,(function(){return o=arguments[1],a=arguments[3],(i=c.precre.exec(o))?(n=i[2],o=i[1]):n=!1,(s=h[o])===l?"":a&&e&&e[a]?e[a].get?e[a].get(s)||s:e[a][s]||s:(p(s)&&(s=r.get("numberFormatter")?r.get("numberFormatter")(s):m(s,n,r.get("numberDigitGroupCount"),r.get("numberDigitGroupSep"),r.get("numberDecimalMark"))),s)}))}}),t.spformat=function(t,e){return new i(t,e)},o=function(t,e,r){return t<e?e:t>r?r:t},a=function(t,e){var r;return 2===e?(r=n.floor(t.length/2),t.length%2?t[r]:(t[r-1]+t[r])/2):t.length%2?(r=(t.length*e+e)/4)%1?(t[n.floor(r)]+t[n.floor(r)-1])/2:t[r-1]:(r=(t.length*e+2)/4)%1?(t[n.floor(r)]+t[n.floor(r)-1])/2:t[r-1]},h=function(t){var e;switch(t){case"undefined":t=l;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:t==(e=parseFloat(t))&&(t=e)}return t},d=function(t){var e,r=[];for(e=t.length;e--;)r[e]=h(t[e]);return r},u=function(t,e){var r,i,o=[];for(r=0,i=t.length;r<i;r++)t[r]!==e&&o.push(t[r]);return o},p=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},m=function(e,r,i,o,a){var s,n;for(e=(!1===r?parseFloat(e).toString():e.toFixed(r)).split(""),(s=(s=t.inArray(".",e))<0?e.length:s)<e.length&&(e[s]=a),n=s-i;n>0;n-=i)e.splice(n,0,o);return e.join("")},_=function(t,e,r){var i;for(i=e.length;i--;)if((!r||null!==e[i])&&e[i]!==t)return!1;return!0},f=function(e){return t.isArray(e)?e:[e]},g=function(t){var e;s.createStyleSheet?s.createStyleSheet().cssText=t:((e=s.createElement("style")).type="text/css",s.getElementsByTagName("head")[0].appendChild(e),e["string"==typeof s.body.style.WebkitAppearance?"innerText":"innerHTML"]=t)},t.fn.simpledraw=function(e,r,i,o){var a,n;if(i&&(a=this.data("_jqs_vcanvas")))return a;if(!1===t.fn.sparkline.canvas)return!1;if(t.fn.sparkline.canvas===l){var c=s.createElement("canvas");if(c.getContext&&c.getContext("2d"))t.fn.sparkline.canvas=function(t,e,r,i){return new A(t,e,r,i)};else{if(!s.namespaces||s.namespaces.v)return t.fn.sparkline.canvas=!1,!1;s.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),t.fn.sparkline.canvas=function(t,e,r,i){return new R(t,e,r)}}}return e===l&&(e=t(this).innerWidth()),r===l&&(r=t(this).innerHeight()),a=t.fn.sparkline.canvas(e,r,this,o),(n=t(this).data("_jqs_mhandler"))&&n.registerCanvas(a),a},t.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},t.RangeMapClass=C=r({init:function(t){var e,r,i=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&e.indexOf(":")>-1&&((r=e.split(":"))[0]=0===r[0].length?-1/0:parseFloat(r[0]),r[1]=0===r[1].length?1/0:parseFloat(r[1]),r[2]=t[e],i.push(r));this.map=t,this.rangelist=i||!1},get:function(t){var e,r,i,o=this.rangelist;if((i=this.map[t])!==l)return i;if(o)for(e=o.length;e--;)if((r=o[e])[0]<=t&&r[1]>=t)return r[2];return l}}),t.range_map=function(t){return new C(t)},L=r({init:function(e,r){var i=t(e);this.$el=i,this.options=r,this.currentPageX=0,this.currentPageY=0,this.el=e,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!r.get("disableTooltips"),this.highlightEnabled=!r.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(e){var r=t(e.canvas);this.canvas=e,this.$canvas=r,r.mouseenter(t.proxy(this.mouseenter,this)),r.mouseleave(t.proxy(this.mouseleave,this)),r.click(t.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=l)},mouseclick:function(e){var r=t.Event("sparklineClick");r.originalEvent=e,r.sparklines=this.splist,this.$el.trigger(r)},mouseenter:function(e){t(s.body).unbind("mousemove.jqs"),t(s.body).bind("mousemove.jqs",t.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=e.pageX,this.currentPageY=e.pageY,this.currentEl=e.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new b(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){t(s.body).unbind("mousemove.jqs");var e,r=this.splist,i=r.length,o=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),e=0;e<i;e++)r[e].clearRegionHighlight()&&(o=!0);o&&this.canvas.render()},mousemove:function(t){this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,this.tooltip&&this.tooltip.updatePosition(t.pageX,t.pageY),this.updateDisplay()},updateDisplay:function(){var e,r,i,o,a=this.splist,s=a.length,n=!1,l=this.$canvas.offset(),c=this.currentPageX-l.left,h=this.currentPageY-l.top;if(this.over){for(r=0;r<s;r++)(i=a[r].setRegionHighlight(this.currentEl,c,h))&&(n=!0);if(n){if((o=t.Event("sparklineRegionChange")).sparklines=this.splist,this.$el.trigger(o),this.tooltip){for(e="",r=0;r<s;r++)e+=a[r].getCurrentRegionTooltip();this.tooltip.setContent(e)}this.disableHighlight||this.canvas.render()}null===i&&this.mouseleave()}}}),b=r({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(e){var r,i=e.get("tooltipClassname","jqstooltip"),o=this.sizeStyle;this.container=e.get("tooltipContainer")||s.body,this.tooltipOffsetX=e.get("tooltipOffsetX",10),this.tooltipOffsetY=e.get("tooltipOffsetY",12),t("#jqssizetip").remove(),t("#jqstooltip").remove(),this.sizetip=t("<div/>",{id:"jqssizetip",style:o,class:i}),this.tooltip=t("<div/>",{id:"jqstooltip",class:i}).appendTo(this.container),r=this.tooltip.offset(),this.offsetLeft=r.left,this.offsetTop=r.top,this.hidden=!0,t(window).unbind("resize.jqs scroll.jqs"),t(window).bind("resize.jqs scroll.jqs",t.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=t(window).scrollTop(),this.scrollLeft=t(window).scrollLeft(),this.scrollRight=this.scrollLeft+t(window).width(),this.updatePosition()},getSize:function(t){this.sizetip.html(t).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(t){if(!t)return this.tooltip.css("visibility","hidden"),void(this.hidden=!0);this.getSize(t),this.tooltip.html(t).css({width:this.width,height:this.height,visibility:"visible"}),this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(t,e){if(t===l){if(this.mousex===l)return;t=this.mousex-this.offsetLeft,e=this.mousey-this.offsetTop}else this.mousex=t-=this.offsetLeft,this.mousey=e-=this.offsetTop;this.height&&this.width&&!this.hidden&&(e-=this.height+this.tooltipOffsetY,t+=this.tooltipOffsetX,e<this.scrollTop&&(e=this.scrollTop),t<this.scrollLeft?t=this.scrollLeft:t+this.width>this.scrollRight&&(t=this.scrollRight-this.width),this.tooltip.css({left:t,top:e}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=l,t(window).unbind("resize.jqs scroll.jqs")}}),t((function(){g('.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}')})),O=[],t.fn.sparkline=function(e,r){return this.each((function(){var i,o,a=new t.fn.sparkline.options(this,r),n=t(this);if(i=function(){var r,i,o,c,h,d,u;"html"===e||e===l?((u=this.getAttribute(a.get("tagValuesAttribute")))!==l&&null!==u||(u=n.html()),r=u.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):r=e,i="auto"===a.get("width")?r.length*a.get("defaultPixelsPerValue"):a.get("width"),"auto"===a.get("height")?a.get("composite")&&t.data(this,"_jqs_vcanvas")||((c=s.createElement("span")).innerHTML="a",n.html(c),o=t(c).innerHeight()||t(c).height(),t(c).remove(),c=null):o=a.get("height"),a.get("disableInteraction")?h=!1:(h=t.data(this,"_jqs_mhandler"))?a.get("composite")||h.reset():(h=new L(this,a),t.data(this,"_jqs_mhandler",h)),!a.get("composite")||t.data(this,"_jqs_vcanvas")?((d=new(t.fn.sparkline[a.get("type")])(this,r,a,i,o)).render(),h&&h.registerSparkline(d)):t.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),t.data(this,"_jqs_errnotify",!0))},t(this).html()&&!a.get("disableHiddenCheck")&&t(this).is(":hidden")||!t(this).parents("body").length){if(!a.get("composite")&&t.data(this,"_jqs_pending"))for(o=O.length;o;o--)O[o-1][0]==this&&O.splice(o-1,1);O.push([this,i]),t.data(this,"_jqs_pending",!0)}else i.call(this)}))},t.fn.sparkline.defaults=e(),t.sparkline_display_visible=function(){var e,r,i,o=[];for(r=0,i=O.length;r<i;r++)e=O[r][0],t(e).is(":visible")&&!t(e).parents().is(":hidden")?(O[r][1].call(e),t.data(O[r][0],"_jqs_pending",!1),o.push(r)):!t(e).closest("html").length&&!t.data(e,"_jqs_pending")&&(t.data(O[r][0],"_jqs_pending",!1),o.push(r));for(r=o.length;r;r--)O.splice(o[r-1],1)},t.fn.sparkline.options=r({init:function(e,r){var i,o,a,s;this.userOptions=r=r||{},this.tag=e,this.tagValCache={},a=(o=t.fn.sparkline.defaults).common,this.tagOptionsPrefix=r.enableTagOptions&&(r.tagOptionsPrefix||a.tagOptionsPrefix),i=(s=this.getTagSetting("type"))===D?o[r.type||a.type]:o[s],this.mergedOptions=t.extend({},a,i,r)},getTagSetting:function(t){var e,r,i,o,a=this.tagOptionsPrefix;if(!1===a||a===l)return D;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if((e=this.tag.getAttribute(a+t))===l||null===e)e=D;else if("["===e.substr(0,1))for(r=(e=e.substr(1,e.length-2).split(",")).length;r--;)e[r]=h(e[r].replace(/(^\s*)|(\s*$)/g,""));else if("{"===e.substr(0,1))for(i=e.substr(1,e.length-2).split(","),e={},r=i.length;r--;)e[(o=i[r].split(":",2))[0].replace(/(^\s*)|(\s*$)/g,"")]=h(o[1].replace(/(^\s*)|(\s*$)/g,""));else e=h(e);this.tagValCache.key=e}return e},get:function(t,e){var r,i=this.getTagSetting(t);return i!==D?i:(r=this.mergedOptions[t])===l?e:r}}),t.fn.sparkline._base=r({disabled:!1,init:function(e,r,i,o,a){this.el=e,this.$el=t(e),this.values=r,this.options=i,this.width=o,this.height=a,this.currentRegion=l},initTarget:function(){var t=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),t))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(t,e){},setRegionHighlight:function(t,e,r){var i,o=this.currentRegion,a=!this.options.get("disableHighlight");return e>this.canvasWidth||r>this.canvasHeight||e<0||r<0?null:o!==(i=this.getRegion(t,e,r))&&(o!==l&&a&&this.removeHighlight(),this.currentRegion=i,i!==l&&a&&this.renderHighlight(),!0)},clearRegionHighlight:function(){return this.currentRegion!==l&&(this.removeHighlight(),this.currentRegion=l,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var e,r,o,a,s,n,c,h,d,u,p,_,g,f,m=this.options,C="",L=[];if(this.currentRegion===l)return"";if(e=this.getCurrentRegionFields(),p=m.get("tooltipFormatter"))return p(this,m,e);if(m.get("tooltipChartTitle")&&(C+='<div class="jqs jqstitle">'+m.get("tooltipChartTitle")+"</div>\n"),!(r=this.options.get("tooltipFormat")))return"";if(t.isArray(r)||(r=[r]),t.isArray(e)||(e=[e]),c=this.options.get("tooltipFormatFieldlist"),h=this.options.get("tooltipFormatFieldlistKey"),c&&h){for(d=[],n=e.length;n--;)u=e[n][h],-1!=(f=t.inArray(u,c))&&(d[f]=e[n]);e=d}for(o=r.length,g=e.length,n=0;n<o;n++)for("string"==typeof(_=r[n])&&(_=new i(_)),a=_.fclass||"jqsfield",f=0;f<g;f++)e[f].isNull&&m.get("tooltipSkipNull")||(t.extend(e[f],{prefix:m.get("tooltipPrefix"),suffix:m.get("tooltipSuffix")}),s=_.render(e[f],m.get("tooltipValueLookups"),m),L.push('<div class="'+a+'">'+s+"</div>"));return L.length?C+L.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,e){var r,i,a,s,l=e.get("highlightColor"),c=e.get("highlightLighten");if(l)return l;if(c&&(r=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t))){for(a=[],i=4===t.length?16:1,s=0;s<3;s++)a[s]=o(n.round(parseInt(r[s+1],16)*i*c),0,255);return"rgb("+a.join(",")+")"}return t}}),E={changeHighlight:function(e){var r,i=this.currentRegion,o=this.target,a=this.regionShapes[i];a&&(r=this.renderRegion(i,e),t.isArray(r)||t.isArray(a)?(o.replaceWithShapes(a,r),this.regionShapes[i]=t.map(r,(function(t){return t.id}))):(o.replaceWithShape(a,r),this.regionShapes[i]=r.id))},render:function(){var e,r,i,o,a=this.values,s=this.target,n=this.regionShapes;if(this.cls._super.render.call(this)){for(i=a.length;i--;)if(e=this.renderRegion(i))if(t.isArray(e)){for(r=[],o=e.length;o--;)e[o].append(),r.push(e[o].id);n[i]=r}else e.append(),n[i]=e.id;else n[i]=null;s.render()}}},t.fn.sparkline.line=v=r(t.fn.sparkline._base,{type:"line",init:function(t,e,r,i,o){v._super.init.call(this,t,e,r,i,o),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(t,e,r){var i,o=this.regionMap;for(i=o.length;i--;)if(null!==o[i]&&e>=o[i][0]&&e<=o[i][1])return o[i][2];return l},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:null===this.yvalues[t],x:this.xvalues[t],y:this.yvalues[t],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:t}},renderHighlight:function(){var t,e,r=this.currentRegion,i=this.target,o=this.vertices[r],a=this.options,s=a.get("spotRadius"),n=a.get("highlightSpotColor"),c=a.get("highlightLineColor");o&&(s&&n&&(t=i.drawCircle(o[0],o[1],s,l,n),this.highlightSpotId=t.id,i.insertAfterShape(this.lastShapeId,t)),c&&(e=i.drawLine(o[0],this.canvasTop,o[0],this.canvasTop+this.canvasHeight,c),this.highlightLineId=e.id,i.insertAfterShape(this.lastShapeId,e)))},removeHighlight:function(){var t=this.target;this.highlightSpotId&&(t.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(t.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){var t,e,r,i,o,a=this.values,s=a.length,l=this.xvalues,h=this.yvalues,d=this.yminmax;for(t=0;t<s;t++)e=a[t],r="string"==typeof a[t],i="object"==c(a[t])&&a[t]instanceof Array,o=r&&a[t].split(":"),r&&2===o.length?(l.push(Number(o[0])),h.push(Number(o[1])),d.push(Number(o[1]))):i?(l.push(e[0]),h.push(e[1]),d.push(e[1])):(l.push(t),null===a[t]||"null"===a[t]?h.push(null):(h.push(Number(e)),d.push(Number(e))));this.options.get("xvalues")&&(l=this.options.get("xvalues")),this.maxy=this.maxyorg=n.max.apply(n,d),this.miny=this.minyorg=n.min.apply(n,d),this.maxx=n.max.apply(n,l),this.minx=n.min.apply(n,l),this.xvalues=l,this.yvalues=h,this.yminmax=d},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),r=t.get("normalRangeMax");e!==l&&(e<this.miny&&(this.miny=e),r>this.maxy&&(this.maxy=r)),t.get("chartRangeMin")!==l&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),t.get("chartRangeMax")!==l&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),t.get("chartRangeMinX")!==l&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),t.get("chartRangeMaxX")!==l&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,e,r,i,o){var a=this.options.get("normalRangeMin"),s=this.options.get("normalRangeMax"),c=e+n.round(r-r*((s-this.miny)/o)),h=n.round(r*(s-a)/o);this.target.drawRect(t,c,i,h,l,this.options.get("normalRangeColor")).append()},render:function(){var e,r,i,o,a,s,c,h,d,u,p,_,g,f,m,L,b,E,y,w,x,k,S,Q,q=this.options,T=this.target,A=this.canvasWidth,R=this.canvasHeight,O=this.vertices,D=q.get("spotRadius"),B=this.regionMap;if(v._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),k=this.xvalues,S=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(o=a=0,e=this.maxx-this.minx==0?1:this.maxx-this.minx,r=this.maxy-this.miny==0?1:this.maxy-this.miny,i=this.yvalues.length-1,D&&(A<4*D||R<4*D)&&(D=0),D&&(((w=q.get("highlightSpotColor")&&!q.get("disableInteraction"))||q.get("minSpotColor")||q.get("spotColor")&&S[i]===this.miny)&&(R-=n.ceil(D)),(w||q.get("maxSpotColor")||q.get("spotColor")&&S[i]===this.maxy)&&(R-=n.ceil(D),o+=n.ceil(D)),(w||(q.get("minSpotColor")||q.get("maxSpotColor"))&&(S[0]===this.miny||S[0]===this.maxy))&&(a+=n.ceil(D),A-=n.ceil(D)),(w||q.get("spotColor")||q.get("minSpotColor")||q.get("maxSpotColor")&&(S[i]===this.miny||S[i]===this.maxy))&&(A-=n.ceil(D))),R--,q.get("normalRangeMin")!==l&&!q.get("drawNormalOnTop")&&this.drawNormalRange(a,o,R,A,r),h=[c=[]],g=f=null,m=S.length,Q=0;Q<m;Q++)d=k[Q],p=k[Q+1],u=S[Q],f=(_=a+n.round((d-this.minx)*(A/e)))+((Q<m-1?a+n.round((p-this.minx)*(A/e)):A)-_)/2,B[Q]=[g||0,f,Q],g=f,null===u?Q&&(null!==S[Q-1]&&(c=[],h.push(c)),O.push(null)):(u<this.miny&&(u=this.miny),u>this.maxy&&(u=this.maxy),c.length||c.push([_,o+R]),s=[_,o+n.round(R-R*((u-this.miny)/r))],c.push(s),O.push(s));for(L=[],b=[],E=h.length,Q=0;Q<E;Q++)(c=h[Q]).length&&(q.get("fillColor")&&(c.push([c[c.length-1][0],o+R]),b.push(c.slice(0)),c.pop()),c.length>2&&(c[0]=[c[0][0],c[1][1]]),L.push(c));for(E=b.length,Q=0;Q<E;Q++)T.drawShape(b[Q],q.get("fillColor"),q.get("fillColor")).append();for(q.get("normalRangeMin")!==l&&q.get("drawNormalOnTop")&&this.drawNormalRange(a,o,R,A,r),E=L.length,Q=0;Q<E;Q++)T.drawShape(L[Q],q.get("lineColor"),l,q.get("lineWidth")).append();if(D&&q.get("valueSpots"))for((y=q.get("valueSpots")).get===l&&(y=new C(y)),Q=0;Q<m;Q++)(x=y.get(S[Q]))&&T.drawCircle(a+n.round((k[Q]-this.minx)*(A/e)),o+n.round(R-R*((S[Q]-this.miny)/r)),D,l,x).append();D&&q.get("spotColor")&&null!==S[i]&&T.drawCircle(a+n.round((k[k.length-1]-this.minx)*(A/e)),o+n.round(R-R*((S[i]-this.miny)/r)),D,l,q.get("spotColor")).append(),this.maxy!==this.minyorg&&(D&&q.get("minSpotColor")&&(d=k[t.inArray(this.minyorg,S)],T.drawCircle(a+n.round((d-this.minx)*(A/e)),o+n.round(R-R*((this.minyorg-this.miny)/r)),D,l,q.get("minSpotColor")).append()),D&&q.get("maxSpotColor")&&(d=k[t.inArray(this.maxyorg,S)],T.drawCircle(a+n.round((d-this.minx)*(A/e)),o+n.round(R-R*((this.maxyorg-this.miny)/r)),D,l,q.get("maxSpotColor")).append())),this.lastShapeId=T.getLastShapeId(),this.canvasTop=o,T.render()}}}),t.fn.sparkline.bar=y=r(t.fn.sparkline._base,E,{type:"bar",init:function(e,r,i,a,s){var c,p,_,g,f,m,L,b,E,v,w,x,k,S,Q,q,T,A,R,O,D,B=parseInt(i.get("barWidth"),10),I=parseInt(i.get("barSpacing"),10),N=i.get("chartRangeMin"),P=i.get("chartRangeMax"),M=i.get("chartRangeClip"),H=1/0,U=-1/0;for(y._super.init.call(this,e,r,i,a,s),m=0,L=r.length;m<L;m++)((c="string"==typeof(O=r[m])&&O.indexOf(":")>-1)||t.isArray(O))&&(Q=!0,c&&(O=r[m]=d(O.split(":"))),O=u(O,null),(p=n.min.apply(n,O))<H&&(H=p),(_=n.max.apply(n,O))>U&&(U=_));this.stacked=Q,this.regionShapes={},this.barWidth=B,this.barSpacing=I,this.totalBarWidth=B+I,this.width=a=r.length*B+(r.length-1)*I,this.initTarget(),M&&(k=N===l?-1/0:N,S=P===l?1/0:P),f=[],g=Q?[]:f;var F=[],z=[];for(m=0,L=r.length;m<L;m++)if(Q)for(q=r[m],r[m]=R=[],F[m]=0,g[m]=z[m]=0,T=0,A=q.length;T<A;T++)null!==(O=R[T]=M?o(q[T],k,S):q[T])&&(O>0&&(F[m]+=O),H<0&&U>0?O<0?z[m]+=n.abs(O):g[m]+=O:g[m]+=n.abs(O-(O<0?U:H)),f.push(O));else O=M?o(r[m],k,S):r[m],null!==(O=r[m]=h(O))&&f.push(O);this.max=x=n.max.apply(n,f),this.min=w=n.min.apply(n,f),this.stackMax=U=Q?n.max.apply(n,F):x,this.stackMin=H=Q?n.min.apply(n,f):w,i.get("chartRangeMin")!==l&&(i.get("chartRangeClip")||i.get("chartRangeMin")<w)&&(w=i.get("chartRangeMin")),i.get("chartRangeMax")!==l&&(i.get("chartRangeClip")||i.get("chartRangeMax")>x)&&(x=i.get("chartRangeMax")),this.zeroAxis=E=i.get("zeroAxis",!0),v=w<=0&&x>=0&&E?0:0==E||w>0?w:x,this.xaxisOffset=v,b=Q?n.max.apply(n,g)+n.max.apply(n,z):x-w,this.canvasHeightEf=E&&w<0?this.canvasHeight-2:this.canvasHeight-1,w<v?(D=((Q&&x>=0?U:x)-v)/b*this.canvasHeight)!==n.ceil(D)&&(this.canvasHeightEf-=2,D=n.ceil(D)):D=this.canvasHeight,this.yoffset=D,t.isArray(i.get("colorMap"))?(this.colorMapByIndex=i.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=i.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===l&&(this.colorMapByValue=new C(this.colorMapByValue))),this.range=b},getRegion:function(t,e,r){var i=n.floor(e/this.totalBarWidth);return i<0||i>=this.values.length?l:i},getCurrentRegionFields:function(){var t,e,r=this.currentRegion,i=f(this.values[r]),o=[];for(e=i.length;e--;)t=i[e],o.push({isNull:null===t,value:t,color:this.calcColor(e,t,r),offset:r});return o},calcColor:function(e,r,i){var o,a,s=this.colorMapByIndex,n=this.colorMapByValue,c=this.options;return o=this.stacked?c.get("stackedBarColor"):r<0?c.get("negBarColor"):c.get("barColor"),0===r&&c.get("zeroColor")!==l&&(o=c.get("zeroColor")),n&&(a=n.get(r))?o=a:s&&s.length>i&&(o=s[i]),t.isArray(o)?o[e%o.length]:o},renderRegion:function(e,r){var i,o,a,s,c,h,d,u,p,g,f=this.values[e],m=this.options,C=this.xaxisOffset,L=[],b=this.range,E=this.stacked,v=this.target,y=e*this.totalBarWidth,w=this.canvasHeightEf,x=this.yoffset;if(d=(f=t.isArray(f)?f:[f]).length,u=f[0],s=_(null,f),g=_(C,f,!0),s)return m.get("nullColor")?(a=r?m.get("nullColor"):this.calcHighlightColor(m.get("nullColor"),m),i=x>0?x-1:x,v.drawRect(y,i,this.barWidth-1,0,a,a)):l;for(c=x,h=0;h<d;h++){if(u=f[h],E&&u===C){if(!g||p)continue;p=!0}o=b>0?n.floor(w*(n.abs(u-C)/b))+1:1,u<C||u===C&&0===x?(i=c,c+=o):(i=x-o,x-=o),a=this.calcColor(h,u,e),r&&(a=this.calcHighlightColor(a,m)),L.push(v.drawRect(y,i,this.barWidth-1,o-1,a,a))}return 1===L.length?L[0]:L}}),t.fn.sparkline.tristate=w=r(t.fn.sparkline._base,E,{type:"tristate",init:function(e,r,i,o,a){var s=parseInt(i.get("barWidth"),10),n=parseInt(i.get("barSpacing"),10);w._super.init.call(this,e,r,i,o,a),this.regionShapes={},this.barWidth=s,this.barSpacing=n,this.totalBarWidth=s+n,this.values=t.map(r,Number),this.width=o=r.length*s+(r.length-1)*n,t.isArray(i.get("colorMap"))?(this.colorMapByIndex=i.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=i.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===l&&(this.colorMapByValue=new C(this.colorMapByValue))),this.initTarget()},getRegion:function(t,e,r){return n.floor(e/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],color:this.calcColor(this.values[t],t),offset:t}},calcColor:function(t,e){var r,i=this.values,o=this.options,a=this.colorMapByIndex,s=this.colorMapByValue;return s&&(r=s.get(t))?r:a&&a.length>e?a[e]:i[e]<0?o.get("negBarColor"):i[e]>0?o.get("posBarColor"):o.get("zeroBarColor")},renderRegion:function(t,e){var r,i,o,a,s,l,c=this.values,h=this.options,d=this.target;if(r=d.pixelHeight,o=n.round(r/2),a=t*this.totalBarWidth,c[t]<0?(s=o,i=o-1):c[t]>0?(s=0,i=o-1):(s=o-1,i=2),null!==(l=this.calcColor(c[t],t)))return e&&(l=this.calcHighlightColor(l,h)),d.drawRect(a,s,this.barWidth-1,i-1,l,l)}}),t.fn.sparkline.discrete=x=r(t.fn.sparkline._base,E,{type:"discrete",init:function(e,r,i,o,a){x._super.init.call(this,e,r,i,o,a),this.regionShapes={},this.values=r=t.map(r,Number),this.min=n.min.apply(n,r),this.max=n.max.apply(n,r),this.range=this.max-this.min,this.width=o="auto"===i.get("width")?2*r.length:this.width,this.interval=n.floor(o/r.length),this.itemWidth=o/r.length,i.get("chartRangeMin")!==l&&(i.get("chartRangeClip")||i.get("chartRangeMin")<this.min)&&(this.min=i.get("chartRangeMin")),i.get("chartRangeMax")!==l&&(i.get("chartRangeClip")||i.get("chartRangeMax")>this.max)&&(this.max=i.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===i.get("lineHeight")?n.round(.3*this.canvasHeight):i.get("lineHeight"))},getRegion:function(t,e,r){return n.floor(e/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],offset:t}},renderRegion:function(t,e){var r,i,a,s,l=this.values,c=this.options,h=this.min,d=this.max,u=this.range,p=this.interval,_=this.target,g=this.canvasHeight,f=this.lineHeight,m=g-f;return i=o(l[t],h,d),s=t*p,r=n.round(m-m*((i-h)/u)),a=c.get("thresholdColor")&&i<c.get("thresholdValue")?c.get("thresholdColor"):c.get("lineColor"),e&&(a=this.calcHighlightColor(a,c)),_.drawLine(s,r,s,r+f,a)}}),t.fn.sparkline.bullet=k=r(t.fn.sparkline._base,{type:"bullet",init:function(t,e,r,i,o){var a,s,c;k._super.init.call(this,t,e,r,i,o),this.values=e=d(e),(c=e.slice())[0]=null===c[0]?c[2]:c[0],c[1]=null===e[1]?c[2]:c[1],a=n.min.apply(n,e),s=n.max.apply(n,e),a=r.get("base")===l?a<0?a:0:r.get("base"),this.min=a,this.max=s,this.range=s-a,this.shapes={},this.valueShapes={},this.regiondata={},this.width=i="auto"===r.get("width")?"4.0em":i,this.target=this.$el.simpledraw(i,o,r.get("composite")),e.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,r){var i=this.target.getShapeAt(t,e,r);return i!==l&&this.shapes[i]!==l?this.shapes[i]:l},getCurrentRegionFields:function(){var t=this.currentRegion;return{fieldkey:t.substr(0,1),value:this.values[t.substr(1)],region:t}},changeHighlight:function(t){var e,r=this.currentRegion,i=this.valueShapes[r];switch(delete this.shapes[i],r.substr(0,1)){case"r":e=this.renderRange(r.substr(1),t);break;case"p":e=this.renderPerformance(t);break;case"t":e=this.renderTarget(t)}this.valueShapes[r]=e.id,this.shapes[e.id]=r,this.target.replaceWithShape(i,e)},renderRange:function(t,e){var r=this.values[t],i=n.round(this.canvasWidth*((r-this.min)/this.range)),o=this.options.get("rangeColors")[t-2];return e&&(o=this.calcHighlightColor(o,this.options)),this.target.drawRect(0,0,i-1,this.canvasHeight-1,o,o)},renderPerformance:function(t){var e=this.values[1],r=n.round(this.canvasWidth*((e-this.min)/this.range)),i=this.options.get("performanceColor");return t&&(i=this.calcHighlightColor(i,this.options)),this.target.drawRect(0,n.round(.3*this.canvasHeight),r-1,n.round(.4*this.canvasHeight)-1,i,i)},renderTarget:function(t){var e=this.values[0],r=n.round(this.canvasWidth*((e-this.min)/this.range)-this.options.get("targetWidth")/2),i=n.round(.1*this.canvasHeight),o=this.canvasHeight-2*i,a=this.options.get("targetColor");return t&&(a=this.calcHighlightColor(a,this.options)),this.target.drawRect(r,i,this.options.get("targetWidth")-1,o-1,a,a)},render:function(){var t,e,r=this.values.length,i=this.target;if(k._super.render.call(this)){for(t=2;t<r;t++)e=this.renderRange(t).append(),this.shapes[e.id]="r"+t,this.valueShapes["r"+t]=e.id;null!==this.values[1]&&(e=this.renderPerformance().append(),this.shapes[e.id]="p1",this.valueShapes.p1=e.id),null!==this.values[0]&&(e=this.renderTarget().append(),this.shapes[e.id]="t0",this.valueShapes.t0=e.id),i.render()}}}),t.fn.sparkline.pie=S=r(t.fn.sparkline._base,{type:"pie",init:function(e,r,i,o,a){var s,l=0;if(S._super.init.call(this,e,r,i,o,a),this.shapes={},this.valueShapes={},this.values=r=t.map(r,Number),"auto"===i.get("width")&&(this.width=this.height),r.length>0)for(s=r.length;s--;)l+=r[s];this.total=l,this.initTarget(),this.radius=n.floor(n.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,r){var i=this.target.getShapeAt(t,e,r);return i!==l&&this.shapes[i]!==l?this.shapes[i]:l},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===l,value:this.values[t],percent:this.values[t]/this.total*100,color:this.options.get("sliceColors")[t%this.options.get("sliceColors").length],offset:t}},changeHighlight:function(t){var e=this.currentRegion,r=this.renderSlice(e,t),i=this.valueShapes[e];delete this.shapes[i],this.target.replaceWithShape(i,r),this.valueShapes[e]=r.id,this.shapes[r.id]=e},renderSlice:function(t,e){var r,i,o,a,s,c=this.target,h=this.options,d=this.radius,u=h.get("borderWidth"),p=h.get("offset"),_=2*n.PI,g=this.values,f=this.total,m=p?2*n.PI*(p/360):0;for(a=g.length,o=0;o<a;o++){if(r=m,i=m,f>0&&(i=m+_*(g[o]/f)),t===o)return s=h.get("sliceColors")[o%h.get("sliceColors").length],e&&(s=this.calcHighlightColor(s,h)),c.drawPieSlice(d,d,d-u,r,i,l,s);m=i}},render:function(){var t,e,r=this.target,i=this.values,o=this.options,a=this.radius,s=o.get("borderWidth");if(S._super.render.call(this)){for(s&&r.drawCircle(a,a,n.floor(a-s/2),o.get("borderColor"),l,s).append(),e=i.length;e--;)i[e]&&(t=this.renderSlice(e).append(),this.valueShapes[e]=t.id,this.shapes[t.id]=e);r.render()}}}),t.fn.sparkline.box=Q=r(t.fn.sparkline._base,{type:"box",init:function(e,r,i,o,a){Q._super.init.call(this,e,r,i,o,a),this.values=t.map(r,Number),this.width="auto"===i.get("width")?"4.0em":o,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var t=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return this.loutlier!==l&&t.push({field:"lo",value:this.loutlier}),this.routlier!==l&&t.push({field:"ro",value:this.routlier}),this.lwhisker!==l&&t.push({field:"lw",value:this.lwhisker}),this.rwhisker!==l&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,e,r,i,o,s,c,h,d,u,p,_=this.target,g=this.values,f=g.length,m=this.options,C=this.canvasWidth,L=this.canvasHeight,b=m.get("chartRangeMin")===l?n.min.apply(n,g):m.get("chartRangeMin"),E=m.get("chartRangeMax")===l?n.max.apply(n,g):m.get("chartRangeMax"),v=0;if(Q._super.render.call(this)){if(m.get("raw"))m.get("showOutliers")&&g.length>5?(e=g[0],t=g[1],i=g[2],o=g[3],s=g[4],c=g[5],h=g[6]):(t=g[0],i=g[1],o=g[2],s=g[3],c=g[4]);else if(g.sort((function(t,e){return t-e})),i=a(g,1),o=a(g,2),r=(s=a(g,3))-i,m.get("showOutliers")){for(t=c=l,d=0;d<f;d++)t===l&&g[d]>i-r*m.get("outlierIQR")&&(t=g[d]),g[d]<s+r*m.get("outlierIQR")&&(c=g[d]);e=g[0],h=g[f-1]}else t=g[0],c=g[f-1];this.quartiles=[i,o,s],this.lwhisker=t,this.rwhisker=c,this.loutlier=e,this.routlier=h,p=C/(E-b+1),m.get("showOutliers")&&(v=n.ceil(m.get("spotRadius")),p=(C-=2*n.ceil(m.get("spotRadius")))/(E-b+1),e<t&&_.drawCircle((e-b)*p+v,L/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append(),h>c&&_.drawCircle((h-b)*p+v,L/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append()),_.drawRect(n.round((i-b)*p+v),n.round(.1*L),n.round((s-i)*p),n.round(.8*L),m.get("boxLineColor"),m.get("boxFillColor")).append(),_.drawLine(n.round((t-b)*p+v),n.round(L/2),n.round((i-b)*p+v),n.round(L/2),m.get("lineColor")).append(),_.drawLine(n.round((t-b)*p+v),n.round(L/4),n.round((t-b)*p+v),n.round(L-L/4),m.get("whiskerColor")).append(),_.drawLine(n.round((c-b)*p+v),n.round(L/2),n.round((s-b)*p+v),n.round(L/2),m.get("lineColor")).append(),_.drawLine(n.round((c-b)*p+v),n.round(L/4),n.round((c-b)*p+v),n.round(L-L/4),m.get("whiskerColor")).append(),_.drawLine(n.round((o-b)*p+v),n.round(.1*L),n.round((o-b)*p+v),n.round(.9*L),m.get("medianColor")).append(),m.get("target")&&(u=n.ceil(m.get("spotRadius")),_.drawLine(n.round((m.get("target")-b)*p+v),n.round(L/2-u),n.round((m.get("target")-b)*p+v),n.round(L/2+u),m.get("targetColor")).append(),_.drawLine(n.round((m.get("target")-b)*p+v-u),n.round(L/2),n.round((m.get("target")-b)*p+v+u),n.round(L/2),m.get("targetColor")).append()),_.render()}}}),q=r({init:function(t,e,r,i){this.target=t,this.id=e,this.type=r,this.args=i},append:function(){return this.target.appendShape(this),this}}),T=r({_pxregex:/(\d+)(px)?\s*$/i,init:function(e,r,i){e&&(this.width=e,this.height=r,this.target=i,this.lastShapeId=null,i[0]&&(i=i[0]),t.data(i,"_jqs_vcanvas",this))},drawLine:function(t,e,r,i,o,a){return this.drawShape([[t,e],[r,i]],o,a)},drawShape:function(t,e,r,i){return this._genShape("Shape",[t,e,r,i])},drawCircle:function(t,e,r,i,o,a){return this._genShape("Circle",[t,e,r,i,o,a])},drawPieSlice:function(t,e,r,i,o,a,s){return this._genShape("PieSlice",[t,e,r,i,o,a,s])},drawRect:function(t,e,r,i,o,a){return this._genShape("Rect",[t,e,r,i,o,a])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(e,r){t(r).html(e)},_calculatePixelDims:function(e,r,i){var o;o=this._pxregex.exec(r),this.pixelHeight=o?o[1]:t(i).height(),o=this._pxregex.exec(e),this.pixelWidth=o?o[1]:t(i).width()},_genShape:function(t,e){var r=B++;return e.unshift(r),new q(this,r,t,e)},appendShape:function(t){alert("appendShape not implemented")},replaceWithShape:function(t,e){alert("replaceWithShape not implemented")},insertAfterShape:function(t,e){alert("insertAfterShape not implemented")},removeShapeId:function(t){alert("removeShapeId not implemented")},getShapeAt:function(t,e,r){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),A=r(T,{init:function(e,r,i,o){A._super.init.call(this,e,r,i),this.canvas=s.createElement("canvas"),i[0]&&(i=i[0]),t.data(i,"_jqs_vcanvas",this),t(this.canvas).css({display:"inline-block",width:e,height:r,verticalAlign:"top"}),this._insert(this.canvas,i),this._calculatePixelDims(e,r,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=o,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=l,t(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,r){var i=this.canvas.getContext("2d");return t!==l&&(i.strokeStyle=t),i.lineWidth=r===l?1:r,e!==l&&(i.fillStyle=e),i},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=l},_drawShape:function(t,e,r,i,o){var a,s,n=this._getContext(r,i,o);for(n.beginPath(),n.moveTo(e[0][0]+.5,e[0][1]+.5),a=1,s=e.length;a<s;a++)n.lineTo(e[a][0]+.5,e[a][1]+.5);r!==l&&n.stroke(),i!==l&&n.fill(),this.targetX!==l&&this.targetY!==l&&n.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,e,r,i,o,a,s){var c=this._getContext(o,a,s);c.beginPath(),c.arc(e,r,i,0,2*n.PI,!1),this.targetX!==l&&this.targetY!==l&&c.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),o!==l&&c.stroke(),a!==l&&c.fill()},_drawPieSlice:function(t,e,r,i,o,a,s,n){var c=this._getContext(s,n);c.beginPath(),c.moveTo(e,r),c.arc(e,r,i,o,a,!1),c.lineTo(e,r),c.closePath(),s!==l&&c.stroke(),n&&c.fill(),this.targetX!==l&&this.targetY!==l&&c.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,r,i,o,a,s){return this._drawShape(t,[[e,r],[e+i,r],[e+i,r+o],[e,r+o],[e,r]],a,s)},appendShape:function(t){return this.shapes[t.id]=t,this.shapeseq.push(t.id),this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var r,i=this.shapeseq;for(this.shapes[e.id]=e,r=i.length;r--;)i[r]==t&&(i[r]=e.id);delete this.shapes[t]},replaceWithShapes:function(t,e){var r,i,o,a=this.shapeseq,s={};for(i=t.length;i--;)s[t[i]]=!0;for(i=a.length;i--;)s[r=a[i]]&&(a.splice(i,1),delete this.shapes[r],o=i);for(i=e.length;i--;)a.splice(o,0,e[i].id),this.shapes[e[i].id]=e[i]},insertAfterShape:function(t,e){var r,i=this.shapeseq;for(r=i.length;r--;)if(i[r]===t)return i.splice(r+1,0,e.id),void(this.shapes[e.id]=e)},removeShapeId:function(t){var e,r=this.shapeseq;for(e=r.length;e--;)if(r[e]===t){r.splice(e,1);break}delete this.shapes[t]},getShapeAt:function(t,e,r){return this.targetX=e,this.targetY=r,this.render(),this.currentTargetShapeId},render:function(){var t,e,r=this.shapeseq,i=this.shapes,o=r.length;for(this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),e=0;e<o;e++)this["_draw"+(t=i[r[e]]).type].apply(this,t.args);this.interact||(this.shapes={},this.shapeseq=[])}}),R=r(T,{init:function(e,r,i){var o;R._super.init.call(this,e,r,i),i[0]&&(i=i[0]),t.data(i,"_jqs_vcanvas",this),this.canvas=s.createElement("span"),t(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:e,height:r,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,i),this._calculatePixelDims(e,r,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,o='<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>',this.canvas.insertAdjacentHTML("beforeEnd",o),this.group=t(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,r,i,o){var a,s,n,c,h,d,u=[];for(d=0,h=e.length;d<h;d++)u[d]=e[d][0]+","+e[d][1];return a=u.splice(0,1),o=o===l?1:o,s=r===l?' stroked="false" ':' strokeWeight="'+o+'px" strokeColor="'+r+'" ',n=i===l?' filled="false"':' fillColor="'+i+'" filled="true" ',c=u[0]===u[u.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+s+n+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+a+" l "+u.join(", ")+" "+c+'e"> </v:shape>'},_drawCircle:function(t,e,r,i,o,a,s){return'<v:oval id="jqsshape'+t+'" '+(o===l?' stroked="false" ':' strokeWeight="'+s+'px" strokeColor="'+o+'" ')+(a===l?' filled="false"':' fillColor="'+a+'" filled="true" ')+' style="position:absolute;top:'+(r-=i)+"px; left:"+(e-=i)+"px; width:"+2*i+"px; height:"+2*i+'px"></v:oval>'},_drawPieSlice:function(t,e,r,i,o,a,s,c){var h,d,u,p,_,g,f;if(o===a)return"";if(a-o==2*n.PI&&(o=0,a=2*n.PI),d=e+n.round(n.cos(o)*i),u=r+n.round(n.sin(o)*i),p=e+n.round(n.cos(a)*i),_=r+n.round(n.sin(a)*i),d===p&&u===_){if(a-o<n.PI)return"";d=p=e+i,u=_=r}return d===p&&u===_&&a-o<n.PI?"":(h=[e-i,r-i,e+i,r+i,d,u,p,_],g=s===l?' stroked="false" ':' strokeWeight="1px" strokeColor="'+s+'" ',f=c===l?' filled="false"':' fillColor="'+c+'" filled="true" ','<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+g+f+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+e+","+r+" wa "+h.join(", ")+' x e"> </v:shape>')},_drawRect:function(t,e,r,i,o,a,s){return this._drawShape(t,[[e,r],[e,r+o],[e+i,r+o],[e+i,r],[e,r]],a,s)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(e,r){var i=t("#jqsshape"+e),o=this["_draw"+r.type].apply(this,r.args);i[0].outerHTML=o},replaceWithShapes:function(e,r){var i,o=t("#jqsshape"+e[0]),a="",s=r.length;for(i=0;i<s;i++)a+=this["_draw"+r[i].type].apply(this,r[i].args);for(o[0].outerHTML=a,i=1;i<e.length;i++)t("#jqsshape"+e[i]).remove()},insertAfterShape:function(e,r){var i=t("#jqsshape"+e),o=this["_draw"+r.type].apply(this,r.args);i[0].insertAdjacentHTML("afterEnd",o)},removeShapeId:function(e){var r=t("#jqsshape"+e);this.group.removeChild(r[0])},getShapeAt:function(t,e,r){return t.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})}))},745:(t,e,r)=>{var i,o,a;function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}o=[r(4692)],void 0===(a="function"==typeof(i=function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}function r(t){for(var e,r;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(r=parseInt(t.css("zIndex"),10),!isNaN(r)&&0!==r))return r;t=t.parent()}return 0}function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="rt-qc-ui-datepicker-div",this._inlineClass="rt-qc-ui-datepicker-inline",this._appendClass="rt-qc-ui-datepicker-append",this._triggerClass="rt-qc-ui-datepicker-trigger",this._dialogClass="rt-qc-ui-datepicker-dialog",this._disableClass="rt-qc-ui-datepicker-disabled",this._unselectableClass="rt-qc-ui-datepicker-unselectable",this._currentClass="rt-qc-ui-datepicker-current-day",this._dayOverClass="rt-qc-ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=o(t("<div id='"+this._mainDivId+"' class='rt-qc-ui-datepicker rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-helper-clearfix rt-qc-ui-corner-all'></div>"))}function o(e){var r="button, .rt-qc-ui-datepicker-prev, .rt-qc-ui-datepicker-next, .rt-qc-ui-datepicker-calendar td a";return e.on("mouseout",r,(function(){t(this).removeClass("rt-qc-ui-state-hover"),-1!==this.className.indexOf("rt-qc-ui-datepicker-prev")&&t(this).removeClass("rt-qc-ui-datepicker-prev-hover"),-1!==this.className.indexOf("rt-qc-ui-datepicker-next")&&t(this).removeClass("rt-qc-ui-datepicker-next-hover")})).on("mouseover",r,a)}function a(){t.datepicker._isDisabledDatepicker(p.inline?p.dpDiv.parent()[0]:p.input[0])||(t(this).parents(".rt-qc-ui-datepicker-calendar").find("a").removeClass("rt-qc-ui-state-hover"),t(this).addClass("rt-qc-ui-state-hover"),-1!==this.className.indexOf("rt-qc-ui-datepicker-prev")&&t(this).addClass("rt-qc-ui-datepicker-prev-hover"),-1!==this.className.indexOf("rt-qc-ui-datepicker-next")&&t(this).addClass("rt-qc-ui-datepicker-next-hover"))}function n(e,r){for(var i in t.extend(e,r),r)null==r[i]&&(e[i]=r[i]);return e}function l(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var c=0,h=Array.prototype.slice;t.cleanData=function(e){return function(r){var i,o,a;for(a=0;null!=(o=r[a]);a++)try{(i=t._data(o,"events"))&&i.remove&&t(o).triggerHandler("remove")}catch(t){}e(r)}}(t.cleanData),t.widget=function(e,r,i){var o,a,s,n={},l=e.split(".")[0],c=l+"-"+(e=e.split(".")[1]);return i||(i=r,r=t.Widget),t.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},o=t[l][e],a=t[l][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new a(t,e)},t.extend(a,o,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),(s=new r).options=t.widget.extend({},s.options),t.each(i,(function(e,i){return t.isFunction(i)?void(n[e]=function(){function t(){return r.prototype[e].apply(this,arguments)}function o(t){return r.prototype[e].apply(this,t)}return function(){var e,r=this._super,a=this._superApply;return this._super=t,this._superApply=o,e=i.apply(this,arguments),this._super=r,this._superApply=a,e}}()):void(n[e]=i)})),a.prototype=t.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||e},n,{constructor:a,namespace:l,widgetName:e,widgetFullName:c}),o?(t.each(o._childConstructors,(function(e,r){var i=r.prototype;t.widget(i.namespace+"."+i.widgetName,a,r._proto)})),delete o._childConstructors):r._childConstructors.push(a),t.widget.bridge(e,a),a},t.widget.extend=function(e){for(var r,i,o=h.call(arguments,1),a=0,s=o.length;s>a;a++)for(r in o[a])i=o[a][r],o[a].hasOwnProperty(r)&&void 0!==i&&(e[r]=t.isPlainObject(i)?t.isPlainObject(e[r])?t.widget.extend({},e[r],i):t.widget.extend({},i):i);return e},t.widget.bridge=function(e,r){var i=r.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=h.call(arguments,1),n=this;return a?this.length||"instance"!==o?this.each((function(){var r,a=t.data(this,i);return"instance"===o?(n=a,!1):a?t.isFunction(a[o])&&"_"!==o.charAt(0)?(r=a[o].apply(a,s))!==a&&void 0!==r?(n=r&&r.jquery?n.pushStack(r.get()):r,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):n=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new r(o,this))}))),n}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,r){e._removeClass(r,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,r){var i,o,a,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},i=e.split("."),e=i.shift(),i.length){for(o=s[e]=t.widget.extend({},this.options[e]),a=0;i.length-1>a;a++)o[i[a]]=o[i[a]]||{},o=o[i[a]];if(e=i.pop(),1===arguments.length)return void 0===o[e]?null:o[e];o[e]=r}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=r}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var r,i,o;for(r in e)o=this.classesElementLookup[r],e[r]!==this.options.classes[r]&&o&&o.length&&(i=t(o.get()),this._removeClass(o,r),i.addClass(this._classes({element:i,keys:r,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"rt-qc-ui-state-hover"),this._removeClass(this.focusable,null,"rt-qc-ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function r(r,a){var s,n;for(n=0;r.length>n;n++)s=o.classesElementLookup[r[n]]||t(),s=e.add?t(t.unique(s.get().concat(e.element.get()))):t(s.not(e.element).get()),o.classesElementLookup[r[n]]=s,i.push(r[n]),a&&e.classes[r[n]]&&i.push(e.classes[r[n]])}var i=[],o=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&r(e.keys.match(/\S+/g)||[],!0),e.extra&&r(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var r=this;t.each(r.classesElementLookup,(function(i,o){-1!==t.inArray(e.target,o)&&(r.classesElementLookup[i]=t(o.not(e.target).get()))}))},_removeClass:function(t,e,r){return this._toggleClass(t,e,r,!1)},_addClass:function(t,e,r){return this._toggleClass(t,e,r,!0)},_toggleClass:function(t,e,r,i){i="boolean"==typeof i?i:r;var o="string"==typeof t||null===t,a={extra:o?e:r,keys:o?t:e,element:o?this.element:t,add:i};return a.element.toggleClass(this._classes(a),i),this},_on:function(e,r,i){var o,a=this;"boolean"!=typeof e&&(i=r,r=e,e=!1),i?(r=o=t(r),this.bindings=this.bindings.add(r)):(i=r,r=this.element,o=this.widget()),t.each(i,(function(i,s){function n(){return e||!0!==a.options.disabled&&!t(this).hasClass("rt-qc-ui-state-disabled")?("string"==typeof s?a[s]:s).apply(a,arguments):void 0}"string"!=typeof s&&(n.guid=s.guid=s.guid||n.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+a.eventNamespace,h=l[2];h?o.on(c,h,n):r.on(c,n)}))},_off:function(e,r){r=(r||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(r).off(r),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function r(){return("string"==typeof t?i[t]:t).apply(i,arguments)}var i=this;return setTimeout(r,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"rt-qc-ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"rt-qc-ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"rt-qc-ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"rt-qc-ui-state-focus")}})},_trigger:function(e,r,i){var o,a,s=this.options[e];if(i=i||{},(r=t.Event(r)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),r.target=this.element[0],a=r.originalEvent)for(o in a)o in r||(r[o]=a[o]);return this.element.trigger(r,i),!(t.isFunction(s)&&!1===s.apply(this.element[0],[r].concat(i))||r.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,r){t.Widget.prototype["_"+e]=function(i,o,a){"string"==typeof o&&(o={effect:o});var s,n=o?!0===o||"number"==typeof o?r:o.effect||r:e;"number"==typeof(o=o||{})&&(o={duration:o}),s=!t.isEmptyObject(o),o.complete=a,o.delay&&i.delay(o.delay),s&&t.effects&&t.effects.effect[n]?i[e](o):n!==e&&i[n]?i[n](o.duration,o.easing,a):i.queue((function(r){t(this)[e](),a&&a.call(i[0]),r()}))}})),t.widget,function(){function e(t,e,r){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?r/100:1)]}function r(e,r){return parseInt(t.css(e,r),10)||0}function i(e){var r=e[0];return 9===r.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(r)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:r.preventDefault?{width:0,height:0,offset:{top:r.pageY,left:r.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var o,a=Math.max,s=Math.abs,n=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,d=/%$/,u=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==o)return o;var e,r,i=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=i.children()[0];return t("body").append(i),e=a.offsetWidth,i.css("overflow","scroll"),e===(r=a.offsetWidth)&&(r=i[0].clientWidth),i.remove(),o=e-r},getScrollInfo:function(e){var r=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===r||"auto"===r&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var r=t(e||window),i=t.isWindow(r[0]),o=!!r[0]&&9===r[0].nodeType;return{element:r,isWindow:i,isDocument:o,offset:i||o?{left:0,top:0}:t(e).offset(),scrollLeft:r.scrollLeft(),scrollTop:r.scrollTop(),width:r.outerWidth(),height:r.outerHeight()}}},t.fn.position=function(o){if(!o||!o.of)return u.apply(this,arguments);o=t.extend({},o);var d,p,_,g,f,m,C=t(o.of),L=t.position.getWithinInfo(o.within),b=t.position.getScrollInfo(L),E=(o.collision||"flip").split(" "),v={};return m=i(C),C[0].preventDefault&&(o.at="left top"),p=m.width,_=m.height,g=m.offset,f=t.extend({},g),t.each(["my","at"],(function(){var t,e,r=(o[this]||"").split(" ");1===r.length&&(r=n.test(r[0])?r.concat(["center"]):l.test(r[0])?["center"].concat(r):["center","center"]),r[0]=n.test(r[0])?r[0]:"center",r[1]=l.test(r[1])?r[1]:"center",t=c.exec(r[0]),e=c.exec(r[1]),v[this]=[t?t[0]:0,e?e[0]:0],o[this]=[h.exec(r[0])[0],h.exec(r[1])[0]]})),1===E.length&&(E[1]=E[0]),"right"===o.at[0]?f.left+=p:"center"===o.at[0]&&(f.left+=p/2),"bottom"===o.at[1]?f.top+=_:"center"===o.at[1]&&(f.top+=_/2),d=e(v.at,p,_),f.left+=d[0],f.top+=d[1],this.each((function(){var i,n,l=t(this),c=l.outerWidth(),h=l.outerHeight(),u=r(this,"marginLeft"),m=r(this,"marginTop"),y=c+u+r(this,"marginRight")+b.width,w=h+m+r(this,"marginBottom")+b.height,x=t.extend({},f),k=e(v.my,l.outerWidth(),l.outerHeight());"right"===o.my[0]?x.left-=c:"center"===o.my[0]&&(x.left-=c/2),"bottom"===o.my[1]?x.top-=h:"center"===o.my[1]&&(x.top-=h/2),x.left+=k[0],x.top+=k[1],i={marginLeft:u,marginTop:m},t.each(["left","top"],(function(e,r){t.ui.position[E[e]]&&t.ui.position[E[e]][r](x,{targetWidth:p,targetHeight:_,elemWidth:c,elemHeight:h,collisionPosition:i,collisionWidth:y,collisionHeight:w,offset:[d[0]+k[0],d[1]+k[1]],my:o.my,at:o.at,within:L,elem:l})})),o.using&&(n=function(t){var e=g.left-x.left,r=e+p-c,i=g.top-x.top,n=i+_-h,d={target:{element:C,left:g.left,top:g.top,width:p,height:_},element:{element:l,left:x.left,top:x.top,width:c,height:h},horizontal:0>r?"left":e>0?"right":"center",vertical:0>n?"top":i>0?"bottom":"middle"};c>p&&p>s(e+r)&&(d.horizontal="center"),h>_&&_>s(i+n)&&(d.vertical="middle"),d.important=a(s(e),s(r))>a(s(i),s(n))?"horizontal":"vertical",o.using.call(this,t,d)}),l.offset(t.extend(x,{using:n}))}))},t.ui.position={fit:{left:function(t,e){var r,i=e.within,o=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,n=t.left-e.collisionPosition.marginLeft,l=o-n,c=n+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&0>=c?(r=t.left+l+e.collisionWidth-s-o,t.left+=l-r):t.left=c>0&&0>=l?o:l>c?o+s-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=a(t.left-n,t.left)},top:function(t,e){var r,i=e.within,o=i.isWindow?i.scrollTop:i.offset.top,s=e.within.height,n=t.top-e.collisionPosition.marginTop,l=o-n,c=n+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&0>=c?(r=t.top+l+e.collisionHeight-s-o,t.top+=l-r):t.top=c>0&&0>=l?o:l>c?o+s-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=a(t.top-n,t.top)}},flip:{left:function(t,e){var r,i,o=e.within,a=o.offset.left+o.scrollLeft,n=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,d=c+e.collisionWidth-n-l,u="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,_=-2*e.offset[0];0>h?(0>(r=t.left+u+p+_+e.collisionWidth-n-a)||s(h)>r)&&(t.left+=u+p+_):d>0&&((i=t.left-e.collisionPosition.marginLeft+u+p+_-l)>0||d>s(i))&&(t.left+=u+p+_)},top:function(t,e){var r,i,o=e.within,a=o.offset.top+o.scrollTop,n=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-l,d=c+e.collisionHeight-n-l,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,_=-2*e.offset[1];0>h?(0>(i=t.top+u+p+_+e.collisionHeight-n-a)||s(h)>i)&&(t.top+=u+p+_):d>0&&((r=t.top-e.collisionPosition.marginTop+u+p+_-l)>0||d>s(r))&&(t.top+=u+p+_)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(r){return!!t.data(r,e)}})):function(e,r,i){return!!t.data(e,i[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".rt-qc-ui-disableSelection",(function(t){t.preventDefault()}))}}(),enableSelection:function(){return this.off(".rt-qc-ui-disableSelection")}}),t.ui.focusable=function(r,i){var o,a,s,n,l,c=r.nodeName.toLowerCase();return"area"===c?(a=(o=r.parentNode).name,!(!r.href||!a||"map"!==o.nodeName.toLowerCase())&&(s=t("img[usemap='#"+a+"']")).length>0&&s.is(":visible")):(/^(input|select|textarea|button|object)$/.test(c)?(n=!r.disabled)&&(l=t(r).closest("fieldset")[0])&&(n=!l.disabled):n="a"===c&&r.href||i,n&&t(r).is(":visible")&&e(t(r)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout((function(){var r=e.data("rt-qc-ui-form-reset-instances");t.each(r,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("rt-qc-ui-form-reset-instances")||[];t.length||this.form.on("reset.rt-qc-ui-form-reset",this._formResetHandler),t.push(this),this.form.data("rt-qc-ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("rt-qc-ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("rt-qc-ui-form-reset-instances",e):this.form.removeData("rt-qc-ui-form-reset-instances").off("reset.rt-qc-ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],(function(e,r){function i(e,r,i,a){return t.each(o,(function(){r-=parseFloat(t.css(e,"padding"+this))||0,i&&(r-=parseFloat(t.css(e,"border"+this+"Width"))||0),a&&(r-=parseFloat(t.css(e,"margin"+this))||0)})),r}var o="Width"===r?["Left","Right"]:["Top","Bottom"],a=r.toLowerCase(),s={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+r]=function(e){return void 0===e?s["inner"+r].call(this):this.each((function(){t(this).css(a,i(this,e)+"px")}))},t.fn["outer"+r]=function(e,o){return"number"!=typeof e?s["outer"+r].call(this,e):this.each((function(){t(this).css(a,i(this,e,!0,o)+"px")}))}})),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,r,i,o,a;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(o=this.eq(0).parents("label"),(i=this.attr("id"))&&(a=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),r="label[for='"+t.ui.escapeSelector(i)+"']",o=o.add(a.find(r).addBack(r))),this.pushStack(o))},t.fn.scrollParent=function(e){var r=this.css("position"),i="absolute"===r,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter((function(){var e=t(this);return(!i||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==r&&a.length?a:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var r=t.attr(e,"tabindex"),i=null!=r;return(!i||r>=0)&&t.ui.focusable(e,i)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each((function(){this.id||(this.id="rt-qc-ui-id-"+ ++t)}))}}(),removeUniqueId:function(){return this.each((function(){/^rt-qc-ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var d=!1;t(document).on("mouseup",(function(){d=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(r){return!0===t.data(r.target,e.widgetName+".preventClickEvent")?(t.removeData(r.target,e.widgetName+".preventClickEvent"),r.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!d){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var r=this,i=1===e.which,o=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){r.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return r._mouseMove(t)},this._mouseUpDelegate=function(t){return r._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),d=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,d=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,r,i){var o,a=t.ui[e].prototype;for(o in i)a.plugins[o]=a.plugins[o]||[],a.plugins[o].push([r,i[o]])},call:function(t,e,r,i){var o,a=t.plugins[e];if(a&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;a.length>o;o++)t.options[a[o][0]]&&a[o][1].apply(t.element,r)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(r){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("rt-qc-ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".rt-qc-ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var r=this.options;return!(this.helper||r.disabled||t(e.target).closest(".rt-qc-ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(this._blurActiveElement(e),this._blockFrames(!0===r.iframeFix?"iframe":r.iframeFix),0)))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var r=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(r).length||t.ui.safeBlur(r)},_mouseStart:function(e){var r=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"rt-qc-ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,r){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!r){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var r=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==r._trigger("stop",e)&&r._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".rt-qc-ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"rt-qc-ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"rt-qc-ui-draggable-handle")},_createHelper:function(e){var r=this.options,i=t.isFunction(r.helper),o=i?t(r.helper.apply(this.element[0],[e])):"clone"===r.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===r.appendTo?this.element[0].parentNode:r.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),r=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==r&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,r,i,o=this.options,a=this.document[0];return this.relativeContainer=null,o.containment?"window"===o.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===o.containment?void(this.containment=[0,0,t(a).width()-this.helperProportions.width-this.margins.left,(t(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):o.containment.constructor===Array?void(this.containment=o.containment):("parent"===o.containment&&(o.containment=this.helper[0].parentNode),void((i=(r=t(o.containment))[0])&&(e=/(scroll|auto)/.test(r.css("overflow")),this.containment=[(parseInt(r.css("borderLeftWidth"),10)||0)+(parseInt(r.css("paddingLeft"),10)||0),(parseInt(r.css("borderTopWidth"),10)||0)+(parseInt(r.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(r.css("borderRightWidth"),10)||0)-(parseInt(r.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(r.css("borderBottomWidth"),10)||0)-(parseInt(r.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=r))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var r="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*r,left:e.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*r}},_generatePosition:function(t,e){var r,i,o,a,s=this.options,n=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),r=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):r=this.containment,t.pageX-this.offset.click.left<r[0]&&(l=r[0]+this.offset.click.left),t.pageY-this.offset.click.top<r[1]&&(c=r[1]+this.offset.click.top),t.pageX-this.offset.click.left>r[2]&&(l=r[2]+this.offset.click.left),t.pageY-this.offset.click.top>r[3]&&(c=r[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,c=r?o-this.offset.click.top>=r[1]||o-this.offset.click.top>r[3]?o:o-this.offset.click.top>=r[1]?o-s.grid[1]:o+s.grid[1]:o,a=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=r?a-this.offset.click.left>=r[0]||a-this.offset.click.left>r[2]?a:a-this.offset.click.left>=r[0]?a-s.grid[0]:a+s.grid[0]:a),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"rt-qc-ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,r,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[r,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,r,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,r,i){var o=t.extend({},r,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each((function(){var r=t(this).sortable("instance");r&&!r.options.disabled&&(i.sortables.push(r),r.refreshPositions(),r._trigger("activate",e,o))}))},stop:function(e,r,i){var o=t.extend({},r,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,(function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))}))},drag:function(e,r,i){t.each(i.sortables,(function(){var o=!1,a=this;a.positionAbs=i.positionAbs,a.helperProportions=i.helperProportions,a.offset.click=i.offset.click,a._intersectsWith(a.containerCache)&&(o=!0,t.each(i.sortables,(function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&t.contains(a.element[0],this.element[0])&&(o=!1),o}))),o?(a.isOver||(a.isOver=1,i._parent=r.helper.parent(),a.currentItem=r.helper.appendTo(a.element).data("rt-qc-ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return r.helper[0]},e.target=a.currentItem[0],a._mouseCapture(e,!0),a._mouseStart(e,!0,!0),a.offset.click.top=i.offset.click.top,a.offset.click.left=i.offset.click.left,a.offset.parent.left-=i.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=i.offset.parent.top-a.offset.parent.top,i._trigger("toSortable",e),i.dropped=a.element,t.each(i.sortables,(function(){this.refreshPositions()})),i.currentItem=i.element,a.fromOutside=i),a.currentItem&&(a._mouseDrag(e),r.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",e,a._uiHash(a)),a._mouseStop(e,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),r.helper.appendTo(i._parent),i._refreshOffsets(e),r.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,r,i){var o=t("body"),a=i.options;o.css("cursor")&&(a._cursor=o.css("cursor")),o.css("cursor",a.cursor)},stop:function(e,r,i){var o=i.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,r,i){var o=t(r.helper),a=i.options;o.css("opacity")&&(a._opacity=o.css("opacity")),o.css("opacity",a.opacity)},stop:function(e,r,i){var o=i.options;o._opacity&&t(r.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,r){r.scrollParentNotHidden||(r.scrollParentNotHidden=r.helper.scrollParent(!1)),r.scrollParentNotHidden[0]!==r.document[0]&&"HTML"!==r.scrollParentNotHidden[0].tagName&&(r.overflowOffset=r.scrollParentNotHidden.offset())},drag:function(e,r,i){var o=i.options,a=!1,s=i.scrollParentNotHidden[0],n=i.document[0];s!==n&&"HTML"!==s.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+s.offsetHeight-e.pageY<o.scrollSensitivity?s.scrollTop=a=s.scrollTop+o.scrollSpeed:e.pageY-i.overflowOffset.top<o.scrollSensitivity&&(s.scrollTop=a=s.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+s.offsetWidth-e.pageX<o.scrollSensitivity?s.scrollLeft=a=s.scrollLeft+o.scrollSpeed:e.pageX-i.overflowOffset.left<o.scrollSensitivity&&(s.scrollLeft=a=s.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t(n).scrollTop()<o.scrollSensitivity?a=t(n).scrollTop(t(n).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(n).scrollTop())<o.scrollSensitivity&&(a=t(n).scrollTop(t(n).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(n).scrollLeft()<o.scrollSensitivity?a=t(n).scrollLeft(t(n).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(n).scrollLeft())<o.scrollSensitivity&&(a=t(n).scrollLeft(t(n).scrollLeft()+o.scrollSpeed)))),!1!==a&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,r,i){var o=i.options;i.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(rt-qc-ui-draggable)":o.snap).each((function(){var e=t(this),r=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:r.top,left:r.left})}))},drag:function(e,r,i){var o,a,s,n,l,c,h,d,u,p,_=i.options,g=_.snapTolerance,f=r.offset.left,m=f+i.helperProportions.width,C=r.offset.top,L=C+i.helperProportions.height;for(u=i.snapElements.length-1;u>=0;u--)c=(l=i.snapElements[u].left-i.margins.left)+i.snapElements[u].width,d=(h=i.snapElements[u].top-i.margins.top)+i.snapElements[u].height,l-g>m||f>c+g||h-g>L||C>d+g||!t.contains(i.snapElements[u].item.ownerDocument,i.snapElements[u].item)?(i.snapElements[u].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=!1):("inner"!==_.snapMode&&(o=g>=Math.abs(h-L),a=g>=Math.abs(d-C),s=g>=Math.abs(l-m),n=g>=Math.abs(c-f),o&&(r.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),a&&(r.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),s&&(r.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),n&&(r.position.left=i._convertPositionTo("relative",{top:0,left:c}).left)),p=o||a||s||n,"outer"!==_.snapMode&&(o=g>=Math.abs(h-C),a=g>=Math.abs(d-L),s=g>=Math.abs(l-f),n=g>=Math.abs(c-m),o&&(r.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),a&&(r.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),s&&(r.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),n&&(r.position.left=i._convertPositionTo("relative",{top:0,left:c-i.helperProportions.width}).left)),!i.snapElements[u].snapping&&(o||a||s||n||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=o||a||s||n||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,r,i){var o,a=i.options,s=t.makeArray(t(a.stack)).sort((function(e,r){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(r).css("zIndex"),10)||0)}));s.length&&(o=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each((function(e){t(this).css("zIndex",o+e)})),this.css("zIndex",o+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,r,i){var o=t(r.helper),a=i.options;o.css("zIndex")&&(a._zIndex=o.css("zIndex")),o.css("zIndex",a.zIndex)},stop:function(e,r,i){var o=i.options;o._zIndex&&t(r.helper).css("zIndex",o._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,r=this.options,i=r.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(r.scope),r.addClasses&&this._addClass("rt-qc-ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,r){if("accept"===e)this.accept=t.isFunction(r)?r:function(t){return t.is(r)};else if("scope"===e){var i=t.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(r)}this._super(e,r)},_activate:function(e){var r=t.ui.ddmanager.current;this._addActiveClass(),r&&this._trigger("activate",e,this.ui(r))},_deactivate:function(e){var r=t.ui.ddmanager.current;this._removeActiveClass(),r&&this._trigger("deactivate",e,this.ui(r))},_over:function(e){var r=t.ui.ddmanager.current;r&&(r.currentItem||r.element)[0]!==this.element[0]&&this.accept.call(this.element[0],r.currentItem||r.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(r)))},_out:function(e){var r=t.ui.ddmanager.current;r&&(r.currentItem||r.element)[0]!==this.element[0]&&this.accept.call(this.element[0],r.currentItem||r.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(r)))},_drop:function(e,r){var i=r||t.ui.ddmanager.current,o=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(rt-qc-ui-droppable)").not(".rt-qc-ui-draggable-dragging").each((function(){var r=t(this).droppable("instance");return r.options.greedy&&!r.options.disabled&&r.options.scope===i.options.scope&&r.accept.call(r.element[0],i.currentItem||i.element)&&u(i,t.extend(r,{offset:r.element.offset()}),r.options.tolerance,e)?(o=!0,!1):void 0})),!o&&!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("rt-qc-ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("rt-qc-ui-droppable-hover")},_addActiveClass:function(){this._addClass("rt-qc-ui-droppable-active")},_removeActiveClass:function(){this._removeClass("rt-qc-ui-droppable-active")}});var u=t.ui.intersect=function(){function t(t,e,r){return t>=e&&e+r>t}return function(e,r,i,o){if(!r.offset)return!1;var a=(e.positionAbs||e.position.absolute).left+e.margins.left,s=(e.positionAbs||e.position.absolute).top+e.margins.top,n=a+e.helperProportions.width,l=s+e.helperProportions.height,c=r.offset.left,h=r.offset.top,d=c+r.proportions().width,u=h+r.proportions().height;switch(i){case"fit":return a>=c&&d>=n&&s>=h&&u>=l;case"intersect":return a+e.helperProportions.width/2>c&&d>n-e.helperProportions.width/2&&s+e.helperProportions.height/2>h&&u>l-e.helperProportions.height/2;case"pointer":return t(o.pageY,h,r.proportions().height)&&t(o.pageX,c,r.proportions().width);case"touch":return(s>=h&&u>=s||l>=h&&u>=l||h>s&&l>u)&&(a>=c&&d>=a||n>=c&&d>=n||c>a&&n>d);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,r){var i,o,a=t.ui.ddmanager.droppables[e.options.scope]||[],s=r?r.type:null,n=(e.currentItem||e.element).find(":data(rt-qc-ui-droppable)").addBack();t:for(i=0;a.length>i;i++)if(!(a[i].options.disabled||e&&!a[i].accept.call(a[i].element[0],e.currentItem||e.element))){for(o=0;n.length>o;o++)if(n[o]===a[i].element[0]){a[i].proportions().height=0;continue t}a[i].visible="none"!==a[i].element.css("display"),a[i].visible&&("mousedown"===s&&a[i]._activate.call(a[i],r),a[i].offset=a[i].element.offset(),a[i].proportions({width:a[i].element[0].offsetWidth,height:a[i].element[0].offsetHeight}))}},drop:function(e,r){var i=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&u(e,this,this.options.tolerance,r)&&(i=this._drop.call(this,r)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,r)))})),i},dragStart:function(e,r){e.element.parentsUntil("body").on("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,r)}))},drag:function(e,r){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,r),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,o,a,s=u(e,this,this.options.tolerance,r),n=!s&&this.isover?"isout":s&&!this.isover?"isover":null;n&&(this.options.greedy&&(o=this.options.scope,(a=this.element.parents(":data(rt-qc-ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===o}))).length&&((i=t(a[0]).droppable("instance")).greedyChild="isover"===n)),i&&"isover"===n&&(i.isover=!1,i.isout=!0,i._out.call(i,r)),this[n]=!0,this["isout"===n?"isover":"isout"]=!1,this["isover"===n?"_over":"_out"].call(this,r),i&&"isout"===n&&(i.isout=!1,i.isover=!0,i._over.call(i,r)))}}))},dragStop:function(e,r){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,r)}},!1!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"rt-qc-ui-resizable-se":"rt-qc-ui-icon rt-qc-ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,r){if("hidden"===t(e).css("overflow"))return!1;var i=r&&"left"===r?"scrollLeft":"scrollTop",o=!1;return e[i]>0||(e[i]=1,o=e[i]>0,e[i]=0,o)},_create:function(){var e,r=this.options,i=this;this._addClass("rt-qc-ui-resizable"),t.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"rt-qc-ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='rt-qc-ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("rt-qc-ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),r.autoHide&&t(this.element).on("mouseenter",(function(){r.disabled||(i._removeClass("rt-qc-ui-resizable-autohide"),i._handles.show())})).on("mouseleave",(function(){r.disabled||i.resizing||(i._addClass("rt-qc-ui-resizable-autohide"),i._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,r=function(e){t(e).removeData("resizable").removeData("rt-qc-ui-resizable").off(".resizable").find(".rt-qc-ui-resizable-handle").remove()};return this.elementIsWrapper&&(r(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),r(this.originalElement),this},_setOption:function(t,e){"handles"===(this._super(t,e),t)&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var e,r,i,o,a,s=this.options,n=this;if(this.handles=s.handles||(t(".rt-qc-ui-resizable-handle",this.element).length?{n:".rt-qc-ui-resizable-n",e:".rt-qc-ui-resizable-e",s:".rt-qc-ui-resizable-s",w:".rt-qc-ui-resizable-w",se:".rt-qc-ui-resizable-se",sw:".rt-qc-ui-resizable-sw",ne:".rt-qc-ui-resizable-ne",nw:".rt-qc-ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},r=0;i.length>r;r++)o="rt-qc-ui-resizable-"+(e=t.trim(i[r])),a=t("<div>"),this._addClass(a,"rt-qc-ui-resizable-handle "+o),a.css({zIndex:s.zIndex}),this.handles[e]=".rt-qc-ui-resizable-"+e,this.element.append(a);this._renderAxis=function(e){var r,i,o,a;for(r in e=e||this.element,this.handles)this.handles[r].constructor===String?this.handles[r]=this.element.children(this.handles[r]).first().show():(this.handles[r].jquery||this.handles[r].nodeType)&&(this.handles[r]=t(this.handles[r]),this._on(this.handles[r],{mousedown:n._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=t(this.handles[r],this.element),a=/sw|ne|nw|se|n|s/.test(r)?i.outerHeight():i.outerWidth(),o=["padding",/ne|nw|n/.test(r)?"Top":/se|sw|s/.test(r)?"Bottom":/^e$/.test(r)?"Right":"Left"].join(""),e.css(o,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[r])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".rt-qc-ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){n.resizing||(this.className&&(a=this.className.match(/rt-qc-ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),n.axis=a&&a[1]?a[1]:"se")})),s.autoHide&&(this._handles.hide(),this._addClass("rt-qc-ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var r,i,o=!1;for(r in this.handles)((i=t(this.handles[r])[0])===e.target||t.contains(i,e.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(e){var r,i,o,a=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),r=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),a.containment&&(r+=t(a.containment).scrollLeft()||0,i+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:r,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:r,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".rt-qc-ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===o?this.axis+"-resize":o),this._addClass("rt-qc-ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var r,i,o=this.originalMousePosition,a=this.axis,s=e.pageX-o.left||0,n=e.pageY-o.top||0,l=this._change[a];return this._updatePrevProperties(),!!l&&(r=l.apply(this,[e,s,n]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(r=this._updateRatio(r,e)),r=this._respectSize(r,e),this._updateCache(r),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var r,i,o,a,s,n,l,c=this.options,h=this;return this._helper&&(o=(i=(r=this._proportionallyResizeElements).length&&/textarea/i.test(r[0].nodeName))&&this._hasScroll(r[0],"left")?0:h.sizeDiff.height,a=i?0:h.sizeDiff.width,s={width:h.helper.width()-a,height:h.helper.height()-o},n=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,l=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,c.animate||this.element.css(t.extend(s,{top:l,left:n})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("rt-qc-ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,r,i,o,a,s=this.options;a={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,i=a.minWidth/this.aspectRatio,r=a.maxHeight*this.aspectRatio,o=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),i>a.minHeight&&(a.minHeight=i),a.maxWidth>r&&(a.maxWidth=r),a.maxHeight>o&&(a.maxHeight=o)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,r=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(r.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(r.height-t.height),t.left=e.left+(r.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,r=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,s=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,n=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(r),h=/nw|ne|n/.test(r);return a&&(t.width=e.minWidth),s&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),a&&c&&(t.left=n-e.minWidth),i&&c&&(t.left=n-e.maxWidth),s&&h&&(t.top=l-e.minHeight),o&&h&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,r=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],o=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)r[e]=parseFloat(i[e])||0,r[e]+=parseFloat(o[e])||0;return{height:r[0]+r[2],width:r[1]+r[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,r=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:r.height()-this.outerDimensions.height||0,width:r.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,r=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++r.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var r=this.originalSize;return{left:this.originalPosition.left+e,width:r.width-e}},n:function(t,e,r){var i=this.originalSize,o=this.originalPosition;return{top:o.top+r,height:i.height-r}},s:function(t,e,r){return{height:this.originalSize.height+r}},se:function(e,r,i){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,r,i]))},sw:function(e,r,i){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,r,i]))},ne:function(e,r,i){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,r,i]))},nw:function(e,r,i){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,r,i]))}},_propagate:function(e,r){t.ui.plugin.call(this,e,[r,this.ui()]),"resize"!==e&&this._trigger(e,r,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var r=t(this).resizable("instance"),i=r.options,o=r._proportionallyResizeElements,a=o.length&&/textarea/i.test(o[0].nodeName),s=a&&r._hasScroll(o[0],"left")?0:r.sizeDiff.height,n=a?0:r.sizeDiff.width,l={width:r.size.width-n,height:r.size.height-s},c=parseFloat(r.element.css("left"))+(r.position.left-r.originalPosition.left)||null,h=parseFloat(r.element.css("top"))+(r.position.top-r.originalPosition.top)||null;r.element.animate(t.extend(l,h&&c?{top:h,left:c}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(r.element.css("width")),height:parseFloat(r.element.css("height")),top:parseFloat(r.element.css("top")),left:parseFloat(r.element.css("left"))};o&&o.length&&t(o[0]).css({width:i.width,height:i.height}),r._updateCache(i),r._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,r,i,o,a,s,n,l=t(this).resizable("instance"),c=l.options,h=l.element,d=c.containment,u=d instanceof t?d.get(0):/parent/.test(d)?h.parent().get(0):d;u&&(l.containerElement=t(u),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(u),r=[],t(["Top","Right","Left","Bottom"]).each((function(t,i){r[t]=l._num(e.css("padding"+i))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-r[3],width:e.innerWidth()-r[1]},i=l.containerOffset,o=l.containerSize.height,a=l.containerSize.width,s=l._hasScroll(u,"left")?u.scrollWidth:a,n=l._hasScroll(u)?u.scrollHeight:o,l.parentData={element:u,left:i.left,top:i.top,width:s,height:n}))},resize:function(e){var r,i,o,a,s=t(this).resizable("instance"),n=s.options,l=s.containerOffset,c=s.position,h=s._aspectRatio||e.shiftKey,d={top:0,left:0},u=s.containerElement,p=!0;u[0]!==document&&/static/.test(u.css("position"))&&(d=l),c.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-d.left),h&&(s.size.height=s.size.width/s.aspectRatio,p=!1),s.position.left=n.helper?l.left:0),c.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),h&&(s.size.width=s.size.height*s.aspectRatio,p=!1),s.position.top=s._helper?l.top:0),o=s.containerElement.get(0)===s.element.parent().get(0),a=/relative|absolute/.test(s.containerElement.css("position")),o&&a?(s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top):(s.offset.left=s.element.offset().left,s.offset.top=s.element.offset().top),r=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-d.left:s.offset.left-l.left)),i=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-d.top:s.offset.top-l.top)),r+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-r,h&&(s.size.height=s.size.width/s.aspectRatio,p=!1)),i+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-i,h&&(s.size.width=s.size.height*s.aspectRatio,p=!1)),p||(s.position.left=s.prevPosition.left,s.position.top=s.prevPosition.top,s.size.width=s.prevSize.width,s.size.height=s.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),r=e.options,i=e.containerOffset,o=e.containerPosition,a=e.containerElement,s=t(e.helper),n=s.offset(),l=s.outerWidth()-e.sizeDiff.width,c=s.outerHeight()-e.sizeDiff.height;e._helper&&!r.animate&&/relative/.test(a.css("position"))&&t(this).css({left:n.left-o.left-i.left,width:l,height:c}),e._helper&&!r.animate&&/static/.test(a.css("position"))&&t(this).css({left:n.left-o.left-i.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("rt-qc-ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,r){var i=t(this).resizable("instance"),o=i.options,a=i.originalSize,s=i.originalPosition,n={height:i.size.height-a.height||0,width:i.size.width-a.width||0,top:i.position.top-s.top||0,left:i.position.left-s.left||0};t(o.alsoResize).each((function(){var e=t(this),i=t(this).data("rt-qc-ui-resizable-alsoresize"),o={},a=e.parents(r.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,(function(t,e){var r=(i[e]||0)+(n[e]||0);r&&r>=0&&(o[e]=r||null)})),e.css(o)}))},stop:function(){t(this).removeData("rt-qc-ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),r=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:r.height,width:r.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"rt-qc-ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,r=t(this).resizable("instance"),i=r.options,o=r.size,a=r.originalSize,s=r.originalPosition,n=r.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,c=l[0]||1,h=l[1]||1,d=Math.round((o.width-a.width)/c)*c,u=Math.round((o.height-a.height)/h)*h,p=a.width+d,_=a.height+u,g=i.maxWidth&&p>i.maxWidth,f=i.maxHeight&&_>i.maxHeight,m=i.minWidth&&i.minWidth>p,C=i.minHeight&&i.minHeight>_;i.grid=l,m&&(p+=c),C&&(_+=h),g&&(p-=c),f&&(_-=h),/^(se|s|e)$/.test(n)?(r.size.width=p,r.size.height=_):/^(ne)$/.test(n)?(r.size.width=p,r.size.height=_,r.position.top=s.top-u):/^(sw)$/.test(n)?(r.size.width=p,r.size.height=_,r.position.left=s.left-d):((0>=_-h||0>=p-c)&&(e=r._getPaddingPlusBorderDimensions(this)),_-h>0?(r.size.height=_,r.position.top=s.top-u):(_=h-e.height,r.size.height=_,r.position.top=s.top+a.height-_),p-c>0?(r.size.width=p,r.position.left=s.left-d):(p=c-e.width,r.size.width=p,r.position.left=s.left+a.width-p))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("rt-qc-ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"rt-qc-ui-selectee"),e.selectees.each((function(){var r=t(this),i=r.offset(),o={left:i.left-e.elementPos.left,top:i.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:r,left:o.left,top:o.top,right:o.left+r.outerWidth(),bottom:o.top+r.outerHeight(),startselected:!1,selected:r.hasClass("rt-qc-ui-selected"),selecting:r.hasClass("rt-qc-ui-selecting"),unselecting:r.hasClass("rt-qc-ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"rt-qc-ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var r=this,i=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(i.filter,this.element[0]),this._trigger("start",e),t(i.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".rt-qc-ui-selected").each((function(){var i=t.data(this,"selectable-item");i.startselected=!0,e.metaKey||e.ctrlKey||(r._removeClass(i.$element,"rt-qc-ui-selected"),i.selected=!1,r._addClass(i.$element,"rt-qc-ui-unselecting"),i.unselecting=!0,r._trigger("unselecting",e,{unselecting:i.element}))})),t(e.target).parents().addBack().each((function(){var i,o=t.data(this,"selectable-item");return o?(i=!e.metaKey&&!e.ctrlKey||!o.$element.hasClass("rt-qc-ui-selected"),r._removeClass(o.$element,i?"rt-qc-ui-unselecting":"rt-qc-ui-selected")._addClass(o.$element,i?"rt-qc-ui-selecting":"rt-qc-ui-unselecting"),o.unselecting=!i,o.selecting=i,o.selected=i,i?r._trigger("selecting",e,{selecting:o.element}):r._trigger("unselecting",e,{unselecting:o.element}),!1):void 0})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var r,i=this,o=this.options,a=this.opos[0],s=this.opos[1],n=e.pageX,l=e.pageY;return a>n&&(r=n,n=a,a=r),s>l&&(r=l,l=s,s=r),this.helper.css({left:a,top:s,width:n-a,height:l-s}),this.selectees.each((function(){var r=t.data(this,"selectable-item"),c=!1,h={};r&&r.element!==i.element[0]&&(h.left=r.left+i.elementPos.left,h.right=r.right+i.elementPos.left,h.top=r.top+i.elementPos.top,h.bottom=r.bottom+i.elementPos.top,"touch"===o.tolerance?c=!(h.left>n||a>h.right||h.top>l||s>h.bottom):"fit"===o.tolerance&&(c=h.left>a&&n>h.right&&h.top>s&&l>h.bottom),c?(r.selected&&(i._removeClass(r.$element,"rt-qc-ui-selected"),r.selected=!1),r.unselecting&&(i._removeClass(r.$element,"rt-qc-ui-unselecting"),r.unselecting=!1),r.selecting||(i._addClass(r.$element,"rt-qc-ui-selecting"),r.selecting=!0,i._trigger("selecting",e,{selecting:r.element}))):(r.selecting&&((e.metaKey||e.ctrlKey)&&r.startselected?(i._removeClass(r.$element,"rt-qc-ui-selecting"),r.selecting=!1,i._addClass(r.$element,"rt-qc-ui-selected"),r.selected=!0):(i._removeClass(r.$element,"rt-qc-ui-selecting"),r.selecting=!1,r.startselected&&(i._addClass(r.$element,"rt-qc-ui-unselecting"),r.unselecting=!0),i._trigger("unselecting",e,{unselecting:r.element}))),r.selected&&(e.metaKey||e.ctrlKey||r.startselected||(i._removeClass(r.$element,"rt-qc-ui-selected"),r.selected=!1,i._addClass(r.$element,"rt-qc-ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",e,{unselecting:r.element})))))})),!1}},_mouseStop:function(e){var r=this;return this.dragged=!1,t(".rt-qc-ui-unselecting",this.element[0]).each((function(){var i=t.data(this,"selectable-item");r._removeClass(i.$element,"rt-qc-ui-unselecting"),i.unselecting=!1,i.startselected=!1,r._trigger("unselected",e,{unselected:i.element})})),t(".rt-qc-ui-selecting",this.element[0]).each((function(){var i=t.data(this,"selectable-item");r._removeClass(i.$element,"rt-qc-ui-selecting")._addClass(i.$element,"rt-qc-ui-selected"),i.selecting=!1,i.selected=!0,i.startselected=!0,r._trigger("selected",e,{selected:i.element})})),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,r){return t>=e&&e+r>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("rt-qc-ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".rt-qc-ui-sortable-handle"),"rt-qc-ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"rt-qc-ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,r){var i=null,o=!1,a=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){return t.data(this,a.widgetName+"-item")===a?(i=t(this),!1):void 0})),t.data(e.target,a.widgetName+"-item")===a&&(i=t(e.target)),!i||this.options.handle&&!r&&(t(this.options.handle,i).find("*").addBack().each((function(){this===e.target&&(o=!0)})),!o)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,r,i){var o,a,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",s.cursor),this.storedStylesheet=t("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(a)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"rt-qc-ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var r,i,o,a,s=this.options,n=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<s.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+s.scrollSpeed:e.pageY-this.overflowOffset.top<s.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-s.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<s.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+s.scrollSpeed:e.pageX-this.overflowOffset.left<s.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-s.scrollSpeed)):(e.pageY-this.document.scrollTop()<s.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-s.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<s.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+s.scrollSpeed)),e.pageX-this.document.scrollLeft()<s.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-s.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<s.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+s.scrollSpeed))),!1!==n&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r=this.items.length-1;r>=0;r--)if(o=(i=this.items[r]).item[0],(a=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],o))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,r){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,o=this.placeholder.offset(),a=this.options.axis,s={};a&&"x"!==a||(s.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(s.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,(function(){i._clear(e)}))}else this._clear(e,r);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"rt-qc-ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var r=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(r).each((function(){var r=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);r&&i.push((e.key||r[1]+"[]")+"="+(e.key&&e.expression?r[1]:r[2]))})),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var r=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},r.each((function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")})),i},_intersectsWith:function(t){var e=this.positionAbs.left,r=e+this.helperProportions.width,i=this.positionAbs.top,o=i+this.helperProportions.height,a=t.left,s=a+t.width,n=t.top,l=n+t.height,c=this.offset.click.top,h=this.offset.click.left,d="x"===this.options.axis||i+c>n&&l>i+c,u="y"===this.options.axis||e+h>a&&s>e+h,p=d&&u;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>a&&s>r-this.helperProportions.width/2&&i+this.helperProportions.height/2>n&&l>o-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,r,i="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),o="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!i||!o)&&(e=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection(),this.floating?"right"===r||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),r=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&r||"left"===o&&!r:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function r(){n.push(this)}var i,o,a,s,n=[],l=[],c=this._connectWith();if(c&&e)for(i=c.length-1;i>=0;i--)for(o=(a=t(c[i],this.document[0])).length-1;o>=0;o--)(s=t.data(a[o],this.widgetFullName))&&s!==this&&!s.options.disabled&&l.push([t.isFunction(s.options.items)?s.options.items.call(s.element):t(s.options.items,s.element).not(".rt-qc-ui-sortable-helper").not(".rt-qc-ui-sortable-placeholder"),s]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".rt-qc-ui-sortable-helper").not(".rt-qc-ui-sortable-placeholder"),this]),i=l.length-1;i>=0;i--)l[i][0].each(r);return t(n)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var r=0;e.length>r;r++)if(e[r]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var r,i,o,a,s,n,l,c,h=this.items,d=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(r=u.length-1;r>=0;r--)for(i=(o=t(u[r],this.document[0])).length-1;i>=0;i--)(a=t.data(o[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&(d.push([t.isFunction(a.options.items)?a.options.items.call(a.element[0],e,{item:this.currentItem}):t(a.options.items,a.element),a]),this.containers.push(a));for(r=d.length-1;r>=0;r--)for(s=d[r][1],i=0,c=(n=d[r][0]).length;c>i;i++)(l=t(n[i])).data(this.widgetName+"-item",s),h.push({item:l,instance:s,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var r,i,o,a;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),r=this.items.length-1;r>=0;r--)(i=this.items[r]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=o.outerWidth(),i.height=o.outerHeight()),a=o.offset(),i.left=a.left,i.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(r=this.containers.length-1;r>=0;r--)a=this.containers[r].element.offset(),this.containers[r].containerCache.left=a.left,this.containers[r].containerCache.top=a.top,this.containers[r].containerCache.width=this.containers[r].element.outerWidth(),this.containers[r].containerCache.height=this.containers[r].element.outerHeight();return this},_createPlaceholder:function(e){var r,i=(e=e||this).options;i.placeholder&&i.placeholder.constructor!==String||(r=i.placeholder,i.placeholder={element:function(){var i=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+i+">",e.document[0]);return e._addClass(o,"rt-qc-ui-sortable-placeholder",r||e.currentItem[0].className)._removeClass(o,"rt-qc-ui-sortable-helper"),"tbody"===i?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(o)):"tr"===i?e._createTrPlaceholder(e.currentItem,o):"img"===i&&o.attr("src",e.currentItem.attr("src")),r||o.css("visibility","hidden"),o},update:function(t,o){(!r||i.forcePlaceholderSize)&&(o.height()||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(i.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),i.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,r){var i=this;e.children().each((function(){t("<td>&#160;</td>",i.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(r)}))},_contactContainers:function(e){var r,i,o,a,s,n,l,c,h,d,u=null,p=null;for(r=this.containers.length-1;r>=0;r--)if(!t.contains(this.currentItem[0],this.containers[r].element[0]))if(this._intersectsWith(this.containers[r].containerCache)){if(u&&t.contains(this.containers[r].element[0],u.element[0]))continue;u=this.containers[r],p=r}else this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",e,this._uiHash(this)),this.containers[r].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(o=1e4,a=null,s=(h=u.floating||this._isFloating(this.currentItem))?"left":"top",n=h?"width":"height",d=h?"pageX":"pageY",i=this.items.length-1;i>=0;i--)t.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[s],c=!1,e[d]-l>this.items[i][n]/2&&(c=!0),o>Math.abs(e[d]-l)&&(o=Math.abs(e[d]-l),a=this.items[i],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var r=this.options,i=t.isFunction(r.helper)?t(r.helper.apply(this.element[0],[e,this.currentItem])):"clone"===r.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||t("parent"!==r.appendTo?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,r,i,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),("document"===o.containment||"window"===o.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===o.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===o.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],r=t(o.containment).offset(),i="hidden"!==t(e).css("overflow"),this.containment=[r.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,r.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,r){r||(r=this.position);var i="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(o[0].tagName);return{top:r.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop())*i,left:r.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())*i}},_generatePosition:function(e){var r,i,o=this.options,a=e.pageX,s=e.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),o.grid&&(r=this.originalPageY+Math.round((s-this.originalPageY)/o.grid[1])*o.grid[1],s=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-o.grid[1]:r+o.grid[1]:r,i=this.originalPageX+Math.round((a-this.originalPageX)/o.grid[0])*o.grid[0],a=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-o.grid[0]:i+o.grid[0]:i)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:n.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:n.scrollLeft())}},_rearrange:function(t,e,r,i){r?r[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay((function(){o===this.counter&&this.refreshPositions(!i)}))},_clear:function(t,e){function r(t,e,r){return function(i){r._trigger(t,i,e._uiHash(e))}}this.reverting=!1;var i,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"rt-qc-ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&o.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".rt-qc-ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||o.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(o.push((function(t){this._trigger("remove",t,this._uiHash())})),o.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),o.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||o.push(r("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(o.push(r("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;o.length>i;i++)o[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var r=e||this;return{helper:r.helper,placeholder:r.placeholder||t([]),position:r.position,originalPosition:r.originalPosition,offset:r.positionAbs,item:r.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"rt-qc-ui-accordion-header":"rt-qc-ui-corner-top","rt-qc-ui-accordion-header-collapsed":"rt-qc-ui-corner-all","rt-qc-ui-accordion-content":"rt-qc-ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"rt-qc-ui-icon-triangle-1-s",header:"rt-qc-ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("rt-qc-ui-accordion","rt-qc-ui-widget rt-qc-ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,r,i=this.options.icons;i&&(e=t("<span>"),this._addClass(e,"rt-qc-ui-accordion-header-icon","rt-qc-ui-icon "+i.header),e.prependTo(this.headers),r=this.active.children(".rt-qc-ui-accordion-header-icon"),this._removeClass(r,i.header)._addClass(r,null,i.activeHeader)._addClass(this.headers,"rt-qc-ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"rt-qc-ui-accordion-icons"),this.headers.children(".rt-qc-ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),void("icons"===t&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"rt-qc-ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"rt-qc-ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var r=t.ui.keyCode,i=this.headers.length,o=this.headers.index(e.target),a=!1;switch(e.keyCode){case r.RIGHT:case r.DOWN:a=this.headers[(o+1)%i];break;case r.LEFT:case r.UP:a=this.headers[(o-1+i)%i];break;case r.SPACE:case r.ENTER:this._eventHandler(e);break;case r.HOME:a=this.headers[0];break;case r.END:a=this.headers[i-1]}a&&(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),t(a).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".rt-qc-ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"rt-qc-ui-accordion-header rt-qc-ui-accordion-header-collapsed","rt-qc-ui-state-default"),this.panels=this.headers.next().filter(":not(.rt-qc-ui-accordion-content-active)").hide(),this._addClass(this.panels,"rt-qc-ui-accordion-content","rt-qc-ui-helper-reset rt-qc-ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,r=this.options,i=r.heightStyle,o=this.element.parent();this.active=this._findActive(r.active),this._addClass(this.active,"rt-qc-ui-accordion-header-active","rt-qc-ui-state-active")._removeClass(this.active,"rt-qc-ui-accordion-header-collapsed"),this._addClass(this.active.next(),"rt-qc-ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each((function(){var e=t(this),r=e.uniqueId().attr("id"),i=e.next(),o=i.uniqueId().attr("id");e.attr("aria-controls",o),i.attr("aria-labelledby",r)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(r.event),"fill"===i?(e=o.height(),this.element.siblings(":visible").each((function(){var r=t(this),i=r.css("position");"absolute"!==i&&"fixed"!==i&&(e-=r.outerHeight(!0))})),this.headers.each((function(){e-=t(this).outerHeight(!0)})),this.headers.next().each((function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===i&&(e=0,this.headers.next().each((function(){var r=t(this).is(":visible");r||t(this).show(),e=Math.max(e,t(this).css("height","").height()),r||t(this).hide()})).height(e))},_activate:function(e){var r=this._findActive(e)[0];r!==this.active[0]&&(r=r||this.active[0],this._eventHandler({target:r,currentTarget:r,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var r={keydown:"_keydown"};e&&t.each(e.split(" "),(function(t,e){r[e]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,r),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var r,i,o=this.options,a=this.active,s=t(e.currentTarget),n=s[0]===a[0],l=n&&o.collapsible,c=l?t():s.next(),h=a.next(),d={oldHeader:a,oldPanel:h,newHeader:l?t():s,newPanel:c};e.preventDefault(),n&&!o.collapsible||!1===this._trigger("beforeActivate",e,d)||(o.active=!l&&this.headers.index(s),this.active=n?t():s,this._toggle(d),this._removeClass(a,"rt-qc-ui-accordion-header-active","rt-qc-ui-state-active"),o.icons&&(r=a.children(".rt-qc-ui-accordion-header-icon"),this._removeClass(r,null,o.icons.activeHeader)._addClass(r,null,o.icons.header)),n||(this._removeClass(s,"rt-qc-ui-accordion-header-collapsed")._addClass(s,"rt-qc-ui-accordion-header-active","rt-qc-ui-state-active"),o.icons&&(i=s.children(".rt-qc-ui-accordion-header-icon"),this._removeClass(i,null,o.icons.header)._addClass(i,null,o.icons.activeHeader)),this._addClass(s.next(),"rt-qc-ui-accordion-content-active")))},_toggle:function(e){var r=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=r,this.prevHide=i,this.options.animate?this._animate(r,i,e):(i.hide(),r.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):r.length&&this.headers.filter((function(){return 0===parseInt(t(this).attr("tabIndex"),10)})).attr("tabIndex",-1),r.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,r){var i,o,a,s=this,n=0,l=t.css("box-sizing"),c=t.length&&(!e.length||t.index()<e.index()),h=this.options.animate||{},d=c&&h.down||h,u=function(){s._toggleComplete(r)};return"number"==typeof d&&(a=d),"string"==typeof d&&(o=d),o=o||d.easing||h.easing,a=a||d.duration||h.duration,e.length?t.length?(i=t.show().outerHeight(),e.animate(this.hideProps,{duration:a,easing:o,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:a,easing:o,complete:u,step:function(t,r){r.now=Math.round(t),"height"!==r.prop?"content-box"===l&&(n+=r.now):"content"!==s.options.heightStyle&&(r.now=Math.round(i-e.outerHeight()-n),n=0)}})):e.animate(this.hideProps,a,o,u):t.animate(this.showProps,a,o,u)},_toggleComplete:function(t){var e=t.oldPanel,r=e.prev();this._removeClass(e,"rt-qc-ui-accordion-content-active"),this._removeClass(r,"rt-qc-ui-accordion-header-active")._addClass(r,"rt-qc-ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"rt-qc-ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("rt-qc-ui-menu","rt-qc-ui-widget rt-qc-ui-widget-content"),this._on({"mousedown .rt-qc-ui-menu-item":function(t){t.preventDefault()},"click .rt-qc-ui-menu-item":function(e){var r=t(e.target),i=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&r.not(".rt-qc-ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),r.has(".rt-qc-ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".rt-qc-ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".rt-qc-ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .rt-qc-ui-menu-item":function(e){if(!this.previousFilter){var r=t(e.target).closest(".rt-qc-ui-menu-item"),i=t(e.currentTarget);r[0]===i[0]&&(this._removeClass(i.siblings().children(".rt-qc-ui-state-active"),null,"rt-qc-ui-state-active"),this.focus(e,i))}},mouseleave:"collapseAll","mouseleave .rt-qc-ui-menu":"collapseAll",focus:function(t,e){var r=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,r)},blur:function(e){this._delay((function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".rt-qc-ui-menu-item").removeAttr("role aria-disabled").children(".rt-qc-ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".rt-qc-ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each((function(){var e=t(this);e.data("rt-qc-ui-menu-submenu-caret")&&e.remove()}))},_keydown:function(e){var r,i,o,a,s=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".rt-qc-ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:s=!1,i=this.previousFilter||"",a=!1,o=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),o===i?a=!0:o=i+o,r=this._filterMenuItems(o),(r=a&&-1!==r.index(this.active.next())?this.active.nextAll(".rt-qc-ui-menu-item"):r).length||(o=String.fromCharCode(e.keyCode),r=this._filterMenuItems(o)),r.length?(this.focus(e,r),this.previousFilter=o,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}s&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".rt-qc-ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,r,i,o,a=this,s=this.options.icons.submenu,n=this.element.find(this.options.menus);this._toggleClass("rt-qc-ui-menu-icons",null,!!this.element.find(".rt-qc-ui-icon").length),r=n.filter(":not(.rt-qc-ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),r=e.prev(),i=t("<span>").data("rt-qc-ui-menu-submenu-caret",!0);a._addClass(i,"rt-qc-ui-menu-icon","rt-qc-ui-icon "+s),r.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",r.attr("id"))})),this._addClass(r,"rt-qc-ui-menu","rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-front"),(e=n.add(this.element).find(this.options.items)).not(".rt-qc-ui-menu-item").each((function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"rt-qc-ui-menu-divider","rt-qc-ui-widget-content")})),o=(i=e.not(".rt-qc-ui-menu-item, .rt-qc-ui-menu-divider")).children().not(".rt-qc-ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"rt-qc-ui-menu-item")._addClass(o,"rt-qc-ui-menu-item-wrapper"),e.filter(".rt-qc-ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var r=this.element.find(".rt-qc-ui-menu-icon");this._removeClass(r,null,this.options.icons.submenu)._addClass(r,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"rt-qc-ui-state-disabled",!!t)},focus:function(t,e){var r,i,o;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".rt-qc-ui-menu-item-wrapper"),this._addClass(i,null,"rt-qc-ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),o=this.active.parent().closest(".rt-qc-ui-menu-item").children(".rt-qc-ui-menu-item-wrapper"),this._addClass(o,null,"rt-qc-ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(r=e.children(".rt-qc-ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(r),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var r,i,o,a,s,n;this._hasScroll()&&(r=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-r-i,a=this.activeMenu.scrollTop(),s=this.activeMenu.height(),n=e.outerHeight(),0>o?this.activeMenu.scrollTop(a+o):o+n>s&&this.activeMenu.scrollTop(a+o-s+n))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".rt-qc-ui-menu-item-wrapper"),null,"rt-qc-ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(t)}),this.delay))},_open:function(e){var r=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".rt-qc-ui-menu").not(e.parents(".rt-qc-ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(r)},collapseAll:function(e,r){clearTimeout(this.timer),this.timer=this._delay((function(){var i=r?this.element:t(e&&e.target).closest(this.element.find(".rt-qc-ui-menu"));i.length||(i=this.element),this._close(i),this.blur(e),this._removeClass(i.find(".rt-qc-ui-state-active"),null,"rt-qc-ui-state-active"),this.activeMenu=i}),this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".rt-qc-ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".rt-qc-ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".rt-qc-ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".rt-qc-ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay((function(){this.focus(t,e)})))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".rt-qc-ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".rt-qc-ui-menu-item").length},_move:function(t,e,r){var i;this.active&&(i="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".rt-qc-ui-menu-item").eq(-1):this.active[t+"All"](".rt-qc-ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[e]()),this.focus(r,i)},nextPage:function(e){var r,i,o;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.nextAll(".rt-qc-ui-menu-item").each((function(){return 0>(r=t(this)).offset().top-i-o})),this.focus(e,r)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var r,i,o;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.prevAll(".rt-qc-ui-menu-item").each((function(){return(r=t(this)).offset().top-i+o>0})),this.focus(e,r)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".rt-qc-ui-menu-item");var r={item:this.active};this.active.has(".rt-qc-ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,r)},_filterMenuItems:function(e){var r=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=RegExp("^"+r,"i");return this.activeMenu.find(this.options.items).filter(".rt-qc-ui-menu-item").filter((function(){return i.test(t.trim(t(this).children(".rt-qc-ui-menu-item-wrapper").text()))}))}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,r,i,o=this.element[0].nodeName.toLowerCase(),a="textarea"===o,s="input"===o;this.isMultiLine=a||!s&&this._isContentEditable(this.element),this.valueMethod=this.element[a||s?"val":"text"],this.isNewMenu=!0,this._addClass("rt-qc-ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,i=!0,void(r=!0);e=!1,i=!1,r=!1;var a=t.ui.keyCode;switch(o.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",o);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case a.UP:e=!0,this._keyEvent("previous",o);break;case a.DOWN:e=!0,this._keyEvent("next",o);break;case a.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case a.TAB:this.menu.active&&this.menu.select(o);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:r=!0,this._searchTimeout(o)}},keypress:function(i){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&i.preventDefault());if(!r){var o=t.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:this._move("previousPage",i);break;case o.PAGE_DOWN:this._move("nextPage",i);break;case o.UP:this._keyEvent("previous",i);break;case o.DOWN:this._keyEvent("next",i)}}},input:function(t){return i?(i=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"rt-qc-ui-autocomplete","rt-qc-ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")}))},menufocus:function(e,r){var i,o;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",(function(){t(e.target).trigger(e.originalEvent)}))):(o=r.item.data("rt-qc-ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:o})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(o.value),void((i=r.item.attr("aria-label")||o.value)&&t.trim(i).length&&(this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))))},menuselect:function(e,r){var i=r.item.data("rt-qc-ui-autocomplete-item"),o=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay((function(){this.previous=o,this.selectedItem=i}))),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"rt-qc-ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var r=this.menu.element[0];return e.target===this.element[0]||e.target===r||t.contains(r,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".rt-qc-ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,r,i=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(r,i){i(t.ui.autocomplete.filter(e,r.term))}):"string"==typeof this.options.source?(r=this.options.source,this.source=function(e,o){i.xhr&&i.xhr.abort(),i.xhr=t.ajax({url:r,data:e,dataType:"json",success:function(t){o(t)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),r=this.menu.element.is(":visible"),i=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!r&&!i)&&(this.selectedItem=null,this.search(null,t))}),this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("rt-qc-ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy((function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("rt-qc-ui-autocomplete-loading")}),this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,(function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})}))},_suggest:function(e){var r=this.menu.element.empty();this._renderMenu(r,e),this.isNewMenu=!0,this.menu.refresh(),r.show(),this._resizeMenu(),r.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,r){var i=this;t.each(r,(function(t,r){i._renderItemData(e,r)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("rt-qc-ui-autocomplete-item",e)},_renderItem:function(e,r){return t("<li>").append(t("<div>").text(r.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,r){var i=RegExp(t.ui.autocomplete.escapeRegex(r),"i");return t.grep(e,(function(t){return i.test(t.label||t.value||t)}))}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var r;this._superApply(arguments),this.options.disabled||this.cancelSearch||(r=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(r).appendTo(this.liveRegion))}}),t.ui.autocomplete;var p,_=/rt-qc-ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".rt-qc-ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".rt-qc-ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("rt-qc-ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".rt-qc-ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,r=[];t.each(this.options.items,(function(i,o){var a,s={};return o?"controlgroupLabel"===i?((a=e.element.find(o)).each((function(){var e=t(this);e.children(".rt-qc-ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='rt-qc-ui-controlgroup-label-contents'></span>")})),e._addClass(a,null,"rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-state-default"),void(r=r.concat(a.get()))):void(t.fn[i]&&(s=e["_"+i+"Options"]?e["_"+i+"Options"]("middle"):{classes:{}},e.element.find(o).each((function(){var o=t(this),a=o[i]("instance"),n=t.widget.extend({},s);if("button"!==i||!o.parent(".rt-qc-ui-spinner").length){a||(a=o[i]()[i]("instance")),a&&(n.classes=e._resolveClassesValues(n.classes,a)),o[i](n);var l=o[i]("widget");t.data(l[0],"rt-qc-ui-controlgroup-data",a||o[i]("instance")),r.push(l[0])}})))):void 0})),this.childWidgets=t(t.unique(r)),this._addClass(this.childWidgets,"rt-qc-ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var r=t(this).data("rt-qc-ui-controlgroup-data");r&&r[e]&&r[e]()}))},_updateCornerClass:function(t,e){var r="rt-qc-ui-corner-top rt-qc-ui-corner-bottom rt-qc-ui-corner-left rt-qc-ui-corner-right rt-qc-ui-corner-all",i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,r),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var r="vertical"===this.options.direction,i={classes:{}};return i.classes[e]={middle:"",first:"rt-qc-ui-corner-"+(r?"top":"left"),last:"rt-qc-ui-corner-"+(r?"bottom":"right"),only:"rt-qc-ui-corner-all"}[t],i},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"rt-qc-ui-spinner");return e.classes["rt-qc-ui-spinner-up"]="",e.classes["rt-qc-ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"rt-qc-ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"rt-qc-ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"rt-qc-ui-selectmenu-button-open":"","rt-qc-ui-selectmenu-button-closed":""},first:{"rt-qc-ui-selectmenu-button-open":"rt-qc-ui-corner-"+(e?"top":"tl"),"rt-qc-ui-selectmenu-button-closed":"rt-qc-ui-corner-"+(e?"top":"left")},last:{"rt-qc-ui-selectmenu-button-open":e?"":"rt-qc-ui-corner-tr","rt-qc-ui-selectmenu-button-closed":"rt-qc-ui-corner-"+(e?"bottom":"right")},only:{"rt-qc-ui-selectmenu-button-open":"rt-qc-ui-corner-top","rt-qc-ui-selectmenu-button-closed":"rt-qc-ui-corner-all"}}[t]}},_resolveClassesValues:function(e,r){var i={};return t.each(e,(function(o){var a=r.options.classes[o]||"";a=t.trim(a.replace(_,"")),i[o]=(a+" "+e[o]).replace(/\s+/g," ")})),i},_setOption:function(t,e){return"direction"===t&&this._removeClass("rt-qc-ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var e,r=this;this._addClass("rt-qc-ui-controlgroup rt-qc-ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"rt-qc-ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],(function(t,i){var o=e[i]().data("rt-qc-ui-controlgroup-data");if(o&&r["_"+o.widgetName+"Options"]){var a=r["_"+o.widgetName+"Options"](1===e.length?"only":i);a.classes=r._resolveClassesValues(a.classes,o),o.element[o.widgetName](a)}else r._updateCornerClass(e[i](),i)})),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"rt-qc-ui-checkboxradio-label":"rt-qc-ui-corner-all","rt-qc-ui-checkboxradio-icon":"rt-qc-ui-corner-all"}},_getCreateOptions:function(){var e,r,i=this,o=this._super()||{};return this._readType(),r=this.element.labels(),this.label=t(r[r.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each((function(){i.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML})),this.originalLabel&&(o.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(o.disabled=e),o},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("rt-qc-ui-checkboxradio","rt-qc-ui-helper-hidden-accessible"),this._addClass(this.label,"rt-qc-ui-checkboxradio-label","rt-qc-ui-button rt-qc-ui-widget"),"radio"===this.type&&this._addClass(this.label,"rt-qc-ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"rt-qc-ui-checkboxradio-checked","rt-qc-ui-state-active"),this.icon&&this._addClass(this.icon,null,"rt-qc-ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"rt-qc-ui-state-focus rt-qc-ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"rt-qc-ui-state-focus rt-qc-ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,r="input[name='"+t.ui.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(r):t(r).filter((function(){return 0===t(this).form().length}))).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"rt-qc-ui-checkboxradio-checked","rt-qc-ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"rt-qc-ui-icon-check rt-qc-ui-state-checked",e)._toggleClass(this.icon,null,"rt-qc-ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each((function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"rt-qc-ui-checkboxradio-checked","rt-qc-ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"rt-qc-ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(e){var r="rt-qc-ui-icon rt-qc-ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"rt-qc-ui-checkboxradio-icon-space")),"checkbox"===this.type?(r+=e?"rt-qc-ui-icon-check rt-qc-ui-state-checked":"rt-qc-ui-icon-blank",this._removeClass(this.icon,null,e?"rt-qc-ui-icon-blank":"rt-qc-ui-icon-check")):r+="rt-qc-ui-icon-blank",this._addClass(this.icon,"rt-qc-ui-checkboxradio-icon",r),e||this._removeClass(this.icon,null,"rt-qc-ui-icon-check rt-qc-ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"rt-qc-ui-checkboxradio-checked","rt-qc-ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"rt-qc-ui-button":"rt-qc-ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("rt-qc-ui-button","rt-qc-ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,r){var i="iconPosition"!==e,o=i?this.options.iconPosition:r,a="top"===o||"bottom"===o;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"rt-qc-ui-button-icon","rt-qc-ui-icon"),this.options.showLabel||this._addClass("rt-qc-ui-button-icon-only")),i&&this._addClass(this.icon,null,r),this._attachIcon(o),a?(this._addClass(this.icon,null,"rt-qc-ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"rt-qc-ui-button-icon-space")),this._removeClass(this.icon,null,"rt-qc-ui-wiget-icon-block"),this._attachIconSpace(o))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,r=void 0===t.icon?this.options.icon:t.icon;e||r||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("rt-qc-ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"rt-qc-ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("rt-qc-ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?void this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==s(arguments[0])&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return n(this._defaults,t||{}),this},_attachDatepicker:function(e,r){var i,o,a;o="div"===(i=e.nodeName.toLowerCase())||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(t(e),o)).settings=t.extend({},r||{}),"input"===i?this._connectDatepicker(e,a):o&&this._inlineDatepicker(e,a)},_newInst:function(e,r){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:r,dpDiv:r?o(t("<div class='"+this._inlineClass+" rt-qc-ui-datepicker rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-helper-clearfix rt-qc-ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,r){var i=t(e);r.append=t([]),r.trigger=t([]),i.hasClass(this.markerClassName)||(this._attachments(i,r),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(r),t.data(e,"datepicker",r),r.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,r){var i,o,a,s=this._get(r,"appendText"),n=this._get(r,"isRTL");r.append&&r.append.remove(),s&&(r.append=t("<span class='"+this._appendClass+"'>"+s+"</span>"),e[n?"before":"after"](r.append)),e.off("focus",this._showDatepicker),r.trigger&&r.trigger.remove(),("focus"===(i=this._get(r,"showOn"))||"both"===i)&&e.on("focus",this._showDatepicker),("button"===i||"both"===i)&&(o=this._get(r,"buttonText"),a=this._get(r,"buttonImage"),r.trigger=t(this._get(r,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:a,alt:o,title:o}):t("<button type='button'></button>").addClass(this._triggerClass).html(a?t("<img/>").attr({src:a,alt:o,title:o}):o)),e[n?"before":"after"](r.trigger),r.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,r,i,o,a=new Date(2009,11,20),s=this._get(t,"dateFormat");s.match(/[DM]/)&&(e=function(t){for(r=0,i=0,o=0;t.length>o;o++)t[o].length>r&&(r=t[o].length,i=o);return i},a.setMonth(e(this._get(t,s.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,r){var i=t(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(r.dpDiv),t.data(e,"datepicker",r),this._setDate(r,this._getDefaultDate(r),!0),this._updateDatepicker(r),this._updateAlternate(r),r.settings.disabled&&this._disableDatepicker(e),r.dpDiv.css("display","block"))},_dialogDatepicker:function(e,r,i,o,a){var s,l,c,h,d,u=this._dialogInst;return u||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",u)),n(u.settings,o||{}),r=r&&r.constructor===Date?this._formatDate(u,r):r,this._dialogInput.val(r),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+h,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",u),this},_destroyDatepicker:function(e){var r,i=t(e),o=t.data(e,"datepicker");i.hasClass(this.markerClassName)&&(r=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===r?(o.append.remove(),o.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===r||"span"===r)&&i.removeClass(this.markerClassName).empty(),p===o&&(p=null))},_enableDatepicker:function(e){var r,i,o=t(e),a=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&("input"===(r=e.nodeName.toLowerCase())?(e.disabled=!1,a.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===r||"span"===r)&&((i=o.children("."+this._inlineClass)).children().removeClass("rt-qc-ui-state-disabled"),i.find("select.rt-qc-ui-datepicker-month, select.rt-qc-ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var r,i,o=t(e),a=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&("input"===(r=e.nodeName.toLowerCase())?(e.disabled=!0,a.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===r||"span"===r)&&((i=o.children("."+this._inlineClass)).children().addClass("rt-qc-ui-state-disabled"),i.find("select.rt-qc-ui-datepicker-month, select.rt-qc-ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,r,i){var o,a,s,l,c=this._getInst(e);return 2===arguments.length&&"string"==typeof r?"defaults"===r?t.extend({},t.datepicker._defaults):c?"all"===r?t.extend({},c.settings):this._get(c,r):null:(o=r||{},"string"==typeof r&&((o={})[r]=i),void(c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(e,!0),s=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),n(c.settings,o),null!==s&&void 0!==o.dateFormat&&void 0===o.minDate&&(c.settings.minDate=this._formatDate(c,s)),null!==l&&void 0!==o.dateFormat&&void 0===o.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in o&&(o.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))))},_changeDatepicker:function(t,e,r){this._optionDatepicker(t,e,r)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var r=this._getInst(t);r&&(this._setDate(r,e),this._updateDatepicker(r),this._updateAlternate(r))},_getDateDatepicker:function(t,e){var r=this._getInst(t);return r&&!r.inline&&this._setDateFromField(r,e),r?this._getDate(r):null},_doKeyDown:function(e){var r,i,o,a=t.datepicker._getInst(e.target),s=!0,n=a.dpDiv.is(".rt-qc-ui-datepicker-rtl");if(a._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),s=!1;break;case 13:return(o=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",a.dpDiv))[0]&&t.datepicker._selectDay(e.target,a.selectedMonth,a.selectedYear,o[0]),(r=t.datepicker._get(a,"onSelect"))?(i=t.datepicker._formatDate(a),r.apply(a.input?a.input[0]:null,[i,a])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,n?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,n?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var r,i,o=t.datepicker._getInst(e.target);return t.datepicker._get(o,"constrainInput")?(r=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">i||!r||r.indexOf(i)>-1):void 0},_doKeyUp:function(e){var r=t.datepicker._getInst(e.target);if(r.input.val()!==r.lastVal)try{t.datepicker.parseDate(t.datepicker._get(r,"dateFormat"),r.input?r.input.val():null,t.datepicker._getFormatConfig(r))&&(t.datepicker._setDateFromField(r),t.datepicker._updateAlternate(r),t.datepicker._updateDatepicker(r))}catch(t){}return!0},_showDatepicker:function(e){var i,o,a,s,l,c,h;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(a=(o=t.datepicker._get(i,"beforeShow"))?o.apply(e,[e,i]):{})&&(n(i.settings,a),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),s=!1,t(e).parents().each((function(){return!(s|="fixed"===t(this).css("position"))})),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),l=t.datepicker._checkOffset(i,l,s),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":s?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),i.inline||(c=t.datepicker._get(i,"showAnim"),h=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",r(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?i.dpDiv.show(c,t.datepicker._get(i,"showOptions"),h):i.dpDiv[c||"show"](c?h:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,p=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var r,i=this._getNumberOfMonths(e),o=i[1],s=17,n=e.dpDiv.find("."+this._dayOverClass+" a");n.length>0&&a.apply(n.get(0)),e.dpDiv.removeClass("rt-qc-ui-datepicker-multi-2 rt-qc-ui-datepicker-multi-3 rt-qc-ui-datepicker-multi-4").width(""),o>1&&e.dpDiv.addClass("rt-qc-ui-datepicker-multi-"+o).css("width",s*o+"em"),e.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("rt-qc-ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("rt-qc-ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(r=e.yearshtml,setTimeout((function(){r===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.rt-qc-ui-datepicker-year:first").replaceWith(e.yearshtml),r=e.yearshtml=null}),0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,r,i){var o=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),s=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(i?0:t(document).scrollTop());return r.left-=this._get(e,"isRTL")?o-s:0,r.left-=i&&r.left===e.input.offset().left?t(document).scrollLeft():0,r.top-=i&&r.top===e.input.offset().top+n?t(document).scrollTop():0,r.left-=Math.min(r.left,r.left+o>l&&l>o?Math.abs(r.left+o-l):0),r.top-=Math.min(r.top,r.top+a>c&&c>a?Math.abs(a+n):0),r},_findPos:function(e){for(var r,i=this._getInst(e),o=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[o?"previousSibling":"nextSibling"];return[(r=t(e).offset()).left,r.top]},_hideDatepicker:function(e){var r,i,o,a,s=this._curInst;!s||e&&s!==t.data(e,"datepicker")||this._datepickerShowing&&(r=this._get(s,"showAnim"),i=this._get(s,"duration"),o=function(){t.datepicker._tidyDialog(s)},t.effects&&(t.effects.effect[r]||t.effects[r])?s.dpDiv.hide(r,t.datepicker._get(s,"showOptions"),i,o):s.dpDiv["slideDown"===r?"slideUp":"fadeIn"===r?"fadeOut":"hide"](r?i:null,o),r||o(),this._datepickerShowing=!1,(a=this._get(s,"onClose"))&&a.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".rt-qc-ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var r=t(e.target),i=t.datepicker._getInst(r[0]);(r[0].id!==t.datepicker._mainDivId&&0===r.parents("#"+t.datepicker._mainDivId).length&&!r.hasClass(t.datepicker.markerClassName)&&!r.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||r.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==i)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,r,i){var o=t(e),a=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(a,r+("M"===i?this._get(a,"showCurrentAtPos"):0),i),this._updateDatepicker(a))},_gotoToday:function(e){var r,i=t(e),o=this._getInst(i[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(r=new Date,o.selectedDay=r.getDate(),o.drawMonth=o.selectedMonth=r.getMonth(),o.drawYear=o.selectedYear=r.getFullYear()),this._notifyChange(o),this._adjustDate(i)},_selectMonthYear:function(e,r,i){var o=t(e),a=this._getInst(o[0]);a["selected"+("M"===i?"Month":"Year")]=a["draw"+("M"===i?"Month":"Year")]=parseInt(r.options[r.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(o)},_selectDay:function(e,r,i,o){var a,s=t(e);t(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((a=this._getInst(s[0])).selectedDay=a.currentDay=t("a",o).html(),a.selectedMonth=a.currentMonth=r,a.selectedYear=a.currentYear=i,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var r=t(e);this._selectDate(r,"")},_selectDate:function(e,r){var i,o=t(e),a=this._getInst(o[0]);r=null!=r?r:this._formatDate(a),a.input&&a.input.val(r),this._updateAlternate(a),(i=this._get(a,"onSelect"))?i.apply(a.input?a.input[0]:null,[r,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=s(a.input[0])&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var r,i,o,a=this._get(e,"altField");a&&(r=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),o=this.formatDate(r,i,this._getFormatConfig(e)),t(a).val(o))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,r=new Date(t.getTime());return r.setDate(r.getDate()+4-(r.getDay()||7)),e=r.getTime(),r.setMonth(0),r.setDate(1),Math.floor(Math.round((e-r)/864e5)/7)+1},parseDate:function(e,r,i){if(null==e||null==r)throw"Invalid arguments";if(""==(r="object"==s(r)?""+r:r+""))return null;var o,a,n,l,c=0,h=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),u=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,p=(i?i.dayNames:null)||this._defaults.dayNames,_=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,g=(i?i.monthNames:null)||this._defaults.monthNames,f=-1,m=-1,C=-1,L=-1,b=!1,E=function(t){var r=e.length>o+1&&e.charAt(o+1)===t;return r&&o++,r},v=function(t){var e=E(t),i="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,o=RegExp("^\\d{"+("y"===t?i:1)+","+i+"}"),a=r.substring(c).match(o);if(!a)throw"Missing number at position "+c;return c+=a[0].length,parseInt(a[0],10)},y=function(e,i,o){var a=-1,s=t.map(E(e)?o:i,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(s,(function(t,e){var i=e[1];return r.substr(c,i.length).toLowerCase()===i.toLowerCase()?(a=e[0],c+=i.length,!1):void 0})),-1!==a)return a+1;throw"Unknown name at position "+c},w=function(){if(r.charAt(c)!==e.charAt(o))throw"Unexpected literal at position "+c;c++};for(o=0;e.length>o;o++)if(b)"'"!==e.charAt(o)||E("'")?w():b=!1;else switch(e.charAt(o)){case"d":C=v("d");break;case"D":y("D",u,p);break;case"o":L=v("o");break;case"m":m=v("m");break;case"M":m=y("M",_,g);break;case"y":f=v("y");break;case"@":f=(l=new Date(v("@"))).getFullYear(),m=l.getMonth()+1,C=l.getDate();break;case"!":f=(l=new Date((v("!")-this._ticksTo1970)/1e4)).getFullYear(),m=l.getMonth()+1,C=l.getDate();break;case"'":E("'")?w():b=!0;break;default:w()}if(r.length>c&&(n=r.substr(c),!/^\s+/.test(n)))throw"Extra/unparsed characters found in date: "+n;if(-1===f?f=(new Date).getFullYear():100>f&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d>=f?0:-100)),L>-1)for(m=1,C=L;!((a=this._getDaysInMonth(f,m-1))>=C);)m++,C-=a;if((l=this._daylightSavingAdjust(new Date(f,m-1,C))).getFullYear()!==f||l.getMonth()+1!==m||l.getDate()!==C)throw"Invalid date";return l},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,r){if(!e)return"";var i,o=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,a=(r?r.dayNames:null)||this._defaults.dayNames,s=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,n=(r?r.monthNames:null)||this._defaults.monthNames,l=function(e){var r=t.length>i+1&&t.charAt(i+1)===e;return r&&i++,r},c=function(t,e,r){var i=""+e;if(l(t))for(;r>i.length;)i="0"+i;return i},h=function(t,e,r,i){return l(t)?i[e]:r[e]},d="",u=!1;if(e)for(i=0;t.length>i;i++)if(u)"'"!==t.charAt(i)||l("'")?d+=t.charAt(i):u=!1;else switch(t.charAt(i)){case"d":d+=c("d",e.getDate(),2);break;case"D":d+=h("D",e.getDay(),o,a);break;case"o":d+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",e.getMonth()+1,2);break;case"M":d+=h("M",e.getMonth(),s,n);break;case"y":d+=l("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":u=!0;break;default:d+=t.charAt(i)}return d},_possibleChars:function(t){var e,r="",i=!1,o=function(r){var i=t.length>e+1&&t.charAt(e+1)===r;return i&&e++,i};for(e=0;t.length>e;e++)if(i)"'"!==t.charAt(e)||o("'")?r+=t.charAt(e):i=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":r+="0123456789";break;case"D":case"M":return null;case"'":o("'")?r+="'":i=!0;break;default:r+=t.charAt(e)}return r},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var r=this._get(t,"dateFormat"),i=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),a=o,s=this._getFormatConfig(t);try{a=this.parseDate(r,i,s)||o}catch(t){i=e?"":i}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=i?a.getDate():0,t.currentMonth=i?a.getMonth():0,t.currentYear=i?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,r,i){var o=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},a=function(r){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),r,t.datepicker._getFormatConfig(e))}catch(t){}for(var i=(r.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=i.getFullYear(),a=i.getMonth(),s=i.getDate(),n=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=n.exec(r);l;){switch(l[2]||"d"){case"d":case"D":s+=parseInt(l[1],10);break;case"w":case"W":s+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),s=Math.min(s,t.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(l[1],10),s=Math.min(s,t.datepicker._getDaysInMonth(o,a))}l=n.exec(r)}return new Date(o,a,s)},s=null==r||""===r?i:"string"==typeof r?a(r):"number"==typeof r?isNaN(r)?i:o(r):new Date(r.getTime());return(s=s&&"Invalid Date"==""+s?i:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,r){var i=!e,o=t.selectedMonth,a=t.selectedYear,s=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=s.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=s.getMonth(),t.drawYear=t.selectedYear=t.currentYear=s.getFullYear(),o===t.selectedMonth&&a===t.selectedYear||r||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(i?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var r=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(i,-r,"M")},next:function(){t.datepicker._adjustDate(i,+r,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(i)},selectDay:function(){return t.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(i,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var e,r,i,o,a,s,n,l,c,h,d,u,p,_,g,f,m,C,L,b,E,v,y,w,x,k,S,Q,q,T,A,R,O,D,B,I,N,P,M,H=new Date,U=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),F=this._get(t,"isRTL"),z=this._get(t,"showButtonPanel"),W=this._get(t,"hideIfNoPrevNext"),j=this._get(t,"navigationAsDateFormat"),G=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),K=this._get(t,"stepMonths"),Y=1!==G[0]||1!==G[1],$=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),J=t.drawMonth-V,tt=t.drawYear;if(0>J&&(J+=12,tt--),Z)for(e=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-G[0]*G[1]+1,Z.getDate())),e=X&&X>e?X:e;this._daylightSavingAdjust(new Date(tt,J,1))>e;)0>--J&&(J=11,tt--);for(t.drawMonth=J,t.drawYear=tt,r=this._get(t,"prevText"),r=j?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,J-K,1)),this._getFormatConfig(t)):r,i=this._canAdjustMonth(t,-1,tt,J)?"<a class='rt-qc-ui-datepicker-prev rt-qc-ui-corner-all' data-handler='prev' data-event='click' title='"+r+"'><span class='rt-qc-ui-icon rt-qc-ui-icon-circle-triangle-"+(F?"e":"w")+"'>"+r+"</span></a>":W?"":"<a class='rt-qc-ui-datepicker-prev rt-qc-ui-corner-all rt-qc-ui-state-disabled' title='"+r+"'><span class='rt-qc-ui-icon rt-qc-ui-icon-circle-triangle-"+(F?"e":"w")+"'>"+r+"</span></a>",o=this._get(t,"nextText"),o=j?this.formatDate(o,this._daylightSavingAdjust(new Date(tt,J+K,1)),this._getFormatConfig(t)):o,a=this._canAdjustMonth(t,1,tt,J)?"<a class='rt-qc-ui-datepicker-next rt-qc-ui-corner-all' data-handler='next' data-event='click' title='"+o+"'><span class='rt-qc-ui-icon rt-qc-ui-icon-circle-triangle-"+(F?"w":"e")+"'>"+o+"</span></a>":W?"":"<a class='rt-qc-ui-datepicker-next rt-qc-ui-corner-all rt-qc-ui-state-disabled' title='"+o+"'><span class='rt-qc-ui-icon rt-qc-ui-icon-circle-triangle-"+(F?"w":"e")+"'>"+o+"</span></a>",s=this._get(t,"currentText"),n=this._get(t,"gotoCurrent")&&t.currentDay?$:U,s=j?this.formatDate(s,n,this._getFormatConfig(t)):s,l="<button type='button' class='rt-qc-ui-datepicker-close rt-qc-ui-state-default rt-qc-ui-priority-primary rt-qc-ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",c=z?"<div class='rt-qc-ui-datepicker-buttonpane rt-qc-ui-widget-content'>"+(F?l:"")+(this._isInRange(t,n)?"<button type='button' class='rt-qc-ui-datepicker-current rt-qc-ui-state-default rt-qc-ui-priority-secondary rt-qc-ui-corner-all' data-handler='today' data-event='click'>"+s+"</button>":"")+(F?"":l)+"</div>":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,d=this._get(t,"showWeek"),u=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),_=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),f=this._get(t,"beforeShowDay"),m=this._get(t,"showOtherMonths"),C=this._get(t,"selectOtherMonths"),L=this._getDefaultDate(t),b="",v=0;G[0]>v;v++){for(y="",this.maxRows=4,w=0;G[1]>w;w++){if(x=this._daylightSavingAdjust(new Date(tt,J,t.selectedDay)),k=" rt-qc-ui-corner-all",S="",Y){if(S+="<div class='rt-qc-ui-datepicker-group",G[1]>1)switch(w){case 0:S+=" rt-qc-ui-datepicker-group-first",k=" rt-qc-ui-corner-"+(F?"right":"left");break;case G[1]-1:S+=" rt-qc-ui-datepicker-group-last",k=" rt-qc-ui-corner-"+(F?"left":"right");break;default:S+=" rt-qc-ui-datepicker-group-middle",k=""}S+="'>"}for(S+="<div class='rt-qc-ui-datepicker-header rt-qc-ui-widget-header rt-qc-ui-helper-clearfix"+k+"'>"+(/all|left/.test(k)&&0===v?F?a:i:"")+(/all|right/.test(k)&&0===v?F?i:a:"")+this._generateMonthYearHeader(t,J,tt,X,Z,v>0||w>0,_,g)+"</div><table class='rt-qc-ui-datepicker-calendar'><thead><tr>",Q=d?"<th class='rt-qc-ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",E=0;7>E;E++)Q+="<th scope='col'"+((E+h+6)%7>=5?" class='rt-qc-ui-datepicker-week-end'":"")+"><span title='"+u[q=(E+h)%7]+"'>"+p[q]+"</span></th>";for(S+=Q+"</tr></thead><tbody>",T=this._getDaysInMonth(tt,J),tt===t.selectedYear&&J===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,T)),A=(this._getFirstDayOfMonth(tt,J)-h+7)%7,R=Math.ceil((A+T)/7),O=Y&&this.maxRows>R?this.maxRows:R,this.maxRows=O,D=this._daylightSavingAdjust(new Date(tt,J,1-A)),B=0;O>B;B++){for(S+="<tr>",I=d?"<td class='rt-qc-ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(D)+"</td>":"",E=0;7>E;E++)N=f?f.apply(t.input?t.input[0]:null,[D]):[!0,""],M=(P=D.getMonth()!==J)&&!C||!N[0]||X&&X>D||Z&&D>Z,I+="<td class='"+((E+h+6)%7>=5?" rt-qc-ui-datepicker-week-end":"")+(P?" rt-qc-ui-datepicker-other-month":"")+(D.getTime()===x.getTime()&&J===t.selectedMonth&&t._keyEvent||L.getTime()===D.getTime()&&L.getTime()===x.getTime()?" "+this._dayOverClass:"")+(M?" "+this._unselectableClass+" rt-qc-ui-state-disabled":"")+(P&&!m?"":" "+N[1]+(D.getTime()===$.getTime()?" "+this._currentClass:"")+(D.getTime()===U.getTime()?" rt-qc-ui-datepicker-today":""))+"'"+(P&&!m||!N[2]?"":" title='"+N[2].replace(/'/g,"&#39;")+"'")+(M?"":" data-handler='selectDay' data-event='click' data-month='"+D.getMonth()+"' data-year='"+D.getFullYear()+"'")+">"+(P&&!m?"&#xa0;":M?"<span class='rt-qc-ui-state-default'>"+D.getDate()+"</span>":"<a class='rt-qc-ui-state-default"+(D.getTime()===U.getTime()?" rt-qc-ui-state-highlight":"")+(D.getTime()===$.getTime()?" rt-qc-ui-state-active":"")+(P?" rt-qc-ui-priority-secondary":"")+"' href='#'>"+D.getDate()+"</a>")+"</td>",D.setDate(D.getDate()+1),D=this._daylightSavingAdjust(D);S+=I+"</tr>"}++J>11&&(J=0,tt++),y+=S+="</tbody></table>"+(Y?"</div>"+(G[0]>0&&w===G[1]-1?"<div class='rt-qc-ui-datepicker-row-break'></div>":""):"")}b+=y}return b+=c,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,r,i,o,a,s,n){var l,c,h,d,u,p,_,g,f=this._get(t,"changeMonth"),m=this._get(t,"changeYear"),C=this._get(t,"showMonthAfterYear"),L="<div class='rt-qc-ui-datepicker-title'>",b="";if(a||!f)b+="<span class='rt-qc-ui-datepicker-month'>"+s[e]+"</span>";else{for(l=i&&i.getFullYear()===r,c=o&&o.getFullYear()===r,b+="<select class='rt-qc-ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;12>h;h++)(!l||h>=i.getMonth())&&(!c||o.getMonth()>=h)&&(b+="<option value='"+h+"'"+(h===e?" selected='selected'":"")+">"+n[h]+"</option>");b+="</select>"}if(C||(L+=b+(!a&&f&&m?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",a||!m)L+="<span class='rt-qc-ui-datepicker-year'>"+r+"</span>";else{for(d=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?r+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(e)?u:e},_=p(d[0]),g=Math.max(_,p(d[1]||"")),_=i?Math.max(_,i.getFullYear()):_,g=o?Math.min(g,o.getFullYear()):g,t.yearshtml+="<select class='rt-qc-ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=_;_++)t.yearshtml+="<option value='"+_+"'"+(_===r?" selected='selected'":"")+">"+_+"</option>";t.yearshtml+="</select>",L+=t.yearshtml,t.yearshtml=null}return L+=this._get(t,"yearSuffix"),C&&(L+=(!a&&f&&m?"":"&#xa0;")+b),L+"</div>"},_adjustInstDate:function(t,e,r){var i=t.selectedYear+("Y"===r?e:0),o=t.selectedMonth+("M"===r?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(i,o))+("D"===r?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,o,a)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),("M"===r||"Y"===r)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var r=this._getMinMaxDate(t,"min"),i=this._getMinMaxDate(t,"max"),o=r&&r>e?r:e;return i&&o>i?i:o},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,r,i){var o=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(r,i+(0>e?e:o[0]*o[1]),1));return 0>e&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var r,i,o=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),s=null,n=null,l=this._get(t,"yearRange");return l&&(r=l.split(":"),i=(new Date).getFullYear(),s=parseInt(r[0],10),n=parseInt(r[1],10),r[0].match(/[+\-].*/)&&(s+=i),r[1].match(/[+\-].*/)&&(n+=i)),(!o||e.getTime()>=o.getTime())&&(!a||e.getTime()<=a.getTime())&&(!s||e.getFullYear()>=s)&&(!n||n>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,r,i){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var o=e?"object"==s(e)?e:this._daylightSavingAdjust(new Date(i,r,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),o,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var r=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(r)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(r)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(r))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"rt-qc-ui-dialog":"rt-qc-ui-corner-all","rt-qc-ui-dialog-titlebar":"rt-qc-ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var r=t(this).css(e).offset().top;0>r&&t(this).css("top",e.top-r)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("rt-qc-ui-dialog-content","rt-qc-ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var r=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){r._trigger("close",e)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,r){var i=!1,o=this.uiDialog.siblings(".rt-qc-ui-front:visible").map((function(){return+t(this).css("z-index")})).get(),a=Math.max.apply(null,o);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),i=!0),i&&!r&&this._trigger("focus",e),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){e._focusTabbable(),e._trigger("focus")})),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function r(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),r.call(this),this._delay(r)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"rt-qc-ui-dialog","rt-qc-ui-widget rt-qc-ui-widget-content rt-qc-ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var r=this.uiDialog.find(":tabbable"),i=r.filter(":first"),o=r.filter(":last");e.target!==o[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==i[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay((function(){o.trigger("focus")})),e.preventDefault()):(this._delay((function(){i.trigger("focus")})),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"rt-qc-ui-dialog-titlebar","rt-qc-ui-widget-header rt-qc-ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".rt-qc-ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"rt-qc-ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"rt-qc-ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"rt-qc-ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"rt-qc-ui-dialog-buttonpane","rt-qc-ui-widget-content rt-qc-ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"rt-qc-ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,r=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(r)||t.isArray(r)&&!r.length?void this._removeClass(this.uiDialog,"rt-qc-ui-dialog-buttons"):(t.each(r,(function(r,i){var o,a;i=t.isFunction(i)?{click:i,text:r}:i,i=t.extend({type:"button"},i),o=i.click,a={icon:i.icon,iconPosition:i.iconPosition,showLabel:i.showLabel,icons:i.icons,text:i.text},delete i.click,delete i.icon,delete i.iconPosition,delete i.showLabel,delete i.icons,"boolean"==typeof i.text&&delete i.text,t("<button></button>",i).button(a).appendTo(e.uiButtonSet).on("click",(function(){o.apply(e.element[0],arguments)}))})),this._addClass(this.uiDialog,"rt-qc-ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var r=this,i=this.options;this.uiDialog.draggable({cancel:".rt-qc-ui-dialog-content, .rt-qc-ui-dialog-titlebar-close",handle:".rt-qc-ui-dialog-titlebar",containment:"document",start:function(i,o){r._addClass(t(this),"rt-qc-ui-dialog-dragging"),r._blockFrames(),r._trigger("dragStart",i,e(o))},drag:function(t,i){r._trigger("drag",t,e(i))},stop:function(o,a){var s=a.offset.left-r.document.scrollLeft(),n=a.offset.top-r.document.scrollTop();i.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(n>=0?"+":"")+n,of:r.window},r._removeClass(t(this),"rt-qc-ui-dialog-dragging"),r._unblockFrames(),r._trigger("dragStop",o,e(a))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var r=this,i=this.options,o=i.resizable,a=this.uiDialog.css("position"),s="string"==typeof o?o:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".rt-qc-ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:s,start:function(i,o){r._addClass(t(this),"rt-qc-ui-dialog-resizing"),r._blockFrames(),r._trigger("resizeStart",i,e(o))},resize:function(t,i){r._trigger("resize",t,e(i))},stop:function(o,a){var s=r.uiDialog.offset(),n=s.left-r.document.scrollLeft(),l=s.top-r.document.scrollTop();i.height=r.uiDialog.height(),i.width=r.uiDialog.width(),i.position={my:"left top",at:"left"+(n>=0?"+":"")+n+" top"+(l>=0?"+":"")+l,of:r.window},r._removeClass(t(this),"rt-qc-ui-dialog-resizing"),r._unblockFrames(),r._trigger("resizeStop",o,e(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),r=t.inArray(this,e);-1!==r&&e.splice(r,1)},_trackingInstances:function(){var t=this.document.data("rt-qc-ui-dialog-instances");return t||(t=[],this.document.data("rt-qc-ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var r=this,i=!1,o={};t.each(e,(function(t,e){r._setOption(t,e),t in r.sizeRelatedOptions&&(i=!0),t in r.resizableRelatedOptions&&(o[t]=e)})),i&&(this._size(),this._position()),this.uiDialog.is(":data(rt-qc-ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,r){var i,o,a=this.uiDialog;"disabled"!==e&&(this._super(e,r),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((i=a.is(":data(rt-qc-ui-draggable)"))&&!r&&a.draggable("destroy"),!i&&r&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((o=a.is(":data(rt-qc-ui-resizable)"))&&!r&&a.resizable("destroy"),o&&"string"==typeof r&&a.resizable("option","handles",r),o||!1===r||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".rt-qc-ui-dialog-title")))},_size:function(){var t,e,r,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),t=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),e=Math.max(0,i.minHeight-t),r="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-t):"none","auto"===i.height?this.element.css({minHeight:e,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,i.height-t)),this.uiDialog.is(":data(rt-qc-ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".rt-qc-ui-dialog").length||!!t(e.target).closest(".rt-qc-ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay((function(){e=!1})),this.document.data("rt-qc-ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"rt-qc-ui-widget-overlay rt-qc-ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("rt-qc-ui-dialog-overlays",(this.document.data("rt-qc-ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("rt-qc-ui-dialog-overlays")-1;t?this.document.data("rt-qc-ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("rt-qc-ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"rt-qc-ui-progressbar":"rt-qc-ui-corner-all","rt-qc-ui-progressbar-value":"rt-qc-ui-corner-left","rt-qc-ui-progressbar-complete":"rt-qc-ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("rt-qc-ui-progressbar","rt-qc-ui-widget rt-qc-ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"rt-qc-ui-progressbar-value","rt-qc-ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"rt-qc-ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,r=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(r.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"rt-qc-ui-progressbar-complete",null,e===this.options.max)._toggleClass("rt-qc-ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"rt-qc-ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"rt-qc-ui-selectmenu-button-open":"rt-qc-ui-corner-top","rt-qc-ui-selectmenu-button-closed":"rt-qc-ui-corner-all"},disabled:null,icons:{button:"rt-qc-ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,r=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"rt-qc-ui-selectmenu-button rt-qc-ui-selectmenu-button-closed","rt-qc-ui-button rt-qc-ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"rt-qc-ui-selectmenu-icon","rt-qc-ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){r._rendered||r._refreshMenu()}))},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"rt-qc-ui-selectmenu-menu","rt-qc-ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"rt-qc-ui-menu":"rt-qc-ui-corner-bottom"},role:"listbox",select:function(t,r){t.preventDefault(),e._setSelection(),e._select(r.item.data("rt-qc-ui-selectmenu-item"),t)},focus:function(t,r){var i=r.item.data("rt-qc-ui-selectmenu-item");null!=e.focusIndex&&i.index!==e.focusIndex&&(e._trigger("focus",t,{item:i}),e.isOpen||e._select(i,t)),e.focusIndex=i.index,e.button.attr("aria-activedescendant",e.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("rt-qc-ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".rt-qc-ui-selectmenu-optgroup").find(".rt-qc-ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("rt-qc-ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".rt-qc-ui-state-active"),null,"rt-qc-ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var r=t("<span>");return this._setText(r,e.label),this._addClass(r,"rt-qc-ui-selectmenu-text"),r},_renderMenu:function(e,r){var i=this,o="";t.each(r,(function(r,a){var s;a.optgroup!==o&&(s=t("<li>",{text:a.optgroup}),i._addClass(s,"rt-qc-ui-selectmenu-optgroup","rt-qc-ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" rt-qc-ui-state-disabled":"")),s.appendTo(e),o=a.optgroup),i._renderItemData(e,a)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("rt-qc-ui-selectmenu-item",e)},_renderItem:function(e,r){var i=t("<li>"),o=t("<div>",{title:r.element.attr("title")});return r.disabled&&this._addClass(i,null,"rt-qc-ui-state-disabled"),this._setText(o,r.label),i.append(o).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var r,i,o=".rt-qc-ui-menu-item";this.isOpen?r=this.menuItems.eq(this.focusIndex).parent("li"):(r=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),o+=":not(.rt-qc-ui-state-disabled)"),(i="first"===t||"last"===t?r["first"===t?"prevAll":"nextAll"](o).eq(-1):r[t+"All"](o).eq(0)).length&&this.menuInstance.focus(e,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".rt-qc-ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var r=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),r=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),r=!1}r&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("rt-qc-ui-state-disabled")||this._select(e.data("rt-qc-ui-selectmenu-item"),t)},_select:function(t,e){var r=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==r&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var r=this.button.find("span.rt-qc-ui-icon");this._removeClass(r,null,this.options.icons.button)._addClass(r,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"rt-qc-ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".rt-qc-ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"rt-qc-ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"rt-qc-ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"rt-qc-ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return!1===t?void this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var r=this,i=[];e.each((function(e,o){i.push(r._parseOption(t(o),e))})),this.items=i},_parseOption:function(t,e){var r=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:r.attr("label")||"",disabled:r.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"rt-qc-ui-slider":"rt-qc-ui-corner-all","rt-qc-ui-slider-handle":"rt-qc-ui-corner-all","rt-qc-ui-slider-range":"rt-qc-ui-corner-all rt-qc-ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("rt-qc-ui-slider rt-qc-ui-slider-"+this.orientation,"rt-qc-ui-widget rt-qc-ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,r,i=this.options,o=this.element.find(".rt-qc-ui-slider-handle"),a="<span tabindex='0'></span>",s=[];for(r=i.values&&i.values.length||1,o.length>r&&(o.slice(r).remove(),o=o.slice(0,r)),e=o.length;r>e;e++)s.push(a);this.handles=o.add(t(s.join("")).appendTo(this.element)),this._addClass(this.handles,"rt-qc-ui-slider-handle","rt-qc-ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("rt-qc-ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"rt-qc-ui-slider-range-min rt-qc-ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"rt-qc-ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"rt-qc-ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var r,i,o,a,s,n,l,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),r={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(r),o=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var r=Math.abs(i-c.values(e));(o>r||o===r&&(e===c._lastChangedValue||c.values(e)===h.min))&&(o=r,a=t(this),s=e)})),!1!==this._start(e,s)&&(this._mouseSliding=!0,this._handleIndex=s,this._addClass(a,null,"rt-qc-ui-state-active"),a.trigger("focus"),n=a.offset(),l=!t(e.target).parents().addBack().is(".rt-qc-ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-n.left-a.width()/2,top:e.pageY-n.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("rt-qc-ui-state-hover")||this._slide(e,s,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},r=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,r),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"rt-qc-ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,r,i,o,a;return"horizontal"===this.orientation?(e=this.elementSize.width,r=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,r=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(i=r/e)>1&&(i=1),0>i&&(i=0),"vertical"===this.orientation&&(i=1-i),o=this._valueMax()-this._valueMin(),a=this._valueMin()+i*o,this._trimAlignValue(a)},_uiHash:function(t,e,r){var i={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==e?e:this.values(t),i.values=r||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,r){var i,o=this.value(),a=this.values();this._hasMultipleValues()&&(i=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&!0===this.options.range&&(r=0===e?Math.min(i,r):Math.max(i,r)),a[e]=r),r!==o&&!1!==this._trigger("slide",t,this._uiHash(e,r,a))&&(this._hasMultipleValues()?this.values(e,r):this.value(r))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,r){var i,o,a;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(r),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,o=arguments[0],a=0;i.length>a;a+=1)i[a]=this._trimAlignValue(o[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,r){var i,o=0;switch("range"===e&&!0===this.options.range&&("min"===r?(this.options.value=this._values(0),this.options.values=null):"max"===r&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(o=this.options.values.length),this._super(e,r),e){case"orientation":this._detectOrientation(),this._removeClass("rt-qc-ui-slider-horizontal rt-qc-ui-slider-vertical")._addClass("rt-qc-ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(r),this.handles.css("horizontal"===r?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=o-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"rt-qc-ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,r,i;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(r=this.options.values.slice(),i=0;r.length>i;i+=1)r[i]=this._trimAlignValue(r[i]);return r}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,r=(t-this._valueMin())%e,i=t-r;return 2*Math.abs(r)>=e&&(i+=r>0?e:-e),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),r=this.options.step;(t=Math.round((t-e)/r)*r+e)>this.options.max&&(t-=r),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,r=e.indexOf(".");return-1===r?0:e.length-r-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,r,i,o,a,s=this.options.range,n=this.options,l=this,c=!this._animateOff&&n.animate,h={};this._hasMultipleValues()?this.handles.each((function(i){r=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=r+"%",t(this).stop(1,1)[c?"animate":"css"](h,n.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[c?"animate":"css"]({left:r+"%"},n.animate),1===i&&l.range[c?"animate":"css"]({width:r-e+"%"},{queue:!1,duration:n.animate})):(0===i&&l.range.stop(1,1)[c?"animate":"css"]({bottom:r+"%"},n.animate),1===i&&l.range[c?"animate":"css"]({height:r-e+"%"},{queue:!1,duration:n.animate}))),e=r})):(i=this.value(),o=this._valueMin(),a=this._valueMax(),r=a!==o?(i-o)/(a-o)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=r+"%",this.handle.stop(1,1)[c?"animate":"css"](h,n.animate),"min"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:r+"%"},n.animate),"max"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-r+"%"},n.animate),"min"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:r+"%"},n.animate),"max"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-r+"%"},n.animate))},_handleEvents:{keydown:function(e){var r,i,o,a=t(e.target).data("rt-qc-ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"rt-qc-ui-state-active"),!1===this._start(e,a)))return}switch(o=this.options.step,r=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:i=this._valueMin();break;case t.ui.keyCode.END:i=this._valueMax();break;case t.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-o)}this._slide(e,a,i)},keyup:function(e){var r=t(e.target).data("rt-qc-ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,r),this._change(e,r),this._removeClass(t(e.target),null,"rt-qc-ui-state-active"))}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"rt-qc-ui-spinner":"rt-qc-ui-corner-all","rt-qc-ui-spinner-down":"rt-qc-ui-corner-br","rt-qc-ui-spinner-up":"rt-qc-ui-corner-tr"},culture:null,icons:{down:"rt-qc-ui-icon-triangle-1-s",up:"rt-qc-ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),r=this.element;return t.each(["min","max","step"],(function(t,i){var o=r.attr(i);null!=o&&o.length&&(e[i]=o)})),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(t)}),100),t.preventDefault()}},"mousedown .rt-qc-ui-spinner-button":function(e){function r(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=i,this._delay((function(){this.previous=i})))}var i;i=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,r.call(this)})),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("rt-qc-ui-spinner-up")?1:-1,e)},"mouseup .rt-qc-ui-spinner-button":"_stop","mouseenter .rt-qc-ui-spinner-button":function(e){return t(e.currentTarget).hasClass("rt-qc-ui-state-active")?!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("rt-qc-ui-spinner-up")?1:-1,e):void 0},"mouseleave .rt-qc-ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"rt-qc-ui-spinner","rt-qc-ui-widget rt-qc-ui-widget-content"),this._addClass("rt-qc-ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"rt-qc-ui-button":""}}),this._removeClass(this.buttons,"rt-qc-ui-corner-all"),this._addClass(this.buttons.first(),"rt-qc-ui-spinner-button rt-qc-ui-spinner-up"),this._addClass(this.buttons.last(),"rt-qc-ui-spinner-button rt-qc-ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var r=this.options,i=t.ui.keyCode;switch(e.keyCode){case i.UP:return this._repeat(null,1,e),!0;case i.DOWN:return this._repeat(null,-1,e),!0;case i.PAGE_UP:return this._repeat(null,r.page,e),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,e),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(t,e,r){t=t||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,e,r)}),t),this._spin(e*this.options.step,r)},_spin:function(t,e){var r=this.value()||0;this.counter||(this.counter=1),r=this._adjustValue(r+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:r})||(this._value(r),this.counter++)},_increment:function(e){var r=this.options.incremental;return r?t.isFunction(r)?r(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,r=e.indexOf(".");return-1===r?0:e.length-r-1},_adjustValue:function(t){var e,r,i=this.options;return r=t-(e=null!==i.min?i.min:0),t=e+(r=Math.round(r/i.step)*i.step),t=parseFloat(t.toFixed(this._precision())),null!==i.max&&t>i.max?i.max:null!==i.min&&i.min>t?i.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var r,i,o;return"culture"===t||"numberFormat"===t?(r=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(r))):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".rt-qc-ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),o=this.buttons.last().find(".rt-qc-ui-icon"),this._removeClass(o,null,this.options.icons.down),this._addClass(o,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"rt-qc-ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:l((function(t){this._super(t)})),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var r;""!==t&&null!==(r=this._parse(t))&&(e||(r=this._adjustValue(r)),t=this._format(r)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:l((function(t){this._stepUp(t)})),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:l((function(t){this._stepDown(t)})),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:l((function(t){this._stepUp((t||1)*this.options.page)})),pageDown:l((function(t){this._stepDown((t||1)*this.options.page)})),value:function(t){return arguments.length?void l(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),!1!==t.uiBackCompat&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"rt-qc-ui-tabs":"rt-qc-ui-corner-all","rt-qc-ui-tabs-nav":"rt-qc-ui-corner-all","rt-qc-ui-tabs-panel":"rt-qc-ui-corner-bottom","rt-qc-ui-tabs-tab":"rt-qc-ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var r,i;r=e.href.replace(t,""),i=location.href.replace(t,"");try{r=decodeURIComponent(r)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return e.hash.length>1&&r===i}}(),_create:function(){var e=this,r=this.options;this.running=!1,this._addClass("rt-qc-ui-tabs","rt-qc-ui-widget rt-qc-ui-widget-content"),this._toggleClass("rt-qc-ui-tabs-collapsible",null,r.collapsible),this._processTabs(),r.active=this._initialActive(),t.isArray(r.disabled)&&(r.disabled=t.unique(r.disabled.concat(t.map(this.tabs.filter(".rt-qc-ui-state-disabled"),(function(t){return e.tabs.index(t)})))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(r.active):t(),this._refresh(),this.active.length&&this.load(r.active)},_initialActive:function(){var e=this.options.active,r=this.options.collapsible,i=location.hash.substring(1);return null===e&&(i&&this.tabs.each((function(r,o){return t(o).attr("aria-controls")===i?(e=r,!1):void 0})),null===e&&(e=this.tabs.index(this.tabs.filter(".rt-qc-ui-tabs-active"))),(null===e||-1===e)&&(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!r&&0),!r&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var r=t(t.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(r),o=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:i++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:o=!1,i--;break;case t.ui.keyCode.END:i=this.anchors.length-1;break;case t.ui.keyCode.HOME:i=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}e.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,o),e.ctrlKey||e.metaKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",i)}),this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,r){function i(){return e>o&&(e=0),0>e&&(e=o),e}for(var o=this.tabs.length-1;-1!==t.inArray(i(),this.options.disabled);)e=r?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?void this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("rt-qc-ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,r=this.tablist.children(":has(a[href])");e.disabled=t.map(r.filter(".rt-qc-ui-state-disabled"),(function(t){return r.index(t)})),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"rt-qc-ui-tabs-active","rt-qc-ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,r=this.tabs,i=this.anchors,o=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"rt-qc-ui-tabs-nav","rt-qc-ui-helper-reset rt-qc-ui-helper-clearfix rt-qc-ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",(function(e){t(this).is(".rt-qc-ui-state-disabled")&&e.preventDefault()})).on("focus"+this.eventNamespace,".rt-qc-ui-tabs-anchor",(function(){t(this).closest("li").is(".rt-qc-ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"rt-qc-ui-tabs-tab","rt-qc-ui-state-default"),this.anchors=this.tabs.map((function(){return t("a",this)[0]})).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"rt-qc-ui-tabs-anchor"),this.panels=t(),this.anchors.each((function(r,i){var o,a,s,n=t(i).uniqueId().attr("id"),l=t(i).closest("li"),c=l.attr("aria-controls");e._isLocal(i)?(s=(o=i.hash).substring(1),a=e.element.find(e._sanitizeSelector(o))):(o="#"+(s=l.attr("aria-controls")||t({}).uniqueId()[0].id),(a=e.element.find(o)).length||(a=e._createPanel(s)).insertAfter(e.panels[r-1]||e.tablist),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&l.data("rt-qc-ui-tabs-aria-controls",c),l.attr({"aria-controls":s,"aria-labelledby":n}),a.attr("aria-labelledby",n)})),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"rt-qc-ui-tabs-panel","rt-qc-ui-widget-content"),r&&(this._off(r.not(this.tabs)),this._off(i.not(this.anchors)),this._off(o.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("rt-qc-ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var r,i,o;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),o=0;i=this.tabs[o];o++)r=t(i),!0===e||-1!==t.inArray(o,e)?(r.attr("aria-disabled","true"),this._addClass(r,null,"rt-qc-ui-state-disabled")):(r.removeAttr("aria-disabled"),this._removeClass(r,null,"rt-qc-ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var r={};e&&t.each(e.split(" "),(function(t,e){r[e]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,r),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var r,i=this.element.parent();"fill"===e?(r=i.height(),r-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var e=t(this),i=e.css("position");"absolute"!==i&&"fixed"!==i&&(r-=e.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){r-=t(this).outerHeight(!0)})),this.panels.each((function(){t(this).height(Math.max(0,r-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===e&&(r=0,this.panels.each((function(){r=Math.max(r,t(this).height("").height())})).height(r))},_eventHandler:function(e){var r=this.options,i=this.active,o=t(e.currentTarget).closest("li"),a=o[0]===i[0],s=a&&r.collapsible,n=s?t():this._getPanelForTab(o),l=i.length?this._getPanelForTab(i):t(),c={oldTab:i,oldPanel:l,newTab:s?t():o,newPanel:n};e.preventDefault(),o.hasClass("rt-qc-ui-state-disabled")||o.hasClass("rt-qc-ui-tabs-loading")||this.running||a&&!r.collapsible||!1===this._trigger("beforeActivate",e,c)||(r.active=!s&&this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),l.length||n.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),n.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,r){function i(){a.running=!1,a._trigger("activate",e,r)}function o(){a._addClass(r.newTab.closest("li"),"rt-qc-ui-tabs-active","rt-qc-ui-state-active"),s.length&&a.options.show?a._show(s,a.options.show,i):(s.show(),i())}var a=this,s=r.newPanel,n=r.oldPanel;this.running=!0,n.length&&this.options.hide?this._hide(n,this.options.hide,(function(){a._removeClass(r.oldTab.closest("li"),"rt-qc-ui-tabs-active","rt-qc-ui-state-active"),o()})):(this._removeClass(r.oldTab.closest("li"),"rt-qc-ui-tabs-active","rt-qc-ui-state-active"),n.hide(),o()),n.attr("aria-hidden","true"),r.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&n.length?r.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter((function(){return 0===t(this).attr("tabIndex")})).attr("tabIndex",-1),s.attr("aria-hidden","false"),r.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var r,i=this._findActive(e);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".rt-qc-ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each((function(){t.data(this,"rt-qc-ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")})),this.tabs.each((function(){var e=t(this),r=e.data("rt-qc-ui-tabs-aria-controls");r?e.attr("aria-controls",r).removeData("rt-qc-ui-tabs-aria-controls"):e.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var r=this.options.disabled;!1!==r&&(void 0===e?r=!1:(e=this._getIndex(e),r=t.isArray(r)?t.map(r,(function(t){return t!==e?t:null})):t.map(this.tabs,(function(t,r){return r!==e?r:null}))),this._setOptionDisabled(r))},disable:function(e){var r=this.options.disabled;if(!0!==r){if(void 0===e)r=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,r))return;r=t.isArray(r)?t.merge([e],r).sort():[e]}this._setOptionDisabled(r)}},load:function(e,r){e=this._getIndex(e);var i=this,o=this.tabs.eq(e),a=o.find(".rt-qc-ui-tabs-anchor"),s=this._getPanelForTab(o),n={tab:o,panel:s},l=function(t,e){"abort"===e&&i.panels.stop(!1,!0),i._removeClass(o,"rt-qc-ui-tabs-loading"),s.removeAttr("aria-busy"),t===i.xhr&&delete i.xhr};this._isLocal(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,r,n)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(o,"rt-qc-ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.done((function(t,e,o){setTimeout((function(){s.html(t),i._trigger("load",r,n),l(o,e)}),1)})).fail((function(t,e){setTimeout((function(){l(t,e)}),1)}))))},_ajaxSettings:function(e,r,i){var o=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,a){return o._trigger("beforeLoad",r,t.extend({jqXHR:e,ajaxSettings:a},i))}}},_getPanelForTab:function(e){var r=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+r))}}),!1!==t.uiBackCompat&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"rt-qc-ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"rt-qc-ui-tooltip":"rt-qc-ui-corner-all rt-qc-ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,r){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(r),e.data("rt-qc-ui-tooltip-id",r).attr("aria-describedby",t.trim(i.join(" ")))},_removeDescribedBy:function(e){var r=e.data("rt-qc-ui-tooltip-id"),i=(e.attr("aria-describedby")||"").split(/\s+/),o=t.inArray(r,i);-1!==o&&i.splice(o,1),e.removeData("rt-qc-ui-tooltip-id"),(i=t.trim(i.join(" ")))?e.attr("aria-describedby",i):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"rt-qc-ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,r){var i=this;this._super(e,r),"content"===e&&t.each(this.tooltips,(function(t,e){i._updateContent(e.element)}))},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,(function(r,i){var o=t.Event("blur");o.target=o.currentTarget=i.element[0],e.close(o,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var e=t(this);return e.is("[title]")?e.data("rt-qc-ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0})))},_enable:function(){this.disabledTitles.each((function(){var e=t(this);e.data("rt-qc-ui-tooltip-title")&&e.attr("title",e.data("rt-qc-ui-tooltip-title"))})),this.disabledTitles=t([])},open:function(e){var r=this,i=t(e?e.target:this.element).closest(this.options.items);i.length&&!i.data("rt-qc-ui-tooltip-id")&&(i.attr("title")&&i.data("rt-qc-ui-tooltip-title",i.attr("title")),i.data("rt-qc-ui-tooltip-open",!0),e&&"mouseover"===e.type&&i.parents().each((function(){var e,i=t(this);i.data("rt-qc-ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,r.close(e,!0)),i.attr("title")&&(i.uniqueId(),r.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))})),this._registerCloseHandlers(e,i),this._updateContent(i,e))},_updateContent:function(t,e){var r,i=this.options.content,o=this,a=e?e.type:null;return"string"==typeof i||i.nodeType||i.jquery?this._open(e,t,i):void((r=i.call(t[0],(function(r){o._delay((function(){t.data("rt-qc-ui-tooltip-open")&&(e&&(e.type=a),this._open(e,t,r))}))})))&&this._open(e,t,r))},_open:function(e,r,i){function o(t){c.of=t,s.is(":hidden")||s.position(c)}var a,s,n,l,c=t.extend({},this.options.position);if(i){if(a=this._find(r))return void a.tooltip.find(".rt-qc-ui-tooltip-content").html(i);r.is("[title]")&&(e&&"mouseover"===e.type?r.attr("title",""):r.removeAttr("title")),a=this._tooltip(r),s=a.tooltip,this._addDescribedBy(r,s.attr("id")),s.find(".rt-qc-ui-tooltip-content").html(i),this.liveRegion.children().hide(),(l=t("<div>").html(s.find(".rt-qc-ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:o}),o(e)):s.position(t.extend({of:r},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(n=this.delayedShow=setInterval((function(){s.is(":visible")&&(o(c.of),clearInterval(n))}),t.fx.interval)),this._trigger("open",e,{tooltip:s})}},_registerCloseHandlers:function(e,r){var i={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=r[0],this.close(i,!0)}}};r[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(r).tooltip)}),e&&"mouseover"!==e.type||(i.mouseleave="close"),e&&"focusin"!==e.type||(i.focusout="close"),this._on(!0,r,i)},close:function(e){var r,i=this,o=t(e?e.currentTarget:this.element),a=this._find(o);return a?(r=a.tooltip,void(a.closing||(clearInterval(this.delayedShow),o.data("rt-qc-ui-tooltip-title")&&!o.attr("title")&&o.attr("title",o.data("rt-qc-ui-tooltip-title")),this._removeDescribedBy(o),a.hiding=!0,r.stop(!0),this._hide(r,this.options.hide,(function(){i._removeTooltip(t(this))})),o.removeData("rt-qc-ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,(function(e,r){t(r.element).attr("title",r.title),delete i.parents[e]})),a.closing=!0,this._trigger("close",e,{tooltip:r}),a.hiding||(a.closing=!1)))):void o.removeData("rt-qc-ui-tooltip-open")},_tooltip:function(e){var r=t("<div>").attr("role","tooltip"),i=t("<div>").appendTo(r),o=r.uniqueId().attr("id");return this._addClass(i,"rt-qc-ui-tooltip-content"),this._addClass(r,"rt-qc-ui-tooltip","rt-qc-ui-widget rt-qc-ui-widget-content"),r.appendTo(this._appendTo(e)),this.tooltips[o]={element:e,tooltip:r}},_find:function(t){var e=t.data("rt-qc-ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".rt-qc-ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,(function(r,i){var o=t.Event("blur"),a=i.element;o.target=o.currentTarget=a[0],e.close(o,!0),t("#"+r).remove(),a.data("rt-qc-ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("rt-qc-ui-tooltip-title")),a.removeData("rt-qc-ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip;var g="rt-qc-ui-effects-",f="rt-qc-ui-effects-style",m="rt-qc-ui-effects-animated",C=t;t.effects={effect:{}},function(t,e){function r(t,e,r){var i=d[e.type]||{};return null==t?r||!e.def?null:e.def:(t=i.floor?~~t:parseFloat(t),isNaN(t)?e.def:i.mod?(t+i.mod)%i.mod:0>t?0:t>i.max?i.max:t)}function i(r){var i=c(),o=i._rgba=[];return r=r.toLowerCase(),_(l,(function(t,a){var s,n=a.re.exec(r),l=n&&a.parse(n),c=a.space||"rgba";return l?(s=i[c](l),i[h[c].cache]=s[h[c].cache],o=i._rgba=s._rgba,!1):e})),o.length?("0,0,0,0"===o.join()&&t.extend(o,a.transparent),i):a[r]}function o(t,e,r){return 1>6*(r=(r+1)%1)?t+6*(e-t)*r:1>2*r?e:2>3*r?t+6*(e-t)*(2/3-r):t}var a,s="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",n=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],c=t.Color=function(e,r,i,o){return new t.Color.fn.parse(e,r,i,o)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=c.support={},p=t("<p>")[0],_=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=p.style.backgroundColor.indexOf("rgba")>-1,_(h,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),c.fn=t.extend(c.prototype,{parse:function(o,s,n,l){if(o===e)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=t(o).css(s),s=e);var d=this,u=t.type(o),p=this._rgba=[];return s!==e&&(o=[o,s,n,l],u="array"),"string"===u?this.parse(i(o)||a._default):"array"===u?(_(h.rgba.props,(function(t,e){p[e.idx]=r(o[e.idx],e)})),this):"object"===u?(_(h,o instanceof c?function(t,e){o[e.cache]&&(d[e.cache]=o[e.cache].slice())}:function(e,i){var a=i.cache;_(i.props,(function(t,e){if(!d[a]&&i.to){if("alpha"===t||null==o[t])return;d[a]=i.to(d._rgba)}d[a][e.idx]=r(o[t],e,!0)})),d[a]&&0>t.inArray(null,d[a].slice(0,3))&&(d[a][3]=1,i.from&&(d._rgba=i.from(d[a])))}),this):e},is:function(t){var r=c(t),i=!0,o=this;return _(h,(function(t,a){var s,n=r[a.cache];return n&&(s=o[a.cache]||a.to&&a.to(o._rgba)||[],_(a.props,(function(t,r){return null!=n[r.idx]?i=n[r.idx]===s[r.idx]:e}))),i})),i},_space:function(){var t=[],e=this;return _(h,(function(r,i){e[i.cache]&&t.push(r)})),t.pop()},transition:function(t,e){var i=c(t),o=i._space(),a=h[o],s=0===this.alpha()?c("transparent"):this,n=s[a.cache]||a.to(s._rgba),l=n.slice();return i=i[a.cache],_(a.props,(function(t,o){var a=o.idx,s=n[a],c=i[a],h=d[o.type]||{};null!==c&&(null===s?l[a]=c:(h.mod&&(c-s>h.mod/2?s+=h.mod:s-c>h.mod/2&&(s-=h.mod)),l[a]=r((c-s)*e+s,o)))})),this[o](l)},blend:function(e){if(1===this._rgba[3])return this;var r=this._rgba.slice(),i=r.pop(),o=c(e)._rgba;return c(t.map(r,(function(t,e){return(1-i)*o[e]+i*t})))},toRgbaString:function(){var e="rgba(",r=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===r[3]&&(r.pop(),e="rgb("),e+r.join()+")"},toHslaString:function(){var e="hsla(",r=t.map(this.hsla(),(function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t}));return 1===r[3]&&(r.pop(),e="hsl("),e+r.join()+")"},toHexString:function(e){var r=this._rgba.slice(),i=r.pop();return e&&r.push(~~(255*i)),"#"+t.map(r,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),c.fn.parse.prototype=c.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,r,i=t[0]/255,o=t[1]/255,a=t[2]/255,s=t[3],n=Math.max(i,o,a),l=Math.min(i,o,a),c=n-l,h=n+l,d=.5*h;return e=l===n?0:i===n?60*(o-a)/c+360:o===n?60*(a-i)/c+120:60*(i-o)/c+240,r=0===c?0:.5>=d?c/h:c/(2-h),[Math.round(e)%360,r,d,null==s?1:s]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,r=t[1],i=t[2],a=t[3],s=.5>=i?i*(1+r):i+r-i*r,n=2*i-s;return[Math.round(255*o(n,s,e+1/3)),Math.round(255*o(n,s,e)),Math.round(255*o(n,s,e-1/3)),a]},_(h,(function(i,o){var a=o.props,s=o.cache,l=o.to,h=o.from;c.fn[i]=function(i){if(l&&!this[s]&&(this[s]=l(this._rgba)),i===e)return this[s].slice();var o,n=t.type(i),d="array"===n||"object"===n?i:arguments,u=this[s].slice();return _(a,(function(t,e){var i=d["object"===n?t:e.idx];null==i&&(i=u[e.idx]),u[e.idx]=r(i,e)})),h?((o=c(h(u)))[s]=u,o):c(u)},_(a,(function(e,r){c.fn[e]||(c.fn[e]=function(o){var a,s=t.type(o),l="alpha"===e?this._hsla?"hsla":"rgba":i,c=this[l](),h=c[r.idx];return"undefined"===s?h:("function"===s&&(o=o.call(this,h),s=t.type(o)),null==o&&r.empty?this:("string"===s&&(a=n.exec(o))&&(o=h+parseFloat(a[2])*("+"===a[1]?1:-1)),c[r.idx]=o,this[l](c)))})}))})),c.hook=function(e){var r=e.split(" ");_(r,(function(e,r){t.cssHooks[r]={set:function(e,o){var a,s,n="";if("transparent"!==o&&("string"!==t.type(o)||(a=i(o)))){if(o=c(a||o),!u.rgba&&1!==o._rgba[3]){for(s="backgroundColor"===r?e.parentNode:e;(""===n||"transparent"===n)&&s&&s.style;)try{n=t.css(s,"backgroundColor"),s=s.parentNode}catch(t){}o=o.blend(n&&"transparent"!==n?n:"_default")}o=o.toRgbaString()}try{e.style[r]=o}catch(t){}}},t.fx.step[r]=function(e){e.colorInit||(e.start=c(e.elem,r),e.end=c(e.end),e.colorInit=!0),t.cssHooks[r].set(e.elem,e.start.transition(e.end,e.pos))}}))},c.hook(s),t.cssHooks.borderColor={expand:function(t){var e={};return _(["Top","Right","Bottom","Left"],(function(r,i){e["border"+i+"Color"]=t})),e}},a=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(C),function(){function e(e){var r,i,o=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,a={};if(o&&o.length&&o[0]&&o[o[0]])for(i=o.length;i--;)"string"==typeof o[r=o[i]]&&(a[t.camelCase(r)]=o[r]);else for(r in o)"string"==typeof o[r]&&(a[r]=o[r]);return a}function r(e,r){var i,a,s={};for(i in r)a=r[i],e[i]!==a&&(o[i]||(t.fx.step[i]||!isNaN(parseFloat(a)))&&(s[i]=a));return s}var i=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,r){t.fx.step[r]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(C.style(t.elem,r,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(o,a,s,n){var l=t.speed(a,s,n);return this.queue((function(){var a,s=t(this),n=s.attr("class")||"",c=l.children?s.find("*").addBack():s;c=c.map((function(){return{el:t(this),start:e(this)}})),a=function(){t.each(i,(function(t,e){o[e]&&s[e+"Class"](o[e])}))},a(),c=c.map((function(){return this.end=e(this.el[0]),this.diff=r(this.start,this.end),this})),s.attr("class",n),c=c.map((function(){var e=this,r=t.Deferred(),i=t.extend({},l,{queue:!1,complete:function(){r.resolve(e)}});return this.el.animate(this.diff,i),r.promise()})),t.when.apply(t,c.get()).done((function(){a(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),l.complete.call(s[0])}))}))},t.fn.extend({addClass:function(e){return function(r,i,o,a){return i?t.effects.animateClass.call(this,{add:r},i,o,a):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(r,i,o,a){return arguments.length>1?t.effects.animateClass.call(this,{remove:r},i,o,a):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(r,i,o,a,s){return"boolean"==typeof i||void 0===i?o?t.effects.animateClass.call(this,i?{add:r}:{remove:r},o,a,s):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:r},i,o,a)}}(t.fn.toggleClass),switchClass:function(e,r,i,o,a){return t.effects.animateClass.call(this,{add:r,remove:e},i,o,a)}})}(),function(){function e(e,r,i,o){return t.isPlainObject(e)&&(r=e,e=e.effect),e={effect:e},null==r&&(r={}),t.isFunction(r)&&(o=r,i=null,r={}),("number"==typeof r||t.fx.speeds[r])&&(o=i,i=r,r={}),t.isFunction(i)&&(o=i,i=null),r&&t.extend(e,r),i=i||r.duration,e.duration=t.fx.off?0:"number"==typeof i?i:i in t.fx.speeds?t.fx.speeds[i]:t.fx.speeds._default,e.complete=o||r.complete,e}function r(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==s(e)&&!e.effect}function i(t,e){var r=e.outerWidth(),i=e.outerHeight(),o=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,r,i,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?r:parseFloat(o[2]),bottom:"auto"===o[3]?i:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(r){return!!t(r).data(m)||e(r)}}(t.expr.filters.animated)),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var r=0,i=e.length;i>r;r++)null!==e[r]&&t.data(g+e[r],t[0].style[e[r]])},restore:function(t,e){for(var r,i=0,o=e.length;o>i;i++)null!==e[i]&&(r=t.data(g+e[i]),t.css(e[i],r))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".rt-qc-ui-effects-wrapper"))return e.parent();var r={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},i=t("<div></div>").addClass("rt-qc-ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:e.width(),height:e.height()},a=document.activeElement;try{a.id}catch(t){a=document.body}return e.wrap(i),(e[0]===a||t.contains(e[0],a))&&t(a).trigger("focus"),i=e.parent(),"static"===e.css("position")?(i.css({position:"relative"}),e.css({position:"relative"})):(t.extend(r,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,i){r[i]=e.css(i),isNaN(parseInt(r[i],10))&&(r[i]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(o),i.css(r).show()},removeWrapper:function(e){var r=document.activeElement;return e.parent().is(".rt-qc-ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===r||t.contains(e[0],r))&&t(r).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,r,i){return i||(i=r,r="effect"),t.effects.effect[e]=i,t.effects.effect[e].mode=r,i},scaledDimensions:function(t,e,r){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var i="horizontal"!==r?(e||100)/100:1,o="vertical"!==r?(e||100)/100:1;return{height:t.height()*o,width:t.width()*i,outerHeight:t.outerHeight()*o,outerWidth:t.outerWidth()*i}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,r){var i=t.queue();e>1&&i.splice.apply(i,[1,0].concat(i.splice(e,r))),t.dequeue()},saveStyle:function(t){t.data(f,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(f)||"",t.removeData(f)},mode:function(t,e){var r=t.is(":hidden");return"toggle"===e&&(e=r?"show":"hide"),(r?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var r,i;switch(t[0]){case"top":r=0;break;case"middle":r=.5;break;case"bottom":r=1;break;default:r=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:r}},createPlaceholder:function(e){var r,i=e.css("position"),o=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",r=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("rt-qc-ui-effects-placeholder"),e.data(g+"placeholder",r)),e.css({position:i,left:o.left,top:o.top}),r},removePlaceholder:function(t){var e=g+"placeholder",r=t.data(e);r&&(r.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,r,i,o){return o=o||{},t.each(r,(function(t,r){var a=e.cssUnit(r);a[0]>0&&(o[r]=a[0]*i+a[1])})),o}}),t.fn.extend({effect:function(){function r(e){function r(){n.removeData(m),t.effects.cleanUp(n),"hide"===i.mode&&n.hide(),s()}function s(){t.isFunction(l)&&l.call(n[0]),t.isFunction(e)&&e()}var n=t(this);i.mode=h.shift(),!1===t.uiBackCompat||a?"none"===i.mode?(n[c](),s()):o.call(n[0],i,r):(n.is(":hidden")?"hide"===c:"show"===c)?(n[c](),s()):o.call(n[0],i,s)}var i=e.apply(this,arguments),o=t.effects.effect[i.effect],a=o.mode,s=i.queue,n=s||"fx",l=i.complete,c=i.mode,h=[],d=function(e){var r=t(this),i=t.effects.mode(r,c)||a;r.data(m,!0),h.push(i),a&&("show"===i||i===a&&"hide"===i)&&r.show(),a&&"none"===i||t.effects.saveStyle(r),t.isFunction(e)&&e()};return t.fx.off||!o?c?this[c](i.duration,l):this.each((function(){l&&l.call(this)})):!1===s?this.each(d).each(r):this.queue(n,d).queue(n,r)},show:function(t){return function(i){if(r(i))return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="show",this.effect.call(this,o)}}(t.fn.show),hide:function(t){return function(i){if(r(i))return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="hide",this.effect.call(this,o)}}(t.fn.hide),toggle:function(t){return function(i){if(r(i)||"boolean"==typeof i)return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="toggle",this.effect.call(this,o)}}(t.fn.toggle),cssUnit:function(e){var r=this.css(e),i=[];return t.each(["em","px","%","pt"],(function(t,e){r.indexOf(e)>0&&(i=[parseFloat(r),e])})),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):i(this.css("clip"),this)},transfer:function(e,r){var i=t(this),o=t(e.to),a="fixed"===o.css("position"),s=t("body"),n=a?s.scrollTop():0,l=a?s.scrollLeft():0,c=o.offset(),h={top:c.top-n,left:c.left-l,height:o.innerHeight(),width:o.innerWidth()},d=i.offset(),u=t("<div class='rt-qc-ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:d.top-n,left:d.left-l,height:i.innerHeight(),width:i.innerWidth(),position:a?"fixed":"absolute"}).animate(h,e.duration,e.easing,(function(){u.remove(),t.isFunction(r)&&r()}))}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=i(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,r){e[r]=function(e){return Math.pow(e,t+2)}})),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,r=4;((e=Math.pow(2,--r))-1)/11>t;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,(function(e,r){t.easing["easeIn"+e]=r,t.easing["easeOut"+e]=function(t){return 1-r(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?r(2*t)/2:1-r(-2*t+2)/2}}))}(),t.effects,t.effects.define("blind","hide",(function(e,r){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=t(this),a=e.direction||"up",s=o.cssClip(),n={clip:t.extend({},s)},l=t.effects.createPlaceholder(o);n.clip[i[a][0]]=n.clip[i[a][1]],"show"===e.mode&&(o.cssClip(n.clip),l&&l.css(t.effects.clipToBox(n)),n.clip=s),l&&l.animate(t.effects.clipToBox(n),e.duration,e.easing),o.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:r})})),t.effects.define("bounce",(function(e,r){var i,o,a,s=t(this),n=e.mode,l="hide"===n,c="show"===n,h=e.direction||"up",d=e.distance,u=e.times||5,p=2*u+(c||l?1:0),_=e.duration/p,g=e.easing,f="up"===h||"down"===h?"top":"left",m="up"===h||"left"===h,C=0,L=s.queue().length;for(t.effects.createPlaceholder(s),a=s.css(f),d||(d=s["top"===f?"outerHeight":"outerWidth"]()/3),c&&((o={opacity:1})[f]=a,s.css("opacity",0).css(f,m?2*-d:2*d).animate(o,_,g)),l&&(d/=Math.pow(2,u-1)),(o={})[f]=a;u>C;C++)(i={})[f]=(m?"-=":"+=")+d,s.animate(i,_,g).animate(o,_,g),d=l?2*d:d/2;l&&((i={opacity:0})[f]=(m?"-=":"+=")+d,s.animate(i,_,g)),s.queue(r),t.effects.unshift(s,L,p+1)})),t.effects.define("clip","hide",(function(e,r){var i,o={},a=t(this),s=e.direction||"vertical",n="both"===s,l=n||"horizontal"===s,c=n||"vertical"===s;i=a.cssClip(),o.clip={top:c?(i.bottom-i.top)/2:i.top,right:l?(i.right-i.left)/2:i.right,bottom:c?(i.bottom-i.top)/2:i.bottom,left:l?(i.right-i.left)/2:i.left},t.effects.createPlaceholder(a),"show"===e.mode&&(a.cssClip(o.clip),o.clip=i),a.animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:r})})),t.effects.define("drop","hide",(function(e,r){var i,o=t(this),a="show"===e.mode,s=e.direction||"left",n="up"===s||"down"===s?"top":"left",l="up"===s||"left"===s?"-=":"+=",c="+="===l?"-=":"+=",h={opacity:0};t.effects.createPlaceholder(o),i=e.distance||o["top"===n?"outerHeight":"outerWidth"](!0)/2,h[n]=l+i,a&&(o.css(h),h[n]=c+i,h.opacity=1),o.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:r})})),t.effects.define("explode","hide",(function(e,r){function i(){C.push(this),C.length===d*u&&o()}function o(){p.css({visibility:"visible"}),t(C).remove(),r()}var a,s,n,l,c,h,d=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=d,p=t(this),_="show"===e.mode,g=p.show().css("visibility","hidden").offset(),f=Math.ceil(p.outerWidth()/u),m=Math.ceil(p.outerHeight()/d),C=[];for(a=0;d>a;a++)for(l=g.top+a*m,h=a-(d-1)/2,s=0;u>s;s++)n=g.left+s*f,c=s-(u-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*f,top:-a*m}).parent().addClass("rt-qc-ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:m,left:n+(_?c*f:0),top:l+(_?h*m:0),opacity:_?0:1}).animate({left:n+(_?0:c*f),top:l+(_?0:h*m),opacity:_?1:0},e.duration||500,e.easing,i)})),t.effects.define("fade","toggle",(function(e,r){var i="show"===e.mode;t(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:r})})),t.effects.define("fold","hide",(function(e,r){var i=t(this),o=e.mode,a="show"===o,s="hide"===o,n=e.size||15,l=/([0-9]+)%/.exec(n),c=e.horizFirst?["right","bottom"]:["bottom","right"],h=e.duration/2,d=t.effects.createPlaceholder(i),u=i.cssClip(),p={clip:t.extend({},u)},_={clip:t.extend({},u)},g=[u[c[0]],u[c[1]]],f=i.queue().length;l&&(n=parseInt(l[1],10)/100*g[s?0:1]),p.clip[c[0]]=n,_.clip[c[0]]=n,_.clip[c[1]]=0,a&&(i.cssClip(_.clip),d&&d.css(t.effects.clipToBox(_)),_.clip=u),i.queue((function(r){d&&d.animate(t.effects.clipToBox(p),h,e.easing).animate(t.effects.clipToBox(_),h,e.easing),r()})).animate(p,h,e.easing).animate(_,h,e.easing).queue(r),t.effects.unshift(i,f,4)})),t.effects.define("highlight","show",(function(e,r){var i=t(this),o={backgroundColor:i.css("backgroundColor")};"hide"===e.mode&&(o.opacity=0),t.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:r})})),t.effects.define("size",(function(e,r){var i,o,a,s=t(this),n=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=e.mode,d="effect"!==h,u=e.scale||"both",p=e.origin||["middle","center"],_=s.css("position"),g=s.position(),f=t.effects.scaledDimensions(s),m=e.from||f,C=e.to||t.effects.scaledDimensions(s,0);t.effects.createPlaceholder(s),"show"===h&&(a=m,m=C,C=a),o={from:{y:m.height/f.height,x:m.width/f.width},to:{y:C.height/f.height,x:C.width/f.width}},("box"===u||"both"===u)&&(o.from.y!==o.to.y&&(m=t.effects.setTransition(s,l,o.from.y,m),C=t.effects.setTransition(s,l,o.to.y,C)),o.from.x!==o.to.x&&(m=t.effects.setTransition(s,c,o.from.x,m),C=t.effects.setTransition(s,c,o.to.x,C))),("content"===u||"both"===u)&&o.from.y!==o.to.y&&(m=t.effects.setTransition(s,n,o.from.y,m),C=t.effects.setTransition(s,n,o.to.y,C)),p&&(i=t.effects.getBaseline(p,f),m.top=(f.outerHeight-m.outerHeight)*i.y+g.top,m.left=(f.outerWidth-m.outerWidth)*i.x+g.left,C.top=(f.outerHeight-C.outerHeight)*i.y+g.top,C.left=(f.outerWidth-C.outerWidth)*i.x+g.left),s.css(m),("content"===u||"both"===u)&&(l=l.concat(["marginTop","marginBottom"]).concat(n),c=c.concat(["marginLeft","marginRight"]),s.find("*[width]").each((function(){var r=t(this),i=t.effects.scaledDimensions(r),a={height:i.height*o.from.y,width:i.width*o.from.x,outerHeight:i.outerHeight*o.from.y,outerWidth:i.outerWidth*o.from.x},s={height:i.height*o.to.y,width:i.width*o.to.x,outerHeight:i.height*o.to.y,outerWidth:i.width*o.to.x};o.from.y!==o.to.y&&(a=t.effects.setTransition(r,l,o.from.y,a),s=t.effects.setTransition(r,l,o.to.y,s)),o.from.x!==o.to.x&&(a=t.effects.setTransition(r,c,o.from.x,a),s=t.effects.setTransition(r,c,o.to.x,s)),d&&t.effects.saveStyle(r),r.css(a),r.animate(s,e.duration,e.easing,(function(){d&&t.effects.restoreStyle(r)}))}))),s.animate(C,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=s.offset();0===C.opacity&&s.css("opacity",m.opacity),d||(s.css("position","static"===_?"relative":_).offset(e),t.effects.saveStyle(s)),r()}})})),t.effects.define("scale",(function(e,r){var i=t(this),o=e.mode,a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==o?0:100),s=t.extend(!0,{from:t.effects.scaledDimensions(i),to:t.effects.scaledDimensions(i,a,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(s.from.opacity=1,s.to.opacity=0),t.effects.effect.size.call(this,s,r)})),t.effects.define("puff","hide",(function(e,r){var i=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,i,r)})),t.effects.define("pulsate","show",(function(e,r){var i=t(this),o=e.mode,a="show"===o,s=a||"hide"===o,n=2*(e.times||5)+(s?1:0),l=e.duration/n,c=0,h=1,d=i.queue().length;for((a||!i.is(":visible"))&&(i.css("opacity",0).show(),c=1);n>h;h++)i.animate({opacity:c},l,e.easing),c=1-c;i.animate({opacity:c},l,e.easing),i.queue(r),t.effects.unshift(i,d,n+1)})),t.effects.define("shake",(function(e,r){var i=1,o=t(this),a=e.direction||"left",s=e.distance||20,n=e.times||3,l=2*n+1,c=Math.round(e.duration/l),h="up"===a||"down"===a?"top":"left",d="up"===a||"left"===a,u={},p={},_={},g=o.queue().length;for(t.effects.createPlaceholder(o),u[h]=(d?"-=":"+=")+s,p[h]=(d?"+=":"-=")+2*s,_[h]=(d?"-=":"+=")+2*s,o.animate(u,c,e.easing);n>i;i++)o.animate(p,c,e.easing).animate(_,c,e.easing);o.animate(p,c,e.easing).animate(u,c/2,e.easing).queue(r),t.effects.unshift(o,g,l+1)})),t.effects.define("slide","show",(function(e,r){var i,o,a=t(this),s={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},n=e.mode,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,d=e.distance||a["top"===c?"outerHeight":"outerWidth"](!0),u={};t.effects.createPlaceholder(a),i=a.cssClip(),o=a.position()[c],u[c]=(h?-1:1)*d+o,u.clip=a.cssClip(),u.clip[s[l][1]]=u.clip[s[l][0]],"show"===n&&(a.cssClip(u.clip),a.css(c,u[c]),u.clip=i,u[c]=o),a.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:r})})),!1!==t.uiBackCompat&&t.effects.define("transfer",(function(e,r){t(this).transfer(e,r)}))})?i.apply(e,o):i)||(t.exports=a)},7124:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>Q});var i=r(5072),o=r.n(i),a=r(7825),s=r.n(a),n=r(7659),l=r.n(n),c=r(5056),h=r.n(c),d=r(540),u=r.n(d),p=r(1113),_=r.n(p),g=r(73),f={};f.styleTagTransform=_(),f.setAttributes=h(),f.insert=l().bind(null,"head"),f.domAPI=s(),f.insertStyleElement=u();o()(g.A,f);g.A&&g.A.locals&&g.A.locals;var m=r(198),C={};C.styleTagTransform=_(),C.setAttributes=h(),C.insert=l().bind(null,"head"),C.domAPI=s(),C.insertStyleElement=u();o()(m.A,C);m.A&&m.A.locals&&m.A.locals;var L=r(2113),b={};b.styleTagTransform=_(),b.setAttributes=h(),b.insert=l().bind(null,"head"),b.domAPI=s(),b.insertStyleElement=u();o()(L.A,b);L.A&&L.A.locals&&L.A.locals;var E=r(8925),v={};v.styleTagTransform=_(),v.setAttributes=h(),v.insert=l().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=u();o()(E.A,v);E.A&&E.A.locals&&E.A.locals;var y=r(4449),w={};w.styleTagTransform=_(),w.setAttributes=h(),w.insert=l().bind(null,"head"),w.domAPI=s(),w.insertStyleElement=u();o()(y.A,w);y.A&&y.A.locals&&y.A.locals;var x=r(9155),k=r.n(x),S=r(2395);const Q=(0,x.forwardRef)((function(t,e){var r=t.width,i=t.height,o=t.objProperty,a=(0,x.useRef)(null);return(0,x.useImperativeHandle)(e,(function(){return{getQCELLInstance:function(){return a.current?S.default.getInstance(o.id):null},getQCELL:function(){return S.default}}})),(0,x.useEffect)((function(){var t=function(){if(o)if(o.id){var t="".concat(o.id,"_qcell");a.current.id=t;var e=r||"100%",s=i;if(s){o.parentid=t,a.current.style.width=e,a.current.style.height=s;S.default.create(o);S.default.getInstance(o.id)||console.error("QCELL create error")}else console.warn("height not defined")}else console.warn("objProperty.id not defined");else console.warn("objProperty not defined")};if(!a.current||!document.body.contains(a.current)){var e=new MutationObserver((function(){a.current&&document.body.contains(a.current)&&(t(),e.disconnect())}));return a.current&&e.observe(document.body,{childList:!0,subtree:!0}),function(){S.default.getInstance(o.id)&&S.default.deleteInstance(o.id),e.disconnect()}}t()}),[r,i,o]),k().createElement("div",{ref:a})}))},198:(t,e,r)=>{"use strict";r.d(e,{A:()=>_t});var i=r(1601),o=r.n(i),a=r(6314),s=r.n(a),n=r(4417),l=r.n(n),c=new URL(r(7629),r.b),h=new URL(r(4453),r.b),d=new URL(r(8051),r.b),u=new URL(r(7409),r.b),p=new URL(r(2653),r.b),_=new URL(r(4579),r.b),g=new URL(r(363),r.b),f=new URL(r(1107),r.b),m=new URL(r(2021),r.b),C=new URL(r(837),r.b),L=new URL(r(2417),r.b),b=new URL(r(5628),r.b),E=new URL(r(190),r.b),v=new URL(r(318),r.b),y=new URL(r(8114),r.b),w=new URL(r(7556),r.b),x=new URL(r(4644),r.b),k=new URL(r(4472),r.b),S=new URL(r(8025),r.b),Q=new URL(r(5928),r.b),q=new URL(r(3986),r.b),T=new URL(r(3529),r.b),A=new URL(r(863),r.b),R=new URL(r(7322),r.b),O=new URL(r(1529),r.b),D=new URL(r(944),r.b),B=new URL(r(2012),r.b),I=new URL(r(4062),r.b),N=new URL(r(7463),r.b),P=s()(o()),M=l()(c),H=l()(h),U=l()(d),F=l()(u),z=l()(p),W=l()(_),j=l()(g),G=l()(f),V=l()(m),K=l()(C),Y=l()(L),$=l()(b),X=l()(E),Z=l()(v),J=l()(y),tt=l()(w),et=l()(x),rt=l()(k),it=l()(S),ot=l()(Q),at=l()(q),st=l()(T),nt=l()(A),lt=l()(R),ct=l()(O),ht=l()(D),dt=l()(B),ut=l()(I),pt=l()(N);P.push([t.id,`.rt-qc-root {\n\tborder-width: 1px;\n\tborder-style: solid;\n\tborder-color: #d3d5df;\n}\n\n.rt-qc-root,\n.rt-qc-root *,\n.rt-qc-colmoveshadow,\n.rt-qc-colmoveshadow * {\n\tfont-family: NanumGothic, Dotum, sans-serif !important;/* QCELL 폰트 설정 */\n\tfont-smoothing: antialiased;\n}\n\n.rt-qc-panel {\n\tborder-bottom-width:1px;\n\tborder-bottom-style:solid;\n\tborder-bottom-color: #d3d5df;\n}\n\n\n.rt-qc-sheetpanel {\n\tborder-top-width:1px;\n\tborder-top-style:solid;\n\tborder-top-color: #d3d5df;\n}\n\n.rt-qc-sheetpanel-inner {\n\twidth: 90%;\n height: 100%;\n margin: 0 auto;\n}\n\n.rt-qc-sheetpanel-inner::before {\n\tdisplay: inline-block;\n\tcontent: "";\n\theight: 100%;\n\tvertical-align: middle;\n}\n\n.rt-qc-sheetpanel-inner-span {\n\ttext-align: right;\n\tcolor: #575757;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\twidth: 100%;\n\t\n\t-webkit-user-select: text; /* Chrome, Opera, Safari */\n\t-moz-user-select: text; /* Firefox 2+ */\n\t-ms-user-select: text; /* IE 10+ */\n\t-khtml-user-select: text;\n\tuser-select: text; /* Standard syntax */\n}\n\n.rt-qc-paginationpanel {\n\tborder-bottom-width: 1px;\n border-bottom-style: solid;\n border-bottom-color: #9295a0;\n background-color: #9295a0;\n}\n\n.rt-qc-hscrollbar {\n\tborder-width:1px 1px 0px 0px;\n}\n\n.rt-qc-vscrollbar {\n\tborder-width:0px 0px 1px 1px;\n}\n\n.rt-qc-hscrollbar, .rt-qc-vscrollbar {\n\tborder-color:#d3d5df;\n\tborder-style:solid;\n}\n\n.rt-qc-cell {\n\tfont-size: 13px; /* QCELL의 셀 폰트 크기 설정 */\n}\n\n/* 선택된 셀에 적용할 스타일 설정 */\n.rt-qc-cell-select {\n\tbackground-color: #4e65b6 !important;\n\tborder-color: #3c4e8c !important;\n\tcolor:#fff !important; \n}\n\n/* 포커스가 있는 셀에 적용할 스타일 설정 */\n.rt-qc-cell-focus,\n.rt-qc-cell-focus.rt-qc-cell-select {\n\tfont-weight:bold !important;\n\tbackground-color: #ffffff !important;\n\tborder: 1px solid #3c4e8c !important;\n\tcolor:#000 !important; \n\t\n}\n\n.rt-qc-cell-edgeheader {\n\tborder-bottom-width:1px !important;\n}\n\n.rt-qc-cell-viewport, .rt-qc-cell-footer {\n\tborder-color: #c9d1e9;\n\tcolor: #000;/* 데이터 표시 영역의 폰트칼라 설정 */\n}\n\n/* 텍스트 padding 설정 */\n.rt-qc-cell-colheader, .rt-qc-cell-viewport, .rt-qc-cell-footer {\n\tpadding-left:5px;\n\tpadding-right:5px;\n}\n\n.rt-qc-cell-headerrows, .rt-qc-cell-frozenbottomrows, .rt-qc-cell-footerrows {\n\tborder-width:1px 1px 0px 0px;\n}\n\n.rt-qc-cell-headerrows, .rt-qc-cell-frozenbottomrows-panel, .rt-qc-cell-footerrows {\n\tborder-width:1px 1px 0px 0px;\n}\n.rt-qc-cell-headerrows {\n\tborder-bottom-width:1px;\n}\n\n.rt-qc-cell-frozenbottomrows-panel{\n\tbackground-color:#c0c0c0 !important;\t\n\tborder-color: #c0c0c0!important;\n\tcolor : white ;\n z-index: 10000;\n}\n\n/* 틀고정 영역 셀 스타일 설정 */\n.rt-qc-cell-frozencols, .rt-qc-cell-frozenrows, .rt-qc-cell-frozenbottomrows {\n\tbackground-color: #f5fbee;/*틀고정 영역에 배경색을 반드시 설정해야 함.*/\n\tborder-color: #c9d1e9;\n}\n\n\n/* highlightrepeat 스타일 설정 */\n.rt-qc-cell-highlightrepeat {\n\tbackground-color: #f2f5fb;\n}\n\n/* 헤더 영역 셀 스타일 설정 */\n.rt-qc-cell-headerrows, .rt-qc-cell-headercols {\n\ttext-align: center;\n\tfont-weight: bold;\n\tbackground-color:#f4f9fd;\n\tborder-color:#c9d1e9;\n\t/* border-top-color:#4c63a3 !important; */\n\tcolor: #4c63a3;\n}\n\n.rt-qc-colheaderdndarea {\n\tleft: 3px;\n\ttop: 3px;\n\twidth: 14px;\n\theight: 50%;\n\tcursor: move;\n\tbackground: url(${M}) no-repeat;\n}\n\n.rt-qc-colmoveshadow {\n\tbackground-color: #fff;\n\tborder-width: 1px;\n\tborder-style: solid;\n\tborder-color: #d3d5df;\n}\n\n.rt-qc-colmoveline {\n\tborder-right-width: 2px;\n\tborder-right-style: dotted;\n\tborder-right-color: #000;\n\twidth: 2px;\n}\n\n.rt-qc-colresizearea {\n\tcursor: e-resize;\n\tright: 3px;\n\tbottom: 3px;\n\twidth: 12px;\n\theight: 8px;\n\tbackground: url(${H}) no-repeat;\n}\n\n.rt-qc-colresizearea:hover {\n\tbackground: url(${U}) no-repeat;\n}\n\n.rt-qc-colresizearea-hover {\n\tbackground: url(${U}) no-repeat;\n}\n\n.rt-qc-colresizeline {\n\tborder-style: dotted;\n\tborder-width: 0px 2px 0px 0px;\n\tborder-color: #f24a97;\n\twidth: 2px;\n}\n\n.rt-qc-colresizetooltip {\n width: 90px;\n height: 25px;\n opacity: 0.8;\n font-size: 12px;\n text-align: center;\n border: 1px solid #f6ae9a;\n border-radius: 2px;\n color: #f24a97;\n background-color: #fff;\n padding-top: 4px;\n}\n\n.rt-qc-sortarea {\n\tright: 15px;\n\twidth: 7px;\n\theight: 10px;\n\tbackground: url(${F}) no-repeat;\n\tcursor: pointer;\n}\n\n.rt-qc-sort-asc {\n\tbackground: url(${z}) no-repeat;\n}\n\n.rt-qc-sort-desc {\n\tbackground: url(${W}) no-repeat;\n}\n\n.rt-qc-multisort-order {\n\tfont-size: 11px;\n\tfont-weight: normal;\n\tleft: 9px;\n\tcolor: orange;\n}\n\n.rt-qc-progress-ui {\n\tbackground-color: #f1f4f5;\n\tbackground-image: url(${j});\n\tbackground-repeat: no-repeat;\n\tbackground-position: center;\n\topacity: 0.8;\n}\n\n.rt-qc-coleditor-area {\n\tcursor: pointer;\n left: 1px;\n bottom: 1px;\n width: 8px;\n height: 8px;\n background: url(${G}) no-repeat;\n}\n\n.rt-qc-coleditor-area:hover {\n\tbackground: url(${V}) no-repeat;\n}\n\n.rt-qc-coleditor-area-hover {\n\tbackground: url(${V}) no-repeat;\n}\n\n.rt-qc-emptymessasge {\n\tborder: none !important;\n\ttext-align: center;\n}\n\n.rt-qc-pagination-ui-center {\n\twidth: 100%;\n\theight: 100%;\n\tfloat: left;\n\ttext-align: center;\n\tline-height: 25px;\n}\n\n.rt-qc-pagination-ui-right {\n\tright: 0;\n\ttop: 0;\n\tline-height: 25px;\n}\n\n.rt-qc-pagination-nav {\n color: #ffffff !important;\n font-weight: bold;\n display: inline-block;\n font-size: 12px;\n vertical-align: middle;\n text-align: center !important;\n padding: 0 8px;\n}\n\n.rt-qc-pagination-nav-btn {\n color: #fff !important;\n}\n.rt-qc-pagination-nav-btn-button { \n border : none;\n background-color : transparent;\n}\n\n.rt-qc-pagination-nav-pager, .rt-qc-pagination-nav-pager-skip {\n\tcolor: #34353c !important;\n}\n\n.rt-qc-pagination-nav-pager-button {\t\n border : none;\n background-color : transparent;\t\n}\n\n.rt-qc-pagination-nav-pager:hover {\n\tborder: 1px solid #7b7d87;\n padding: 0 7px;\n}\n\n.rt-qc-pagination-nav-pager-now {\n color: #34353c !important;\n border: 1px solid #d7dae3;\n background-color: transparent;\n padding: 0 7px;\n}\n\n.rt-qc-pagination-nav-extend-move {\n\tmargin-left: 10px;\n}\n\n.rt-qc-pagination-ui-center .rt-qc-pagination-nav-input {\n display: inline-block;\n height: 30px;\n border: 1px solid #686c79;\n background-color: #686c79;\n color: #ffffff !important;\n font-weight: bold;\n vertical-align: middle;\n}\n\n.rt-qc-pagination-nav-select {\n margin-left: 10px;\n height: 24px;\n\tcolor: #000000 !important;\n}\n\n.rt-qc-pagination-nav-info {\n color: #ffffff !important;\n}\n\n@media (max-width: 520px) {\n\t.rt-qc-pagination-nav-info {\n\t\tdisplay: none;\n\t}\n}\n\n.rt-qc-gtui {\n\tdisplay: inline-block;\n height: 12px;\n vertical-align: middle;\n cursor:pointer;\n}\n\n.rt-qc-gtui-arrow {\n width: 10px;\n}\n\n.rt-qc-gtui-arrow-expand {\n\tbackground: url(${K}) 50% 50% no-repeat;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-arrow-collapse {\n\tbackground: url(${Y}) 50% 50% no-repeat;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-folder {\n\twidth: 22px;\n\tpadding: 0 5px 0 5px;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-folder-expand {\n\tbackground: url(${$}) 50% 50% no-repeat;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-folder-collapse {\n\tbackground: url(${X}) 50% 50% no-repeat;\n\tcursor:pointer;\n}\n\n.rt-qc-gtui-dot {\n\twidth: 10px;\n\tmargin-right: 5px;\n\tbackground: url(${Z}) 50% 50% no-repeat;\n}\n\n.rt-qc-gtui-header, .rt-qc-gtui-footer {\n\tbackground-color: #dde5f4 !important;\n\tcolor:#000 !important;\n} \n\n.rt-qc-filterarea {\n\tcursor: pointer;\n\tright: 3px;\n\ttop: 3px;\n\twidth: 8px;\n\theight: 8px;\n\tbackground: url(${J}) no-repeat;\n}\n.rt-qc-filterarea-adjust {\n\tcursor: pointer;\n\tright: 3px;\n\ttop: 3px;\n\twidth: 8px;\n\theight: 8px;\n\tbackground: url(${tt}) no-repeat;\n}\n\n.rt-qc-filterarea:hover {\n\tbackground: url(${et}) no-repeat;\n}\n\n.rt-qc-filterarea-hover {\n\tbackground: url(${et}) no-repeat;\n}\n\n.rt-qc-filter-ui-area {\n\twidth: 250px;\n\tborder: 1px solid #686c79;\n\t/*border-radius: 3px;*/\n\tpadding: 10px;\n\tbackground-color: #ffffff;\n\tz-index : 600;\n}\n.rt-qc-filter-title-area \n{\n\tmargin: 0px 0px 10px 0px ;\n\tcursor: grab;\n}\n.rt-qc-filter-title-span\n{\n\tfont-weight\t: bold;\n\tfont-size\t: 15px\n}\n\n\n.rt-qc-filter-ui-btn {\n\tcursor: pointer;\n\tmargin: 0px 5px 0px 0px;\n\tborder-radius: 3px;\n\tcolor: #fff;\n\tpadding: 3px 10px;\n}\n\n.rt-qc-filter-ui-close {\n\tcursor: pointer;\n\twidth: 12px;\n\theight: 12px;\n\tfloat: right;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbackground: url(${rt}) no-repeat;\n}\n\n.rt-qc-filter-ui-addoperator {\n\tcursor: pointer;\n\twidth: 8px;\n\theight: 8px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbackground: url(${it}) no-repeat;\n}\n.rt-qc-filter-ui-addoperator_close {\n\tcursor: pointer;\n\twidth: 8px;\n\theight: 8px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbackground: url(${ot}) no-repeat;\n}\n\n.rt-qc-contextmenu-area {\n\tcolor: #000;\n\tbackground-color: #fff;\n\tborder: 1px solid #93959f;\n\tdisplay: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmin-width: 170px;\n}\n\n.rt-qc-contextmenu-root {\n\tdisplay: inline-block;\n}\n\n.rt-qc-contextmenu-area li {\n\tlist-style: none;\n\tposition: relative;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.rt-qc-contextmenu-area li:hover ul {\n\tdisplay: none;\n}\n\n.rt-qc-contextmenu-item {\n\tfont-size: 16px;\n\tline-height: 30px;\n\theight: 30px;\n\tcursor: pointer;\n}\n\n.rt-qc-contextmenu-item:hover {\n\tbackground-color: #24cbe6;\n\tcolor: #fff;\n}\n\n.rt-qc-contextmenu-item > span {\n\tdisplay: inline-block;\n}\n\n.rt-qc-contextmenu-item img {\n\twidth: 25px;\n\theight: 25px;\n\tvertical-align: middle;\n}\n\n.rt-qc-contextmenu-menu {}\n.rt-qc-contextmenu-sub-menu {}\n\n.rt-qc-contextmenu-item-img {\n\twidth: 20%;\n\ttext-align: center;\n}\n\n.rt-qc-contextmenu-item-label {\n\twidth: 70%;\n}\n\n.rt-qc-contextmenu-item-sub {\n\twidth: 10%;\n}\n\n.rt-qc-contextmenu-sub-menu > .rt-qc-contextmenu-item-sub {\n\tbackground: url(${at}) no-repeat;\n\tbackground-size: 30px 30px;\n\tbackground-position-x: right;\n\tbackground-position-y: center;\n}\n\n.rt-qc-contextmenu-divine {\n\tborder-top: 1px dashed #93959f;\n}\n\n.qcell_col_9_inputbutton-style {\n\tmargin-right:5px\n\t}\n\n.rt-qc-contextmenu-disable {\n\tcursor: not-allowed;\n}\n\n.rt-qc-colsearch-area {\n\tleft: 3px;\n\tbottom: 3px;\n\twidth: 12px;\n\theight: 12px;\n\tcursor: pointer;\n\tbackground: url(${st}) no-repeat;\n z-index: 0;\n}\n\n.rt-qc-colsearch-area-hover {\n\tbackground: url(${nt}) no-repeat;\n}\n\n.rt-qc-colsearch-area:hover {\n\tbackground: url(${nt}) no-repeat;\n}\n\n.rt-qc-colsearch-ui-area {\n\tpadding: 10px;\n\tbackground-color: #fff;\n\tborder: 1px solid #686c79;\n\t/*border-radius: 3px;*/\n\tz-index : 9999;\n}\n\n.rt-qc-colsearch-ui-btn {\n\tcursor: pointer;\n\tmargin-right: 5px;\n\tborder-radius: 3px;\n\tcolor: #fff;\n\tpadding: 3px 10px;\n}\n\n.rt-qc-colsearch-ui-close {\n\tcursor: pointer;\n\twidth: 12px;\n\theight: 12px;\n\tfloat: right;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbackground: url(${lt}) no-repeat;\n}\n\n.rt-qc-tooltip {\n\tposition: fixed; \n\ttop: 0px; \n\tleft: 0px; \n\tdisplay: block; \n\tz-index: 100;\n}\n.rt-qc-tooltip > .content {\n\tpadding: 1px 6px 1px 6px; \n\tborder: 4px solid #f9e98e;\n\tmin-width: 40px;\n\tbackground: #fbf7aa; \n\tcolor: #000000; \n\tfont-size: 12px; \n\tborder-radius: 5px; \n\t-moz-border-radius: 5px; \n\t-webkit-border-radius: 5px;\n}\n\n/* cell type에 따라 구분용 class */\n.rt-qc-static-type-cell {}\n.rt-qc-input-type-cell {\n\t/*\n\tbackground-image: url( "../img/edit.png" );\n background-repeat: no-repeat;\n\tbackground-position: 100% 50%;\n\t*/\n}\n\n.rt-qc-input-edit-cell-style {\n\tright :3px;\n\twidth : 1px;\n\theight : 1px;\n\tposition : absolute;\n\ttop : 7px;\n\toverflow: hidden;\n}\n.rt-qc-number-type-cell {\n\n}\n\n.rt-qc-textarea-type-cell {}\n.rt-qc-selectmenu-type-cell {\n\t/*\n\tbackground-image: url( "../img/select.png" );\n background-repeat: no-repeat;\n\tbackground-position: 90% 50%;\n\t*/\n}\n.rt-qc-datepicker-type-cell {}\n.rt-qc-inputdatepicker-type-cell {}\n.rt-qc-datepicker-style {\n\twidth: 100%;\n}\n.rt-qc-datepicker-date-style {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n.rt-qc-datepicker-img-style {}\n.rt-qc-datepicker-img-style img {\n\tvertical-align: middle;\n position: relative;\n left: 5px;\n width: 16px;\n height: 16px;\n}\n.rt-qc-checkbox-type-cell {}\n.rt-qc-image-type-cell {}\n.rt-qc-html-type-cell {}\n\n.rt-qc-edgeheader-cell-checkbox{}\n.rt-qc-colheader-cell-checkbox{}\n.rt-qc-rowheader-cell-checkbox{}\n\n.rt-qc-edgeheader-cell-radio{}\n.rt-qc-colheader-cell-radio{}\n.rt-qc-rowheader-cell-radio{}\n\n.rt-qc-rowheader-state-init{\n\tbackground: url(${ct}) no-repeat center;\n\tbackground-size: 17px 17px;\n background-color: #f4f9fd;\n}\n.rt-qc-rowheader-state-insert{\n\tbackground: url(${ht}) no-repeat center;\n\tbackground-size: 17px 17px;\n background-color: #f4f9fd;\n}\n.rt-qc-rowheader-state-update{\n\tbackground: url(${dt}) no-repeat center;\n\tbackground-size: 17px 17px;\n background-color: #f4f9fd;\t\t\n}\n.rt-qc-rowheader-state-delete{\n\tbackground: url(${ut}) no-repeat center;\n\tbackground-size: 17px 17px;\n background-color: #f4f9fd;\t\t\n}\n\n.rt-qc-static-row{\n\tbackground-color: #F2FC3F !important;\n}\n\n.rt-qc-inputform-header{\n\tbackground-color: #d3d3d3 !important;\n\tdisplay:block;\n\twidth:100%;\n}\n.rt-qc-inputform-item{\n\tdisplay:block;\n\twidth:100%;\n}\n\n.rt-qc-grandtotal-row{\n\tbackground-color: #FF9F40 !important;\n}\n\n.rt-qc-removearea {\n\tright: 3px;\n\twidth: 14px;\n\theight: 14px;\n\tbackground: url(${pt}) no-repeat center;\n\tbackground-size : cover;\n\tcursor: pointer;\n}\n.hide {\n overflow: hidden;\n position: absolute;\n left: -0.1rem;\n top: -0.1rem;\n width: 0.1rem;\n height: 0.1rem;\n opacity: 0;\n}\t`,""]);const _t=P},73:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(1601),o=r.n(i),a=r(6314),s=r.n(a)()(o());s.push([t.id,".rt-qc-colmoveshadow,.rt-qc-colmoveshadow *,.rt-qc-root,.rt-qc-root *{box-sizing:border-box!important}.rt-qc-container{outline:0;position:relative}.rt-qc-cell,.rt-qc-coleditor-area,.rt-qc-colheader,.rt-qc-colheaderdndarea,.rt-qc-colmoveline,.rt-qc-colmoveshadow,.rt-qc-colresizearea,.rt-qc-colresizeline,.rt-qc-colresizetooltip,.rt-qc-colsearch-area,.rt-qc-colsearch-ui-area,.rt-qc-container,.rt-qc-contextmenu-area,.rt-qc-contextmenu-area li:hover ul,.rt-qc-edgeheader,.rt-qc-filter-ui-area,.rt-qc-filterarea,.rt-qc-filterarea-adjust,.rt-qc-footer,.rt-qc-frowheader,.rt-qc-hscrollbar,.rt-qc-multisort-order,.rt-qc-pagination-ui-right,.rt-qc-paginationpanel,.rt-qc-panel,.rt-qc-progress-ui,.rt-qc-removearea,.rt-qc-rowheader,.rt-qc-sheetpanel,.rt-qc-sortarea,.rt-qc-viewport,.rt-qc-vscrollbar{position:absolute}.rt-qc-cell,.rt-qc-colheader,.rt-qc-edgeheader,.rt-qc-footer,.rt-qc-frowheader,.rt-qc-hscrollbar,.rt-qc-rowheader,.rt-qc-viewport,.rt-qc-vscrollbar{overflow:hidden}.rt-qc-viewport-inner{outline:0}.rt-qc-cell{vertical-align:middle;border-width:0 1px 1px 0;border-style:solid;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.rt-qc-cell-colheader>span{display:inline-block;vertical-align:middle}.rt-qc-cell-colheader,.rt-qc-cell-footer,.rt-qc-cell-rowheader,.rt-qc-cell-viewport{text-overflow:ellipsis;white-space:nowrap}.rt-qc-cell-frozencols{z-index:1}.rt-qc-cell-frozenbottomrows,.rt-qc-cell-frozenrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenrows{z-index:2}.rt-qc-cell-frozenbottomrows-panel,.rt-qc-cell-frozenrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenrows{z-index:2}.rt-qc-cell-frozencols.rt-qc-cell-frozenbottomrows,.rt-qc-cell-frozencols.rt-qc-cell-frozenrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenbottomrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenrows{z-index:3}.rt-qc-cell-frozencols.rt-qc-cell-frozenbottomrows-panel,.rt-qc-cell-frozencols.rt-qc-cell-frozenrows,.rt-qc-cell-rowheader.rt-qc-cell-frozenbottomrows-panel,.rt-qc-cell-rowheader.rt-qc-cell-frozenrows{z-index:3}.rt-qc-colmoveshadow{overflow:hidden;box-sizing:border-box!important}.rt-qc-colmoveline{border-top-width:0;border-left-width:0;border-bottom-width:0}.rt-qc-colmoveline,.rt-qc-colmoveshadow,.rt-qc-colresizeline,.rt-qc-colresizetooltip{z-index:9999}.rt-qc-progress-ui{z-index:1000}.rt-qc-checkbox-cell-style,.rt-qc-image-cell-style{text-align:center}.rt-qc-input-text-style{outline:0}.rt-qc-input-text-style::-ms-clear{display:none}.rt-qc-number-text-style{outline:0}.rt-qc-number-text-style::-ms-clear{display:none}.rt-qc-textarea-text-style{overflow:visible;resize:none;outline:0}.rt-qc-datepicker-wrap-style{width:287px}.rt-qc-datepicker-wrap-style *{box-sizing:initial!important}.rt-qc-checkbox-wrap-style{text-align:center;margin:0;width:100%;height:100%}.rt-qc-datepicker-wrap-style,.rt-qc-input-text-style,.rt-qc-multicheckbox-wrap-style,.rt-qc-number-text-style,.rt-qc-selectmenu-wrap-style,.rt-qc-slider-wrap-style,.rt-qc-textarea-text-style{position:absolute;z-index:9999}.rt-qc-multicheckbox-wrap-style{text-align:center}.rt-qc-checkbox-wrap-style,.rt-qc-edgeheader-cell-checkbox,.rt-qc-html-type-cell,.rt-qc-rowheader-cell-checkbox,.rt-qc-selectmenu-wrap-style{display:list-item}.rt-qc-checkbox-wrap-style::marker,.rt-qc-edgeheader-cell-checkbox::marker,.rt-qc-html-type-cell::marker,.rt-qc-rowheader-cell-checkbox::marker,.rt-qc-selectmenu-wrap-style::marker{visibility:hidden}.rt-qc-button-wrap-style{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;height:100%}.rt-qc-button-style{vertical-align:middle}.rt-qc-radio-cell-style{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.rt-qc-radio-cell-style+label{display:inline-block;position:relative;padding-left:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.rt-qc-radio-cell-style+label:before{content:'';position:absolute;left:-2px;top:-12px;width:12px;height:12px;text-align:center;background:#fafafa;border:1px solid #cacece;border-radius:100%;box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0 -15px 10px -12px rgba(0,0,0,.05)}.rt-qc-radio-cell-style:checked+label:after{content:'';position:absolute;left:0;top:-10px;width:8px;height:8px;background:#99a1a7;border-radius:100%;box-shadow:inset 0 0 10px rgba(0,0,0,.3)}.rt-qc-multicheckbox-cell-style{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.rt-qc-multicheckbox-cell-style+label{display:inline-block;position:relative;padding-left:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.rt-qc-multicheckbox-cell-style+label:before{content:'';position:absolute;left:5px;top:14px;width:10px;height:10px;text-align:center;background:#fafafa;border:1px solid #cacece;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0 -15px 10px -12px rgba(0,0,0,.05)}.rt-qc-multicheckbox-cell-style:checked+label:after{content:'\\2714';text-shadow:1px 1px #fff;position:absolute;top:1px;left:7px;font-size:10px}.rt-qc-multicheckbox-cell-style:focus+label::before{border:2px solid #3b99fc}.rt-qc-multicheckbox-cell-style.rt-qc-radio-cell-style+label{display:inline-block;position:relative;padding-left:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.rt-qc-multicheckbox-cell-style.rt-qc-radio-cell-style+label:before{content:'';position:absolute;left:3px;top:13px;width:12px;height:12px;text-align:center;background:#fafafa;border:1px solid #cacece;border-radius:100%;box-shadow:0 1px 2px rgba(0,0,0,.05),inset 0 -15px 10px -12px rgba(0,0,0,.05)}.rt-qc-multicheckbox-cell-style.rt-qc-radio-cell-style:checked+label:after{content:'';position:absolute;top:17px;left:7px;width:8px;height:8px;background:#99a1a7;border-radius:100%;box-shadow:inset 0 0 10px rgba(0,0,0,.3)}.rt-qc-multicheckbox-cell-style.rt-qc-radio-cell-style:focus+label::before{border:2px solid #3b99fc;border-radius:100%}.rt-qc-group-ui{width:100%;height:100%}.rt-qc-group-ui-inner{padding:0;margin:7px 10px}.rt-qc-group-ui-inner>li{display:inline-block;padding:2px 5px 2px 5px;border:1px solid #c5c5c5;border-radius:3px;margin-left:10px;background-color:#f3f7ff;box-shadow:0 0 5px #888;font-family:arial!important}.rt-qc-group-ui-inner>li:first-chld{margin-left:0}.hover>.rt-qc-group-ui-inner>li.placeholder{font-weight:700}.rt-qc-group-ui-inner .rt-qc-ui-icon.rt-qc-ui-icon-close{display:inline-block;top:0;position:relative;left:-2px;cursor:pointer}.rt-qc-slider-style{padding:0;-webkit-appearance:none;width:97%;height:25px;margin-top:14px}.rt-qc-slider-style:focus{outline:0}.rt-qc-slider-style::-webkit-slider-runnable-track{width:100%;height:2px;cursor:pointer;animate:.2s;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#3071a9;border-radius:1.3px;border:.2px solid #010101}.rt-qc-slider-style::-webkit-slider-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:10px;width:15px;border-radius:3px;background:#fff;cursor:pointer;-webkit-appearance:none;margin-top:-4px}.rt-qc-slider-style:focus::-webkit-slider-runnable-track{background:#367ebd}.rt-qc-slider-style::-moz-range-track{width:100%;height:2px;cursor:pointer;animate:.2s;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#3071a9;border-radius:1.3px;border:.2px solid #010101}.rt-qc-slider-style::-moz-range-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:10px;width:15px;border-radius:3px;background:#fff;cursor:pointer}.rt-qc-slider-style::-ms-track{width:100%;height:2px;cursor:pointer;animate:.2s;background:0 0;border-color:transparent;border-width:16px 0;color:transparent}.rt-qc-slider-style::-ms-fill-lower{background:#2a6495;border:.2px solid #010101;border-radius:2.6px;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d}.rt-qc-slider-style::-ms-fill-upper{background:#3071a9;border:.2px solid #010101;border-radius:2.6px;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d}.rt-qc-slider-style::-ms-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:10px;width:15px;border-radius:3px;background:#fff;cursor:pointer}.rt-qc-slider-style:focus::-ms-fill-lower{background:#3071a9}.rt-qc-slider-style:focus::-ms-fill-upper{background:#367ebd}.rt-qc-slider-style::-ms-tooltip{display:none}.rt-qc-slider-result-style{position:absolute;top:0;right:40px}.rt-qc-colStyleEditor-wrap{position:relative}.rt-qc-editor-wrap-style{position:absolute}.rt-qc-cell.rt-qc-cell-viewport>p{margin:0}.rt-qc-invisible-style{height:100%;width:100%;z-index:999;position:absolute}",""]);const n=s},2113:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var i=r(1601),o=r.n(i),a=r(6314),s=r.n(a),n=r(4417),l=r.n(n),c=new URL(r(4010),r.b),h=new URL(r(4466),r.b),d=new URL(r(1859),r.b),u=s()(o()),p=l()(c),_=l()(h),g=l()(d);u.push([t.id,`/*\n== malihu jquery custom scrollbar plugin ==\nPlugin URI: http://manos.malihu.gr/jquery-custom-content-scroller\n*/\n\n\n\n/*\nCONTENTS: \n\t1. BASIC STYLE - Plugin's basic/essential CSS properties (normally, should not be edited). \n\t2. VERTICAL SCROLLBAR - Positioning and dimensions of vertical scrollbar. \n\t3. HORIZONTAL SCROLLBAR - Positioning and dimensions of horizontal scrollbar.\n\t4. VERTICAL AND HORIZONTAL SCROLLBARS - Positioning and dimensions of 2-axis scrollbars. \n\t5. TRANSITIONS - CSS3 transitions for hover events, auto-expanded and auto-hidden scrollbars. \n\t6. SCROLLBAR COLORS, OPACITY AND BACKGROUNDS \n\t\t6.1 THEMES - Scrollbar colors, opacity, dimensions, backgrounds etc. via ready-to-use themes.\n*/\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n1. BASIC STYLE \n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSbar{ -ms-touch-action: pinch-zoom; touch-action: pinch-zoom; /* direct pointer events to js */ }\n\t.rt_qc_mCSbar.rt_qc_mCS_no_scrollbar, .rt_qc_mCSbar.rt_qc_mCS_touch_action{ -ms-touch-action: auto; touch-action: auto; }\n\t\n\t.rt_qc_mCSBox{ /* contains plugin's markup */\n\t\tposition: relative;\n\t\toverflow: hidden;\n\t\theight: 100%;\n\t\tmax-width: 100%;\n\t\toutline: none;\n\t\tdirection: ltr;\n\t}\n\n\t.rt_qc_mCSB_container{ /* contains the original content */\n\t\toverflow: hidden;\n\t\twidth: auto;\n\t\theight: auto;\n\t}\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n2. VERTICAL SCROLLBAR \ny-axis\n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSB_inside > .rt_qc_mCSB_container{ margin-right: 30px; }\n\n\t.rt_qc_mCSB_container.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden{ margin-right: 0px; } /* non-visible scrollbar */\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_inside > .rt_qc_mCSB_contain.rt_qc_mCS {/* RTL direction/left-side scrollbar */\n\t\tmargin-right: 0px;\n\t\tmargin-left: 30px;\n\t}\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_inside > .rt_qc_mCSB_container.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden{ margin-left: 0; } /* RTL direction/left-side scrollbar */\n\n\t.rt_qc_mCSB_scrollTools{ /* contains scrollbar markup (draggable element, dragger rail, buttons etc.) */\n\t\tposition: absolute;\n\t\twidth: 16px;\n\t\theight: auto;\n\t\tleft: auto;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t}\n\n\t.rt_qc_mCSB_outside + .rt_qc_mCSB_scrollTools{ right: -26px; } /* scrollbar position: outside */\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_inside > .rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_outside + .rt_qc_mCSB_scrollTools{ /* RTL direction/left-side scrollbar */\n\t\tright: auto;\n\t\tleft: 0;\n\t}\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_outside + .rt_qc_mCSB_scrollTools{ left: -26px; } /* RTL direction/left-side scrollbar (scrollbar position: outside) */\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer{ /* contains the draggable element and dragger rail markup */\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tbottom: 0;\n\t\tright: 0; \n\t\theight: auto;\n\t}\n\n\t.rt_qc_mCSB_scrollTools a + .rt_qc_mCSB_draggerContainer{ margin: 20px 0; }\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 2px;\n\t\theight: 100%;\n\t\tmargin: 0 auto;\n\t\t-webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px;\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger{ /* the draggable element */\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 30px; /* minimum dragger height */\n\t\tz-index: 1;\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ /* the dragger element */\n\t\tposition: relative;\n\t\twidth: 4px;\n\t\theight: 100%;\n\t\tmargin: 0 auto;\n\t\t-webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px;\n\t\ttext-align: center;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ width: 12px; /* auto-expanded scrollbar */ }\n\t\n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{ width: 8px; /* auto-expanded scrollbar */ }\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\theight: 20px;\n\t\twidth: 100%;\n\t\toverflow: hidden;\n\t\tmargin: 0 auto;\n\t\tcursor: pointer;\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ bottom: 0; }\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n3. HORIZONTAL SCROLLBAR \nx-axis\n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSB_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_container{\n\t\tmargin-right: 0;\n\t\tmargin-bottom: 30px;\n\t}\n\t\n\t.rt_qc_mCSB_horizontal.rt_qc_mCSB_outside > .rt_qc_mCSB_container{ min-height: 100%; }\n\n\t.rt_qc_mCSB_horizontal > .rt_qc_mCSB_container.rt_qc_mCS_no_scrollbar_x.rt_qc_mCS_x_hidden{ margin-bottom: 0; } /* non-visible scrollbar */\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{\n\t\twidth: auto;\n\t\theight: 16px;\n\t\ttop: auto;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t}\n\n\t.rt_qc_mCSBox + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal,\n\t.rt_qc_mCSBox + .rt_qc_mCSB_scrollTools + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ bottom: -26px; } /* scrollbar position: outside */\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal a + .rt_qc_mCSB_draggerContainer{ margin: 0 20px; }\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 2px;\n\t\tmargin: 7px 0;\n\t}\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger{\n\t\twidth: 30px; /* minimum dragger width */\n\t\theight: 100%;\n\t\tleft: 0;\n\t}\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 4px;\n\t\tmargin: 6px auto;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 12px; /* auto-expanded scrollbar */\n\t\tmargin: 2px auto;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{\n\t\theight: 8px; /* auto-expanded scrollbar */\n\t\tmargin: 4px 0;\n\t}\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_buttonLeft,\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_buttonRight{\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\twidth: 20px;\n\t\theight: 100%;\n\t\toverflow: hidden;\n\t\tmargin: 0 auto;\n\t\tcursor: pointer;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_buttonLeft{ left: 0; }\n\n\t.rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_buttonRight{ right: 0; }\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n4. VERTICAL AND HORIZONTAL SCROLLBARS \nyx-axis \n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSB_container_wrapper{\n\t\tposition: absolute;\n\t\theight: auto;\n\t\twidth: auto;\n\t\toverflow: hidden;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tmargin-right: 30px;\n\t\tmargin-bottom: 30px;\n\t}\n\t\n\t.rt_qc_mCSB_container_wrapper > .rt_qc_mCSB_container{\n\t\tpadding-right: 30px;\n\t\tpadding-bottom: 30px;\n\t\t-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;\n\t}\n\t\n\t.rt_qc_mCSB_vertical_horizontal > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_vertical{ bottom: 20px; }\n\t\n\t.rt_qc_mCSB_vertical_horizontal > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ right: 20px; }\n\t\n\t/* non-visible horizontal scrollbar */\n\t.rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_x.rt_qc_mCS_x_hidden + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_vertical{ bottom: 0; }\n\t\n\t/* non-visible vertical scrollbar/RTL direction/left-side scrollbar */\n\t.rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden + .rt_qc_mCSB_scrollTools ~ .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ right: 0; }\n\t\n\t/* RTL direction/left-side scrollbar */\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ left: 20px; }\n\t\n\t/* non-visible scrollbar/RTL direction/left-side scrollbar */\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden + .rt_qc_mCSB_scrollTools ~ .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{ left: 0; }\n\t\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_inside > .rt_qc_mCSB_container_wrapper{ /* RTL direction/left-side scrollbar */\n\t\tmargin-right: 0;\n\t\tmargin-left: 30px;\n\t}\n\t\n\t.rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden > .rt_qc_mCSB_container{ padding-right: 0; }\n\t\n\t.rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_x.rt_qc_mCS_x_hidden > .rt_qc_mCSB_container{ padding-bottom: 0; }\n\t\n\t.rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_y.rt_qc_mCS_y_hidden{\n\t\tmargin-right: 0; /* non-visible scrollbar */\n\t\tmargin-left: 0;\n\t}\n\t\n\t/* non-visible horizontal scrollbar */\n\t.rt_qc_mCSBox.rt_qc_mCSB_vertical_horizontal.rt_qc_mCSB_inside > .rt_qc_mCSB_container_wrapper.rt_qc_mCS_no_scrollbar_x.rt_qc_mCS_x_hidden{ margin-bottom: 0; }\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n5. TRANSITIONS \n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\n\t\t-webkit-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;\n\t\t-moz-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;\n\t\t-o-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;\n\t\ttransition: opacity .2s ease-in-out, background-color .2s ease-in-out;\n\t}\n\t\n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger_bar, /* auto-expanded scrollbar */\n\t.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerRail{\n\t\t-webkit-transition: width .2s ease-out .2s, height .2s ease-out .2s, \n\t\t\t\t\tmargin-left .2s ease-out .2s, margin-right .2s ease-out .2s, \n\t\t\t\t\tmargin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s,\n\t\t\t\t\topacity .2s ease-in-out, background-color .2s ease-in-out; \n\t\t-moz-transition: width .2s ease-out .2s, height .2s ease-out .2s, \n\t\t\t\t\tmargin-left .2s ease-out .2s, margin-right .2s ease-out .2s, \n\t\t\t\t\tmargin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s,\n\t\t\t\t\topacity .2s ease-in-out, background-color .2s ease-in-out; \n\t\t-o-transition: width .2s ease-out .2s, height .2s ease-out .2s, \n\t\t\t\t\tmargin-left .2s ease-out .2s, margin-right .2s ease-out .2s, \n\t\t\t\t\tmargin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s,\n\t\t\t\t\topacity .2s ease-in-out, background-color .2s ease-in-out; \n\t\ttransition: width .2s ease-out .2s, height .2s ease-out .2s, \n\t\t\t\t\tmargin-left .2s ease-out .2s, margin-right .2s ease-out .2s, \n\t\t\t\t\tmargin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s,\n\t\t\t\t\topacity .2s ease-in-out, background-color .2s ease-in-out; \n\t}\n\n\n\n/* \n------------------------------------------------------------------------------------------------------------------------\n6. SCROLLBAR COLORS, OPACITY AND BACKGROUNDS \n------------------------------------------------------------------------------------------------------------------------\n*/\n\n\t/* \n\t----------------------------------------\n\t6.1 THEMES \n\t----------------------------------------\n\t*/\n\t\n\t/* default theme ("light") */\n\n\t.rt_qc_mCSB_scrollTools{ opacity: 0.75; filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; }\n\t\n\t.rt_qc_mCS-autoHide > .rt_qc_mCSBox > .rt_qc_mCSB_scrollTools,\n\t.rt_qc_mCS-autoHide > .rt_qc_mCSBox ~ .rt_qc_mCSB_scrollTools{ opacity: 0; filter: "alpha(opacity=0)"; -ms-filter: "alpha(opacity=0)"; }\n\t\n\t.rt_qc_mCSbar > .rt_qc_mCSBox > .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_onDrag,\n\t.rt_qc_mCSbar > .rt_qc_mCSBox ~ .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_onDrag,\n\t.rt_qc_mCSBox:hover > .rt_qc_mCSB_scrollTools,\n\t.rt_qc_mCSBox:hover ~ .rt_qc_mCSB_scrollTools,\n\t.rt_qc_mCS-autoHide:hover > .rt_qc_mCSBox > .rt_qc_mCSB_scrollTools,\n\t.rt_qc_mCS-autoHide:hover > .rt_qc_mCSBox ~ .rt_qc_mCSB_scrollTools{ opacity: 1; filter: "alpha(opacity=100)"; -ms-filter: "alpha(opacity=100)"; }\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.4);\n\t\tfilter: "alpha(opacity=40)"; -ms-filter: "alpha(opacity=40)"; \n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.75);\n\t\tfilter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; \n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.85);\n\t\tfilter: "alpha(opacity=85)"; -ms-filter: "alpha(opacity=85)"; \n\t}\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.9);\n\t\tfilter: "alpha(opacity=90)"; -ms-filter: "alpha(opacity=90)"; \n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\n\t\tbackground-image: url(${p}); /* css sprites */\n\t\tbackground-repeat: no-repeat;\n\t\topacity: 0.4; filter: "alpha(opacity=40)"; -ms-filter: "alpha(opacity=40)"; \n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{\n\t\tbackground-position: 0 0;\n\t\t/* \n\t\tsprites locations \n\t\tlight: 0 0, -16px 0, -32px 0, -48px 0, 0 -72px, -16px -72px, -32px -72px\n\t\tdark: -80px 0, -96px 0, -112px 0, -128px 0, -80px -72px, -96px -72px, -112px -72px\n\t\t*/\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{\n\t\tbackground-position: 0 -20px;\n\t\t/* \n\t\tsprites locations\n\t\tlight: 0 -20px, -16px -20px, -32px -20px, -48px -20px, 0 -92px, -16px -92px, -32px -92px\n\t\tdark: -80px -20px, -96px -20px, -112px -20px, -128px -20px, -80px -92px, -96px -92px, -112 -92px\n\t\t*/\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{\n\t\tbackground-position: 0 -40px;\n\t\t/* \n\t\tsprites locations \n\t\tlight: 0 -40px, -20px -40px, -40px -40px, -60px -40px, 0 -112px, -20px -112px, -40px -112px\n\t\tdark: -80px -40px, -100px -40px, -120px -40px, -140px -40px, -80px -112px, -100px -112px, -120px -112px\n\t\t*/\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\n\t\tbackground-position: 0 -56px;\n\t\t/* \n\t\tsprites locations \n\t\tlight: 0 -56px, -20px -56px, -40px -56px, -60px -56px, 0 -128px, -20px -128px, -40px -128px\n\t\tdark: -80px -56px, -100px -56px, -120px -56px, -140px -56px, -80px -128px, -100px -128px, -120px -128px\n\t\t*/\n\t}\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp:hover,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown:hover,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft:hover,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight:hover{ opacity: 0.75; filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; }\n\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp:active,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown:active,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft:active,\n\t.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight:active{ opacity: 0.9; filter: "alpha(opacity=90)"; -ms-filter: "alpha(opacity=90)"; }\n\t\n\n\t/* theme: "dark" */\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: rgba(0,0,0,0.9); }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -80px 0; }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -80px -20px; }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -80px -40px; }\n\n\t.rt_qc_mCS-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -80px -56px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\n\n\t/* theme: "light-2", "dark-2" */\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 4px;\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.1);\n\t\t-webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px;\n\t}\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 4px;\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.75);\n\t\t-webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px;\n\t}\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 4px;\n\t\tmargin: 6px auto;\n\t}\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px 0; }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{\tbackground-position: -32px -20px; }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{\tbackground-position: -40px -40px; }\n\n\t.rt_qc_mCS-light-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -40px -56px; }\n\t\n\t\n\t/* theme: "dark-2" */\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.1);\n\t\t-webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px;\n\t}\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.75);\n\t\t-webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px;\n\t}\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px 0; }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -20px; }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -40px; }\n\n\t.rt_qc_mCS-dark-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -56px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\n\n\t/* theme: "light-thick", "dark-thick" */\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 4px;\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.1);\n\t\t-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 6px;\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.75);\n\t\t-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 4px;\n\t\tmargin: 6px 0;\n\t}\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 6px;\n\t\tmargin: 5px auto;\n\t}\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -16px 0; }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{\tbackground-position: -16px -20px; }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{\tbackground-position: -20px -40px; }\n\n\t.rt_qc_mCS-light-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -20px -56px; }\n\n\n\t/* theme: "dark-thick" */\n\t\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.1);\n\t\t-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.75);\n\t\t-webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -96px 0; }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -96px -20px; }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -100px -40px; }\n\n\t.rt_qc_mCS-dark-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -100px -56px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\n\n\t/* theme: "light-thin", "dark-thin" */\n\t\n\t.rt_qc_mCS-light-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.1); }\n\n\t.rt_qc_mCS-light-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ width: 2px; }\n\n\t.rt_qc_mCS-light-thin.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{ width: 100%; }\n\n\t.rt_qc_mCS-light-thin.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 2px;\n\t\tmargin: 7px auto;\n\t}\n\n\n\t/* theme "dark-thin" */\n\t\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); }\n\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\t\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\t\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{\tbackground-position: -80px 0; }\n\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -80px -20px; }\n\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -80px -40px; }\n\n\t.rt_qc_mCS-dark-thin.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -80px -56px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme "rounded", "rounded-dark", "rounded-dots", "rounded-dots-dark" */\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.15); }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger{ height: 14px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 14px;\n\t\tmargin: 0 1px;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger{ width: 14px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 14px;\n\t\tmargin: 1px 0;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 16px; /* auto-expanded scrollbar */\n\t\theight: 16px;\n\t\tmargin: -1px 0;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{ width: 4px; /* auto-expanded scrollbar */ }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 16px; /* auto-expanded scrollbar */\n\t\twidth: 16px;\n\t\tmargin: 0 -1px;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{\n\t\theight: 4px; /* auto-expanded scrollbar */\n\t\tmargin: 6px 0;\n\t}\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: 0 -72px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: 0 -92px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: 0 -112px; }\n\t\n\t.rt_qc_mCS-rounded.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: 0 -128px; }\n\t\n\t\n\t/* theme "rounded-dark", "rounded-dots-dark" */\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -80px -72px; }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -80px -92px; }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -80px -112px; }\n\t\n\t.rt_qc_mCS-rounded-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -80px -128px; }\n\t\n\t\n\t/* theme "rounded-dots", "rounded-dots-dark" */\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_draggerRail{ width: 4px; }\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: transparent;\n\t\tbackground-position: center;\n\t}\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-image: url(${_});\n\t\tbackground-repeat: repeat-y;\n\t\topacity: 0.3;\n\t\tfilter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; \n\t}\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\theight: 4px;\n\t\tmargin: 6px 0;\n\t\tbackground-repeat: repeat-x;\n\t}\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -16px -72px; }\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -16px -92px; }\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -20px -112px; }\n\t\n\t.rt_qc_mCS-rounded-dots.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -20px -128px; }\n\t\n\t\n\t/* theme "rounded-dots-dark" */\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-image: url(${g});\n\t}\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -96px -72px; }\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -96px -92px; }\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -100px -112px; }\n\t\n\t.rt_qc_mCS-rounded-dots-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -100px -128px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme "3d", "3d-dark", "3d-thick", "3d-thick-dark" */\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-repeat: repeat-y;\n\t\tbackground-image: -moz-linear-gradient(left, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);\n\t\tbackground-image: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0)));\n\t\tbackground-image: -webkit-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: -o-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: -ms-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: linear-gradient(to right, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t}\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-repeat: repeat-x;\n\t\tbackground-image: -moz-linear-gradient(top, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);\n\t\tbackground-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0)));\n\t\tbackground-image: -webkit-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: -o-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: -ms-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t\tbackground-image: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%);\n\t}\n\t\n\t\n\t/* theme "3d", "3d-dark" */\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_dragger{ height: 70px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger{ width: 70px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools{\n\t\topacity: 1;\n\t\tfilter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; \n\t}\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 8px;\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.2);\n\t\tbox-shadow: inset 1px 0 1px rgba(0,0,0,0.5), inset -1px 0 1px rgba(255,255,255,0.2);\n\t}\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \t \n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #555; }\n\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ width: 8px; }\n\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 8px;\n\t\tmargin: 4px 0;\n\t\tbox-shadow: inset 0 1px 1px rgba(0,0,0,0.5), inset 0 -1px 1px rgba(255,255,255,0.2);\n\t}\n\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 8px;\n\t\tmargin: 4px auto;\n\t}\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px -72px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -32px -92px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -40px -112px; }\n\t\n\t.rt_qc_mCS-3d.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -40px -128px; }\n\t\n\t\n\t/* theme "3d-dark" */\n\t\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.1);\n\t\tbox-shadow: inset 1px 0 1px rgba(0,0,0,0.1);\n\t}\n\t\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1); }\n\t\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px -72px; }\n\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -92px; }\n\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -112px; }\n\n\t.rt_qc_mCS-3d-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -128px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme: "3d-thick", "3d-thick-dark" */\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools{\n\t\topacity: 1;\n\t\tfilter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; \n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer{ -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; }\n\t\n\t.rt_qc_mCSB_inside + .rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_vertical, \n\t.rt_qc_mCSB_inside + .rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_vertical{ right: 1px; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_vertical, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_vertical{ box-shadow: inset 1px 0 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.5); }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal{\n\t\tbottom: 1px;\n\t\tbox-shadow: inset 0 1px 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.5);\n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbox-shadow: inset 1px 0 0 rgba(255,255,255,0.4);\n\t\twidth: 12px;\n\t\tmargin: 2px;\n\t\tposition: absolute;\n\t\theight: auto;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #555; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 12px;\n\t\twidth: auto;\n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.05);\n\t\tbox-shadow: inset 1px 1px 16px rgba(0,0,0,0.1);\n\t}\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: transparent; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px -72px; }\n\t\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -32px -92px; }\n\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -40px -112px; }\n\n\t.rt_qc_mCS-3d-thick.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -40px -128px; }\n\t\n\t\n\t/* theme: "3d-thick-dark" */\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools{ box-shadow: inset 0 0 14px rgba(0,0,0,0.2); }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal{ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.2); }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ box-shadow: inset 1px 0 0 rgba(255,255,255,0.4), inset -1px 0 0 rgba(0,0,0,0.2); }\n\t \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.2); }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #777; }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerContainer{\n\t\tbackground-color: #fff; background-color: rgba(0,0,0,0.05);\n\t\tbox-shadow: inset 1px 1px 16px rgba(0,0,0,0.1);\n\t}\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: transparent; }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px -72px; }\n\t\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -92px; }\n\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -112px; }\n\n\t.rt_qc_mCS-3d-thick-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -128px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme: "minimal", "minimal-dark" */\n\t\n\t.rt_qc_mCSB_outside + .rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools_vertical, \n\t.rt_qc_mCSB_outside + .rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools_vertical{\n\t\tright: 0; \n\t\tmargin: 12px 0; \n\t}\n\t\n\t.rt_qc_mCSBox.rt_qc_mCS-minimal + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCSBox.rt_qc_mCS-minimal + .rt_qc_mCSB_scrollTools + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCSBox.rt_qc_mCS-minimal-dark + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal, \n\t.rt_qc_mCSBox.rt_qc_mCS-minimal-dark + .rt_qc_mCSB_scrollTools + .rt_qc_mCSB_scrollTools.rt_qc_mCSB_scrollTools_horizontal{\n\t\tbottom: 0; \n\t\tmargin: 0 12px; \n\t}\n\t\n\t/* RTL direction/left-side scrollbar */\n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_outside + .rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools_vertical, \n\t.rt_qc_mCS-dir-rtl > .rt_qc_mCSB_outside + .rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools_vertical{\n\t\tleft: 0; \n\t\tright: auto;\n\t}\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: transparent; }\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools_vertical .rt_qc_mCSB_dragger{ height: 50px; }\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger, \n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger{ width: 50px; }\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.2);\n\t\tfilter: "alpha(opacity=20)"; -ms-filter: "alpha(opacity=20)"; \n\t}\n\t\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-minimal.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #fff; background-color: rgba(255,255,255,0.5);\n\t\tfilter: "alpha(opacity=50)"; -ms-filter: "alpha(opacity=50)"; \n\t}\n\t\n\t\n\t/* theme: "minimal-dark" */\n\t\n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.2);\n\t\tfilter: "alpha(opacity=20)"; -ms-filter: "alpha(opacity=20)"; \n\t}\n\t\n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-minimal-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.5);\n\t\tfilter: "alpha(opacity=50)"; -ms-filter: "alpha(opacity=50)"; \n\t}\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme "light-3", "dark-3" */\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 6px;\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.2);\n\t}\n\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ width: 6px; }\n\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 6px;\n\t\tmargin: 5px 0;\n\t}\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_vertical.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{\n\t\twidth: 12px;\n\t}\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag_expanded + .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools_horizontal.rt_qc_mCSB_scrollTools_onDrag_expand .rt_qc_mCSB_draggerContainer:hover .rt_qc_mCSB_draggerRail{\n\t\theight: 12px;\n\t\tmargin: 2px 0;\n\t}\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px -72px; }\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -32px -92px; }\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -40px -112px; }\n\t\n\t.rt_qc_mCS-light-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -40px -128px; }\n\t\n\t\n\t/* theme "dark-3" */\n\t\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); }\n\t\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px -72px; }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -92px; }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -112px; }\n\n\t.rt_qc_mCS-dark-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -128px; }\n\t\n\t/* ---------------------------------------- */\n\t\n\t\n\t\n\t/* theme "inset", "inset-dark", "inset-2", "inset-2-dark", "inset-3", "inset-3-dark" */\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 12px;\n\t\tbackground-color: #000; background-color: rgba(0,0,0,0.2);\n\t}\n\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ \n\t\twidth: 6px;\n\t\tmargin: 3px 5px;\n\t\tposition: absolute;\n\t\theight: auto;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\theight: 6px;\n\t\tmargin: 5px 3px;\n\t\tposition: absolute;\n\t\twidth: auto;\n\t\ttop: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 12px;\n\t\tmargin: 2px 0;\n\t}\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -32px -72px; }\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -32px -92px; }\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -40px -112px; }\n\t\n\t.rt_qc_mCS-inset.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight, \n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight, \n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -40px -128px; }\n\t\n\t\n\t/* theme "inset-dark", "inset-2-dark", "inset-3-dark" */\n\t\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); }\n\t\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -112px -72px; }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -112px -92px; }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -120px -112px; }\n\n\t.rt_qc_mCS-inset-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight, \n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{\tbackground-position: -120px -128px; }\n\t\n\t\n\t/* theme "inset-2", "inset-2-dark" */\n\t\n\t.rt_qc_mCS-inset-2.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail, \n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: transparent;\n\t\tborder-width: 1px;\n\t\tborder-style: solid;\n\t\tborder-color: #fff;\n\t\tborder-color: rgba(255,255,255,0.2);\n\t\t-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;\n\t}\n\t\n\t.rt_qc_mCS-inset-2-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ border-color: #000; border-color: rgba(0,0,0,0.2); }\n\t\n\t\n\t/* theme "inset-3", "inset-3-dark" */\n\t\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.6); }\n\t\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.6); }\n\t\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); }\n\t\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); }\n\t\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-3.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); }\n\t\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.75); }\n\t\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); }\n\t\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-inset-3-dark.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); }\n\t\n\t/* ---------------------------------------- */\n\n\t/* theme: "qcell-default" */\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\twidth: 10px;\n\t\tbackground-color: #fff;\n\t\tbackground-color: rgba(255,255,255,0.1);\n\t\t-webkit-border-radius: 2px;\n\t\t-moz-border-radius: 2px;\n\t\tborder-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 10px;\n\t\tbackground-color: #fff;\n\t\tbackground-color: rgba(255,255,255,0.75);\n\t\t-webkit-border-radius: 2px;\n\t\t-moz-border-radius: 2px;\n\t\tborder-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_draggerRail{\n\t\twidth: 100%;\n\t\theight: 10px;\n\t\tmargin: 2px 0;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools_horizontal .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\twidth: 100%;\n\t\theight: 10px;\n\t\tmargin: 2px auto;\n\t}\n\t\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_draggerRail{\n\t\tbackground-color: #e2e2e6;\n\t\t-webkit-border-radius: 2px;\n\t\t-moz-border-radius: 2px;\n\t\tborder-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger .rt_qc_mCSB_dragger_bar{\n\t\tbackground-color: #7b7d86;\n\t\t-webkit-border-radius: 2px;\n\t\t-moz-border-radius: 2px;\n\t\tborder-radius: 2px;\n\t}\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:hover .rt_qc_mCSB_dragger_bar{ background-color: #7b7d86; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger:active .rt_qc_mCSB_dragger_bar,\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_dragger.rt_qc_mCSB_dragger_onDrag .rt_qc_mCSB_dragger_bar{ background-color: #7b7d86; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonUp{ background-position: -128px 0; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonDown{ background-position: -128px -20px; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonLeft{ background-position: -140px -41px; }\n\n\t.rt_qc_mCS-qcell-default.rt_qc_mCSB_scrollTools .rt_qc_mCSB_buttonRight{ background-position: -140px -57px; }\n\t\n\t/* ---------------------------------------- */`,""]);const f=u},8925:(t,e,r)=>{"use strict";r.d(e,{A:()=>k});var i=r(1601),o=r.n(i),a=r(6314),s=r.n(a),n=r(4417),l=r.n(n),c=new URL(r(9699),r.b),h=new URL(r(4213),r.b),d=new URL(r(9871),r.b),u=new URL(r(3201),r.b),p=new URL(r(5819),r.b),_=new URL(r(7988),r.b),g=new URL(r(613),r.b),f=new URL(r(5625),r.b),m=s()(o()),C=l()(c),L=l()(h),b=l()(d),E=l()(u),v=l()(p),y=l()(_),w=l()(g),x=l()(f);m.push([t.id,`/*! jQuery UI - v1.12.1 - 2017-12-31\n* http://jqueryui.com\n* Includes: draggable.css, core.css, resizable.css, selectable.css, sortable.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, progressbar.css, selectmenu.css, slider.css, spinner.css, tabs.css, tooltip.css, theme.css\n* To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=base&cornerRadiusShadow=8px&offsetLeftShadow=0px&offsetTopShadow=0px&thicknessShadow=5px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=666666&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cc0000&fcError=5f3f3f&borderColorError=f1a899&bgTextureError=flat&bgColorError=fddfdf&iconColorHighlight=777620&fcHighlight=777620&borderColorHighlight=dad55e&bgTextureHighlight=flat&bgColorHighlight=fffa90&iconColorActive=ffffff&fcActive=ffffff&borderColorActive=003eff&bgTextureActive=flat&bgColorActive=007fff&iconColorHover=555555&fcHover=2b2b2b&borderColorHover=cccccc&bgTextureHover=flat&bgColorHover=ededed&iconColorDefault=777777&fcDefault=454545&borderColorDefault=c5c5c5&bgTextureDefault=flat&bgColorDefault=f6f6f6&iconColorContent=444444&fcContent=333333&borderColorContent=dddddd&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=444444&fcHeader=333333&borderColorHeader=dddddd&bgTextureHeader=flat&bgColorHeader=e9e9e9&cornerRadius=3px&fwDefault=normal&fsDefault=1em&ffDefault=Arial%2CHelvetica%2Csans-serif\n* Copyright jQuery Foundation and other contributors; Licensed MIT */\n\n.rt-qc-ui-draggable-handle {\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n/* Layout helpers\n----------------------------------*/\n.rt-qc-ui-helper-hidden {\n\tdisplay: none;\n}\n.rt-qc-ui-helper-hidden-accessible {\n\tborder: 0;\n\tclip: rect(0 0 0 0);\n\theight: 1px;\n\tmargin: -1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n}\n.rt-qc-ui-helper-reset {\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\toutline: 0;\n\tline-height: 1.3;\n\ttext-decoration: none;\n\tfont-size: 100%;\n\tlist-style: none;\n}\n.rt-qc-ui-helper-clearfix:before,\n.rt-qc-ui-helper-clearfix:after {\n\tcontent: "";\n\tdisplay: table;\n\tborder-collapse: collapse;\n}\n.rt-qc-ui-helper-clearfix:after {\n\tclear: both;\n}\n.rt-qc-ui-helper-zfix {\n\twidth: 100%;\n\theight: 100%;\n\ttop: 0;\n\tleft: 0;\n\tposition: absolute;\n\topacity: 0;\n\tfilter:Alpha(Opacity=0); /* support: IE8 */\n}\n\n.rt-qc-ui-front {\n\tz-index: 100;\n}\n\n\n/* Interaction Cues\n----------------------------------*/\n.rt-qc-ui-state-disabled {\n\tcursor: default !important;\n\tpointer-events: none;\n}\n\n\n/* Icons\n----------------------------------*/\n.rt-qc-ui-icon {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tmargin-top: -.25em;\n\tposition: relative;\n\ttext-indent: -99999px;\n\toverflow: hidden;\n\tbackground-repeat: no-repeat;\n}\n\n.rt-qc-ui-widget-icon-block {\n\tleft: 50%;\n\tmargin-left: -8px;\n\tdisplay: block;\n}\n\n/* Misc visuals\n----------------------------------*/\n\n/* Overlays */\n.rt-qc-ui-widget-overlay {\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}\n.rt-qc-ui-resizable {\n\tposition: relative;\n}\n.rt-qc-ui-resizable-handle {\n\tposition: absolute;\n\tfont-size: 0.1px;\n\tdisplay: block;\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.rt-qc-ui-resizable-disabled .rt-qc-ui-resizable-handle,\n.rt-qc-ui-resizable-autohide .rt-qc-ui-resizable-handle {\n\tdisplay: none;\n}\n.rt-qc-ui-resizable-n {\n\tcursor: n-resize;\n\theight: 7px;\n\twidth: 100%;\n\ttop: -5px;\n\tleft: 0;\n}\n.rt-qc-ui-resizable-s {\n\tcursor: s-resize;\n\theight: 7px;\n\twidth: 100%;\n\tbottom: -5px;\n\tleft: 0;\n}\n.rt-qc-ui-resizable-e {\n\tcursor: e-resize;\n\twidth: 7px;\n\tright: -5px;\n\ttop: 0;\n\theight: 100%;\n}\n.rt-qc-ui-resizable-w {\n\tcursor: w-resize;\n\twidth: 7px;\n\tleft: -5px;\n\ttop: 0;\n\theight: 100%;\n}\n.rt-qc-ui-resizable-se {\n\tcursor: se-resize;\n\twidth: 12px;\n\theight: 12px;\n\tright: 1px;\n\tbottom: 1px;\n}\n.rt-qc-ui-resizable-sw {\n\tcursor: sw-resize;\n\twidth: 9px;\n\theight: 9px;\n\tleft: -5px;\n\tbottom: -5px;\n}\n.rt-qc-ui-resizable-nw {\n\tcursor: nw-resize;\n\twidth: 9px;\n\theight: 9px;\n\tleft: -5px;\n\ttop: -5px;\n}\n.rt-qc-ui-resizable-ne {\n\tcursor: ne-resize;\n\twidth: 9px;\n\theight: 9px;\n\tright: -5px;\n\ttop: -5px;\n}\n.rt-qc-ui-selectable {\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.rt-qc-ui-selectable-helper {\n\tposition: absolute;\n\tz-index: 100;\n\tborder: 1px dotted black;\n}\n.rt-qc-ui-sortable-handle {\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.rt-qc-ui-accordion .rt-qc-ui-accordion-header {\n\tdisplay: block;\n\tcursor: pointer;\n\tposition: relative;\n\tmargin: 2px 0 0 0;\n\tpadding: .5em .5em .5em .7em;\n\tfont-size: 100%;\n}\n.rt-qc-ui-accordion .rt-qc-ui-accordion-content {\n\tpadding: 1em 2.2em;\n\tborder-top: 0;\n\toverflow: auto;\n}\n.rt-qc-ui-autocomplete {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tcursor: default;\n}\n.rt-qc-ui-menu {\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tdisplay: block;\n\toutline: 0;\n}\n.rt-qc-ui-menu .rt-qc-ui-menu {\n\tposition: absolute;\n}\n.rt-qc-ui-menu .rt-qc-ui-menu-item {\n\tmargin: 0;\n\tcursor: pointer;\n\t/* support: IE10, see #8844 */\n\tlist-style-image: url(${C});\n}\n.rt-qc-ui-menu .rt-qc-ui-menu-item-wrapper {\n\tposition: relative;\n\tpadding: 3px 1em 3px .4em;\n}\n.rt-qc-ui-menu .rt-qc-ui-menu-divider {\n\tmargin: 5px 0;\n\theight: 0;\n\tfont-size: 0;\n\tline-height: 0;\n\tborder-width: 1px 0 0 0;\n}\n.rt-qc-ui-menu .rt-qc-ui-state-focus,\n.rt-qc-ui-menu .rt-qc-ui-state-active {\n\tmargin: -1px;\n}\n\n/* icon support */\n.rt-qc-ui-menu-icons {\n\tposition: relative;\n}\n.rt-qc-ui-menu-icons .rt-qc-ui-menu-item-wrapper {\n\tpadding-left: 2em;\n}\n\n/* left-aligned */\n.rt-qc-ui-menu .rt-qc-ui-icon {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: .2em;\n\tmargin: auto 0;\n}\n\n/* right-aligned */\n.rt-qc-ui-menu .rt-qc-ui-menu-icon {\n\tleft: auto;\n\tright: 0;\n}\n.rt-qc-ui-button {\n\tpadding: .1em 1px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tline-height: normal;\n\tmargin-right: .1em;\n\tcursor: pointer;\n\tvertical-align: middle;\n\ttext-align: center;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\n\t/* Support: IE <= 11 */\n\toverflow: visible;\n}\n\n.rt-qc-ui-button,\n.rt-qc-ui-button:link,\n.rt-qc-ui-button:visited,\n.rt-qc-ui-button:hover,\n.rt-qc-ui-button:active {\n\ttext-decoration: none;\n}\n\n/* to make room for the icon, a width needs to be set here */\n.rt-qc-ui-button-icon-only {\n\twidth: 2em;\n\tbox-sizing: border-box;\n\ttext-indent: -9999px;\n\twhite-space: nowrap;\n}\n\n/* no icon support for input elements */\ninput.rt-qc-ui-button.rt-qc-ui-button-icon-only {\n\ttext-indent: 0;\n}\n\n/* button icon element(s) */\n.rt-qc-ui-button-icon-only .rt-qc-ui-icon {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 50%;\n\tmargin-top: -8px;\n\tmargin-left: -8px;\n}\n\n.rt-qc-ui-button.rt-qc-ui-icon-notext .rt-qc-ui-icon {\n\tpadding: 0;\n\twidth: 2.1em;\n\theight: 2.1em;\n\ttext-indent: -9999px;\n\twhite-space: nowrap;\n\n}\n\ninput.rt-qc-ui-button.rt-qc-ui-icon-notext .rt-qc-ui-icon {\n\twidth: auto;\n\theight: auto;\n\ttext-indent: 0;\n\twhite-space: normal;\n\tpadding: .4em 1em;\n}\n\n/* workarounds */\n/* Support: Firefox 5 - 40 */\ninput.rt-qc-ui-button::-moz-focus-inner,\nbutton.rt-qc-ui-button::-moz-focus-inner {\n\tborder: 0;\n\tpadding: 0;\n}\n.rt-qc-ui-controlgroup {\n\tvertical-align: middle;\n\tdisplay: inline-block;\n}\n.rt-qc-ui-controlgroup > .rt-qc-ui-controlgroup-item {\n\tfloat: left;\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n.rt-qc-ui-controlgroup > .rt-qc-ui-controlgroup-item:focus,\n.rt-qc-ui-controlgroup > .rt-qc-ui-controlgroup-item.rt-qc-ui-visual-focus {\n\tz-index: 9999;\n}\n.rt-qc-ui-controlgroup-vertical > .rt-qc-ui-controlgroup-item {\n\tdisplay: block;\n\tfloat: none;\n\twidth: 100%;\n\tmargin-top: 0;\n\tmargin-bottom: 0;\n\ttext-align: left;\n}\n.rt-qc-ui-controlgroup-vertical .rt-qc-ui-controlgroup-item {\n\tbox-sizing: border-box;\n}\n.rt-qc-ui-controlgroup .rt-qc-ui-controlgroup-label {\n\tpadding: .4em 1em;\n}\n.rt-qc-ui-controlgroup .rt-qc-ui-controlgroup-label span {\n\tfont-size: 80%;\n}\n.rt-qc-ui-controlgroup-horizontal .rt-qc-ui-controlgroup-label + .rt-qc-ui-controlgroup-item {\n\tborder-left: none;\n}\n.rt-qc-ui-controlgroup-vertical .rt-qc-ui-controlgroup-label + .rt-qc-ui-controlgroup-item {\n\tborder-top: none;\n}\n.rt-qc-ui-controlgroup-horizontal .rt-qc-ui-controlgroup-label.rt-qc-ui-widget-content {\n\tborder-right: none;\n}\n.rt-qc-ui-controlgroup-vertical .rt-qc-ui-controlgroup-label.rt-qc-ui-widget-content {\n\tborder-bottom: none;\n}\n\n/* Spinner specific style fixes */\n.rt-qc-ui-controlgroup-vertical .rt-qc-ui-spinner-input {\n\n\t/* Support: IE8 only, Android < 4.4 only */\n\twidth: 75%;\n\twidth: calc( 100% - 2.4em );\n}\n.rt-qc-ui-controlgroup-vertical .rt-qc-ui-spinner .rt-qc-ui-spinner-up {\n\tborder-top-style: solid;\n}\n\n.rt-qc-ui-checkboxradio-label .rt-qc-ui-icon-background {\n\tbox-shadow: inset 1px 1px 1px #ccc;\n\tborder-radius: .12em;\n\tborder: none;\n}\n.rt-qc-ui-checkboxradio-radio-label .rt-qc-ui-icon-background {\n\twidth: 16px;\n\theight: 16px;\n\tborder-radius: 1em;\n\toverflow: visible;\n\tborder: none;\n}\n.rt-qc-ui-checkboxradio-radio-label.rt-qc-ui-checkboxradio-checked .rt-qc-ui-icon,\n.rt-qc-ui-checkboxradio-radio-label.rt-qc-ui-checkboxradio-checked:hover .rt-qc-ui-icon {\n\tbackground-image: none;\n\twidth: 8px;\n\theight: 8px;\n\tborder-width: 4px;\n\tborder-style: solid;\n}\n.rt-qc-ui-checkboxradio-disabled {\n\tpointer-events: none;\n}\n.rt-qc-ui-datepicker {\n\twidth: 285px;\n\tpadding: 4px 0;\n\tdisplay: none;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-header {\n\tposition: relative;\n\tpadding: .2em 0;\n\tbackground-color: #fff;\n\tborder: none;\n\theight: 24px;\n\tmargin: 0 8px;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-prev,\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-next {\n\tposition: absolute;\n\ttop: 2px;\n\twidth: 1.8em;\n\theight: 1.8em;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-prev-hover,\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-next-hover {\n\ttop: 1px;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-prev {\n\tleft: 2px;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-next {\n\tright: 2px;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-prev-hover {\n\tleft: 1px;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-next-hover {\n\tright: 1px;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-prev span,\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-next span {\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 50%;\n\tmargin-left: -8px;\n\ttop: 50%;\n\tmargin-top: -8px;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-title {\n\tmargin: 0 2.3em;\n\tline-height: 1.8em;\n\ttext-align: center;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-title select {\n\tfont-size: 1em;\n\tmargin: 1px 0;\n}\n.rt-qc-ui-datepicker select.rt-qc-ui-datepicker-month,\n.rt-qc-ui-datepicker select.rt-qc-ui-datepicker-year {\n\twidth: 30%;\n\tmargin: 0 5px;\n\tborder-color: #e5e8ec;\n\tbackground-color: #fff;\n}\n.rt-qc-ui-datepicker table {\n\twidth: 100%;\n\tfont-size: .9em;\n\tborder-collapse: collapse;\n\tmargin: 0 0 .4em;\n\tborder-top: 1px solid #e5e8ec;\n}\n.rt-qc-ui-datepicker th {\n\tpadding: .7em .3em;\n\ttext-align: center;\n\tfont-weight: normal;\n\tborder: 0;\n\tfont-size: 12px;\n\tcolor: #b7c0d0;\n}\n.rt-qc-ui-datepicker td {\n\tborder: 0;\n\tpadding: 1px;\n\tvertical-align: middle;\n}\n.rt-qc-ui-datepicker td span,\n.rt-qc-ui-datepicker td a {\n\tdisplay: block;\n\tpadding: .2em;\n\ttext-align: right;\n\ttext-decoration: none;\n margin-left: 3px;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-buttonpane {\n\tbackground-image: none;\n\tmargin: .7em 0 0 0;\n\tpadding: 0 .2em;\n\tborder-left: 0;\n\tborder-right: 0;\n\tborder-bottom: 0;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-buttonpane button {\n\tfloat: right;\n\tmargin: .5em .2em .4em;\n\tcursor: pointer;\n\tpadding: .2em .6em .3em .6em;\n\twidth: auto;\n\toverflow: visible;\n}\n.rt-qc-ui-datepicker .rt-qc-ui-datepicker-buttonpane button.rt-qc-ui-datepicker-current {\n\tfloat: left;\n}\n.rt-qc-ui-datepicker-calendar > tbody td.rt-qc-ui-datepicker-week-end:first-child a {\n\tcolor: red;\n}\n.rt-qc-ui-datepicker-calendar > tbody td.rt-qc-ui-datepicker-week-end:last-child a {\n\tcolor: blue;\n}\n\n/* with multiple calendars */\n.rt-qc-ui-datepicker.rt-qc-ui-datepicker-multi {\n\twidth: auto;\n}\n.rt-qc-ui-datepicker-multi .rt-qc-ui-datepicker-group {\n\tfloat: left;\n}\n.rt-qc-ui-datepicker-multi .rt-qc-ui-datepicker-group table {\n\twidth: 95%;\n\tmargin: 0 auto .4em;\n}\n.rt-qc-ui-datepicker-multi-2 .rt-qc-ui-datepicker-group {\n\twidth: 50%;\n}\n.rt-qc-ui-datepicker-multi-3 .rt-qc-ui-datepicker-group {\n\twidth: 33.3%;\n}\n.rt-qc-ui-datepicker-multi-4 .rt-qc-ui-datepicker-group {\n\twidth: 25%;\n}\n.rt-qc-ui-datepicker-multi .rt-qc-ui-datepicker-group-last .rt-qc-ui-datepicker-header,\n.rt-qc-ui-datepicker-multi .rt-qc-ui-datepicker-group-middle .rt-qc-ui-datepicker-header {\n\tborder-left-width: 0;\n}\n.rt-qc-ui-datepicker-multi .rt-qc-ui-datepicker-buttonpane {\n\tclear: left;\n}\n.rt-qc-ui-datepicker-row-break {\n\tclear: both;\n\twidth: 100%;\n\tfont-size: 0;\n}\n\n/* RTL support */\n.rt-qc-ui-datepicker-rtl {\n\tdirection: rtl;\n}\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-prev {\n\tright: 2px;\n\tleft: auto;\n}\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-next {\n\tleft: 2px;\n\tright: auto;\n}\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-prev:hover {\n\tright: 1px;\n\tleft: auto;\n}\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-next:hover {\n\tleft: 1px;\n\tright: auto;\n}\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-buttonpane {\n\tclear: right;\n}\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-buttonpane button {\n\tfloat: left;\n}\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-buttonpane button.rt-qc-ui-datepicker-current,\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-group {\n\tfloat: right;\n}\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-group-last .rt-qc-ui-datepicker-header,\n.rt-qc-ui-datepicker-rtl .rt-qc-ui-datepicker-group-middle .rt-qc-ui-datepicker-header {\n\tborder-right-width: 0;\n\tborder-left-width: 1px;\n}\n\n/* Icons */\n.rt-qc-ui-datepicker .rt-qc-ui-icon {\n\tdisplay: block;\n\ttext-indent: -99999px;\n\toverflow: hidden;\n\tbackground-repeat: no-repeat;\n\tleft: .5em;\n\ttop: .3em;\n}\n.rt-qc-ui-dialog {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tpadding: .2em;\n\toutline: 0;\n}\n.rt-qc-ui-dialog .rt-qc-ui-dialog-titlebar {\n\tpadding: .4em 1em;\n\tposition: relative;\n}\n.rt-qc-ui-dialog .rt-qc-ui-dialog-title {\n\tfloat: left;\n\tmargin: .1em 0;\n\twhite-space: nowrap;\n\twidth: 90%;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n.rt-qc-ui-dialog .rt-qc-ui-dialog-titlebar-close {\n\tposition: absolute;\n\tright: .3em;\n\ttop: 50%;\n\twidth: 20px;\n\tmargin: -10px 0 0 0;\n\tpadding: 1px;\n\theight: 20px;\n}\n.rt-qc-ui-dialog .rt-qc-ui-dialog-content {\n\tposition: relative;\n\tborder: 0;\n\tpadding: .5em 1em;\n\tbackground: none;\n\toverflow: auto;\n}\n.rt-qc-ui-dialog .rt-qc-ui-dialog-buttonpane {\n\ttext-align: left;\n\tborder-width: 1px 0 0 0;\n\tbackground-image: none;\n\tmargin-top: .5em;\n\tpadding: .3em 1em .5em .4em;\n}\n.rt-qc-ui-dialog .rt-qc-ui-dialog-buttonpane .rt-qc-ui-dialog-buttonset {\n\tfloat: right;\n}\n.rt-qc-ui-dialog .rt-qc-ui-dialog-buttonpane button {\n\tmargin: .5em .4em .5em 0;\n\tcursor: pointer;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-n {\n\theight: 2px;\n\ttop: 0;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-e {\n\twidth: 2px;\n\tright: 0;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-s {\n\theight: 2px;\n\tbottom: 0;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-w {\n\twidth: 2px;\n\tleft: 0;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-se,\n.rt-qc-ui-dialog .rt-qc-ui-resizable-sw,\n.rt-qc-ui-dialog .rt-qc-ui-resizable-ne,\n.rt-qc-ui-dialog .rt-qc-ui-resizable-nw {\n\twidth: 7px;\n\theight: 7px;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-se {\n\tright: 0;\n\tbottom: 0;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-sw {\n\tleft: 0;\n\tbottom: 0;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-ne {\n\tright: 0;\n\ttop: 0;\n}\n.rt-qc-ui-dialog .rt-qc-ui-resizable-nw {\n\tleft: 0;\n\ttop: 0;\n}\n.rt-qc-ui-draggable .rt-qc-ui-dialog-titlebar {\n\tcursor: move;\n}\n.rt-qc-ui-progressbar {\n\theight: 2em;\n\ttext-align: left;\n\toverflow: hidden;\n}\n.rt-qc-ui-progressbar .rt-qc-ui-progressbar-value {\n\tmargin: -1px;\n\theight: 100%;\n}\n.rt-qc-ui-progressbar .rt-qc-ui-progressbar-overlay {\n\tbackground: url(${L});\n\theight: 100%;\n\tfilter: alpha(opacity=25); /* support: IE8 */\n\topacity: 0.25;\n}\n.rt-qc-ui-progressbar-indeterminate .rt-qc-ui-progressbar-value {\n\tbackground-image: none;\n}\n.rt-qc-ui-selectmenu-menu {\n\tpadding: 0;\n\tmargin: 0;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tdisplay: none;\n}\n.rt-qc-ui-selectmenu-menu .rt-qc-ui-menu {\n\toverflow: auto;\n\toverflow-x: hidden;\n\tpadding-bottom: 1px;\n}\n.rt-qc-ui-selectmenu-menu .rt-qc-ui-menu .rt-qc-ui-selectmenu-optgroup {\n\tfont-size: 1em;\n\tfont-weight: bold;\n\tline-height: 1.5;\n\tpadding: 2px 0.4em;\n\tmargin: 0.5em 0 0 0;\n\theight: auto;\n\tborder: 0;\n}\n.rt-qc-ui-selectmenu-open {\n\tdisplay: block;\n\tz-index: 9999;\n}\n.rt-qc-ui-selectmenu-text {\n\tdisplay: block;\n\tmargin-right: 20px;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n.rt-qc-ui-selectmenu-button.rt-qc-ui-button {\n\ttext-align: left;\n\twhite-space: nowrap;\n\twidth: 14em;\n padding-left: 4px;\n}\n.rt-qc-ui-selectmenu-icon.rt-qc-ui-icon {\n\tfloat: right;\n\tmargin-top: 0;\n}\n.rt-qc-ui-slider {\n\tposition: relative;\n\ttext-align: left;\n}\n.rt-qc-ui-slider .rt-qc-ui-slider-handle {\n\tposition: absolute;\n\tz-index: 2;\n\twidth: 1.2em;\n\theight: 1.2em;\n\tcursor: default;\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.rt-qc-ui-slider .rt-qc-ui-slider-range {\n\tposition: absolute;\n\tz-index: 1;\n\tfont-size: .7em;\n\tdisplay: block;\n\tborder: 0;\n\tbackground-position: 0 0;\n}\n\n/* support: IE8 - See #6727 */\n.rt-qc-ui-slider.rt-qc-ui-state-disabled .rt-qc-ui-slider-handle,\n.rt-qc-ui-slider.rt-qc-ui-state-disabled .rt-qc-ui-slider-range {\n\tfilter: inherit;\n}\n\n.rt-qc-ui-slider-horizontal {\n\theight: .8em;\n}\n.rt-qc-ui-slider-horizontal .rt-qc-ui-slider-handle {\n\ttop: -.3em;\n\tmargin-left: -.6em;\n}\n.rt-qc-ui-slider-horizontal .rt-qc-ui-slider-range {\n\ttop: 0;\n\theight: 100%;\n}\n.rt-qc-ui-slider-horizontal .rt-qc-ui-slider-range-min {\n\tleft: 0;\n}\n.rt-qc-ui-slider-horizontal .rt-qc-ui-slider-range-max {\n\tright: 0;\n}\n\n.rt-qc-ui-slider-vertical {\n\twidth: .8em;\n\theight: 100px;\n}\n.rt-qc-ui-slider-vertical .rt-qc-ui-slider-handle {\n\tleft: -.3em;\n\tmargin-left: 0;\n\tmargin-bottom: -.6em;\n}\n.rt-qc-ui-slider-vertical .rt-qc-ui-slider-range {\n\tleft: 0;\n\twidth: 100%;\n}\n.rt-qc-ui-slider-vertical .rt-qc-ui-slider-range-min {\n\tbottom: 0;\n}\n.rt-qc-ui-slider-vertical .rt-qc-ui-slider-range-max {\n\ttop: 0;\n}\n.rt-qc-ui-spinner {\n\tposition: relative;\n\tdisplay: inline-block;\n\toverflow: hidden;\n\tpadding: 0;\n\tvertical-align: middle;\n}\n.rt-qc-ui-spinner-input {\n\tborder: none;\n\tbackground: none;\n\tcolor: inherit;\n\tpadding: .222em 0;\n\tmargin: .2em 0;\n\tvertical-align: middle;\n\tmargin-left: .4em;\n\tmargin-right: 2em;\n}\n.rt-qc-ui-spinner-button {\n\twidth: 1.6em;\n\theight: 50%;\n\tfont-size: .5em;\n\tpadding: 0;\n\tmargin: 0;\n\ttext-align: center;\n\tposition: absolute;\n\tcursor: default;\n\tdisplay: block;\n\toverflow: hidden;\n\tright: 0;\n}\n/* more specificity required here to override default borders */\n.rt-qc-ui-spinner a.rt-qc-ui-spinner-button {\n\tborder-top-style: none;\n\tborder-bottom-style: none;\n\tborder-right-style: none;\n}\n.rt-qc-ui-spinner-up {\n\ttop: 0;\n}\n.rt-qc-ui-spinner-down {\n\tbottom: 0;\n}\n.rt-qc-ui-tabs {\n\tposition: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */\n\tpadding: .2em;\n}\n.rt-qc-ui-tabs .rt-qc-ui-tabs-nav {\n\tmargin: 0;\n\tpadding: .2em .2em 0;\n}\n.rt-qc-ui-tabs .rt-qc-ui-tabs-nav li {\n\tlist-style: none;\n\tfloat: left;\n\tposition: relative;\n\ttop: 0;\n\tmargin: 1px .2em 0 0;\n\tborder-bottom-width: 0;\n\tpadding: 0;\n\twhite-space: nowrap;\n}\n.rt-qc-ui-tabs .rt-qc-ui-tabs-nav .rt-qc-ui-tabs-anchor {\n\tfloat: left;\n\tpadding: .5em 1em;\n\ttext-decoration: none;\n}\n.rt-qc-ui-tabs .rt-qc-ui-tabs-nav li.rt-qc-ui-tabs-active {\n\tmargin-bottom: -1px;\n\tpadding-bottom: 1px;\n}\n.rt-qc-ui-tabs .rt-qc-ui-tabs-nav li.rt-qc-ui-tabs-active .rt-qc-ui-tabs-anchor,\n.rt-qc-ui-tabs .rt-qc-ui-tabs-nav li.rt-qc-ui-state-disabled .rt-qc-ui-tabs-anchor,\n.rt-qc-ui-tabs .rt-qc-ui-tabs-nav li.rt-qc-ui-tabs-loading .rt-qc-ui-tabs-anchor {\n\tcursor: text;\n}\n.rt-qc-ui-tabs-collapsible .rt-qc-ui-tabs-nav li.rt-qc-ui-tabs-active .rt-qc-ui-tabs-anchor {\n\tcursor: pointer;\n}\n.rt-qc-ui-tabs .rt-qc-ui-tabs-panel {\n\tdisplay: block;\n\tborder-width: 0;\n\tpadding: 1em 1.4em;\n\tbackground: none;\n}\n.rt-qc-ui-tooltip {\n\tpadding: 8px;\n\tposition: absolute;\n\tz-index: 9999;\n\tmax-width: 300px;\n}\nbody .rt-qc-ui-tooltip {\n\tborder-width: 2px;\n}\n\n/* Component containers\n----------------------------------*/\n.rt-qc-ui-widget {\n\tfont-family: Arial,Helvetica,sans-serif;\n\tfont-size: 9pt;\n}\n.rt-qc-ui-widget .rt-qc-ui-widget {\n\tfont-size: 1em;\n}\n.rt-qc-ui-widget input,\n.rt-qc-ui-widget select,\n.rt-qc-ui-widget textarea,\n.rt-qc-ui-widget button {\n\tfont-family: Arial,Helvetica,sans-serif;\n\tfont-size: 1em;\n}\n.rt-qc-ui-widget.rt-qc-ui-widget-content {\n\tborder: 1px solid #e5e8ec;\n}\n.rt-qc-ui-widget-content {\n\tborder: 1px solid #dddddd;\n\tbackground: #ffffff;\n\tcolor: #333333;\n}\n.rt-qc-ui-widget-content a {\n\tcolor: #333333;\n}\n.rt-qc-ui-widget-header {\n\tborder: 1px solid #dddddd;\n\tbackground: #e9e9e9;\n\tcolor: #333333;\n\tfont-weight: bold;\n}\n.rt-qc-ui-widget-header a {\n\tcolor: #333333;\n}\n\n/* Interaction states\n----------------------------------*/\n.rt-qc-ui-state-default,\n.rt-qc-ui-widget-content .rt-qc-ui-state-default,\n.rt-qc-ui-widget-header .rt-qc-ui-state-default,\n.rt-qc-ui-button,\n\n/* We use html here because we need a greater specificity to make sure disabled\nworks properly when clicked or hovered */\nhtml .rt-qc-ui-button.rt-qc-ui-state-disabled:hover,\nhtml .rt-qc-ui-button.rt-qc-ui-state-disabled:active {\n\theight: 2.2em;\n\tborder: 1px solid #c5c5c5;\n\tbackground: #ffffff;\n\tfont-weight: normal;\n color: #6d727b;\n}\n.rt-qc-ui-state-default a,\n.rt-qc-ui-state-default a:link,\n.rt-qc-ui-state-default a:visited,\na.rt-qc-ui-button,\na:link.rt-qc-ui-button,\na:visited.rt-qc-ui-button,\n.rt-qc-ui-button {\n\tcolor: #454545;\n\ttext-decoration: none;\n}\n.rt-qc-ui-state-hover,\n.rt-qc-ui-widget-content .rt-qc-ui-state-hover,\n.rt-qc-ui-widget-header .rt-qc-ui-state-hover,\n.rt-qc-ui-state-focus,\n.rt-qc-ui-widget-content .rt-qc-ui-state-focus,\n.rt-qc-ui-widget-header .rt-qc-ui-state-focus,\n.rt-qc-ui-button:hover,\n.rt-qc-ui-button:focus {\n\tborder: 1px solid #cccccc;\n\tbackground: #ededed;\n\tfont-weight: normal;\n\tcolor: #2b2b2b;\n}\n.rt-qc-ui-state-hover a,\n.rt-qc-ui-state-hover a:hover,\n.rt-qc-ui-state-hover a:link,\n.rt-qc-ui-state-hover a:visited,\n.rt-qc-ui-state-focus a,\n.rt-qc-ui-state-focus a:hover,\n.rt-qc-ui-state-focus a:link,\n.rt-qc-ui-state-focus a:visited,\na.rt-qc-ui-button:hover,\na.rt-qc-ui-button:focus {\n\tcolor: #2b2b2b;\n\ttext-decoration: none;\n}\n\n.rt-qc-ui-visual-focus {\n\tbox-shadow: 0 0 3px 1px rgb(94, 158, 214);\n}\n.rt-qc-ui-state-active,\n.rt-qc-ui-widget-content .rt-qc-ui-state-active,\n.rt-qc-ui-widget-header .rt-qc-ui-state-active,\na.rt-qc-ui-button:active,\n.rt-qc-ui-button:active,\n.rt-qc-ui-button.rt-qc-ui-state-active:hover {\n\tborder: 1px solid #b7c0d0;\n\tbackground: #b7c0d0;\n\tborder-radius: 4px;\n\tfont-weight: normal;\n\tcolor: #ffffff;\n}\n.rt-qc-ui-icon-background,\n.rt-qc-ui-state-active .rt-qc-ui-icon-background {\n\tborder: #003eff;\n\tbackground-color: #ffffff;\n}\n.rt-qc-ui-state-active a,\n.rt-qc-ui-state-active a:link,\n.rt-qc-ui-state-active a:visited {\n\tcolor: #ffffff;\n\ttext-decoration: none;\n}\n\n/* calendar etc\n----------------------------------*/ \n .rt-qc-ui-datepicker-calendar .rt-qc-ui-state-default {\n text-decoration: none;\n border: 1px solid #ffffff;\n text-align: center;\n width: 29px;\n border-radius: 4px;\n padding: 6px 0;\n}\n \n \n/* Interaction Cues\n----------------------------------*/\n.rt-qc-ui-state-highlight,\n.rt-qc-ui-widget-content .rt-qc-ui-state-highlight,\n.rt-qc-ui-widget-header .rt-qc-ui-state-highlight {\n\tbackground: #47aaff;\n\tcolor: #ffffff;\n\tborder-radius: 4px;\n}\n.rt-qc-ui-state-checked {\n\tborder: 1px solid #dad55e;\n\tbackground: #fffa90;\n}\n.rt-qc-ui-state-highlight a,\n.rt-qc-ui-widget-content .rt-qc-ui-state-highlight a,\n.rt-qc-ui-widget-header .rt-qc-ui-state-highlight a {\n\tcolor: #777620;\n}\n.rt-qc-ui-state-error,\n.rt-qc-ui-widget-content .rt-qc-ui-state-error,\n.rt-qc-ui-widget-header .rt-qc-ui-state-error {\n\tborder: 1px solid #f1a899;\n\tbackground: #fddfdf;\n\tcolor: #5f3f3f;\n}\n.rt-qc-ui-state-error a,\n.rt-qc-ui-widget-content .rt-qc-ui-state-error a,\n.rt-qc-ui-widget-header .rt-qc-ui-state-error a {\n\tcolor: #5f3f3f;\n}\n.rt-qc-ui-state-error-text,\n.rt-qc-ui-widget-content .rt-qc-ui-state-error-text,\n.rt-qc-ui-widget-header .rt-qc-ui-state-error-text {\n\tcolor: #5f3f3f;\n}\n.rt-qc-ui-priority-primary,\n.rt-qc-ui-widget-content .rt-qc-ui-priority-primary,\n.rt-qc-ui-widget-header .rt-qc-ui-priority-primary {\n\tfont-weight: bold;\n}\n.rt-qc-ui-priority-secondary,\n.rt-qc-ui-widget-content .rt-qc-ui-priority-secondary,\n.rt-qc-ui-widget-header .rt-qc-ui-priority-secondary {\n\topacity: .7;\n\tfilter:Alpha(Opacity=70); /* support: IE8 */\n\tfont-weight: normal;\n}\n.rt-qc-ui-state-disabled,\n.rt-qc-ui-widget-content .rt-qc-ui-state-disabled,\n.rt-qc-ui-widget-header .rt-qc-ui-state-disabled {\n\topacity: .35;\n\tfilter:Alpha(Opacity=35); /* support: IE8 */\n\tbackground-image: none;\n}\n.rt-qc-ui-state-disabled .rt-qc-ui-icon {\n\tfilter:Alpha(Opacity=35); /* support: IE8 - See #6059 */\n}\n\n/* Icons\n----------------------------------*/\n\n/* states and images */\n.rt-qc-ui-icon {\n\twidth: 16px;\n\theight: 16px;\n}\n.rt-qc-ui-icon,\n.rt-qc-ui-widget-content .rt-qc-ui-icon {\n\tbackground-image: url(${b});\n}\n.rt-qc-ui-widget-header .rt-qc-ui-icon {\n\tbackground-image: url(${b});\n}\n.rt-qc-ui-state-hover .rt-qc-ui-icon,\n.rt-qc-ui-state-focus .rt-qc-ui-icon,\n.rt-qc-ui-button:hover .rt-qc-ui-icon,\n.rt-qc-ui-button:focus .rt-qc-ui-icon {\n\tbackground-image: url(${E});\n}\n.rt-qc-ui-state-active .rt-qc-ui-icon,\n.rt-qc-ui-button:active .rt-qc-ui-icon {\n\tbackground-image: url(${v});\n}\n.rt-qc-ui-state-highlight .rt-qc-ui-icon,\n.rt-qc-ui-button .rt-qc-ui-state-highlight.rt-qc-ui-icon {\n\tbackground-image: url(${y});\n}\n.rt-qc-ui-state-error .rt-qc-ui-icon,\n.rt-qc-ui-state-error-text .rt-qc-ui-icon {\n\tbackground-image: url(${w});\n}\n.rt-qc-ui-button .rt-qc-ui-icon {\n\tbackground-image: url(${x});\n}\n\n/* positioning */\n.rt-qc-ui-icon-blank { background-position: 16px 16px; }\n.rt-qc-ui-icon-caret-1-n { background-position: 0 0; }\n.rt-qc-ui-icon-caret-1-ne { background-position: -16px 0; }\n.rt-qc-ui-icon-caret-1-e { background-position: -32px 0; }\n.rt-qc-ui-icon-caret-1-se { background-position: -48px 0; }\n.rt-qc-ui-icon-caret-1-s { background-position: -65px 0; }\n.rt-qc-ui-icon-caret-1-sw { background-position: -80px 0; }\n.rt-qc-ui-icon-caret-1-w { background-position: -96px 0; }\n.rt-qc-ui-icon-caret-1-nw { background-position: -112px 0; }\n.rt-qc-ui-icon-caret-2-n-s { background-position: -128px 0; }\n.rt-qc-ui-icon-caret-2-e-w { background-position: -144px 0; }\n.rt-qc-ui-icon-triangle-1-n { background-position: 0 -16px; }\n.rt-qc-ui-icon-triangle-1-ne { background-position: -16px -16px; }\n.rt-qc-ui-icon-triangle-1-e { background-position: -32px -16px; }\n.rt-qc-ui-icon-triangle-1-se { background-position: -48px -16px; }\n.rt-qc-ui-icon-triangle-1-s { background-position: -65px -16px; }\n.rt-qc-ui-icon-triangle-1-sw { background-position: -80px -16px; }\n.rt-qc-ui-icon-triangle-1-w { background-position: -96px -16px; }\n.rt-qc-ui-icon-triangle-1-nw { background-position: -112px -16px; }\n.rt-qc-ui-icon-triangle-2-n-s { background-position: -128px -16px; }\n.rt-qc-ui-icon-triangle-2-e-w { background-position: -144px -16px; }\n.rt-qc-ui-icon-arrow-1-n { background-position: 0 -32px; }\n.rt-qc-ui-icon-arrow-1-ne { background-position: -16px -32px; }\n.rt-qc-ui-icon-arrow-1-e { background-position: -32px -32px; }\n.rt-qc-ui-icon-arrow-1-se { background-position: -48px -32px; }\n.rt-qc-ui-icon-arrow-1-s { background-position: -65px -32px; }\n.rt-qc-ui-icon-arrow-1-sw { background-position: -80px -32px; }\n.rt-qc-ui-icon-arrow-1-w { background-position: -96px -32px; }\n.rt-qc-ui-icon-arrow-1-nw { background-position: -112px -32px; }\n.rt-qc-ui-icon-arrow-2-n-s { background-position: -128px -32px; }\n.rt-qc-ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }\n.rt-qc-ui-icon-arrow-2-e-w { background-position: -160px -32px; }\n.rt-qc-ui-icon-arrow-2-se-nw { background-position: -176px -32px; }\n.rt-qc-ui-icon-arrowstop-1-n { background-position: -192px -32px; }\n.rt-qc-ui-icon-arrowstop-1-e { background-position: -208px -32px; }\n.rt-qc-ui-icon-arrowstop-1-s { background-position: -224px -32px; }\n.rt-qc-ui-icon-arrowstop-1-w { background-position: -240px -32px; }\n.rt-qc-ui-icon-arrowthick-1-n { background-position: 1px -48px; }\n.rt-qc-ui-icon-arrowthick-1-ne { background-position: -16px -48px; }\n.rt-qc-ui-icon-arrowthick-1-e { background-position: -32px -48px; }\n.rt-qc-ui-icon-arrowthick-1-se { background-position: -48px -48px; }\n.rt-qc-ui-icon-arrowthick-1-s { background-position: -64px -48px; }\n.rt-qc-ui-icon-arrowthick-1-sw { background-position: -80px -48px; }\n.rt-qc-ui-icon-arrowthick-1-w { background-position: -96px -48px; }\n.rt-qc-ui-icon-arrowthick-1-nw { background-position: -112px -48px; }\n.rt-qc-ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }\n.rt-qc-ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }\n.rt-qc-ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }\n.rt-qc-ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }\n.rt-qc-ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }\n.rt-qc-ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }\n.rt-qc-ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }\n.rt-qc-ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }\n.rt-qc-ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }\n.rt-qc-ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }\n.rt-qc-ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }\n.rt-qc-ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }\n.rt-qc-ui-icon-arrowreturn-1-w { background-position: -64px -64px; }\n.rt-qc-ui-icon-arrowreturn-1-n { background-position: -80px -64px; }\n.rt-qc-ui-icon-arrowreturn-1-e { background-position: -96px -64px; }\n.rt-qc-ui-icon-arrowreturn-1-s { background-position: -112px -64px; }\n.rt-qc-ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }\n.rt-qc-ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }\n.rt-qc-ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }\n.rt-qc-ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }\n.rt-qc-ui-icon-arrow-4 { background-position: 0 -80px; }\n.rt-qc-ui-icon-arrow-4-diag { background-position: -16px -80px; }\n.rt-qc-ui-icon-extlink { background-position: -32px -80px; }\n.rt-qc-ui-icon-newwin { background-position: -48px -80px; }\n.rt-qc-ui-icon-refresh { background-position: -64px -80px; }\n.rt-qc-ui-icon-shuffle { background-position: -80px -80px; }\n.rt-qc-ui-icon-transfer-e-w { background-position: -96px -80px; }\n.rt-qc-ui-icon-transferthick-e-w { background-position: -112px -80px; }\n.rt-qc-ui-icon-folder-collapsed { background-position: 0 -96px; }\n.rt-qc-ui-icon-folder-open { background-position: -16px -96px; }\n.rt-qc-ui-icon-document { background-position: -32px -96px; }\n.rt-qc-ui-icon-document-b { background-position: -48px -96px; }\n.rt-qc-ui-icon-note { background-position: -64px -96px; }\n.rt-qc-ui-icon-mail-closed { background-position: -80px -96px; }\n.rt-qc-ui-icon-mail-open { background-position: -96px -96px; }\n.rt-qc-ui-icon-suitcase { background-position: -112px -96px; }\n.rt-qc-ui-icon-comment { background-position: -128px -96px; }\n.rt-qc-ui-icon-person { background-position: -144px -96px; }\n.rt-qc-ui-icon-print { background-position: -160px -96px; }\n.rt-qc-ui-icon-trash { background-position: -176px -96px; }\n.rt-qc-ui-icon-locked { background-position: -192px -96px; }\n.rt-qc-ui-icon-unlocked { background-position: -208px -96px; }\n.rt-qc-ui-icon-bookmark { background-position: -224px -96px; }\n.rt-qc-ui-icon-tag { background-position: -240px -96px; }\n.rt-qc-ui-icon-home { background-position: 0 -112px; }\n.rt-qc-ui-icon-flag { background-position: -16px -112px; }\n.rt-qc-ui-icon-calendar { background-position: -32px -112px; }\n.rt-qc-ui-icon-cart { background-position: -48px -112px; }\n.rt-qc-ui-icon-pencil { background-position: -64px -112px; }\n.rt-qc-ui-icon-clock { background-position: -80px -112px; }\n.rt-qc-ui-icon-disk { background-position: -96px -112px; }\n.rt-qc-ui-icon-calculator { background-position: -112px -112px; }\n.rt-qc-ui-icon-zoomin { background-position: -128px -112px; }\n.rt-qc-ui-icon-zoomout { background-position: -144px -112px; }\n.rt-qc-ui-icon-search { background-position: -160px -112px; }\n.rt-qc-ui-icon-wrench { background-position: -176px -112px; }\n.rt-qc-ui-icon-gear { background-position: -192px -112px; }\n.rt-qc-ui-icon-heart { background-position: -208px -112px; }\n.rt-qc-ui-icon-star { background-position: -224px -112px; }\n.rt-qc-ui-icon-link { background-position: -240px -112px; }\n.rt-qc-ui-icon-cancel { background-position: 0 -128px; }\n.rt-qc-ui-icon-plus { background-position: -16px -128px; }\n.rt-qc-ui-icon-plusthick { background-position: -32px -128px; }\n.rt-qc-ui-icon-minus { background-position: -48px -128px; }\n.rt-qc-ui-icon-minusthick { background-position: -64px -128px; }\n.rt-qc-ui-icon-close { background-position: -80px -128px; }\n.rt-qc-ui-icon-closethick { background-position: -96px -128px; }\n.rt-qc-ui-icon-key { background-position: -112px -128px; }\n.rt-qc-ui-icon-lightbulb { background-position: -128px -128px; }\n.rt-qc-ui-icon-scissors { background-position: -144px -128px; }\n.rt-qc-ui-icon-clipboard { background-position: -160px -128px; }\n.rt-qc-ui-icon-copy { background-position: -176px -128px; }\n.rt-qc-ui-icon-contact { background-position: -192px -128px; }\n.rt-qc-ui-icon-image { background-position: -208px -128px; }\n.rt-qc-ui-icon-video { background-position: -224px -128px; }\n.rt-qc-ui-icon-script { background-position: -240px -128px; }\n.rt-qc-ui-icon-alert { background-position: 0 -144px; }\n.rt-qc-ui-icon-info { background-position: -16px -144px; }\n.rt-qc-ui-icon-notice { background-position: -32px -144px; }\n.rt-qc-ui-icon-help { background-position: -48px -144px; }\n.rt-qc-ui-icon-check { background-position: -64px -144px; }\n.rt-qc-ui-icon-bullet { background-position: -80px -144px; }\n.rt-qc-ui-icon-radio-on { background-position: -96px -144px; }\n.rt-qc-ui-icon-radio-off { background-position: -112px -144px; }\n.rt-qc-ui-icon-pin-w { background-position: -128px -144px; }\n.rt-qc-ui-icon-pin-s { background-position: -144px -144px; }\n.rt-qc-ui-icon-play { background-position: 0 -160px; }\n.rt-qc-ui-icon-pause { background-position: -16px -160px; }\n.rt-qc-ui-icon-seek-next { background-position: -32px -160px; }\n.rt-qc-ui-icon-seek-prev { background-position: -48px -160px; }\n.rt-qc-ui-icon-seek-end { background-position: -64px -160px; }\n.rt-qc-ui-icon-seek-start { background-position: -80px -160px; }\n/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */\n.rt-qc-ui-icon-seek-first { background-position: -80px -160px; }\n.rt-qc-ui-icon-stop { background-position: -96px -160px; }\n.rt-qc-ui-icon-eject { background-position: -112px -160px; }\n.rt-qc-ui-icon-volume-off { background-position: -128px -160px; }\n.rt-qc-ui-icon-volume-on { background-position: -144px -160px; }\n.rt-qc-ui-icon-power { background-position: 0 -176px; }\n.rt-qc-ui-icon-signal-diag { background-position: -16px -176px; }\n.rt-qc-ui-icon-signal { background-position: -32px -176px; }\n.rt-qc-ui-icon-battery-0 { background-position: -48px -176px; }\n.rt-qc-ui-icon-battery-1 { background-position: -64px -176px; }\n.rt-qc-ui-icon-battery-2 { background-position: -80px -176px; }\n.rt-qc-ui-icon-battery-3 { background-position: -96px -176px; }\n.rt-qc-ui-icon-circle-plus { background-position: 0 -192px; }\n.rt-qc-ui-icon-circle-minus { background-position: -16px -192px; }\n.rt-qc-ui-icon-circle-close { background-position: -32px -192px; }\n.rt-qc-ui-icon-circle-triangle-e {background-position: -33px 0;}\n.rt-qc-ui-icon-circle-triangle-s { background-position: -64px -192px; }\n.rt-qc-ui-icon-circle-triangle-w {background-position: -97px 0;}\n.rt-qc-ui-icon-circle-triangle-n { background-position: -96px -192px; }\n.rt-qc-ui-icon-circle-arrow-e { background-position: -112px -192px; }\n.rt-qc-ui-icon-circle-arrow-s { background-position: -128px -192px; }\n.rt-qc-ui-icon-circle-arrow-w { background-position: -144px -192px; }\n.rt-qc-ui-icon-circle-arrow-n { background-position: -160px -192px; }\n.rt-qc-ui-icon-circle-zoomin { background-position: -176px -192px; }\n.rt-qc-ui-icon-circle-zoomout { background-position: -192px -192px; }\n.rt-qc-ui-icon-circle-check { background-position: -208px -192px; }\n.rt-qc-ui-icon-circlesmall-plus { background-position: 0 -208px; }\n.rt-qc-ui-icon-circlesmall-minus { background-position: -16px -208px; }\n.rt-qc-ui-icon-circlesmall-close { background-position: -32px -208px; }\n.rt-qc-ui-icon-squaresmall-plus { background-position: -48px -208px; }\n.rt-qc-ui-icon-squaresmall-minus { background-position: -64px -208px; }\n.rt-qc-ui-icon-squaresmall-close { background-position: -80px -208px; }\n.rt-qc-ui-icon-grip-dotted-vertical { background-position: 0 -224px; }\n.rt-qc-ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }\n.rt-qc-ui-icon-grip-solid-vertical { background-position: -32px -224px; }\n.rt-qc-ui-icon-grip-solid-horizontal { background-position: -48px -224px; }\n.rt-qc-ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }\n.rt-qc-ui-icon-grip-diagonal-se { background-position: -80px -224px; }\n\n\n/* Misc visuals\n----------------------------------*/\n\n/* Corner radius */\n.rt-qc-ui-corner-all,\n.rt-qc-ui-corner-top,\n.rt-qc-ui-corner-left,\n.rt-qc-ui-corner-tl {\n\tborder-top-left-radius: 3px;\n}\n.rt-qc-ui-corner-all,\n.rt-qc-ui-corner-top,\n.rt-qc-ui-corner-right,\n.rt-qc-ui-corner-tr {\n\tborder-top-right-radius: 3px;\n}\n.rt-qc-ui-corner-all,\n.rt-qc-ui-corner-bottom,\n.rt-qc-ui-corner-left,\n.rt-qc-ui-corner-bl {\n\tborder-bottom-left-radius: 3px;\n}\n.rt-qc-ui-corner-all,\n.rt-qc-ui-corner-bottom,\n.rt-qc-ui-corner-right,\n.rt-qc-ui-corner-br {\n\tborder-bottom-right-radius: 3px;\n}\n\n/* Overlays */\n.rt-qc-ui-widget-overlay {\n\tbackground: #aaaaaa;\n\topacity: .3;\n\tfilter: Alpha(Opacity=30); /* support: IE8 */\n}\n.rt-qc-ui-widget-shadow {\n\t-webkit-box-shadow: 0px 0px 5px #666666;\n\tbox-shadow: 0px 0px 5px #666666;\n}\n`,""]);const k=m},4449:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(1601),o=r.n(i),a=r(6314),s=r.n(a)()(o());s.push([t.id,".rt-qc-ui-timepicker-div .rt-qc-ui-timepicker-header { margin-bottom: 8px; color: #333333; font-weight: bold; border-bottom: 1px solid #e5e8ec;}\n.rt-qc-ui-timepicker-div dl { text-align: left; }\n.rt-qc-ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }\n.rt-qc-ui-timepicker-div dl dd { margin: 0 10px 10px 40%; }\n.rt-qc-ui-timepicker-div td { font-size: 90%; }\n.rt-qc-ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }\n.rt-qc-ui-timepicker-div .rt-qc-ui_tpicker_unit_hide{ display: none; }\n\n.rt-qc-ui-timepicker-div .rt-qc-ui_tpicker_time .rt-qc-ui_tpicker_time_input { background: none; color: inherit; border: none; outline: none; border-bottom: solid 1px #555; width: 95%; }\n.rt-qc-ui-timepicker-div .rt-qc-ui_tpicker_time .rt-qc-ui_tpicker_time_input:focus { border-bottom-color: #aaa; }\n\n.rt-qc-ui-timepicker-rtl{ direction: rtl; }\n.rt-qc-ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }\n.rt-qc-ui-timepicker-rtl dl dt{ float: right; clear: right; }\n.rt-qc-ui-timepicker-rtl dl dd { margin: 0 40% 10px 10px; }\n\n/* Shortened version style */\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine { padding-right: 2px; }\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine .rt-qc-ui_tpicker_time, \n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine dt { display: none; }\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine .ui_tpicker_time_label { display: block; padding-top: 2px; }\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine dl { text-align: right; }\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine dl dd, \n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine dl dd > div { display:inline-block; margin:0; }\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine dl dd.rt-qc-ui_tpicker_minute:before,\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine dl dd.rt-qc-ui_tpicker_second:before { content:':'; display:inline-block; }\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine dl dd.rt-qc-ui_tpicker_millisec:before,\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine dl dd.rt-qc-ui_tpicker_microsec:before { content:'.'; display:inline-block; }\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine .rt-qc-ui_tpicker_unit_hide,\n.rt-qc-ui-timepicker-div.rt-qc-ui-timepicker-oneLine .rt-qc-ui_tpicker_unit_hide:before{ display: none; }",""]);const n=s},5358:(t,e,r)=>{var i={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":2572,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function o(t){var e=a(t);return r(e)}function a(t){if(!r.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id=5358},9699:t=>{"use strict";t.exports="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},4213:t=>{"use strict";t.exports="data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw=="},1859:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII="},4466:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg=="},7629:(t,e,r)=>{"use strict";t.exports=r.p+"images/cde3eb37d2e1d732a7e3.png"},4453:(t,e,r)=>{"use strict";t.exports=r.p+"images/c0a2f0a86ad43bccd6d6.png"},8051:(t,e,r)=>{"use strict";t.exports=r.p+"images/e06bce03725e8eae52ff.png"},3529:(t,e,r)=>{"use strict";t.exports=r.p+"images/e4949d095544f9f6339d.png"},863:(t,e,r)=>{"use strict";t.exports=r.p+"images/82f655c470657e263722.png"},1107:(t,e,r)=>{"use strict";t.exports=r.p+"images/deb42a8f9bdab8258db4.png"},2021:(t,e,r)=>{"use strict";t.exports=r.p+"images/f7f48d547e176aef16e5.png"},8025:(t,e,r)=>{"use strict";t.exports=r.p+"images/13ed1c65978f4020fa6a.png"},5928:(t,e,r)=>{"use strict";t.exports=r.p+"images/9b9e5601b8e92cfc15ed.png"},4472:(t,e,r)=>{"use strict";t.exports=r.p+"images/cf17885bda2090955715.png"},8114:(t,e,r)=>{"use strict";t.exports=r.p+"images/f5b9e4600b993d7c15a3.png"},4644:(t,e,r)=>{"use strict";t.exports=r.p+"images/b332c225924811955b70.png"},7556:(t,e,r)=>{"use strict";t.exports=r.p+"images/262f7047c15f67938eb0.png"},2417:(t,e,r)=>{"use strict";t.exports=r.p+"images/7461bf5c81f039b5349d.png"},837:(t,e,r)=>{"use strict";t.exports=r.p+"images/bdff706f5f3c937e20c8.png"},318:(t,e,r)=>{"use strict";t.exports=r.p+"images/2d6f55fd9854663f7aa0.png"},190:(t,e,r)=>{"use strict";t.exports=r.p+"images/2063e67670eabbe08666.png"},5628:(t,e,r)=>{"use strict";t.exports=r.p+"images/5bc8277cf199d850ab1a.png"},7463:(t,e,r)=>{"use strict";t.exports=r.p+"images/3332fcf7e2e919a02b8d.png"},4062:(t,e,r)=>{"use strict";t.exports=r.p+"images/c60516270777bee173fe.png"},1529:(t,e,r)=>{"use strict";t.exports=r.p+"images/1b3e50ff32fd8cd301f8.png"},944:(t,e,r)=>{"use strict";t.exports=r.p+"images/278ab06fc1417e702a7e.png"},2012:(t,e,r)=>{"use strict";t.exports=r.p+"images/8b0fe626ee1f018a8d0f.png"},4010:(t,e,r)=>{"use strict";t.exports=r.p+"images/5b35a39c5f877ba43637.png"},7322:(t,e,r)=>{"use strict";t.exports=r.p+"images/cf17885bda2090955715.png"},2653:(t,e,r)=>{"use strict";t.exports=r.p+"images/1e4ab48d0ebabfe3d60c.png"},7409:(t,e,r)=>{"use strict";t.exports=r.p+"images/1b1e25d6e625a94444f7.png"},4579:(t,e,r)=>{"use strict";t.exports=r.p+"images/ae8a9da394dac0b9613c.png"},3986:(t,e,r)=>{"use strict";t.exports=r.p+"images/64a176ed8c98be3354b3.png"},363:(t,e,r)=>{"use strict";t.exports=r.p+"images/669597e9324aec578be1.gif"},9871:(t,e,r)=>{"use strict";t.exports=r.p+"images/3580b1faf02c1cd7994c.png"},3201:(t,e,r)=>{"use strict";t.exports=r.p+"images/c58c5719d8be44d69fc2.png"},7988:(t,e,r)=>{"use strict";t.exports=r.p+"images/e73f5131bb90fcc736a6.png"},5625:(t,e,r)=>{"use strict";t.exports=r.p+"images/f0ad30c87d846b34a0a6.png"},613:(t,e,r)=>{"use strict";t.exports=r.p+"images/bb549ea947a7a69e5c0c.png"},5819:(t,e,r)=>{"use strict";t.exports=r.p+"images/df59c902592bb5f10f8b.png"},9155:e=>{"use strict";e.exports=t},477:()=>{},7233:()=>{},9800:()=>{}},n={};function l(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={id:t,loaded:!1,exports:{}};return s[t].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}l.m=s,l.amdO={},e=[],l.O=(t,r,i,o)=>{if(!r){var a=1/0;for(h=0;h<e.length;h++){for(var[r,i,o]=e[h],s=!0,n=0;n<r.length;n++)(!1&o||a>=o)&&Object.keys(l.O).every((t=>l.O[t](r[n])))?r.splice(n--,1):(s=!1,o<a&&(a=o));if(s){e.splice(h--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var h=e.length;h>0&&e[h-1][2]>o;h--)e[h]=e[h-1];e[h]=[r,i,o]},l.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return l.d(e,{a:e}),e},i=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,l.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var o=Object.create(null);l.r(o);var a={};r=r||[null,i({}),i([]),i(i)];for(var s=2&e&&t;"object"==typeof s&&!~r.indexOf(s);s=i(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,l.d(o,a),o},l.d=(t,e)=>{for(var r in e)l.o(e,r)&&!l.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},l.f={},l.e=t=>Promise.all(Object.keys(l.f).reduce(((e,r)=>(l.f[r](t,e),e)),[])),l.u=t=>t+".ee6a95da149f1df61661.js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),l.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o={},a="qcell-react:",l.l=(t,e,r,i)=>{if(o[t])o[t].push(e);else{var s,n;if(void 0!==r)for(var c=document.getElementsByTagName("script"),h=0;h<c.length;h++){var d=c[h];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==a+r){s=d;break}}s||(n=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,l.nc&&s.setAttribute("nonce",l.nc),s.setAttribute("data-webpack",a+r),s.src=t),o[t]=[e];var u=(e,r)=>{s.onerror=s.onload=null,clearTimeout(p);var i=o[t];if(delete o[t],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((t=>t(r))),e)return e(r)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),n&&document.head.appendChild(s)}},l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;l.g.importScripts&&(t=l.g.location+"");var e=l.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=r[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=t})(),(()=>{l.b=document.baseURI||self.location.href;var t={792:0};l.f.j=(e,r)=>{var i=l.o(t,e)?t[e]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise(((r,o)=>i=t[e]=[r,o]));r.push(i[2]=o);var a=l.p+l.u(e),s=new Error;l.l(a,(r=>{if(l.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+e,e)}},l.O.j=e=>0===t[e];var e=(e,r)=>{var i,o,[a,s,n]=r,c=0;if(a.some((e=>0!==t[e]))){for(i in s)l.o(s,i)&&(l.m[i]=s[i]);if(n)var h=n(l)}for(e&&e(r);c<a.length;c++)o=a[c],l.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return l.O(h)},r=this.webpackChunkqcell_react=this.webpackChunkqcell_react||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),l.nc=void 0;var c=l.O(void 0,[96],(()=>l(7124)));return c=l.O(c)})()));