// ==UserScript==
// @name Best Teacher(JQuery)
// @version 2023.301.5132113
// @author jimbo
// @description 谁是最好的老师?-排序显示,经验值计算|自定义经验值公式|好评率|显示年龄|列表显示所有教师
// @homepage https://gitee.com/tsharp/userscripts#readme
// @supportURL https://gitee.com/tsharp/userscripts/findteacherson51talk
// @namespace https://github.com/niubilityfrontend
// @license OSL-3.0
// @include *51talk.com/ReserveNew/index*
// @include *51talk.com/TeacherNew/*
// @include *51talk.com/user/*
// @include *51talk.cn/ReserveNew/index*
// @include *51talk.cn/TeacherNew/*
// @include *51talk.cn/user/*
// @include *51suyang.cn/ReserveNew/index*
// @include *51suyang.cn/TeacherNew/*
// @include *51suyang.cn/user/*
// @grant GM_xmlhttpRequest
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_listValues
// @grant GM_deleteValue
// @grant GM_registerMenuCommand
// ==/UserScript==
/*! For license information please see findingteacher.user.js.LICENSE.txt */
(()=>{var __webpack_modules__={818:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(t,e){"use strict";__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(336)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(i){return e(i,t.document)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}("undefined"!=typeof window?window:this,(function($,document){"use strict";var englishLanguageDefaults={name:"English (United States)",nameEnglish:"English (United States)",isRTL:!1,defaults:{recordtext:"View {0} - {1} of {2}",emptyrecords:"No records to view",loadtext:"Loading...",pgtext:"Page {0} of {1}",pgfirst:"First Page",pglast:"Last Page",pgnext:"Next Page",pgprev:"Previous Page",pgrecs:"Records per Page",showhide:"Toggle Expand Collapse Grid",savetext:"Saving..."},search:{caption:"Search...",Find:"Find",Reset:"Reset",odata:[{oper:"eq",text:"equal"},{oper:"ne",text:"not equal"},{oper:"lt",text:"less"},{oper:"le",text:"less or equal"},{oper:"gt",text:"greater"},{oper:"ge",text:"greater or equal"},{oper:"bw",text:"begins with"},{oper:"bn",text:"does not begin with"},{oper:"in",text:"is in"},{oper:"ni",text:"is not in"},{oper:"ew",text:"ends with"},{oper:"en",text:"does not end with"},{oper:"cn",text:"contains"},{oper:"nc",text:"does not contain"},{oper:"nu",text:"is null"},{oper:"nn",text:"is not null"}],groupOps:[{op:"AND",text:"all"},{op:"OR",text:"any"}],addGroupTitle:"Add subgroup",deleteGroupTitle:"Delete group",addRuleTitle:"Add rule",deleteRuleTitle:"Delete rule",operandTitle:"Click to select search operation.",resetTitle:"Reset Search Value"},edit:{addCaption:"Add Record",editCaption:"Edit Record",bSubmit:"Submit",bCancel:"Cancel",bClose:"Close",saveData:"Data has been changed! Save changes?",bYes:"Yes",bNo:"No",bExit:"Cancel",msg:{required:"Field is required",number:"Please, enter valid number",minValue:"value must be greater than or equal to ",maxValue:"value must be less than or equal to",email:"is not a valid e-mail",integer:"Please, enter valid integer value",date:"Please, enter valid date value",url:"is not a valid URL. Prefix required ('http://' or 'https://')",nodefined:" is not defined!",novalue:" return value is required!",customarray:"Custom function should return array!",customfcheck:"Custom function should be present in case of custom checking!"}},view:{caption:"View Record",bClose:"Close"},del:{caption:"Delete",msg:"Delete selected record(s)?",bSubmit:"Delete",bCancel:"Cancel"},nav:{edittext:"",edittitle:"Edit selected row",addtext:"",addtitle:"Add new row",deltext:"",deltitle:"Delete selected row",searchtext:"",searchtitle:"Find records",refreshtext:"",refreshtitle:"Reload Grid",alertcap:"Warning",alerttext:"Please, select row",viewtext:"",viewtitle:"View selected row",savetext:"",savetitle:"Save row",canceltext:"",canceltitle:"Cancel row editing"},col:{caption:"Select columns",bSubmit:"Ok",bCancel:"Cancel"},errors:{errcap:"Error",nourl:"No url is set",norecords:"No records to process",model:"Length of colNames <> colModel!"},formatter:{integer:{thousandsSeparator:",",defaultValue:"0"},number:{decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,defaultValue:"0.00"},currency:{decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,prefix:"",suffix:"",defaultValue:"0.00"},date:{dayNames:["Sun","Mon","Tue","Wed","Thr","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],AmPm:["am","pm","AM","PM"],S:function(t){return t<11||13<t?["st","nd","rd","th"][Math.min((t-1)%10,3)]:"th"},srcformat:"Y-m-d",newformat:"n/j/Y",masks:{ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",YearMonth:"F, Y"}}}};$.jgrid=$.jgrid||{};var jgrid=$.jgrid;jgrid.locales=jgrid.locales||{};var locales=jgrid.locales,COMPONENT_NAMES={GRID_BOX_DIV:0,GRID_OVERLAY_DIV:1,LOADING_DIV:2,DIALOG_ALERT_DIV:3,DIALOG_SEARCH_DIV:4,DIALOG_VIEW_DIV:5,DIALOG_EDIT_DIV:6,DIALOG_DELETE_DIV:7,GRID_VIEW_DIV:8,TITLE_BAR_DIV:9,UPPER_TOOLBAR_DIV:10,TOP_PAGER_DIV:11,HEADER_DIV:12,HEADER_BOX_DIV:13,HEADER_TABLE:14,HEADER_COLS_ROW:15,HEADER_COLS:16,HEADER_ROWS:47,HEADER_TH:48,HEADER_SORTABLE_DIV:49,HEADER_RESIZABLE_SPAN:50,HEADER_SELECT_ALL_ROWS_CHECKBOX:45,SEARCH_TOOLBAR:17,BODY_DIV:18,BODY_SCROLL_FULL_DIV:19,BODY_SCROLL_TOP_DIV:20,BODY_TABLE:21,GRID:21,BODY_COLS_ROW:22,BODY_COLS:23,BODY_DATA_ROWS:24,FOOTER_DIV:25,FOOTER_BOX_DIV:26,FOOTER_TABLE:27,FOOTER_DATA_ROWS:28,BOTTOM_TOOLBAR_DIV:29,FROZEN_HEADER_DIV:30,FROZEN_HEADER_TABLE:31,FROZEN_HEADER_COLS_ROW:32,FROZEN_HEADER_COLS:33,FROZEN_SEARCH_TOOLBAR:34,FROZEN_FOOTER_DIV:35,FROZEN_FOOTER_TABLE:36,FROZEN_FOOTER_DATA_ROWS:37,FROZEN_BODY_DIV:38,FROZEN_BODY_TABLE:39,FROZEN_BODY_COLS_ROW:40,FROZEN_BODY_COLS:41,FROZEN_BODY_DATA_ROWS:42,COLUMN_RESIZER_DIV:43,BOTTOM_PAGER_DIV:44,SEARCH_OPERATION_MENU_UL:46};(null==jgrid.defaults||$.isEmptyObject(locales)||void 0===locales["en-US"])&&(void 0===locales["en-US"]&&$.extend(!0,jgrid,{locales:{"en-US":englishLanguageDefaults}}),jgrid.defaults=jgrid.defaults||{},void 0===jgrid.defaults.locale&&(jgrid.defaults.locale="en-US")),jgrid.defaults=jgrid.defaults||{};var defaults=jgrid.defaults;$.extend(!0,jgrid,{version:"4.15.5-pre",productName:"free jqGrid",defaults:{},search:{},edit:{},view:{},del:{},nav:{},col:{},errors:{},formatter:{unused:""},icons:{jQueryUI:{common:"ui-icon",pager:{first:"ui-icon-seek-first",prev:"ui-icon-seek-prev",next:"ui-icon-seek-next",last:"ui-icon-seek-end"},sort:{asc:"ui-icon-triangle-1-n",desc:"ui-icon-triangle-1-s"},gridMinimize:{visible:"ui-icon-circle-triangle-n",hidden:"ui-icon-circle-triangle-s"},nav:{edit:"ui-icon-pencil",add:"ui-icon-plus",del:"ui-icon-trash",search:"ui-icon-search",refresh:"ui-icon-refresh",view:"ui-icon-document",save:"ui-icon-disk",cancel:"ui-icon-cancel",newbutton:"ui-icon-newwin"},actions:{edit:"ui-icon-pencil",del:"ui-icon-trash",save:"ui-icon-disk",cancel:"ui-icon-cancel"},form:{close:"ui-icon-closethick",prev:"ui-icon-triangle-1-w",next:"ui-icon-triangle-1-e",save:"ui-icon-disk",undo:"ui-icon-close",del:"ui-icon-scissors",cancel:"ui-icon-cancel",resizableLtr:"ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se"},search:{search:"ui-icon-search",reset:"ui-icon-arrowreturnthick-1-w",query:"ui-icon-comment"},subgrid:{plus:"ui-icon-plus",minus:"ui-icon-minus",openLtr:"ui-icon-caret-1-sw",openRtl:"ui-icon-caret-1-se"},grouping:{plus:"ui-icon-circlesmall-plus",minus:"ui-icon-circlesmall-minus"},treeGrid:{minus:"ui-icon-triangle-1-s",leaf:"ui-icon-radio-off",plusLtr:"ui-icon-triangle-1-e",plusRtl:"ui-icon-triangle-1-w"}},fontAwesome:{common:"fa",pager:{common:"fa-fw",first:"fa-step-backward",prev:"fa-backward",next:"fa-forward",last:"fa-step-forward"},sort:{common:"fa-lg",asc:"fa-sort-asc",desc:"fa-sort-desc"},gridMinimize:{visible:"fa-chevron-circle-up",hidden:"fa-chevron-circle-down"},nav:{common:"fa-lg fa-fw",edit:"fa-pencil",add:"fa-plus",del:"fa-trash-o",search:"fa-search",refresh:"fa-refresh",view:"fa-file-o",save:"fa-floppy-o",cancel:"fa-ban",newbutton:"fa-external-link"},actions:{common:"fa-fw",edit:"fa-pencil",del:"fa-trash-o",save:"fa-floppy-o",cancel:"fa-ban"},form:{close:"fa-times",prev:"fa-caret-left",next:"fa-caret-right",save:"fa-floppy-o",undo:"fa-undo",del:"fa-trash-o",cancel:"fa-ban",resizableLtr:"fa-rss fa-rotate-270"},search:{search:"fa-search",reset:"fa-undo",query:"fa-comments-o"},subgrid:{common:"fa-fw",plus:"fa-plus",minus:"fa-minus",openLtr:"fa-reply fa-rotate-180",openRtl:"fa-share fa-rotate-180"},grouping:{common:"fa-fw",plus:"fa-plus-square-o",minus:"fa-minus-square-o"},treeGrid:{common:"fa-fw",minus:"fa-lg fa-sort-desc",leaf:"fa-dot-circle-o",plusLtr:"fa-lg fa-caret-right",plusRtl:"fa-lg fa-caret-left"},checkbox:{checkedClasses:"fa-check-square-o",checked:"fa-check-square-o fa-lg",unchecked:"fa-square-o fa-lg"}},fontAwesome5:{pager:{common:"fa-fw",first:"fa-step-backward",prev:"fa-backward",next:"fa-forward",last:"fa-step-forward"},sort:{common:"fa-lg",asc:"fa-sort-up",desc:"fa-sort-down"},gridMinimize:{visible:"fa-chevron-circle-up",hidden:"fa-chevron-circle-down"},nav:{common:"fa-lg fa-fw",edit:"fa-pencil-alt",add:"fa-plus",del:"fa-trash-alt",search:"fa-search",refresh:"fa-sync",view:"fa-file",save:"fa-save",cancel:"fa-ban",newbutton:"fa-external-link-alt"},actions:{common:"fa-fw",edit:"fa-pencil-alt",del:"fa-trash-alt",save:"fa-save",cancel:"fa-ban"},form:{close:"fa-times",prev:"fa-caret-left",next:"fa-caret-right",save:"fa-save",undo:"fa-undo",del:"fa-trash-alt",cancel:"fa-ban",resizableLtr:"fa-rss fa-lg fa-rotate-270"},search:{search:"fa-search",reset:"fa-undo",query:"fa-comments"},subgrid:{common:"fa-fw",plus:"fa-plus",minus:"fa-minus",openLtr:"fa-reply fa-rotate-180",openRtl:"fa-share fa-rotate-180"},grouping:{common:"fa-fw",plus:"fa-plus-square",minus:"fa-minus-square"},treeGrid:{common:"fa-fw",minus:"fa-lg fa-sort-down",leaf:"fa-dot-circle",plusLtr:"fa-lg fa-caret-right",plusRtl:"fa-lg fa-caret-left"},checkbox:{ignoreParents:!0,checkedClasses:"fa-check-square",checked:"far fa-check-square fa-lg",unchecked:"far fa-square fa-lg"}},fontAwesomeBrands:{baseIconSet:"fontAwesome5",common:"fab"},fontAwesomeLight:{baseIconSet:"fontAwesome5",common:"fal"},fontAwesomeRegular:{baseIconSet:"fontAwesome5",common:"far"},fontAwesomeSolid:{baseIconSet:"fontAwesome5",common:"fas"},fontAwesomeSVG:{baseIconSet:"fontAwesome5",common:"fas"},glyph:{common:"glyphicon",pager:{common:"",first:"glyphicon-step-backward",prev:"glyphicon-backward",next:"glyphicon-forward",last:"glyphicon-step-forward"},sort:{common:"",asc:"glyphicon-triangle-top",desc:"glyphicon-triangle-bottom"},gridMinimize:{visible:"glyphicon-circle-arrow-up",hidden:"glyphicon-circle-arrow-down"},nav:{common:"",edit:"glyphicon-edit",add:"glyphicon-plus",del:"glyphicon-trash",search:"glyphicon-search",refresh:"glyphicon-refresh",view:"glyphicon-file",save:"glyphicon-save",cancel:"glyphicon-ban-circle",newbutton:"glyphicon-new-window"},actions:{common:"",edit:"glyphicon-edit",del:"glyphicon-trash",save:"glyphicon-save",cancel:"glyphicon-ban-circle"},form:{close:"glyphicon-remove-circle",prev:"glyphicon-step-backward",next:"glyphicon-step-forward",save:"glyphicon-save",undo:"glyphicon-repeat",del:"glyphicon-trash",cancel:"glyphicon-ban-circle",resizableLtr:"glyphicon-import"},search:{search:"glyphicon-search",reset:"glyphicon-repeat",query:"glyphicon-cog"},subgrid:{common:"",plus:"glyphicon-zoom-in",minus:"glyphicon-zoom-out",openLtr:"glyphicon-indent-left",openRtl:"glyphicon-indent-left"},grouping:{common:"",plus:"glyphicon-expand",minus:"glyphicon-collapse-down"},treeGrid:{common:"",minus:"glyphicon-triangle-bottom",leaf:"glyphicon-record",plusLtr:"glyphicon-triangle-right",plusRtl:"glyphicon-triangle-left"},checkbox:{checkedClasses:"glyphicon-check",checked:"glyphicon-check",unchecked:"glyphicon-unchecked"}}},guiStyles:{jQueryUI:{gBox:"ui-jqgrid-jquery-ui ui-widget ui-widget-content ui-corner-all",gView:"",overlay:"ui-widget-overlay",loading:"ui-state-default ui-state-active",hDiv:"ui-state-default ui-corner-top",hTable:"",colHeaders:"ui-state-default",states:{select:"ui-state-highlight",disabled:"ui-state-disabled ui-jqgrid-disablePointerEvents",hover:"ui-state-hover",error:"ui-state-error",active:"ui-state-active",textOfClickable:"ui-state-default"},dialog:{header:"ui-widget-header ui-dialog-titlebar ui-corner-all ui-helper-clearfix",window:"ui-jqgrid-jquery-ui ui-widget ui-widget-content ui-corner-all ui-front",document:"",subdocument:"",body:"",footer:"",content:"ui-widget-content",hr:"ui-widget-content",closeButton:"ui-corner-all",fmButton:"ui-state-default",dataField:"ui-widget-content ui-corner-all",viewCellLabel:"ui-widget-content",viewLabel:"",viewCellData:"ui-widget-content",viewData:"",leftCorner:"ui-corner-left",rightCorner:"ui-corner-right",defaultCorner:"ui-corner-all"},filterToolbar:{dataField:"ui-widget-content"},subgrid:{thSubgrid:"ui-state-default",rowSubTable:"ui-widget-content",row:"ui-widget-content",tdStart:"",tdWithIcon:"ui-widget-content",buttonDiv:"",button:"",tdData:"ui-widget-content",legacyTable:""},grid:"",gridRow:"ui-widget-content",rowNum:"ui-state-default",gridFooter:"",rowFooter:"ui-widget-content",gridTitle:"ui-widget-header ui-corner-top",gridError:"ui-state-error",gridErrorText:"",titleButton:"ui-corner-all",toolbarUpper:"ui-state-default",toolbarBottom:"ui-state-default",actionsDiv:"ui-widget-content",actionsButton:"ui-corner-all",pager:{pager:"ui-state-default",pagerButton:"ui-corner-all",pagerInput:"ui-widget-content",pagerSelect:"ui-widget-content"},navButton:"ui-corner-all",searchDialog:{operator:"ui-corner-all",label:"ui-corner-all",elem:"ui-corner-all",operationGroup:"",addRuleButton:"ui-corner-all",deleteRuleButton:"ui-corner-all",operationSelect:"ui-corner-all",addGroupButton:"ui-corner-all",deleteGroupButton:"ui-corner-all"},searchToolbar:{menu:"ui-menu-jqueryui ui-menu ui-widget ui-widget-content ui-corner-all",menuItem:"ui-menu-item",menuItemButton:"ui-corner-all",operButton:"ui-corner-all",clearButton:"ui-corner-all"},top:"ui-corner-top",bottom:"ui-corner-bottom",resizer:"ui-widget-header"},bootstrap:{gBox:"ui-jqgrid-bootstrap",gView:"panel-info",overlay:"modal-backdrop",loading:"alert alert-info",hDiv:"",hTable:"table table-hover table-condensed table-bordered",colHeaders:"",states:{select:"success",disabled:"disabled ui-jqgrid-disablePointerEvents",hover:"active",error:"danger",active:"active",textOfClickable:""},dialog:{header:"modal-header",window:"modal ui-jqgrid-bootstrap",document:"modal-dialog",subdocument:"modal-content",body:"modal-body",footer:"modal-footer",content:"modal-content",hr:"hidden",closeButton:"btn btn-xs btn-default",fmButton:"btn btn-default",dataField:"form-control",viewCellLabel:"",viewLabel:"control-label",viewCellData:"",viewData:"form-control",leftCorner:"",rightCorner:"",defaultCorner:""},filterToolbar:{dataField:"form-control"},subgrid:{thSubgrid:"",rowSubTable:"",row:"",tdStart:"",tdWithIcon:"",buttonDiv:"",button:"btn btn-xs",tdData:"",legacyTable:"table table-condensed table-hover table-bordered"},grid:"table table-condensed table-hover table-bordered",gridRow:"",rowNum:"",gridFooter:"table table-hover table-condensed table-bordered",rowFooter:"",gridTitle:"",gridError:"alert alert-danger",gridErrorText:"sr-only",titleButton:"btn btn-xs btn-default",actionsDiv:"",actionsButton:"btn btn-xs btn-default",toolbarUpper:"",toolbarBottom:"",pager:{pager:"panel-footer",pagerButton:"btn btn-xs",pagerInput:"form-control",pagerSelect:"form-control"},navButton:"btn btn-xs",searchDialog:{operator:"form-control",label:"form-control",elem:"form-control",operationGroup:"form-inline",addRuleButton:"btn btn-xs btn-default",deleteRuleButton:"btn btn-xs btn-default",operationSelect:"form-control",addGroupButton:"btn btn-xs btn-default",deleteGroupButton:"btn btn-xs btn-default"},searchToolbar:{menu:"dropdown-menu",menuItem:"",menuItemButton:"ui-corner-all",operButton:"btn btn-xs btn-default",clearButton:"btn btn-xs btn-default"},top:"ui-jqgrid-bootstrap-corner-top",bottom:"ui-jqgrid-bootstrap-corner-bottom",resizer:"ui-jqgrid-bootstrap"},bootstrapPrimary:{baseGuiStyle:"bootstrap",dialog:{closeButton:"btn btn-xs close",fmButton:"btn btn-primary"},searchDialog:{addRuleButton:"btn btn-xs btn-primary",deleteRuleButton:"btn btn-xs btn-primary",addGroupButton:"btn btn-xs btn-primary",deleteGroupButton:"btn btn-xs btn-primary"}},bootstrap4:{gBox:"ui-jqgrid-bootstrap",gView:"card",overlay:"modal-backdrop",loading:"alert alert-info",hDiv:"",hTable:"table table-hover table-sm table-bordered",colHeaders:"",states:{select:"table-success",disabled:"disabled ui-jqgrid-disablePointerEvents",hover:"active",hoverTh:"table-active",error:"danger",active:"active",textOfClickable:""},dialog:{header:"modal-header",window:"modal ui-jqgrid-bootstrap",document:"modal-dialog",subdocument:"modal-content",body:"modal-body",footer:"modal-footer",content:"modal-content",hr:"d-none",closeButton:"btn btn-xs btn-outline-primary",fmButton:"btn btn-outline-secondary",dataField:"form-control",viewCellLabel:"",viewLabel:"control-label",viewCellData:"",viewData:"form-control",leftCorner:"",rightCorner:"",defaultCorner:""},filterToolbar:{dataField:"form-control"},subgrid:{thSubgrid:"",rowSubTable:"",row:"",tdStart:"",tdWithIcon:"",buttonDiv:"",button:"btn btn-xs",tdData:"",legacyTable:"table table-condensed table-hover table-bordered"},grid:"table table-condensed table-hover table-bordered",gridRow:"",rowNum:"",gridFooter:"table table-hover table-condensed table-bordered",rowFooter:"",gridTitle:"",gridError:"alert alert-danger",gridErrorText:"sr-only",titleButton:"btn btn-xs btn-outline-primary",actionsDiv:"",actionsButton:"btn btn-xs btn-outline-secondary",toolbarUpper:"",toolbarBottom:"",pager:{pager:"card-footer",pagerButton:"btn btn-xs",pagerInput:"form-control",pagerSelect:"form-control"},navButton:"btn btn-xs",searchDialog:{operator:"form-control",label:"form-control",elem:"form-control",operationGroup:"form-inline",addRuleButton:"btn btn-xs btn-default",deleteRuleButton:"btn btn-xs btn-default",operationSelect:"form-control",addGroupButton:"btn btn-xs btn-default",deleteGroupButton:"btn btn-xs btn-default"},searchToolbar:{menu:"dropdown-menu",menuItem:"",menuItemButton:"dropdown-item",operButton:"btn btn-xs btn-outline-secondary",clearButton:"btn btn-xs btn-outline-secondary"},top:"ui-jqgrid-bootstrap-corner-top",bottom:"ui-jqgrid-bootstrap-corner-bottom",resizer:"ui-jqgrid-bootstrap"}},htmlDecode:function(t){return t&&(" "===t||" "===t||1===t.length&&160===t.charCodeAt(0))?"":t?String(t).replace(/>/g,">").replace(/</g,"<").replace(/'/g,"'").replace(///g,"/").replace(/'/g,"'").replace(///g,"/").replace(/"/g,'"').replace(/&/g,"&"):t},htmlEncode:function(t){return t?String(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/</g,"<").replace(/>/g,">"):t},oldEncodePostedData:function(t){return t?String(t).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):t},oldDecodePostedData:function(t){return t&&(" "===t||" "===t||1===t.length&&160===t.charCodeAt(0))?"":t?String(t).replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/&/g,"&"):t},clearArray:function(t){for(;0<t.length;)t.pop()},format:function(t){var e=$.makeArray(arguments).slice(1);return null==t&&(t=""),t.replace(/\{(\d+)\}/g,(function(t,i){return e[i]}))},template:function(t){var e,i=$.makeArray(arguments).slice(1),r=i.length;return null==t&&(t=""),t.replace(/\{([\w\-]+)(?:\:([\w\.]*)(?:\((\.*?)?\))?)?\}/g,(function(t,n){var o,a;if(!isNaN(parseInt(n,10)))return i[parseInt(n,10)];for(e=0;e<r;e++)if($.isArray(i[e]))for(a=(o=i[e]).length;a--;)if(n===o[a].nm)return o[a].v}))},msie:"Microsoft Internet Explorer"===navigator.appName,msiever:function(){var t,e=-1;return"Microsoft Internet Explorer"===navigator.appName?null!=(t=/(MSIE) ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent))&&3===t.length&&(e=parseFloat(t[2]||-1)):"Netscape"===navigator.appName&&null!=(t=/rv:([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent))&&2===t.length&&(e=parseFloat(t[1]||-1)),e},fixMaxHeightOfDiv:function(t){return"Microsoft Internet Explorer"===navigator.appName?Math.min(t,1533917):null!=/(Firefox)/.exec(navigator.userAgent)?Math.min(t,17895696):t},getRelativeRect:function(t){var e,i,r=t instanceof $&&0<t.length?t[0]:t,n=$(r).outerHeight(),o=$(this).closest(".ui-jqgrid")[0];return o?(e=null!=r.getBoundingClientRect?r.getBoundingClientRect():$(r).offset(),i=null!=o.getBoundingClientRect?o.getBoundingClientRect():$(o).offset(),{top:e.top+n-i.top,left:e.left-i.left}):{top:0,left:0}},getCellIndex:function(t){var e=$(t);return e.is("tr")||null==(e=(e.is("td")||e.is("th")?e:e.closest("td,th"))[0])?-1:jgrid.msie?$.inArray(e,e.parentNode.cells):e.cellIndex},stripHtml:function(t){return(t=String(t))?(t=t.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,""))&&" "!==t&&" "!==t?t.replace(/"/g,"'"):"":t},stripPref:function(t,e){var i=$.type(t);return"string"!==i&&"number"!==i||(e=""!==(t=String(t))?String(e).replace(String(t),""):e),e},getRes:function(t,e){var i,r=e.split("."),n=r.length;if(null!=t){for(i=0;i<n;i++){if(!r[i])return null;if(void 0===(t=t[r[i]]))break;if("string"==typeof t)return t}return t}},parseDate:function(t,e,i,r){var n,o,a,s=0,l=0,d="string"==typeof e?e.match(/^\/Date\((([\-+])?[0-9]+)(([\-+])([0-9]{2})([0-9]{2}))?\)\/$/):null,c=function(t,e){for(t=String(t),e=parseInt(e,10)||2;t.length<e;)t="0"+t;return t},u={m:1,d:1,y:1970,h:0,i:0,s:0,u:0},h=function(t,e){return 0===t?12===e&&(e=0):12!==e&&(e+=12),e};if(void 0===(r=function(t,e){var i,r,n=["AmPm","dayNames","masks","monthNames","userLocalTime","parseRe","S","srcformat"],o=e||{},a=(jgrid.formatter||{}).date||{},s=((locales[(t||$.jgrid.defaults).locale]||{}).formatter||{}).date,l=n.length,d={};for(i=0;i<l;i++)void 0!==o[r=n[i]]?d[r]=o[r]:void 0!==a[r]?d[r]=a[r]:void 0!==s[r]&&(d[r]=s[r]);return d}(this.p,r)).parseRe&&(r.parseRe=/[#%\\\/:_;.,\t\s\-]/),r.masks.hasOwnProperty(t)&&(t=r.masks[t]),e&&null!=e)if(isNaN(e)||"u"!==String(t).toLowerCase())if(isNaN(e)||"u1000"!==String(t).toLowerCase())if(e.constructor===Date)s=e;else if(null!==d)s=new Date(parseInt(d[1],10)),d[3]&&(l=60*Number(d[5])+Number(d[6]),l*="-"===d[4]?1:-1,l-=s.getTimezoneOffset(),s.setTime(Number(Number(s)+60*l*1e3)));else{for("ISO8601Long"===r.srcformat&&"Z"===e.charAt(e.length-1)&&(l-=(new Date).getTimezoneOffset()),e=String(e).replace(/\T/g,"#").replace(/\t/,"%").split(r.parseRe),t=t.replace(/\T/g,"#").replace(/\t/,"%").split(r.parseRe),o=0,a=Math.min(t.length,e.length);o<a;o++){switch(t[o]){case"M":-1!==(n=$.inArray(e[o],r.monthNames))&&n<12&&(e[o]=n+1,u.m=e[o]);break;case"F":-1!==(n=$.inArray(e[o],r.monthNames,12))&&11<n&&(e[o]=n+1-12,u.m=e[o]);break;case"n":u.m=parseInt(e[o],10);break;case"j":u.d=parseInt(e[o],10);break;case"g":u.h=parseInt(e[o],10);break;case"a":-1!==(n=$.inArray(e[o],r.AmPm))&&n<2&&e[o]===r.AmPm[n]&&(e[o]=n,u.h=h(e[o],u.h));break;case"A":-1!==(n=$.inArray(e[o],r.AmPm))&&1<n&&e[o]===r.AmPm[n]&&(e[o]=n-2,u.h=h(e[o],u.h))}void 0===e[o]||""===e[o]||isNaN(e[o])||(u[t[o].toLowerCase()]=parseInt(e[o],10))}if(u.f&&(u.m=u.f),0===u.m&&0===u.y&&0===u.d)return" ";u.m=parseInt(u.m,10)-1;var p=u.y;70<=p&&p<=99?u.y=1900+u.y:0<=p&&p<=69&&(u.y=2e3+u.y),s=new Date(u.y,u.m,u.d,u.h,u.i,u.s,u.u),0!==l&&s.setTime(Number(Number(s)+60*l*1e3))}else s=new Date(parseFloat(e));else s=new Date(1e3*parseFloat(e));else s=new Date(u.y,u.m,u.d,u.h,u.i,u.s,u.u);if(r.userLocalTime&&0===l&&0!=(l-=(new Date).getTimezoneOffset())&&s.setTime(Number(Number(s)+60*l*1e3)),void 0===i)return s;if(r.masks.hasOwnProperty(i)?i=r.masks[i]:i||(i="Y-m-d"),"u1000"===i.toLowerCase())return s.getTime();var f=s.getHours(),g=s.getMinutes(),m=s.getDate(),v=s.getMonth()+1,b=s.getTimezoneOffset(),w=s.getSeconds(),y=s.getMilliseconds(),x=s.getDay(),_=s.getFullYear(),C=(x+6)%7+1,A=(new Date(_,v-1,m)-new Date(_,0,1))/864e5,j=C<5?Math.floor((A+C-1)/7)+1:Math.floor((A+C-1)/7)||((new Date(_-1,0,1).getDay()+6)%7<4?53:52),k={d:c(m),D:r.dayNames[x],j:m,l:r.dayNames[x+7],N:C,S:r.S(m),w:x,z:A,W:j,F:r.monthNames[v-1+12],m:c(v),M:r.monthNames[v-1],n:v,t:"?",L:"?",o:"?",Y:_,y:String(_).substring(2),a:f<12?r.AmPm[0]:r.AmPm[1],A:f<12?r.AmPm[2]:r.AmPm[3],B:"?",g:f%12||12,G:f,h:c(f%12||12),H:c(f),i:c(g),s:c(w),u:y,e:"?",I:"?",O:(0<b?"-":"+")+c(100*Math.floor(Math.abs(b)/60)+Math.abs(b)%60,4),P:"?",T:(String(s).match(/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[\-+]\d{4})?)\b/g)||[""]).pop().replace(/[^\-+\dA-Z]/g,""),Z:"?",c:"?",r:"?",U:Math.floor(s/1e3)};return i.replace(/\\.|[dDjlNSwzWFmMntLoYyaABgGhHisueIOPTZcrU]/g,(function(t){return k.hasOwnProperty(t)?k[t]:t.substring(1)}))},parseDateToNumber:function(t,e){var i=jgrid.parseDate.call(this,t,e);return i instanceof Date?i.getTime():0},jqID:function(t){return String(t).replace(/[!"#$%&'()*+,.\/:; <=>?@\[\\\]\^`{|}~]/g,"\\$&")},getGridComponentId:function(t){if(null==this.p||!this.p.id)return"";var e=this.p.id;switch(t){case COMPONENT_NAMES.GRID:return e;case COMPONENT_NAMES.GRID_BOX_DIV:return"gbox_"+e;case COMPONENT_NAMES.GRID_VIEW_DIV:return"gview_"+e;case COMPONENT_NAMES.DIALOG_ALERT_DIV:return"alertmod_"+e;case COMPONENT_NAMES.COLUMN_RESIZER_DIV:return"rs_m"+e;case COMPONENT_NAMES.HEADER_SELECT_ALL_ROWS_CHECKBOX:return"cb_"+e;case COMPONENT_NAMES.SEARCH_OPERATION_MENU_UL:return"sopt_menu";default:return""}},getGridComponentIdSelector:function(t){var e=jgrid.getGridComponentId.call(this,t);return e?"#"+jgrid.jqID(e):""},isHTMLElement:function(t){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?t instanceof HTMLElement:null!=t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},getGridComponent:function(t,e){var i;if(e instanceof $||0<e.length)i=e[0];else{if(!jgrid.isHTMLElement(e))return $();e=$(i=e)}switch(t){case COMPONENT_NAMES.BODY_TABLE:return e.hasClass("ui-jqgrid-bdiv")?e.children("div").children(".ui-jqgrid-btable"):$();case COMPONENT_NAMES.HEADER_TABLE:return e.hasClass("ui-jqgrid-hdiv")?e.children("div").children(".ui-jqgrid-htable"):$();case COMPONENT_NAMES.FOOTER_TABLE:return e.hasClass("ui-jqgrid-sdiv")?e.children("div").children(".ui-jqgrid-ftable"):$();case COMPONENT_NAMES.FROZEN_HEADER_TABLE:return e.hasClass("ui-jqgrid-hdiv")?e.children(".ui-jqgrid-htable"):$();case COMPONENT_NAMES.FROZEN_FOOTER_TABLE:return e.hasClass("ui-jqgrid-sdiv")?e.children(".ui-jqgrid-ftable"):$();case COMPONENT_NAMES.BODY_DIV:return e.hasClass("ui-jqgrid-btable")&&null!=i.grid?$(i.grid.bDiv):$();case COMPONENT_NAMES.HEADER_DIV:return e.hasClass("ui-jqgrid-btable")&&null!=i.grid?$(i.grid.hDiv):$();case COMPONENT_NAMES.FOOTER_DIV:return e.hasClass("ui-jqgrid-btable")&&null!=i.grid?$(i.grid.sDiv):$();default:return $()}},fixScrollOffsetAndhBoxPadding:function(){var t=this.grid;if(t){var e=this.p,i=t.bDiv,r=function(t){var r=$(t).children("div").first();r.css(r.hasClass("ui-jqgrid-hbox-rtl")?"padding-left":"padding-right",e.scrollOffset),t.scrollLeft=i.scrollLeft};0<$(i).width()&&(e.scrollOffset=i.offsetWidth-i.clientWidth,r(t.hDiv),t.sDiv&&r(t.sDiv))}},mergeCssClasses:function(){var t,e,i,r,n=$.makeArray(arguments),o={},a=[];for(t=0;t<n.length;t++)for(i=String(n[t]).replace(/[\t\r\n\f]/g," ").split(" "),e=0;e<i.length;e++)""===(r=i[e])||o.hasOwnProperty(r)||(o[r]=!0,a.push(r));return a.join(" ")},hasOneFromClasses:function(t,e){var i,r=$(t),n=String(e).replace(/[\t\r\n\f]/g," ").split(" "),o=n.length;for(i=0;i<o;i++)if(r.hasClass(n[i]))return!0;return!1},hasAllClasses:function(t,e){var i,r=$(t),n=String(e).replace(/[\t\r\n\f]/g," ").split(" "),o=n.length;for(i=0;i<o;i++)if(!r.hasClass(n[i]))return!1;return!0},detectRowEditing:function(t){return this.grid&&null!=this.p&&null!=this.p.editingInfo&&null!=this.p.editingInfo[t]?this.p.editingInfo[t]:null},getCell:function(t,e){var i,r,n=this.grid,o=this.p;return n&&o?((t instanceof $||0<t.length)&&(t=t[0]),("object"==typeof HTMLTableRowElement||"function"==typeof HTMLTableRowElement)&&t instanceof HTMLTableRowElement&&null!=t.cells?(r=$(t.cells[e]),null!=(i=n.fbRows)&&e<i[0].cells.length?r.add(i[t.rowIndex].cells[e]):r):$()):$()},getDataFieldOfCell:function(t,e){var i,r=this.p,n=jgrid.getCell.call(this,t,e);return r.treeGrid&&0<n.children("div.tree-wrap").length&&(n=n.children("span.cell-wrapperleaf,span.cell-wrapper")),r.colModel[e].autoResizable?0===(i=n.children("span."+r.autoResizing.wrapperClassName)).length&&(i=n):i=n,i},enumEditableCells:function(t,e,i){var r=this,n=r.grid,o=r.rows,a=r.p;if(null==n||null==o||null==a||null==t||null==t.rowIndex||!t.id||!$.isFunction(i))return null;var s,l,d,c,u,h,p,f,g,m,v,b=a.colModel,w=b.length,y=t.rowIndex,x=n.fbRows,_=null!=x,C=_?x[y]:null;for(_&&(t=r.rows[y]),s=0;s<w&&("cb"===(d=(l=b[s]).name)||"subgrid"===d||"rn"===d||(_&&!l.frozen&&(_=!1),g=(_?C:t).cells[s],(m=$(g)).hasClass("not-editable-cell")||(v=m.width(),!0===a.treeGrid&&d===a.ExpandColumn?(v-=m.children("div.tree-wrap").outerWidth(),m=m.children("span.cell-wrapperleaf,span.cell-wrapper").first()):v=0,u=stripPref(a.idPrefix,t.id),c={rowid:t.id,id:u,iCol:s,iRow:y,cmName:d,cm:l,mode:e,td:g,tr:t,trFrozen:C,dataElement:m[0],dataWidth:v},"local"===a.datatype&&(p=null!=(h=a._index[u])?a.data[h]:void 0)&&(c.item=p),l.edittype||(l.edittype="text"),((a.editingInfo[t.id]||{}).editable||{}).hasOwnProperty(d)?f=a.editingInfo[t.id].editable[d]:(f=l.editable,f=$.isFunction(f)?f.call(r,c):f),!0!==f&&"hidden"!==f||(c.editable=f,!1!==i.call(r,c)))));s++);},getEditedValue:function(t,e,i,r){var n,o,a,s,l,d,c=e.formatoptions||{},u=e.editoptions||{},h=u.custom_value,p="[name="+jgrid.jqID(e.name)+"]",f=this,g=$(f);if("hidden"===r||"readonly"===r)return $(f).jqGrid("getCell",t.closest("tr.jqgrow").attr("id"),e.name);switch(e.edittype){case"checkbox":o=["Yes","No"],"string"==typeof u.value&&(o=u.value.split(":")),n=t.find("input[type=checkbox]").is(":checked")?o[0]:o[1];break;case"text":case"password":case"textarea":case"button":n=(s=t.find("input"+p+",textarea"+p)).val(),"date"===s.prop("type")&&3===String(n).split("-").length&&(a=c.newformat||g.jqGrid("getGridRes","formatter.date.newformat"),n=jgrid.parseDate.call(f,"Y-m-d",n,a));break;case"select":s=t.find("select option:selected"),u.multiple?(l=[],d=[],s.each((function(){l.push($(this).val()),d.push($(this).text())})),n=l.join(","),i.text=d.join(",")):(n=s.val(),i.text=s.text()),i.value=n;break;case"custom":try{if(!$.isFunction(h))throw"e1";if(void 0===(n=h.call(f,t.find(".customelement"),"get")))throw"e2"}catch(t){var m,v=jgrid.info_dialog,b=function(t){g.jqGrid("getGridRes",t)};switch(String(t)){case"e1":m="function 'custom_value' "+b("edit.msg.nodefined");break;case"e2":break;default:m=t.message}v&&$.isFunction(v)?v.call(f,b("errors.errcap"),m,b("edit.bClose")):($.isFunction(defaults.fatalError)?defaults.fatalError:alert)(m)}break;default:n=t.find("*"+p).text()}return n},guid:1,uidPref:"jqg",randId:function(t){return(t||jgrid.uidPref)+jgrid.guid++},getAccessor:function(t,e){var i,r,n,o=[];if($.isFunction(e))return e(t);if(null!=t&&t.hasOwnProperty(e))return t[e];try{if("string"==typeof e&&(o=e.split(".")),n=o.length)for(i=t;null!=i&&n--;)r=o.shift(),i=i.hasOwnProperty(r)?i[r]:void 0}catch(t){}return i},getXmlData:function(t,e,i){var r="string"==typeof e?e.match(/^(.*)\[(\w+)\]$/):null;if($.isFunction(e))return e(t);if(r&&r[2])return r[1]?$(r[1],t).attr(r[2]):$(t).attr(r[2]);if(void 0!==t){var n=$(t).find(e);return i?n:0<n.length?$(n).text():void 0}},cellWidth:function(){var t=$("<div class='ui-jqgrid' style='left:10000px'><div class='ui-jqgrid-view'><div class='ui-jqgrid-bdiv'><table class='ui-jqgrid-btable' style='width:5px;'><tr class='jqgrow'><td style='width:5px;display:block;'></td></tr></table></div></div></div>"),e=t.appendTo("body").find("td").width();return t.remove(),.1<Math.abs(e-5)},isCellClassHidden:function(t){if(null==t||""===t)return!1;var e=$("<div class='ui-jqgrid' style='left:10000px'><div class='ui-jqgrid-view'><div class='ui-jqgrid-bdiv'><table class='ui-jqgrid-btable' style='width:5px;'><tr class='jqgrow'><td style='width:5px;' class='"+(t||"")+"'></td></tr></table></div></div></div>"),i=e.appendTo("body").find("td").is(":hidden");return e.remove(),i},cell_width:!0,ajaxOptions:{},from:function(source){var context=this,QueryObject=function(d,q){var self=this,_data=d,_usecase=!0,_trim=!1,_query=q,_stripNum=/[\$,%]/g,_lastCommand=null,_lastField=null,_orDepth=0,_negate=!1,_queuedOperator="",_sorting=[],toString=Object.prototype.toString;if("object"!=typeof d||!d.push)throw"data provides is not an array";if(0<d.length&&"object"!=typeof d[0])throw"data items are not objects";return this._hasData=function(){return null!==_data&&0!==_data.length},this._getStr=function(t){var e=[];return _trim&&e.push("jQuery.trim("),e.push("String("+t+" || '')"),_trim&&e.push(")"),_usecase||e.push(".toUpperCase()"),e.join("")},this._strComp=function(t){return"string"==typeof t?".toString()":""},this._group=function(t,e){return{field:t.toString(),unique:e,items:[]}},this._toStr=function(t){return _trim&&(t=$.trim(t)),t=t.toString().replace(/\\/g,"\\\\").replace(/"/g,'\\"'),_usecase?t:t.toUpperCase()},this._funcLoop=function(t){var e=[];return $.each(_data,(function(i,r){e.push(t(r))})),e},this._append=function(t){var e;for(null===_query?_query="":_query+=""===_queuedOperator?" && ":_queuedOperator,e=0;e<_orDepth;e++)_query+="(";_negate&&(_query+="!"),_query+="("+t+")",_negate=!1,_queuedOperator="",_orDepth=0},this._setCommand=function(t,e){_lastCommand=t,_lastField=e},this._resetNegate=function(){_negate=!1},this._repeatCommand=function(t,e){return null===_lastCommand?self:null!==t&&null!==e?_lastCommand(t,e):null===_lastField?_lastCommand(t):_lastCommand(_lastField,t)},this._equals=function(t,e){return 0===self._compare(t,e,1)},this._compare=function(t,e,i){return void 0===i&&(i=1),void 0===t&&(t=null),void 0===e&&(e=null),null===t&&null===e?0:null===t&&null!==e?1:null!==t&&null===e?-1:("[object Date]"===toString.call(t)&&"[object Date]"===toString.call(e)||_usecase||"number"==typeof t||"number"==typeof e||(t=String(t),e=String(e)),t<e?-i:e<t?i:0)},this._performSort=function(){0!==_sorting.length&&(_data=self._doSort(_data,0))},this._doSort=function(t,e){var i=_sorting[e].by,r=_sorting[e].dir,n=_sorting[e].type,o=_sorting[e].datefmt,a=_sorting[e].sfunc;if(e===_sorting.length-1)return self._getOrder(t,i,r,n,o,a);e++;var s,l,d,c=self._getGroup(t,i,r,n,o),u=[];for(s=0;s<c.length;s++)for(d=self._doSort(c[s].items,e),l=0;l<d.length;l++)u.push(d[l]);return u},this._getOrder=function(t,e,i,r,n,o){var a,s,l,d=[],c=[],u="a"===i?1:-1;void 0===r&&(r="text"),l="float"===r||"number"===r||"currency"===r||"numeric"===r?function(t){var e=parseFloat(String(t).replace(_stripNum,""));return isNaN(e)?Number.NEGATIVE_INFINITY:e}:"int"===r||"integer"===r?function(t){return null!=t?parseFloat(String(t).replace(_stripNum,"")):Number.NEGATIVE_INFINITY}:"date"===r||"datetime"===r?function(t){return jgrid.parseDateToNumber.call(context,n,t)}:$.isFunction(r)?r:function(t){return t=null!=t?$.trim(String(t)):"",_usecase?t:t.toUpperCase()},$.each(t,(function(t,i){void 0===(s=""!==e?jgrid.getAccessor(i,e):i)&&(s=""),s=l.call(context,s,i),c.push({vSort:s,data:i,index:t})})),$.isFunction(o)?c.sort((function(t,e){return o.call(context,t.vSort,e.vSort,u,t.data,e.data)})):c.sort((function(t,e){return self._compare(t.vSort,e.vSort,u)}));for(var h=0,p=t.length;h<p;)a=c[h].index,d.push(t[a]),h++;return d},this._getGroup=function(t,e,i,r,n){var o=[],a=null,s=null;return $.each(self._getOrder(t,e,i,r,n),(function(t,i){var r=jgrid.getAccessor(i,e);null==r&&(r=""),self._equals(s,r)||(s=r,null!==a&&o.push(a),a=self._group(e,r)),a.items.push(i)})),null!==a&&o.push(a),o},this.ignoreCase=function(){return _usecase=!1,self},this.useCase=function(){return _usecase=!0,self},this.trim=function(){return _trim=!0,self},this.noTrim=function(){return _trim=!1,self},this.execute=function(){var match=_query,results=[];return null===match||($.each(_data,(function(){(function(){var localMath='(function (context) {\nvar yesObject = { 1: 1, x: 1, "true": 1, yes: 1, y: 1, on: 1 },noObject = { 0: 1, "false": 1, no: 1, n: 1, off: 1 },normilizeBoolean = function (v) {\nif (typeof v === "string") {\nif (noObject[v.toLowerCase()]) { return false; } else if (yesObject[v.toLowerCase()]) { return true; } }\nreturn !!v;\n},intFunc = function (jQuery, self) { return '+match+"; }; return intFunc.call(context.item, context.jQuery, context.context); }(this))";eval(localMath)&&results.push(this.item)}).call({item:this,jQuery:$,context})})),_data=results),self},this.data=function(){return _data},this.select=function(t){if(self.execute(),$.isFunction(t)){var e=[];return $.each(_data,(function(i,r){e.push(t(r))})),e}return self._hasData()?(self._performSort(),_data):[]},this.hasMatch=function(){return!!self._hasData()&&(self.execute(),0<_data.length)},this.andNot=function(t,e,i){return _negate=!_negate,self.and(t,e,i)},this.orNot=function(t,e,i){return _negate=!_negate,self.or(t,e,i)},this.not=function(t,e,i){return self.andNot(t,e,i)},this.and=function(t,e,i){return _queuedOperator=" && ",void 0===t?self:self._repeatCommand(t,e,i)},this.or=function(t,e,i){return _queuedOperator=" || ",void 0===t?self:self._repeatCommand(t,e,i)},this.orBegin=function(){return _orDepth++,self},this.orEnd=function(){return null!==_query&&(_query+=")"),self},this.isNot=function(t){return _negate=!_negate,self.is(t)},this.is=function(t){return self._append("this."+t),self._resetNegate(),self},this._compareValues=function(t,e,i,r,n){var o=e;void 0===i&&(i=null);var a=i,s=void 0===n.stype?"text":n.stype;if(null!==i)switch(s){case"int":case"integer":a=String(a).replace(_stripNum,""),a=isNaN(Number(a))||""===a?"0":Number(a),o="parseInt("+o+"||0,10)",a=String(parseInt(a,10));break;case"boolean":o="normilizeBoolean("+o+")",a="normilizeBoolean("+String(a)+")";break;case"float":case"number":case"currency":case"numeric":a=String(a).replace(_stripNum,""),a=isNaN(Number(a))||""===a?"0":Number(a),o="parseFloat("+o+"||0)",a=String(a);break;case"date":case"datetime":a=String(jgrid.parseDateToNumber.call(context,n.newfmt||"Y-m-d",a)),o='jQuery.jgrid.parseDateToNumber.call(self,"'+n.srcfmt+'",'+o+")";break;default:o=self._getStr(o),a=self._getStr('"'+self._toStr(a)+'"')}return self._append(o+" "+r+" "+a),self._setCommand(t,e),self._resetNegate(),self},this.equals=function(t,e,i){return self._compareValues(self.equals,t,e,"==",i)},this.notEquals=function(t,e,i){return self._compareValues(self.equals,t,e,"!==",i)},this.isNull=function(t,e,i){return self._compareValues(self.equals,t,null,"===",i)},this.greater=function(t,e,i){return self._compareValues(self.greater,t,e,">",i)},this.less=function(t,e,i){return self._compareValues(self.less,t,e,"<",i)},this.greaterOrEquals=function(t,e,i){return self._compareValues(self.greaterOrEquals,t,e,">=",i)},this.lessOrEquals=function(t,e,i){return self._compareValues(self.lessOrEquals,t,e,"<=",i)},this.startsWith=function(t,e){var i=null==e?t:e,r=_trim?$.trim(i.toString()).length:i.toString().length;return self._append(self._getStr(t)+".substr(0,"+r+") == "+self._getStr('"'+self._toStr(e)+'"')),self._setCommand(self.startsWith,t),self._resetNegate(),self},this.endsWith=function(t,e){var i=null==e?t:e,r=_trim?$.trim(i.toString()).length:i.toString().length;return self._append(self._getStr(t)+".substr("+self._getStr(t)+".length-"+r+","+r+') == "'+self._toStr(e)+'"'),self._setCommand(self.endsWith,t),self._resetNegate(),self},this.contains=function(t,e){return self._append(self._getStr(t)+'.indexOf("'+self._toStr(e)+'",0) > -1'),self._setCommand(self.contains,t),self._resetNegate(),self},this.groupBy=function(t,e,i,r){return self._hasData()?self._getGroup(_data,t,e,i,r):null},this.orderBy=function(t,e,i,r,n){return null==i&&(i="text"),null==r&&(r="Y-m-d"),null==n&&(n=!1),"desc"!==(e=null==e?"a":$.trim(e.toString().toLowerCase()))&&"descending"!==e||(e="d"),"asc"!==e&&"ascending"!==e||(e="a"),_sorting.push({by:t,dir:e,type:i,datefmt:r,sfunc:n}),self},this.inSet=function(t,e,i){var r=void 0===e?null:e,n=void 0===i.stype?"text":i.stype;return r=self._getStr('"'+self._toStr(r)+'"'),"text"!==n?self._compareValues(self.equals,t,e,"==",i):(self._append("jQuery.inArray("+self._getStr(t)+","+r+".split('"+(context.p.inFilterSeparator||",")+"')) >= 0"),self._setCommand(self.inSet,t),self._resetNegate(),self)},this.custom=function(t,e,i){return self._append("self.p.customSortOperations."+t+'.filter.call(self,{item:this,cmName:"'+e+'",iCol:self.p.iColByName["'+e+'"]>=0 ? self.p.iColByName["'+e+'"] : self.p.iPropByName["'+e+'"],isAddProp:self.p.iColByName["'+e+'"]<0,searchValue:"'+i+'"})'),self._setCommand(self.custom,e),self._resetNegate(),self},self};return new QueryObject(source,null)},serializeFeedback:function(t,e,i){var r,n=this;return n instanceof $&&0<n.length&&(n=n[0]),"string"==typeof i?i:"string"==typeof(r=$(n).triggerHandler(e,i))?r:(null!=r&&"object"==typeof r||(r=i),$.isFunction(t)?t.call(n,r):r)},fullBoolFeedback:function(t,e){var i=$.makeArray(arguments).slice(2),r=$(this).triggerHandler(e,i);if(r=!1!==r&&"stop"!==r,$.isFunction(t)){var n=t.apply(this,i);!1!==n&&"stop"!==n||(r=!1)}return r},feedback:function(t,e,i,r){var n=this;if(n instanceof $&&0<n.length&&(n=n[0]),null==t||"string"!=typeof r||r.length<2)return null;var o="on"===r.substring(0,2)?"jqGrid"+e+r.charAt(2).toUpperCase()+r.substring(3):"jqGrid"+e+r.charAt(0).toUpperCase()+r.substring(1),a=$.makeArray(arguments).slice(4),s=t[r+i];return a.unshift(o),a.unshift(s),jgrid.fullBoolFeedback.apply(n,a)},builderSortIcons:function(t){var e=this,i=e.p,r=$(e),n=r.jqGrid("getGuiStyles","states.disabled"),o=function(o){var a=i.colModel[t],s=null!=a&&$.isFunction(a.sortIconName)?a.sortIconName:i.sortIconName,l=$.isFunction(s)?s.call(e,{order:o,iCol:t,cm:a}):r.jqGrid("getIconRes","sort."+o);return jgrid.mergeCssClasses("ui-grid-ico-sort","ui-icon-"+o,"horizontal"===i.viewsortcols[1]?"ui-i-"+o:"",n,l,"ui-sort-"+i.direction)};return"<span class='s-ico"+(i.sortIconsBeforeText?" jqgrid-icons-first":"")+"' style='display:none'><span class='"+o("asc")+"'></span><span class='"+o("desc")+"'></span></span>"},builderFmButon:function(t,e,i,r,n){var o=this.p,a=$(this),s=function(t){return a.jqGrid("getGuiStyles","dialog."+t)};return null==o?"":"<a id='"+t+"' class='"+jgrid.mergeCssClasses("fm-button",s("fmButton"),s("right"===n?"rightCorner":"left"===n?"leftCorner":"defaultCorner"),"right"===r?"fm-button-icon-right":"left"===r?"fm-button-icon-left":"")+"' role='button' tabindex='0'>"+(i?"<span class='fm-button-icon "+(a.jqGrid("getIconRes",i)||i)+"'></span>":"")+(e?"<span class='fm-button-text'>"+e+"</span>":"")+"</a>"},convertOnSaveLocally:function(t,e,i,r,n,o){if(null==this.p)return t;if($.isFunction(e.convertOnSave))return e.convertOnSave.call(this,{newValue:t,cm:e,oldValue:i,id:r,item:n,iCol:o});if("boolean"!=typeof i&&"number"!=typeof i)return t;if("boolean"!=typeof i||"checkbox"!==e.edittype&&"checkbox"!==e.formatter)"number"!=typeof i||isNaN(t)||("number"===e.formatter||"currency"===e.formatter?t=parseFloat(t):"integer"===e.formatter&&(t=parseInt(t,10)));else{var a=String(t).toLowerCase(),s=null!=e.editoptions&&"string"==typeof e.editoptions.value?e.editoptions.value.split(":"):["yes","no"];0<=$.inArray(a,["1","true",s[0].toLowerCase()])?t=!0:0<=$.inArray(a,["0","false",s[1].toLowerCase()])&&(t=!1)}return t},parseDataToHtml:function(t,e,i,r,n,o,a){var s,l,d,c,u,h,p,f,g,m,v,b,w,y,x,_,C,A,j,k,D,q,I,S,F,O,R,E=this,N=E.p,T=$(E),M=!1,z=[],P=[],B=!0!==N.altRows||T.jqGrid("isBootstrapGuiStyle")?"":N.altclass,G=N.groupingView,H=!1,L=parseInt(N.rowNum,10),W=$.fn.jqGrid,V=!0===N.treeGrid&&-1<N.treeANode?E.rows[N.treeANode].rowIndex+1:E.rows.length,Y=E.formatCol;for(V<=1&&(N.rowIndexes={}),("local"===N.datatype&&!N.deselectAfterSort||N.multiPageSelection)&&(M=!0),o&&(L*=o+1),s=0;s<Math.min(t,L);s++){for(u=e[s],h=i[s],p=null!=r?r[s]:h,d=((1===n?0:n)+s)%2==1?B:"",M?N.multiselect?(c=-1!==$.inArray(u,N.selarrrow))&&null===N.selrow&&(N.selrow=u):c=u===N.selrow:c=!1,f=z.length,z.push(""),l=0;l<N.colModel.length;l++)switch(g=N.colModel[l].name){case"rn":z.push((I=l,S=s,F=N.page,O=N.rowNum,R=(parseInt(F,10)-1)*parseInt(O,10)+1+S,"<td role='gridcell' class='"+W.getGuiStyles.call(T,"rowNum","jqgrid-rownum")+"' "+Y(I,S,R,null,S,!0)+">"+R+"</td>"));break;case"cb":z.push((k=void 0,k=" ",D=!(D=void 0),q={rowid:_=u,iRow:A=s,iCol:C=l,data:h,checked:j=c},$.isFunction(N.hasMultiselectCheckBox)&&(D=N.hasMultiselectCheckBox.call(E,q)),D&&(k=$.isFunction(N.checkboxHtml)?N.checkboxHtml.call(E,q):"<input type='checkbox' id='jqg_"+N.id+"_"+_+"' class='cbox' name='jqg_"+N.id+"_"+_+"'"+(j?" checked='checked' aria-checked='true'":" aria-checked='false'")+"/>"),"<td role='gridcell' "+Y(C,A,"",null,_,!0)+">"+k+"</td>"));break;case"subgrid":z.push(W.addSubGridCell.call(T,l,s+n,u,h));break;default:z.push((m=u,v=h[g],w=p,y=h,"<td role='gridcell' "+Y(b=l,s+n,x=E.formatter(m,v,b,w,"add",y),w,m,y)+">"+x+"</td>"))}N.grouping&&(W.groupingPrepare&&!G._locgr&&W.groupingPrepare.call(T,h,s),H=$.isFunction(G.groupCollapse)?G.groupCollapse.call(E,{group:G.groups[G.groups.length-1],rowid:u,data:h}):G.groupCollapse),z[f]=E.constructTr(u,H,d,h,p,c),z.push("</tr>"),N.rowIndexes[u]=V,V++,N.grouping&&(P.push(z),z=[]),z.length>N.maxItemsToJoin&&(z=[z.join("")])}return N.grouping&&W.groupingRender&&(a&&(G._locgr=!0),z=[W.groupingRender.call(T,P,L)],jgrid.clearArray(P)),z},fillSelectOptions:function(t,e,i,r,n,o){var a,s,l,d,c,u,h,p,f=[],g=!1,m=function(t,e){if(0<e)return t};if(e){if("function"==typeof e&&(e=e()),"string"==typeof e)for(s=e.split(r),a=0;a<s.length;a++)2<(l=s[a].split(i)).length&&(l[1]=$.map(l,m).join(i)),f.push({value:l[0],innerHtml:l[1],selectValue:$.trim(l[0]),selectText:$.trim(l[1]),selected:!1}),""===l[0]&&(g=!0);else if("object"==typeof e)for(h in e)e.hasOwnProperty(h)&&f.push({value:h,innerHtml:e[h],selectValue:$.trim(h),selectText:$.trim(e[h]),selected:!1}),""===h&&(g=!0);if("string"==typeof o){for(p=n?$.map(o.split(","),(function(t){return $.trim(t)})):[$.trim(o)],o=$.trim(o),a=0;a<f.length;a++)c=f[a],n||c.selectValue!==o||(u=c.selected=!0),n&&-1<$.inArray(c.selectValue,p)&&(u=c.selected=!0);if(!u)for(a=0;a<f.length;a++)c=f[a],n||c.selectText!==o||(c.selected=!0),n&&-1<$.inArray(c.selectText,p)&&(c.selected=!0)}for(a=0;a<f.length;a++)c=f[a],(d=document.createElement("option")).value=c.value,d.innerHTML=c.innerHtml,c.selected&&(d.selected=!0),t.appendChild(d);return g}},getMethod:function(t){return this.getAccessor($.fn.jqGrid,t)},extend:function(t){$.extend($.fn.jqGrid,t),this.no_legacy_api||$.fn.extend(t)}});var clearArray=jgrid.clearArray,jqID=jgrid.jqID,getGridComponentIdSelector=jgrid.getGridComponentIdSelector,getGridComponentId=jgrid.getGridComponentId,getGridComponent=jgrid.getGridComponent,stripPref=jgrid.stripPref,randId=jgrid.randId,getAccessor=jgrid.getAccessor,convertOnSaveLocally=jgrid.convertOnSaveLocally,stripHtml=jgrid.stripHtml,htmlEncode=jgrid.htmlEncode,htmlDecode=jgrid.htmlDecode,mergeCssClasses=jgrid.mergeCssClasses,hasOneFromClasses=jgrid.hasOneFromClasses,feedback=function(){var t=$.makeArray(arguments);return t.unshift(""),t.unshift(""),t.unshift(this.p),jgrid.feedback.apply(this,t)};$.fn.jqGrid=function(t){var e,i=$.fn.jqGrid;if("string"==typeof t){if(!(e=i[t]))throw"jqGrid - No such method: "+t;return e.apply(this,$.makeArray(arguments).slice(1))}return this.each((function(){if(!this.grid){var e,r,n=this,o=$(n),a=$.isFunction,s=$.isArray,l=$.extend,d=$.inArray,c=$.trim,u=$.each,h=i.setSelection,p=i.getGridRes,f=a(defaults.fatalError)?defaults.fatalError:alert,g=t.locale||defaults.locale||"en-US",m=null!=locales[g]&&"boolean"==typeof locales[g].isRTL&&locales[g].isRTL?"rtl":"ltr",v=t.iconSet||defaults.iconSet||("bootstrap"===(t.guiStyle||defaults.guiStyle)||"bootstrapPrimary"===(t.guiStyle||defaults.guiStyle)?"glyph":"jQueryUI"),b=t.guiStyle||defaults.guiStyle||"jQueryUI",w=function(t){return i.getIconRes.call(n,t)},y=function(t,e){return o.jqGrid("getGuiStyles",t,e)};null==t&&(t={datatype:"local"}),void 0!==t.datastr&&s(t.datastr)&&(r=t.datastr,t.datastr=[]),void 0!==t.data&&(e=t.data,t.data=[]),null!=jgrid.formatter&&null!=jgrid.formatter.unused||f("CRITICAL ERROR!!!\n\n\nOne uses probably\n\n\t$.extend($.jgrid.defaults, {...});\n\nto set default settings of jqGrid instead of the usage the DEEP version of jQuery.extend (with true as the first parameter):\n\n\t$.extend(true, $.jgrid.defaults, {...});\n\nOne other possible reason:\n\nyou included some OLD version of language file (grid.locale-en.js for example) AFTER jquery.jqGrid.min.js. For example all language files of jqGrid 4.7.0 uses non-deep call of jQuery.extend.\n\n\nSome options of jqGrid could still work, but another one will be broken."),void 0===t.datatype&&void 0!==t.dataType&&(t.datatype=t.dataType,delete t.dataType),void 0===t.mtype&&void 0!==t.type&&(t.mtype=t.type,delete t.type),n.p={iconSet:v};var x=l(!0,{height:"auto",page:1,rowNum:20,maxRowNum:1e4,pagingDuringEditing:"prevent",sortingDuringEditing:"prevent",reloadingDuringEditing:"prevent",autoresizeOnLoad:!1,columnsToReResizing:[],autoResizing:{wrapperClassName:"ui-jqgrid-cell-wrapper",minColWidth:33,maxColWidth:300,adjustGridWidth:!0,compact:!1,fixWidthOnShrink:!1},doubleClickSensitivity:250,minResizingWidth:10,rowTotal:null,records:0,pager:"",pgbuttons:!0,pginput:!0,colModel:[],additionalProperties:[],arrayReader:[],rowList:[],colNames:[],sortorder:"asc",threeStateSort:!1,sortname:"",mtype:"GET",altRows:!1,selarrrow:[],savedRow:[],editingInfo:{},shrinkToFit:!0,xmlReader:{},subGrid:!1,subGridModel:[],reccount:0,lastpage:0,lastsort:0,selrow:null,singleSelectClickMode:"toggle",selectOnContextMenu:!0,beforeSelectRow:null,onSelectRow:null,onSortCol:null,ondblClickRow:null,onRightClickRow:null,onPaging:null,onSelectAll:null,onInitGrid:null,loadComplete:null,gridComplete:null,loadError:function(t,e,i){if("abort"!==e&&"abort"!==i){var r=t.getResponseHeader("Content-Type"),n=t.responseText||"";"text/html"===r?n=function(t){var e,i,r,n=document.createElement("div");for(r=/<body[^>]*>([\s\S]*)<\/body\s*>/gim.exec(t),n.innerHTML=null!=r&&2===r.length?r[1]:t,i=(e=n.getElementsByTagName("script")).length;i--;)e[i].parentNode.removeChild(e[i]);t=n.innerHTML;try{""===$.trim($(t).text())&&(t="")}catch(t){}return t}(n):("application/json"===r||"text/plain"===r)&&(n=function(t){try{var e,i=$.parseJSON(t),r=[];for(e in i)i.hasOwnProperty(e)&&"StackTrace"!==e&&r.push(e+": "+i[e]);t=r.join("<br />")}catch(t){}return t}(n)),500!==t.status&&0!==t.status&&(n=(e||i)+(i&&i!==e?": "+i:"")+" "+t.status+" "+t.statusText+(""!==n?"<hr />":"")+n),o.jqGrid("displayErrorMessage",n||e||i)}},loadBeforeSend:null,afterInsertRow:null,beforeRequest:null,beforeProcessing:null,onHeaderClick:null,viewrecords:!1,loadonce:!1,forceClientSorting:!1,multiselect:!1,multikey:!1,editurl:"clientArray",search:!1,caption:"",hidegrid:!0,hiddengrid:!1,useUnformattedDataForCellAttr:!0,postData:{},userData:{},treeGrid:!1,treeGridModel:"nested",treeReader:{},treeANode:-1,ExpandColumn:null,tree_root_level:0,prmNames:{page:"page",rows:"rows",sort:"sidx",order:"sord",search:"_search",filters:"filters",nd:"nd",id:"id",idold:"idOld",oper:"oper",editoper:"edit",addoper:"add",deloper:"del",subgridid:"id",npage:null,totalrows:"totalrows"},forceFit:!1,gridstate:"visible",cellEdit:!1,iCol:-1,iRow:-1,nv:0,loadui:"enable",toolbar:[!1,""],scroll:!1,multiboxonly:!1,deselectAfterSort:!0,resetPageAfterSort:!0,multiPageSelection:!1,selectAllMode:"filtered",scrollrows:!1,autowidth:!1,scrollOffset:18,cellLayout:5,subGridWidth:16,multiselectWidth:16,multiselectPosition:"left",gridview:!0,rownumWidth:25,rownumbers:!1,pagerpos:"center",footerrow:!1,userDataOnFooter:!1,hoverrows:!0,altclass:"ui-priority-secondary",viewsortcols:[!1,"vertical",!0],resizeclass:"",autoencode:!0,autoEncodeOnEdit:!1,remapColumns:[],cmNamesInputOrder:[],ajaxGridOptions:{},direction:m,toppager:!1,headertitles:!1,scrollTimeout:40,maxItemsToJoin:32768,data:[],lastSelectedData:[],quickEmpty:"quickest",_index:{},indexByColumnData:{},dataIndexById:{},iColByName:{},iPropByName:{},reservedColumnNames:["rn","cb","subgrid"],grouping:!1,groupingView:{groupField:[],groupOrder:[],groupText:[],groupColumnShow:[],groupSummary:[],showSummaryOnHide:!1,useDefaultValuesOnGrouping:!0,summary:[],displayField:[],groupSummaryPos:[],formatDisplayField:[],_locgr:!1,commonIconClass:w("grouping.common"),plusicon:w("grouping.plus"),minusicon:w("grouping.minus")},ignoreCase:!0,cmTemplate:{},idPrefix:"",iconSet:v,guiStyle:b,locale:g,multiSort:!1,showSortOrder:!0,sortOrderPosition:"afterSortIcons",multiSortOrder:"lastClickedFirstSorted",maxSortColumns:3,treeIcons:{commonIconClass:w("treeGrid.common"),plusLtr:w("treeGrid.plusLtr"),plusRtl:w("treeGrid.plusRtl"),minus:w("treeGrid.minus"),leaf:w("treeGrid.leaf")}},defaults,{navOptions:l(!0,{commonIconClass:w("nav.common"),editicon:w("nav.edit"),addicon:w("nav.add"),delicon:w("nav.del"),searchicon:w("nav.search"),refreshicon:w("nav.refresh"),viewicon:w("nav.view"),saveicon:w("nav.save"),cancelicon:w("nav.cancel"),buttonicon:w("nav.newbutton")},jgrid.nav||{}),actionsNavOptions:l(!0,{commonIconClass:w("actions.common"),editicon:w("actions.edit"),delicon:w("actions.del"),saveicon:w("actions.save"),cancelicon:w("actions.cancel")},jgrid.actionsNav||{}),formEditing:l(!0,{commonIconClass:w("form.common"),prevIcon:w("form.prev"),nextIcon:w("form.next"),saveicon:[!0,"left",w("form.save")],closeicon:[!0,"left",w("form.undo")]},jgrid.edit||{}),searching:l(!0,{commonIconClass:w("search.common"),findDialogIcon:w("search.search"),resetDialogIcon:w("search.reset"),queryDialogIcon:w("search.query")},jgrid.search||{}),formViewing:l(!0,{commonIconClass:w("form.common"),prevIcon:w("form.prev"),nextIcon:w("form.next"),closeicon:[!0,"left",w("form.cancel")]},jgrid.view||{}),formDeleting:l(!0,{commonIconClass:w("form.common"),delicon:[!0,"left",w("form.del")],cancelicon:[!0,"left",w("form.cancel")]},jgrid.del||{})},t||{}),_=function(t){return p.call(o,t)},C=function(t){var e=jgrid.getRes(x,t);return void 0!==e?e:p.call(o,"defaults."+t)};if(x.recordpos=x.recordpos||("rtl"===x.direction?"left":"right"),x.autoResizing.widthOfVisiblePartOfSortIcon=void 0!==x.autoResizing.widthOfVisiblePartOfSortIcon?x.autoResizing.widthOfVisiblePartOfSortIcon:"fontAwesome"===x.iconSet?13:12,x.datatype=void 0!==x.datatype?x.datatype:void 0!==e||null==x.url?"local":null!=x.jsonReader&&"object"==typeof x.jsonReader?"json":"xml",x.jsonReader=x.jsonReader||{},x.url=x.url||"",x.cellsubmit=void 0!==x.cellsubmit?x.cellsubmit:void 0===x.cellurl?"clientArray":"remote",x.gridview=void 0!==x.gridview?x.gridview:null==x.afterInsertRow,void 0!==e&&(x.data=e,t.data=e),void 0!==r&&(x.datastr=r,t.datastr=r),"TABLE"===n.tagName.toUpperCase())if(""===n.id&&o.attr("id",randId()),void 0!==document.documentMode&&document.documentMode<=5)f("Grid can not be used in this ('quirks') mode!");else{o.empty().attr("tabindex","0"),(n.p=x).id=n.id,x.idSel="#"+jqID(n.id),x.gBoxId=getGridComponentId.call(n,COMPONENT_NAMES.GRID_BOX_DIV),x.gBox=getGridComponentIdSelector.call(n,COMPONENT_NAMES.GRID_BOX_DIV),x.gViewId=getGridComponentId.call(n,COMPONENT_NAMES.GRID_VIEW_DIV),x.gView=getGridComponentIdSelector.call(n,COMPONENT_NAMES.GRID_VIEW_DIV),x.rsId=getGridComponentId.call(n,COMPONENT_NAMES.COLUMN_RESIZER_DIV),x.rs=getGridComponentIdSelector.call(n,COMPONENT_NAMES.COLUMN_RESIZER_DIV),x.cbId=getGridComponentId.call(n,COMPONENT_NAMES.HEADER_SELECT_ALL_ROWS_CHECKBOX),x.cb=getGridComponentIdSelector.call(n,COMPONENT_NAMES.HEADER_SELECT_ALL_ROWS_CHECKBOX);var A=jgrid.fixScrollOffsetAndhBoxPadding,j=function(t){var e,i={},r=t.length;for(e=0;e<r;e++)i[t[e].name]=e;return i},k=function(){var t,e,i={},r=x.colModel,n=r.length;for(t=0;t<n;t++)((e=r[t]).createColumnIndex||x.createColumnIndex&&!1!==e.createColumnIndex||"select"===e.stype&&(e.searchoptions||{}).generateValue||"select"===e.edittype&&(e.editoptions||{}).generateValue)&&(i[r[t].name]={});return i},D=function(t){var e,i,r={},n=t.length;for(e=0;e<n;e++)r["string"==typeof(i=t[e])?i:i.name]=e;return r},q=function(){var t,e,i={};for(this.p.rowIndexes=i,e=0;e<this.rows.length;e++)t=this.rows[e],$(t).hasClass("jqgrow")&&(i[t.id]=t.rowIndex)},I=function(t){var e=$(this).data("pageX");e?(e=(e=String(e).split(";"))[e.length-1],$(this).data("pageX",e+";"+t.pageX)):$(this).data("pageX",t.pageX)},S=function(t,e){return t=parseInt(t,10),isNaN(t)?e||0:t},F={headers:[],cols:[],footers:[],dragStart:function(t,e,i,r){var n=this,o=$(n.bDiv),a=o.closest(x.gBox).offset(),s=r.offset().left+("rtl"===x.direction?0:n.headers[t].width+(jgrid.cell_width?0:S(x.cellLayout,0))-2);n.resizing={idx:t,startX:s,sOL:s,moved:!1,delta:s-e.pageX},n.curGbox=$(x.rs),n.curGbox.prependTo("body"),n.curGbox.css({display:"block",left:s,top:i[1]+a.top+1,height:i[2]}),n.curGbox.css("height",i[2]-(n.curGbox.outerHeight()-n.curGbox.height())+"px"),n.curGbox.data("idx",t),n.curGbox.data("delta",s-e.pageX),I.call(this.curGbox,e),feedback.call(getGridComponent(COMPONENT_NAMES.BODY_TABLE,o)[0],"resizeStart",e,t),document.onselectstart=function(){return!1},$(document).on("mousemove.jqGrid",(function(t){if(F.resizing)return F.dragMove(t),!1})).on("mouseup.jqGrid"+x.id,(function(){if(F.resizing)return F.dragEnd(),!1}))},dragMove:function(t){var e=this,i=e.resizing;if(i){var r,n,o=t.pageX+i.delta-i.startX,a=e.headers,s=a[i.idx],l="ltr"===x.direction?s.width+o:s.width-o,d=((x.colModel[i.idx]||{}).autoResizing||{}).minColWidth||x.minResizingWidth;i.moved=!0,d<l&&(null==e.curGbox&&(e.curGbox=$(x.rs)),e.curGbox.css({left:i.sOL+o}),!0===x.forceFit?(r=a[i.idx+x.nv],(n="ltr"===x.direction?r.width-o:r.width+o)>x.autoResizing.minColWidth&&(s.newWidth=l,r.newWidth=n)):(e.newWidth="ltr"===x.direction?x.tblwidth+o:x.tblwidth-o,s.newWidth=l))}},resizeColumn:function(t,e,r){var n,o=this,a=o.headers,s=o.footers,l=a[t],d=l.newWidth||l.width,c=getGridComponent(COMPONENT_NAMES.BODY_TABLE,o.bDiv),u=getGridComponent(COMPONENT_NAMES.HEADER_TABLE,o.hDiv).children("thead").children("tr").first()[0].cells;d=parseInt(d,10),x.colModel[t].width=d,l.width=d,u[t].style.width=d+"px",o.cols[t].style.width=d+"px",o.fbRows&&($(o.fbRows[0].cells[t]).css("width",d),$(getGridComponent(COMPONENT_NAMES.FROZEN_HEADER_TABLE,o.fhDiv)[0].rows[0].cells[t]).css("width",d),x.footerrow&&$(getGridComponent(COMPONENT_NAMES.FROZEN_FOOTER_TABLE,o.fsDiv)[0].rows[0].cells[t]).css("width",d)),0<s.length&&(s[t].style.width=d+"px"),!0!==r&&A.call(c[0]),!0===x.forceFit?(d=(n=a[t+x.nv]).newWidth||n.width,n.width=d,u[t+x.nv].style.width=d+"px",o.cols[t+x.nv].style.width=d+"px",0<s.length&&(s[t+x.nv].style.width=d+"px"),x.colModel[t+x.nv].width=d):(x.tblwidth=o.newWidth||x.tblwidth,!0!==r&&(o.hDiv.scrollLeft=o.bDiv.scrollLeft,x.footerrow&&(o.sDiv.scrollLeft=o.bDiv.scrollLeft))),x.autowidth||void 0!==x.widthOrg&&"auto"!==x.widthOrg&&"100%"!==x.widthOrg||!0===r||i.setGridWidth.call(c,o.newWidth+x.scrollOffset,!1),e||feedback.call(c[0],"resizeStop",d,t)},dragEnd:function(){var t=this;t.hDiv.style.cursor="default",t.resizing&&(null!==t.resizing&&!0===t.resizing.moved&&($(t.headers[t.resizing.idx].el).removeData("autoResized"),t.resizeColumn(t.resizing.idx,!1)),$(x.rs).removeData("pageX"),t.resizing=!1,setTimeout((function(){$(x.rs).css("display","none").prependTo(x.gBox)}),x.doubleClickSensitivity)),t.curGbox=null,document.onselectstart=function(){return!0},$(document).off("mousemove.jqGrid mouseup.jqGrid"+x.id)},populateVisible:function(){var t=this,e=$(t),i=t.grid,r=i.bDiv,n=$(r);i.timer&&clearTimeout(i.timer),i.timer=null;var o=n.height();if(o){var a,s;if(t.rows.length)try{s=(a=t.rows[1])&&$(a).outerHeight()||i.prevRowHeight}catch(t){s=i.prevRowHeight}if(s){i.prevRowHeight=s;var l=x.rowNum;i.scrollTop=r.scrollTop;var d,c,u,h=i.scrollTop,p=Math.round(e.position().top)-h,f=p+e.height(),g=s*l;if(f<o&&p<=0&&(void 0===x.lastpage||(parseInt((f+h+g-1)/g,10)||0)<=x.lastpage)&&(c=parseInt((o-f+g-1)/g,10)||1,0<=f||c<2||!0===x.scroll?(d=(Math.round((f+h)/g)||0)+1,p=-1):p=1),0<p&&(d=(parseInt(h/g,10)||0)+1,c=(parseInt((h+o)/g,10)||0)+2-d,u=!0),c){if(x.lastpage&&(d>x.lastpage||1===x.lastpage||d===x.page&&d===x.lastpage))return;i.hDiv.loading?i.timer=setTimeout((function(){i.populateVisible.call(t)}),x.scrollTimeout):(x.page=d,u&&(i.selectionPreserver.call(t),i.emptyRows.call(t,!1,!1)),i.populate.call(t,c))}}}},scrollGrid:function(){if(x.scroll){var t=this.scrollTop;void 0===F.scrollTop&&(F.scrollTop=0),t!==F.scrollTop&&(F.scrollTop=t,F.timer&&clearTimeout(F.timer),F.timer=setTimeout((function(){F.populateVisible.call(n)}),x.scrollTimeout))}return F.hDiv.scrollLeft=this.scrollLeft,x.footerrow&&(F.sDiv.scrollLeft=this.scrollLeft),!1},selectionPreserver:function(){var t=$(this),e=x.selrow,i=x.selarrrow?$.makeArray(x.selarrrow):null,r=this.grid.bDiv,n=r.scrollLeft,o=function(){var a;if(x.selrow=null,!x.multiPageSelection){if(clearArray(x.selarrrow),x.multiselect&&i&&0<i.length)for(a=0;a<i.length;a++)i[a]!==e&&h.call(t,i[a],!1,null);e&&h.call(t,e,!1,null)}r.scrollLeft=n,t.off(".selectionPreserver",o)};t.on("jqGridGridComplete.selectionPreserver",o)}};n.grid=F,feedback.call(n,"beforeInitGrid"),x.iColByName=j(x.colModel),x.iPropByName=D(x.additionalProperties),jgrid.msie=0<jgrid.msiever();var O,R=$("<div class='"+y("gView","ui-jqgrid-view")+"' role='grid' aria-multiselectable='"+!!x.multiselect+"'></div>"),E=jgrid.msie;x.direction=c(x.direction.toLowerCase()),-1===d(x.direction,["ltr","rtl"])&&(x.direction="ltr"),O=x.direction,$(R).insertBefore(n),o.removeClass("scroll").appendTo(R);var N=$("<div class='"+y("gBox","ui-jqgrid")+"'></div>");$(N).attr({id:x.gBoxId,dir:O}).insertBefore(R),$(R).attr("id",x.gViewId).appendTo(N),$("<div class='"+y("overlay","jqgrid-overlay")+"' id='lui_"+x.id+"'></div>").insertBefore(R),$("<div class='"+y("loading","loading")+"' id='load_"+x.id+"'>"+C("loadtext")+"</div>").insertBefore(R),o.attr({role:"presentation","aria-labelledby":"gbox_"+n.id});var T,M=function(t,e,i,r,o,s){var l,d,c,u,h,p=x.colModel[t],f=p.autoResizable?"<span class='"+x.autoResizing.wrapperClassName+"'>":"",g=p.autoResizable?i.substring(f.length,i.length-"</span>".length):i,m=x.useUnformattedDataForCellAttr&&null!=s?s[p.name]:p.autoResizable?g:i,v=p.classes,b=p.align?"text-align:"+p.align+";":"",w=function(t){return"string"==typeof t?t.replace(/'/g,"'"):t},y=" aria-describedby='"+x.id+"_"+p.name+"'";if(!0===p.hidden&&(b+="display:none;"),0===e)b+="width: "+F.headers[t].width+"px;";else if((a(p.cellattr)||"string"==typeof p.cellattr&&null!=jgrid.cellattr&&a(jgrid.cellattr[p.cellattr]))&&"string"==typeof(d=(a(p.cellattr)?p.cellattr:jgrid.cellattr[p.cellattr]).call(n,o,m,r,p,s,g)))for(d=d.replace(/\n/g,"
");;){if(null===(c=/^\s*(\w+[\w|\-]*)\s*=\s*([\"|\'])(.*?)\2(.*)/.exec(d))||c.length<5)return!h&&p.title&&(h=m),y+" style='"+w(b)+"'"+(v?" class='"+w(v)+"'":"")+(h?" title='"+w(h)+"'":"");switch(u=c[3],d=c[4],c[1].toLowerCase()){case"class":v?v+=" "+u:v=u;break;case"title":h=u;break;case"style":b+=u;break;default:y+=" "+c[1]+"="+c[2]+u+c[2]}}return l=""!==b?"style='"+b+"'":"",(l+=(void 0!==v?" class='"+v+"'":"")+(p.title&&m?" title='"+stripHtml(i).replace(/'/g,"'")+"'":""))+y},z=function(t){return null==t||""===t?" ":x.autoencode?htmlEncode(t):String(t)},P=function(t){var e=x.treeReader,i=e.loaded,r=e.leaf_field,n=e.expanded_field,o=function(t){return!0===t||"true"===t||"1"===t};if("nested"===x.treeGridModel&&!t[r]){var a=parseInt(t[e.left_field],10),s=parseInt(t[e.right_field],10);t[r]=s===a+1}void 0!==t[i]&&(t[i]=o(t[i])),t[r]=o(t[r]),t[n]=o(t[n])},B=function(t,e){var i,r;for(i in x.indexByColumnData)x.indexByColumnData.hasOwnProperty(i)&&(r=t[i],t.hasOwnProperty(i)&&void 0!==r&&""!==r&&(x.ignoreCase&&(r=String(r).toLowerCase()),void 0===x.indexByColumnData[i][r]&&(x.indexByColumnData[i][r]={}),x.indexByColumnData[i][r][e]=t[i],void 0===x.dataIndexById[e]&&(x.dataIndexById[e]={}),void 0===x.dataIndexById[e][i]&&(x.dataIndexById[e][i]={}),x.dataIndexById[e][i][r]=x.indexByColumnData[i][r]))},G=function(){var t,e,i,r,o,d,c,u,h,p,f,g,m=x.data,v=m.length,b=x.localReader,w=x.additionalProperties,y=b.cell,_=x.arrayReaderInfos;if("local"===x.datatype&&!0===b.repeatitems)for(r=!1===x.keyName?a(b.id)?b.id.call(n,m):b.id:x.keyName,isNaN(r)?a(r)||null!=x.arrayReaderInfos[r]&&(o=x.arrayReaderInfos[r].order):o=Number(r),t=0;t<v;t++){for(h in e=m[t],i=y&&getAccessor(e,y)||e,p=s(i),c={},_)_.hasOwnProperty(h)&&(g=_[h],d=getAccessor(i,p?g.order:g.name),1===g.type&&null!=(f=w[g.index])&&a(f.convert)&&(d=f.convert(d,i)),void 0!==d&&(c[h]=d));void 0!==c[r]?u=void 0!==c[r]?c[r]:randId():(void 0===(u=getAccessor(e,s(e)?o:r))&&(u=getAccessor(i,s(i)?o:r)),void 0===u&&(u=randId())),u=String(u),c[b.id]=u,x.treeGrid&&P(c),l(m[t],c)}else if(x.treeGrid)for(t=0;t<v;t++)P(m[t])},H=function(){var t,e,i,r,n=x.data.length;for(t=!1===x.keyName||x.loadonce&&x.dataTypeOrg?x.localReader.id:x.keyName,x._index={},x.dataIndexById={},x.indexByColumnData=k(),e=0;e<n;e++)r=x.data[e],void 0===(i=getAccessor(r,t))&&(i=String(randId()),void 0===r[t]&&(r[t]=i)),x._index[i]=e,B.call(this,r,i)},L=function(t,e){var i,r,o,s=x.colModel,l=s.length,d=function(t){return null==t||""===t?" ":htmlEncode(t)},c=function(t){return null==t||""===t?" ":String(t)};for(i=0;i<l;i++)(r=s[i]).cellBuilder=null,t||(o={colModel:r,gid:x.id,pos:i},void 0===r.formatter?r.cellBuilder=x.autoencode?d:c:"string"==typeof r.formatter&&null!=$.fn.fmatter&&a($.fn.fmatter.getCellBuilder)?r.cellBuilder=$.fn.fmatter.getCellBuilder.call(n,r.formatter,o,e||"add"):a(r.getCellBuilder)&&(r.cellBuilder=r.getCellBuilder.call(n,o,e||"add")))},W=function(t,e,r,n){var o=this,l=$(o),d=new Date,c=x.datatype,u="local"!==c&&x.loadonce||"xmlstring"===c||"jsonstring"===c,h=("xmlstring"===c||"xml"===c)&&$.isXMLDoc(t),p="_id_",f=x.localReader,g=getAccessor;if(t&&("xml"!==c||h)){switch(-1!==x.treeANode||x.scroll?e=1<e?e:1:(F.emptyRows.call(o,!1,!0),e=1),u&&(clearArray(x.data),clearArray(x.lastSelectedData),x._index={},x.grouping&&null!=x.groupingView&&(x.groupingView.groups=[],x.groupingView._locgr=!1),x.localReader.id=p),x.reccount=0,c){case"xml":case"xmlstring":f=x.xmlReader,g=jgrid.getXmlData;break;case"json":case"jsonp":case"jsonstring":f=x.jsonReader}var m,v,b,w,y,_,C,A,j,k,D,I,O,R={},E=x.colModel,N=E.length,T=x.arrayReaderInfos,M={},z=function(t){return function(e){var i=null!=e&&a(e.getAttribute)?e.getAttribute(t):null;return null!==i?i:void 0}},G=function(t){return function(){var e,i=M[t];if(null!=i)return 0<(e=i.childNodes).length?e[0].nodeValue:void 0}};x.page=S(g(t,f.page),x.page),x.lastpage=S(g(t,f.total),1),x.records=S(g(t,f.records)),a(f.userdata)?x.userData=f.userdata.call(o,t)||{}:h?g(t,f.userdata,!0).each((function(){x.userData[this.getAttribute("name")]=$(this).text()})):x.userData=g(t,f.userdata)||{},L();var H,W,V,Y,U={},Q=x.additionalProperties,X=function(t,e){h&&"string"==typeof e&&(/^\w+$/.test(e)?U[t]=G(e):/^\[\w+\]$/.test(e)&&(U[t]=z(e.substring(1,e.length-1))))},K=function(t){var e=t.name,i=h?t.xmlmap||e:("local"===c&&!x.dataTypeOrg||"jsonstring"===c||"json"===c||"jsonp"===c)&&t.jsonmap||e;!1!==x.keyName&&!0===t.key&&(x.keyName=e),("string"==typeof i||a(i))&&(U[e]=i),a(i)||X(e,i)};for(m=0;m<N;m++)K(E[m]);for(N=Q.length,m=0;m<N;m++)"object"==typeof(V=Q[m])&&null!=V?K(V):X(V,V);if(y=!1===x.keyName?a(f.id)?f.id.call(o,t):f.id:x.keyName,isNaN(y)?a(y)||(T[y]&&(_=T[y].order),h&&!1===x.keyName&&("string"==typeof y&&/^\[\w+\]$/.test(y)?y=z(y.substring(1,y.length-1)):"string"==typeof y&&/^\w+$/.test(y)&&(y=G(y)))):_=Number(y),w=g(t,f.root,!0),f.row)if(1===w.length&&"string"==typeof f.row&&/^\w+$/.test(f.row)){for(Y=[],D=(k=w[0].childNodes).length,j=0;j<D;j++)1===(I=k[j]).nodeType&&I.nodeName===f.row&&Y.push(I);w=Y}else w=g(w,f.row,!0);null==w&&s(t)&&(w=t),w||(w=[]),0<(b=w.length)&&x.page<=0&&(x.page=1);var J=parseInt(x.rowNum,10);n&&(J*=n+1);var Z,tt,et=[],it=[];for(Y=[],m=0;m<b;m++){if(tt=w[m],v=f.repeatitems&&f.cell&&g(tt,f.cell,!0)||tt,H=f.repeatitems&&(h||s(v)),R={},M={},h&&!H&&null!=v)for(D=(k=v.childNodes).length,j=0;j<D;j++)1===(I=k[j]).nodeType&&(M[I.nodeName]=I);for(A in T)T.hasOwnProperty(A)&&(O=T[A],H?(W=v[O.order],h&&null!=W&&(W=W.textContent||W.text)):W=null!=U[A]&&"string"!=typeof U[A]?U[A].call(o,v,{cmName:A,iItem:m}):g(v,"string"==typeof U[A]?U[A]:O.name),1===O.type&&null!=(V=Q[O.index])&&a(V.convert)&&(W=V.convert(W,v)),void 0!==W&&(R[A]=W));if(void 0!==R[y]?Z=void 0!==R[y]?R[y]:randId():(void 0===(Z=g(tt,s(tt)?_:y))&&(Z=g(v,s(v)?_:y)),void 0===Z&&(Z=randId())),void 0===R[y]&&(R[y]=Z),Z=String(Z),C=x.idPrefix+Z,x.treeGrid&&P(R),m<J)it.push(C),et.push(v),Y.push(R);else if(!u)break;(u||!0===x.treeGrid)&&(R[p]=Z,x.data.push(R),B(R,Z),x._index[R[p]]=x.data.length-1)}if(u&&!0!==x.treeGrid){if(x.forceClientSorting)return;x.lastSelectedData=x.data.slice()}var rt=jgrid.parseDataToHtml.call(o,b,it,Y,et,e,n,u);L(!0);var nt=-1<x.treeANode?x.treeANode:0,ot=$(o.tBodies[0]);if(!0===x.treeGrid&&0<nt?$(o.rows[nt]).after(rt.join("")):x.scroll?ot.append(rt.join("")):(null==o.firstElementChild||void 0!==document.documentMode&&document.documentMode<=9?ot.html(ot.html()+rt.join("")):o.firstElementChild.innerHTML+=rt.join(""),o.grid.cols=o.rows[0].cells),x.grouping){q.call(o);var at,st=function(t){var e=$(this).closest("tr.jqgroup").attr("id");return l.jqGrid("groupingToggle",e,this,t),!1};for(m=0;m<o.rows.length;m++)(at=$(o.rows[m])).hasClass("jqgroup")&&at.children("td").children("span.tree-wrap").click(st)}if(!0===x.subGrid)try{i.addSubGrid.call(l,x.iColByName.subgrid)}catch(t){}if(!1===x.gridview||a(x.afterInsertRow))for(m=0;m<Math.min(b,J);m++)feedback.call(o,"afterInsertRow",it[m],Y[m],et[m]);if(x.totaltime=new Date-d,0<m&&0===x.records&&(x.records=b),clearArray(rt),!0===x.treeGrid)try{i.setTreeNode.call(l,nt+1,m+nt+1)}catch(t){}x.reccount=Math.min(b,J),x.treeANode=-1,x.userDataOnFooter&&i.footerData.call(l,"set",x.userData,!0),u&&(x.records=b,x.lastpage=Math.ceil(b/J)),r||o.updatepager(!1,!0),function(){var t,e,i=$.fn.fmatter;for(t=0;t<x.colModel.length;t++)"string"==typeof(e=x.colModel[t].formatter)&&null!=i&&a(i[e])&&a(i[e].pageFinalization)&&i[e].pageFinalization.call(this,t)}.call(o)}},V=function(t){var e,i=t.outerWidth();return i<=0&&(e=$(this).closest(".ui-jqgrid>.ui-jqgrid-view").css("font-size")||"11px",$(document.body).append("<div id='testpg' class='"+y("gBox","ui-jqgrid")+"' style='font-size:"+e+";visibility:hidden;margin:0;padding:0;' ></div>"),$(t).clone().appendTo("#testpg"),i=$("#testpg>.ui-pg-table").width(),$("#testpg").remove()),0<i&&t.parent().width(i),i},Y=function(){this.grid.hDiv.loading=!0,x.hiddengrid||i.progressBar.call($(this),{method:"show",loadtype:x.loadui,htmlcontent:C("loadtext")})},U=function(){this.grid.hDiv.loading=!1,i.progressBar.call($(this),{method:"hide",loadtype:x.loadui})},Q=function(t){var e=this,r=$(e),o=e.grid;if(!o.hDiv.loading){var d,c,h=x.scroll&&!1===t,p={},g=x.prmNames;x.page<=0&&(x.page=Math.min(1,x.lastpage)),null!==g.search&&(p[g.search]=x.search),null!==g.nd&&(p[g.nd]=(new Date).getTime()),(isNaN(parseInt(x.rowNum,10))||parseInt(x.rowNum,10)<=0)&&(x.rowNum=x.maxRowNum),null!==g.rows&&(p[g.rows]=x.rowNum),null!==g.page&&(p[g.page]=x.page),null!==g.sort&&(p[g.sort]=x.sortname),null!==g.order&&(p[g.order]=x.sortorder),null!==x.rowTotal&&null!==g.totalrows&&(p[g.totalrows]=x.rowTotal);var m=a(x.loadComplete),v=m?x.loadComplete:null,b=0;if(1<(t=t||1)?null!==g.npage?(p[g.npage]=t,b=t-1,t=1):v=function(i){x.page++,o.hDiv.loading=!1,m&&x.loadComplete.call(e,i),Q.call(e,t-1)}:null!==g.npage&&delete x.postData[g.npage],x.grouping&&i.groupingSetup){i.groupingSetup.call(r);var w,y,C,j,k=x.groupingView,D="";for(w=0;w<k.groupField.length;w++){for(y=k.groupField[w],C=0;C<x.colModel.length;C++)(j=x.colModel[C]).name===y&&j.index&&(y=j.index);D+=y+" "+k.groupOrder[w]+", "}p[g.sort]=D+p[g.sort]}l(x.postData,p);var q=x.scroll?e.rows.length-1:1,I=function(){A.call(e),x.autowidth||void 0!==x.widthOrg&&"auto"!==x.widthOrg&&"100%"!==x.widthOrg||i.setGridWidth.call(r,x.tblwidth+x.scrollOffset,!1)},S=function(){var t;if(x.autoresizeOnLoad)i.autoResizeAllColumns.call(r),clearArray(x.columnsToReResizing),x.autowidth&&i.setGridWidth.call(r,r.closest(".ui-jqgrid").parent().width(),!0);else{for(t=0;t<x.columnsToReResizing.length;t++)i.autoResizeColumn.call(r,x.columnsToReResizing[t]);clearArray(x.columnsToReResizing)}},O=function(){feedback.call(e,"loadComplete",c),S(),r.triggerHandler("jqGridAfterLoadComplete",[c]),U.call(e),x.datatype="local",x.datastr=null,I()},R=function(i){r.triggerHandler("jqGridLoadComplete",[i]),v&&v.call(e,i),S(),r.triggerHandler("jqGridAfterLoadComplete",[i]),h&&o.populateVisible.call(e),1===t&&U.call(e),I()},E=function(){var r=function(){var t=$(this),e=x.multiSort?[]:"",r={},n=!1,o={},l=[],d=[],c=_("formatter.date.srcformat"),h=_("formatter.date.newformat");if(!s(x.data))return{};x.multiSort&&Z(e,r);var p,g,m=!!x.grouping&&x.groupingView,v=function(t,i,r){var a,s,u=t.index||t.name,f=t.sorttype||"text";if(o[t.name]={reader:x.dataTypeOrg?t.name:t.jsonmap||t.name,iCol:i,stype:f,srcfmt:"",newfmt:"",sfunc:t.sortfunc||null,isAddProp:!0===r},"date"!==f&&"datetime"!==f||(t.formatter&&"string"==typeof t.formatter&&"date"===t.formatter?(a=t.formatoptions&&t.formatoptions.srcformat?t.formatoptions.srcformat:c,s=t.formatoptions&&t.formatoptions.newformat?t.formatoptions.newformat:h):a=s=t.datefmt||"Y-m-d",o[t.name].srcfmt=a,o[t.name].newfmt=s),x.grouping)for(g=0,p=m.groupField.length;g<p;g++)t.name===m.groupField[g]&&(l[g]=o[u],d[g]=u);x.multiSort||n||t.index!==x.sortname&&t.name!==x.sortname||(e=t.name,n=!0)};if(u(x.colModel,(function(t){v(this,t)})),u(x.additionalProperties,(function(t){v("string"==typeof this?{name:this}:this,t,!0)})),x.treeGrid)return i.SortTree.call(t,e,x.sortorder,null!=o[e]&&o[e].stype?o[e].stype:"text",null!=o[e]&&o[e].srcfmt?o[e].srcfmt:""),!1;var b={eq:function(t){return t.equals},ne:function(t){return t.notEquals},lt:function(t){return t.less},le:function(t){return t.lessOrEquals},gt:function(t){return t.greater},ge:function(t){return t.greaterOrEquals},cn:function(t){return t.contains},nc:function(t,e){return"OR"===e?t.orNot().contains:t.andNot().contains},bw:function(t){return t.startsWith},bn:function(t,e){return"OR"===e?t.orNot().startsWith:t.andNot().startsWith},en:function(t,e){return"OR"===e?t.orNot().endsWith:t.andNot().endsWith},ew:function(t){return t.endsWith},ni:function(t,e){return"OR"===e?t.orNot().inSet:t.andNot().inSet},in:function(t){return t.inSet},nu:function(t){return t.isNull},nn:function(t,e){return"OR"===e?t.orNot().isNull:t.andNot().isNull}},w=jgrid.from.call(this,x.data);if(x.ignoreCase&&(w=w.ignoreCase()),!0===x.search){var y=x.postData[(x.searching||{}).sFilter||x.prmNames.filters];if(y)"string"==typeof y&&(y=$.parseJSON(y)),function t(e){var i,r,n,s,l,d,c,u=0;if(null!=e.groups){for((r=e.groups.length&&"OR"===e.groupOp.toString().toUpperCase())&&w.orBegin(),i=0;i<e.groups.length;i++){0<u&&r&&w.or();try{t(e.groups[i])}catch(t){f(t)}u++}r&&w.orEnd()}if(null!=e.rules)try{for((n=e.rules.length&&"OR"===e.groupOp.toString().toUpperCase())&&w.orBegin(),i=0;i<e.rules.length;i++)l=e.rules[i],s=e.groupOp.toString().toUpperCase(),b[l.op]&&l.field?(0<u&&s&&"OR"===s&&(w=w.or()),null!=(c=o[l.field])&&(d=c.reader,w=b[l.op](w,s)(a(d)?'jQuery.jgrid.getAccessor(this,jQuery("'+x.idSel+'")[0].p.colModel['+c.iCol+"].jsonmap)":"jQuery.jgrid.getAccessor(this,'"+d+"')",l.data,o[l.field]))):null!=x.customSortOperations&&null!=x.customSortOperations[l.op]&&a(x.customSortOperations[l.op].filter)&&(w=w.custom(l.op,l.field,l.data)),u++;n&&w.orEnd()}catch(t){f(t)}}(y);else try{var C=o[x.postData.searchField];w=b[x.postData.searchOper](w)(a(C.reader)?'jQuery.jgrid.getAccessor(this,jQuery("'+x.idSel+'")[0].p.colModel['+C.iCol+"].jsonmap)":"jQuery.jgrid.getAccessor(this,'"+C.reader+"')",x.postData.searchString,o[x.postData.searchField])}catch(t){}}if(x.grouping)for(g=0;g<p&&g<d.length&&g<l.length;g++)w.orderBy(d[g],m.groupOrder[g],l[g].stype,l[g].srcfmt);x.multiSort?u(e,(function(){w.orderBy(this,r[this],o[this].stype,o[this].srcfmt,o[this].sfunc)})):e&&x.sortorder&&n&&w.orderBy(x.sortname,"DESC"===x.sortorder.toUpperCase()?"d":"a",o[e].stype,o[e].srcfmt,o[e].sfunc),x.lastSelectedData=w.select();var A=parseInt(x.rowNum,10),j=x.lastSelectedData.length,k=parseInt(x.page,10),D=Math.ceil(j/A),q={};if(x.grouping&&x.groupingView._locgr){var I,S,F;if(x.groupingView.groups=[],x.footerrow&&x.userDataOnFooter){for(S in x.userData)x.userData.hasOwnProperty(S)&&(x.userData[S]=0);F=!0}for(I=0;I<j;I++){if(F)for(S in x.userData)x.userData.hasOwnProperty(S)&&(x.userData[S]+=parseFloat(x.lastSelectedData[I][S]||0));i.groupingPrepare.call(t,x.lastSelectedData[I],I,A)}}o=w=null;var O=x.localReader;return q[O.total]=D,q[O.page]=k,q[O.records]=j,q[O.root]=x.lastSelectedData.slice((k-1)*A,k*A),q[O.userdata]=x.userData,q}.call(e);W.call(e,r,q,1<t,b),R(r)};if(!feedback.call(e,"beforeRequest"))return;if(a(x.datatype))return void x.datatype.call(e,x.postData,"load_"+x.id,q,t,b);switch(d=x.datatype.toLowerCase(),$(F.eDiv).hide(),d){case"json":case"jsonp":case"xml":case"script":$.ajax(l({url:x.url,type:x.mtype,dataType:d,data:jgrid.serializeFeedback.call(n,x.serializeGridData,"jqGridSerializeGridData",x.postData),success:function(i,r,n){x.jqXhr=null,$(F.eDiv).hide(),a(x.beforeProcessing)&&!1===x.beforeProcessing.call(e,i,r,n)?U.call(e):(W.call(e,i,q,1<t,b),R(i),(x.loadonce||x.treeGrid)&&(x.dataTypeOrg=x.datatype,x.datatype="local",x.forceClientSorting&&E()))},error:function(i,r,n){x.jqXhr=null,a(x.loadError)&&x.loadError.call(e,i,r,n),1===t&&U.call(e)},beforeSend:function(t,i){var r=!0;if(a(x.loadBeforeSend)&&(r=x.loadBeforeSend.call(e,t,i)),void 0===r&&(r=!0),!1===r)return!1;x.jqXhr=t,Y.call(e)}},jgrid.ajaxOptions,x.ajaxGridOptions));break;case"xmlstring":Y.call(e),c="string"==typeof x.datastr?$.parseXML(x.datastr):x.datastr,W.call(e,c),O(),x.forceClientSorting&&E();break;case"jsonstring":Y.call(e),c=x.datastr&&"string"==typeof x.datastr?$.parseJSON(x.datastr):x.datastr,W.call(e,c),O(),x.forceClientSorting&&E();break;case"local":case"clientside":Y.call(e),x.datatype="local",E()}}},X=function(t){var e=this.grid;$(x.cb,e.hDiv).prop("checked",t),x.frozenColumns&&$(x.cb,e.fhDiv).prop("checked",t)},K=function(t){var e,i;for(e=0;e<x.savedRow.length;e++)i=x.savedRow[e],"save"===t?i.hasOwnProperty("ic")?o.jqGrid("saveCell",i.id,i.ic):o.jqGrid("saveRow",i.id):i.hasOwnProperty("ic")?o.jqGrid("restoreCell",i.id,i.ic):o.jqGrid("restoreRow",i.id)},J=function(t,e){var i,r,o,a,s,l,d,c,u,h=y("states.hover"),p=y("states.disabled"),f="<td class='ui-pg-button "+p+"'><span class='ui-separator'></span></td>",g="",m="<table style='table-layout:auto;white-space: pre;"+("left"===x.pagerpos?"margin-right:auto;":"right"===x.pagerpos?"margin-left:auto;":"margin-left:auto;margin-right:auto;")+"' class='ui-pg-table'><tbody><tr>",v="",b=function(t,e,i){return!(0<x.savedRow.length&&"prevent"===x.pagingDuringEditing||!feedback.call(n,"onPaging",t,{newPage:e,currentPage:S(x.page,1),lastPage:S(x.lastpage,1),currentRowNum:S(x.rowNum,10),newRowNum:i})||(x.selrow=null,x.multiselect&&(x.multiPageSelection||clearArray(x.selarrrow),X.call(n,!1)),K(x.pagingDuringEditing),0))};if(e+="_"+t,i="pg_"+t,r=t+"_left",o=t+"_center",a=t+"_right",$("#"+jqID(t)).append("<div id='"+i+"' class='ui-pager-control' role='group'><table class='ui-pg-table' style='width:100%;table-layout:fixed;height:100%;'><tbody><tr><td id='"+r+"' class='ui-jqgrid-pg-left'"+(void 0!==x.pagerLeftWidth?" style='width:"+x.pagerLeftWidth+"px;'":"")+"></td><td id='"+o+"' class='ui-jqgrid-pg-center'"+(void 0!==x.pagerCenterWidth?" style='width:"+x.pagerCenterWidth+"px;'":"")+"></td><td id='"+a+"' class='ui-jqgrid-pg-right'"+(void 0!==x.pagerRightWidth?" style='width:"+x.pagerRightWidth+"px;'":"")+"></td></tr></tbody></table></div>").attr("dir","ltr"),i="#"+jqID(i),0<x.rowList.length){v="<td dir='"+O+"'>";var _,A=C("pgrecs");for(v+="<select class='"+y("pager.pagerSelect","ui-pg-selbox")+"' "+(A?"title='"+A+"'":"")+">",l=0;l<x.rowList.length;l++)1===(_=x.rowList[l].toString().split(":")).length&&(_[1]=_[0]),v+="<option value='"+_[0]+"'"+(S(x.rowNum,0)===S(_[0],0)?" selected='selected'":"")+">"+_[1]+"</option>";v+="</select></td>"}if("rtl"===O&&(m+=v),!0===x.pginput&&(g="<td dir='"+O+"'>"+jgrid.format(C("pgtext")||"","<input aria-label='Page No.' class='"+y("pager.pagerInput","ui-pg-input")+"' type='text' size='2' maxlength='7' value='0'/>","<span id='sp_1_"+t+"'>0</span>")+"</td>"),t="#"+jqID(t),!0===x.pgbuttons){var j=["first","prev","next","last"],k=j.slice(),D=y("pager.pagerButton","ui-pg-button");for("rtl"===O&&j.reverse(),l=0;l<j.length;l++)m+=(d=j[l],c=k[l],u=C("pg"+d),"<td role='button' tabindex='0' id='"+d+e+"' class='"+D+"' "+(u?"title='"+u+"'":"")+"><span class='"+w("pager."+c)+"'></span></td>"),1===l&&(m+=""!==g?f+g+f:"")}else""!==g&&(m+=g);"ltr"===O&&(m+=v),m+="</tr></tbody></table>",!0===x.viewrecords&&$("td"+t+"_"+x.recordpos,i).append("<span dir='"+O+"' style='text-align:"+x.recordpos+"' class='ui-paging-info'></span>");var q=$("td"+t+"_"+x.pagerpos,i);q.append(m),s=V.call(this,q.children(".ui-pg-table")),x._nvtd=[],x._nvtd[0]=s?Math.floor((x.width-s)/2):Math.floor(x.width/3),x._nvtd[1]=0,m=null,$(".ui-pg-selbox",i).on("change",(function(){var t=S(this.value,10),e=Math.round(x.rowNum*(x.page-1)/t-.5)+1;return b("records",e,t)&&(x.page=e,x.rowNum=t,x.pager&&$(".ui-pg-selbox",x.pager).val(t),x.toppager&&$(".ui-pg-selbox",x.toppager).val(t),Q.call(n)),!1})),!0===x.pgbuttons&&($(".ui-pg-button",i).hover((function(){hasOneFromClasses(this,p)?this.style.cursor="default":($(this).addClass(h),this.style.cursor="pointer")}),(function(){hasOneFromClasses(this,p)||($(this).removeClass(h),this.style.cursor="default")})),$("#first"+jqID(e)+", #prev"+jqID(e)+", #next"+jqID(e)+", #last"+jqID(e)).click((function(){if(hasOneFromClasses(this,p))return!1;var t=S(x.page,1),i=t,r=this.id,o=S(x.lastpage,1),a=!1,s=!0,l=!0,d=!0,c=!0;return 0===o||1===o?(t<=1&&(l=s=!1),c=d=!1):1<o&&1<=t?1===t?l=s=!1:t===o&&(c=d=!1):1<o&&0===t&&(c=d=!1,t=o-1),this.id==="first"+e&&s&&(r="first",i=1,a=!0),this.id==="prev"+e&&l&&(r="prev",i=t-1,a=!0),this.id==="next"+e&&d&&(r="next",i=t+1,a=!0),this.id==="last"+e&&c&&(r="last",i=o,a=!0),b(r,i,S(x.rowNum,10))&&(x.page=i,a&&Q.call(n)),!1}))),!0===x.pginput&&$("input.ui-pg-input",i).on("keypress.jqGrid",(function(t){var e=t.charCode||t.keyCode||0,i=S($(this).val(),1);return 13===e?(b("user",i,S(x.rowNum,10))&&($(this).val(i),x.page=0<$(this).val()?$(this).val():x.page,Q.call(n)),!1):this})),q.children(".ui-pg-table").on("keydown.jqGrid",(function(t){var e;13===t.which&&0<(e=q.find(":focus")).length&&e.trigger("click")}))},Z=function(t,e,i){if(u((x.sortname+" "+x.sortorder).split(","),(function(){var e=$.trim(this).split(" ");2===e.length&&t.push(e[0])})),null!=i){var r=$.inArray(i.index||i.name,t);""!==i.lso&&r<0?t.push(i.index||i.name):""===i.lso&&0<=r&&t.splice(r,1)}u(x.colModel,(function(){var i,r=this.index||this.name;this.lso&&(i=this.lso.split("-"),$.inArray(r,t)<0&&t.push(r),e[r]=i[i.length-1])}))},tt=function(t,e,r,o,s,l){var c=this,h=c.grid,p=x.colModel[e],f=y("states.disabled");if(null!=p&&p.sortable&&!(0<x.savedRow.length&&"prevent"===x.sortingDuringEditing)){if(x.lastsort===e&&""!==x.sortname?"asc"===x.sortorder?x.sortorder="desc":"desc"===x.sortorder?x.sortorder="asc":x.sortorder=p.firstsortorder||"asc":x.sortorder=p.firstsortorder||"asc",p.lso?"asc"===p.lso?p.lso+="-desc":"desc"===p.lso?p.lso+="-asc":"asc-desc"!==p.lso&&"desc-asc"!==p.lso||!x.threeStateSort&&!x.multiSort||(p.lso=""):p.lso=p.firstsortorder||"asc",!r&&x.resetPageAfterSort&&(x.page=1),x.multiSort)!function(t,e){var i,r="",o=x.colModel[t],s=y("states.disabled"),l=x.frozenColumns?$(n.grid.headers[t].el).add($(e)):$(n.grid.headers[t].el),c=l.find("span.s-ico"),h=c.children("span.ui-icon-asc"),p=c.children("span.ui-icon-desc"),f=h,g=p,m=[],v={};if(l.find("span.ui-grid-ico-sort").addClass(s),l.attr("aria-selected","false"),o.lso?(c.show(),"desc"===(i=(i=o.lso.split("-"))[i.length-1])&&(f=p,g=h),f.removeClass(s).css("display",""),x.showOneSortIcon&&g.hide(),l.attr("aria-selected","true")):x.viewsortcols[0]||c.hide(),Z(m,v,o),"string"==typeof x.sortname&&""!==x.sortname&&x.sortname.split(",").length<m.length){var b=function(t){u(x.colModel,(function(){var e,i="#jqgh_"+jgrid.jqID(x.id+"_"+this.name),r=$(i);if(this.lso&&(this.index||this.name)===t){if("function"==typeof m.indexOf)e=m.indexOf(t);else{for(e=0;e<m.length&&m[e]!==t;e++);e===m.length&&(e=-1)}0<=e&&(m.splice(e,1),this.lso="")}x.frozenColumns&&(r=r.add($(F.fhDiv).find(i))),r.children(".s-ico")[this.lso?"show":"hide"]()}))};if("lastClickedFirstSorted"===x.multiSortOrder&&1<m.length)for(m.unshift(m[m.length-1]),m.pop();m.length>x.maxSortColumns;)b(m[m.length-1]);else a(x.multiSortOrder)&&(m=x.multiSortOrder.call(n,{sortNames:m,cm:o,sortDirs:v,removeSorting:b})||m)}u(m,(function(){0<r.length&&(r+=", "),r+=this+" "+v[this],x.sortorder=v[this]})),x.sortname=r.substring(0,r.length-x.sortorder.length-1),x.showSortOrder&&u(x.colModel,(function(){if(this.sortable){var t=d(this.name,m),e="#jqgh_"+jgrid.jqID(x.id+"_"+this.name),i=$(e);x.frozenColumns&&(i=i.add($(F.fhDiv).find(e))),i.children(".ui-jqgrid-sort-order").html(t<0?" ":a(x.formatSortOrder)?x.formatSortOrder.call(n,{cm:this,sortIndex:t}):t+1)}}))}(e,s);else{if(o){if(x.lastsort===e&&x.sortorder===o&&!r)return;x.sortorder=o}var g=h.headers,m=h.fhDiv,v=g[x.lastsort]?$(g[x.lastsort].el):$(),b=x.frozenColumns?$(s):$(g[e].el),w=b.find("span.s-ico"),_=w.children(".ui-icon-"+x.sortorder),C=w.children(".ui-icon-"+("asc"===x.sortorder?"desc":"asc"));p=x.colModel[x.lastsort],v.find(".ui-grid-ico-sort").addClass(f),v.attr("aria-selected","false"),x.frozenColumns&&(m.find(".ui-grid-ico-sort").addClass(f),m.find("th").attr("aria-selected","false")),x.viewsortcols[0]||(x.lastsort!==e?(x.frozenColumns&&m.find("span.s-ico").hide(),v.find("span.s-ico").hide(),w.show()):""===x.sortname&&w.show()),x.lastsort!==e&&"true"===v.data("autoResized")&&(null!=p&&null!=p.autoResizing&&p.autoResizing.compact||x.autoResizing.compact)&&x.columnsToReResizing.push(x.lastsort),p=x.colModel[e],w.css("display",""),""!==p.lso?(_.removeClass(f).css("display",""),x.showOneSortIcon&&C.removeClass(f).hide(),b.attr("aria-selected","true")):(b.attr("aria-selected","false"),x.threeStateSort&&(x.sortorder="",x.viewsortcols[0]||w.hide())),x.lastsort!==e&&"true"===b.data("autoResized")&&(null!=p&&null!=p.autoResizing&&p.autoResizing.compact||x.autoResizing.compact)&&x.columnsToReResizing.push(e),x.sortname=p.index||t}if(feedback.call(c,"onSortCol",x.sortname,e,x.sortorder,l||{})){if("local"===x.datatype?x.deselectAfterSort&&!x.multiPageSelection&&i.resetSelection.call($(c)):x.multiPageSelection||(x.selrow=null,x.multiselect&&(X.call(c,!1),clearArray(x.selarrrow))),K(x.sortingDuringEditing),x.scroll){var A=h.bDiv.scrollLeft;F.emptyRows.call(c,!0,!1),h.hDiv.scrollLeft=A}x.subGrid&&"local"===x.datatype&&$("td.sgexpanded","#"+jqID(x.id)).each((function(){$(this).trigger("click")})),Q.call(c),x.lastsort=e,x.sortname!==t&&e&&(x.lastsort=e)}else x.lastsort=e}},et=function(t){return x.iColByName[(t.id||"").substring(x.id.length+1)]};-1===d(x.multikey,["shiftKey","altKey","ctrlKey"])&&(x.multikey=!1),x.keyName=!1,x.sortorder=x.sortorder.toLowerCase(),jgrid.cell_width=jgrid.cellWidth();var it,rt,nt=jgrid.cmTemplate;for(it=0;it<x.colModel.length;it++)T="string"==typeof(rt=x.colModel[it]).template?null==nt||"object"!=typeof nt[rt.template]&&!a(nt[rt.template])?{}:nt[rt.template]:rt.template,a(T)&&(T=T.call(n,{cm:rt,iCol:it})),rt=l(!0,{},x.cmTemplate,T||{},rt),!1===x.keyName&&!0===rt.key&&(x.keyName=rt.name),x.colModel[it]=rt;for(x.indexByColumnData=k(),it=0;it<x.additionalProperties.length;it++)rt=x.additionalProperties[it],!1===x.keyName&&!0===rt.key&&(x.keyName=rt.name);if(0===x.colNames.length)for(it=0;it<x.colModel.length;it++)x.colNames[it]=void 0!==x.colModel[it].label?x.colModel[it].label:x.colModel[it].name;if(x.colNames.length===x.colModel.length){if(!0===x.grouping&&(x.scroll=!1,x.rownumbers=!1,x.treeGrid=!1,x.gridview=!0),x.subGrid&&a(i.setSubGrid))try{i.setSubGrid.call(o)}catch(e){}if(x.multiselect&&("left"===x.multiselectPosition||"right"===x.multiselectPosition)){var ot="left"===x.multiselectPosition?"unshift":"push";x.colNames[ot]("<input id='"+x.cbId+"' class='cbox' type='checkbox' aria-checked='false'/>"),x.colModel[ot]({name:"cb",width:jgrid.cell_width?x.multiselectWidth+x.cellLayout:x.multiselectWidth,labelClasses:"jqgh_cbox",classes:"td_cbox",sortable:!1,resizable:!1,hidedlg:!0,search:!1,align:"center",fixed:!0,frozen:!0})}if(x.rownumbers&&(x.colNames.unshift(""),x.colModel.unshift({name:"rn",width:jgrid.cell_width?x.rownumWidth+x.cellLayout:x.rownumWidth,labelClasses:"jqgh_rn",sortable:!1,resizable:!1,hidedlg:!0,search:!1,align:"center",fixed:!0,frozen:!0})),x.iColByName=j(x.colModel),x.xmlReader=l(!0,{root:"rows",row:"row",page:"rows>page",total:"rows>total",records:"rows>records",repeatitems:!0,cell:"cell",id:"[id]",userdata:"userdata",subgrid:{root:"rows",row:"row",repeatitems:!0,cell:"cell"}},x.xmlReader),x.jsonReader=l(!0,{root:"rows",page:"page",total:"total",records:"records",repeatitems:!0,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:!0,cell:"cell"}},x.jsonReader),x.localReader=l(!0,{root:"rows",page:"page",total:"total",records:"records",repeatitems:!1,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:!0,cell:"cell"}},x.localReader),x.scroll&&(x.pgbuttons=!1,x.pginput=!1,x.rowList=[]),!0===x.treeGrid){try{i.setTreeGrid.call(o)}catch(e){}"local"!==x.datatype&&(x.localReader={id:"_id_"}),x.iPropByName=D(x.additionalProperties)}if(function(){var t,e,i,r=x.remapColumns,n=x.colModel,o=n.length,a=[];for(t=0;t<o;t++)i=n[t].name,d(i,x.reservedColumnNames)<0&&a.push(i);if(null!=r)for(e=a.slice(),t=0;t<r.length;t++)a[t]=e[r[t]];x.cmNamesInputOrder=a}(),function(){var t,e,i,r,n,o=x.colModel,a=x.cmNamesInputOrder,s=x.additionalProperties,l=a.length;for(x.arrayReaderInfos={},e=x.arrayReaderInfos,n=0;n<l;n++)i=a[n],d(i,x.reservedColumnNames)<0&&!e.hasOwnProperty(i)&&(void 0!==(r=x.iColByName[i])?e[i]={name:i,index:r,order:n,type:0}:void 0!==(r=x.iPropByName[i])?e[i]={name:i,index:r,order:n,type:1}:i===(x.prmNames.rowidName||"rowid")&&(e[i]={index:r,type:2}));for(l=o.length,t=0;t<l;t++)i=o[t].name,d(i,x.reservedColumnNames)<0&&!e.hasOwnProperty(i)&&(e[i]={name:i,index:t,order:n,type:0},n++);for(l=s.length,t=0;t<l;t++)null==(i=s[t])||e.hasOwnProperty(i)||("object"==typeof i&&"string"===$.type(i.name)&&(i=i.name),e[i]={name:i,index:t,order:n,type:1},n++)}(),x.data.length&&(G.call(n),H.call(n)),!0===x.shrinkToFit&&!0===x.forceFit)for(it=x.colModel.length-1;0<=it;it--)if(!0!==x.colModel[it].hidden){x.colModel[it].resizable=!1;break}var at,st,lt,dt,ct,ut,ht,pt,ft,gt=[],mt=[],vt=[],bt="<thead><tr class='ui-jqgrid-labels' role='row'>",wt="<tbody><tr style='display:none;'>",yt=y("states.hover"),xt=y("states.hoverTh")||yt,_t=y("states.disabled");if(x.multiSort)for(gt=x.sortname.split(","),ft=0;ft<gt.length;ft++)vt=c(gt[ft]).split(" "),gt[ft]=c(vt[0]),mt[ft]=vt[1]?c(vt[1]):x.sortorder||"asc";for(it=0;it<x.colNames.length;it++){switch(rt=x.colModel[it],ct=x.headertitles||rt.headerTitle?" title='"+stripHtml("string"==typeof rt.headerTitle?rt.headerTitle:x.colNames[it])+"'":"",bt+="<th id='"+x.id+"_"+rt.name+"' class='"+y("colHeaders","ui-th-column ui-th-"+O+" "+(rt.labelClasses||""))+"'"+ct+">",at=rt.index||rt.name,rt.labelAlign){case"left":ut="text-align:left;";break;case"right":ut="text-align:right;";break;case"likeData":ut=void 0===rt.align||"left"===rt.align?"text-align:left;":"right"===rt.align?"text-align:right;":"";break;default:ut=""}bt+="<div id='jqgh_"+x.id+"_"+rt.name+"'"+(E?" class='ui-th-div-ie'":"")+(""===ut?"":" style='"+ut+"'")+" role='columnheader'>",pt=rt.autoResizable&&"actions"!==rt.formatter||rt.rotated?"<span class='"+x.autoResizing.wrapperClassName+"'>"+x.colNames[it]+"</span>":x.colNames[it],x.sortIconsBeforeText?(bt+=(x.builderSortIcons||jgrid.builderSortIcons).call(n,it),bt+=pt):(bt+=pt,bt+=(x.builderSortIcons||jgrid.builderSortIcons).call(n,it)),bt+="</div></th>",wt+="<td></td>",rt.width=rt.width?parseInt(rt.width,10):150,"boolean"!=typeof rt.title&&(rt.title=!0),rt.lso="",at===x.sortname&&(x.lastsort=it,rt.lso=x.sortorder||rt.firstsortorder||"asc"),x.multiSort&&-1!==(vt=d(at,gt))&&(rt.lso=mt[vt])}bt+="</tr></thead>",wt+="</tr></tbody>";var Ct,At,jt,kt,Dt,qt,It,St,$t,Ft,Ot,Rt=$("<table class='"+y("hTable","ui-jqgrid-htable")+"' style='width:1px' role='presentation' aria-labelledby='gbox_"+x.id+"'>"+bt+wt+"</table>");if($(Rt[0].tHead).children("tr").children("th").hover((function(){$(this).addClass(xt)}),(function(){$(this).removeClass(xt)})),x.multiselect&&$(x.cb,Rt).on("click",(function(){var t,e,i,r=y("states.select"),o=[],a=x.iColByName.cb,s=function(t,e){$(t)[e?"addClass":"removeClass"](r).attr(e?{"aria-selected":"true",tabindex:"0"}:{"aria-selected":"false",tabindex:"-1"}),void 0!==a&&$(t.cells[a]).children("input.cbox").prop("checked",e)},l=F.fbRows,d=_t+" ui-subgrid jqgroup jqfoot jqgfirstrow jqgskipselect",c=x._index;if(clearArray(x.selarrrow),this.checked){if(t=!0,x.selrow=1<n.rows.length?n.rows[n.rows.length-1].id:null,x.multiPageSelection&&("local"===x.datatype||x.treeGrid))if("filtered"===x.selectAllMode&&null!=x.lastSelectedData&&0<x.lastSelectedData.length)for(x.selarrrow=[],i=0;i<x.lastSelectedData.length;i++)x.lastSelectedData[i].hasOwnProperty(x.localReader.id)&&x.selarrrow.push(x.idPrefix+x.lastSelectedData[i][x.localReader.id]);else if(null!=x.data&&0<x.data.length&&null!=c)for(e in c)c.hasOwnProperty(e)&&x.selarrrow.push(x.idPrefix+e)}else t=!1,x.selrow=null;var u=t?x.selarrrow:o;$(n.rows).each((function(e){hasOneFromClasses(this,d)||(s(this,t),$.inArray(this.id,u)<0&&u.push(this.id),l&&s(l[e],t))})),feedback.call(n,"onSelectAll",t?x.selarrrow:o,t)})),!0===x.autowidth){var Et=Math.floor($(N).innerWidth());x.width=0<Et?Et:"nw"}isNaN(x.width)?isNaN(parseFloat(x.width))||(x.width=parseFloat(x.width)):x.width=Number(x.width),x.widthOrg=x.width,Dt=0,qt=jgrid.cell_width?0:S(x.cellLayout,0),It=0,St=S(x.scrollOffset,0),$t=!1,Ft=0,Ot=jgrid.isCellClassHidden,u(x.colModel,(function(){if(void 0===this.hidden&&(this.hidden=!1),x.grouping&&x.autowidth){var t=d(this.name,x.groupingView.groupField);0<=t&&x.groupingView.groupColumnShow.length>t&&(this.hidden=!x.groupingView.groupColumnShow[t])}this.widthOrg=At=S(this.width,0),!1!==this.hidden||Ot(this.classes)||(Dt+=At+qt,this.fixed?Ft+=At+qt:It++)})),isNaN(x.width)&&(x.width=Dt+(!1!==x.shrinkToFit||isNaN(x.height)?0:St)),F.width=x.width,x.tblwidth=Dt,!1===x.shrinkToFit&&!0===x.forceFit&&(x.forceFit=!1),!0===x.shrinkToFit&&0<It&&(jt=F.width-qt*It-Ft,isNaN(x.height)||(jt-=St,$t=!0),Dt=0,u(x.colModel,(function(t){!1!==this.hidden||Ot(this.classes)||this.fixed||(At=Math.round(jt*this.width/(x.tblwidth-qt*It-Ft)),this.width=At,Dt+=At,Ct=t)})),kt=0,$t?F.width-Ft-(Dt+qt*It)!==St&&(kt=F.width-Ft-(Dt+qt*It)-St):$t||1===Math.abs(F.width-Ft-(Dt+qt*It))||(kt=F.width-Ft-(Dt+qt*It)),x.colModel[Ct].width+=kt,x.tblwidth=Dt+kt+qt*It+Ft,x.tblwidth>x.width&&(x.colModel[Ct].width-=x.tblwidth-parseInt(x.width,10),x.tblwidth=x.width)),$(N).css("width",F.width+"px").append("<div class='"+y("resizer","ui-jqgrid-resize-mark")+"' id='"+x.rsId+"'> </div>"),$(x.rs).on("selectstart",(function(){return!1})).click(I).dblclick((function(t){var e=$(this).data("idx"),r=$(this).data("pageX"),a=x.colModel[e];if(null==r||null==a)return!1;var s=String(r).split(";"),l=parseFloat(s[0]),d=parseFloat(s[1]);return 2===s.length&&(5<Math.abs(l-d)||5<Math.abs(t.pageX-l)||5<Math.abs(t.pageX-d))||(feedback.call(n,"resizeDblClick",e,a,t)&&a.autoResizable&&i.autoResizeColumn.call(o,e),feedback.call(n,"afterResizeDblClick",{iCol:e,cm:a,cmName:a.name})),!1})),$(R).css("width",F.width+"px");var Nt="";x.footerrow&&(Nt+="<table role='presentation' style='width:1px' class='"+y("gridFooter","ui-jqgrid-ftable")+"'><tbody><tr role='row' class='"+y("rowFooter","footrow footrow-"+O)+"'>");var Tt="<tr class='"+y("gridRow","jqgfirstrow ui-row-"+x.direction)+"' role='row' style='height:auto'>";if(x.disableClick=!1,$("th",Rt[0].tHead.rows[0]).each((function(t){var e=x.colModel[t],i=e.name,r=$(this),o=r.children("div"),s=o.children("span.s-ico"),l=x.showOneSortIcon;st=e.width,void 0===e.resizable&&(e.resizable=!0),e.resizable?(lt=document.createElement("span"),$(lt).html(" ").addClass("ui-jqgrid-resize ui-jqgrid-resize-"+O).on("selectstart",(function(){return!1})),r.addClass(x.resizeclass)):lt="",r.css("width",st+"px").prepend(lt);var c="";if(!(lt=null)===e.hidden&&(r.css("display","none"),c="display:none;"),Tt+="<td role='gridcell' "+(e.classes?"class='"+e.classes+"' ":"")+"style='height:0;width:"+st+"px;"+c+"'></td>",F.headers[t]={width:st,el:this},"boolean"!=typeof(dt=e.sortable)&&(e.sortable=!0,dt=!0),"cb"!==i&&"subgrid"!==i&&"rn"!==i&&dt&&x.viewsortcols[2]&&o.addClass("ui-jqgrid-sortable"),dt)if(x.multiSort){var u="desc"===e.lso?"asc":"desc";x.viewsortcols[0]?(s.css("display",""),e.lso&&(s.children("span.ui-icon-"+e.lso).removeClass(_t),l&&s.children("span.ui-icon-"+u).hide())):e.lso&&(s.css("display",""),s.children("span.ui-icon-"+e.lso).removeClass(_t),l&&s.children("span.ui-icon-"+u).hide()),x.showSortOrder&&(vt=d(i,gt),s["beforeSortIcons"===x.sortOrderPosition?"before":"after"]("<span class='ui-jqgrid-sort-order'>"+(vt<0?" ":a(x.formatSortOrder)?x.formatSortOrder.call(n,{cm:this,sortIndex:vt}):vt+1)+"</span>"))}else{var h="desc"===x.sortorder?"asc":"desc";x.viewsortcols[0]?(s.css("display",""),t===x.lastsort&&(s.children("span.ui-icon-"+x.sortorder).removeClass(_t),l&&s.children("span.ui-icon-"+h).hide())):t===x.lastsort&&""!==e.lso&&(s.css("display",""),s.children("span.ui-icon-"+x.sortorder).removeClass(_t),l&&s.children("span.ui-icon-"+h).hide())}x.footerrow&&(Nt+="<td role='gridcell' "+M(t,0,"",null,"",!1)+"> </td>")})).mousedown((function(t){var e,i,r=$(this),n=r.closest(".ui-jqgrid-hdiv").hasClass("frozen-div");if(1===$(t.target).closest("th>span.ui-jqgrid-resize").length)return null!=(e=et(this))&&(!0===x.forceFit&&(x.nv=function(t){var e,i=t,r=t;for(e=t+1;e<x.colModel.length;e++)if(!0!==x.colModel[e].hidden){r=e;break}return r-i}(e)),F.dragStart(e,t,(i=[r.position().left+r.outerWidth()],"rtl"===x.direction&&(i[0]=x.width-i[0]),i[0]-=n?0:F.bDiv.scrollLeft,i.push($(F.hDiv).position().top),i.push($(F.bDiv).offset().top-$(F.hDiv).offset().top+$(F.bDiv).height()+(F.sDiv?$(F.sDiv).height():0)),i),r)),!1})).click((function(t){if(x.disableClick)return x.disableClick=!1;var e,i,r="th.ui-th-column>div";x.viewsortcols[2]?r+=".ui-jqgrid-sortable":r+=">span.s-ico>span.ui-grid-ico-sort";var o=$(t.target).closest(r);if(1===o.length){x.viewsortcols[2]||(e=!0,i=o.hasClass("ui-icon-desc")?"asc":"desc");var a=et(this);return null!=a&&tt.call(n,$("div",this)[0].id.substring(5+x.id.length+1),a,e,i,this,t),!1}})),x.sortable&&a(i.sortableColumns))try{i.sortableColumns.call(o,$(Rt[0].tHead.rows[0]))}catch(e){}x.footerrow&&(Nt+="</tr></tbody></table>"),Tt+="</tr>",o.html("<tbody>"+Tt+"</tbody>"),o.addClass(y("grid","ui-jqgrid-btable"+(!0===x.altRows&&o.jqGrid("isBootstrapGuiStyle")?" table-striped":"")));var Mt,zt,Pt=!(!x.caption||!0!==x.hiddengrid),Bt=$("<div class='ui-jqgrid-hbox"+("rtl"===O?"-rtl":"")+"'></div>"),Gt=y("top"),Ht=y("bottom");F.hDiv=document.createElement("div"),$(F.hDiv).css({width:F.width+"px"}).addClass(y("hDiv","ui-jqgrid-hdiv")).append(Bt).scroll((function(){var t=$(this).next(".ui-jqgrid-bdiv")[0];return t&&(t.scrollLeft=this.scrollLeft),!1})),$(Bt).append(Rt),Rt=null,Pt&&$(F.hDiv).hide(),x.rowNum=parseInt(x.rowNum,10),(isNaN(x.rowNum)||x.rowNum<=0)&&(x.rowNum=x.maxRowNum),x.pager&&("string"==typeof x.pager&&"#"!==x.pager.substr(0,1)?(zt=x.pager,Mt=$("#"+jqID(x.pager))):!0===x.pager?(zt=randId(),(Mt=$("<div id='"+zt+"'></div>")).appendTo("body"),x.pager="#"+jqID(zt)):zt=(Mt=$(x.pager)).attr("id"),0<Mt.length?(Mt.css({width:F.width+"px"}).addClass(y("pager.pager","ui-jqgrid-pager "+Ht)).appendTo(N),Pt&&Mt.hide(),J.call(n,zt,""),x.pager="#"+jqID(zt)):x.pager=""),!1===x.cellEdit&&!0===x.hoverrows&&o.on("mouseover.jqGrid",(function(t){ht=$(t.target).closest("tr.jqgrow"),"ui-subgrid"!==$(ht).attr("class")&&$(ht).addClass(yt)})).on("mouseout.jqGrid",(function(t){ht=$(t.target).closest("tr.jqgrow"),$(ht).removeClass(yt)}));var Lt=function(t){var e,i,r;do{if(0<(e=$(t).closest("td")).length){if(r=(i=e.parent()).parent().parent(),i.is(".jqgrow")&&(r[0]===this||r.is("table.ui-jqgrid-btable")&&(r[0].id||"").replace("_frozen","")===this.id))break;t=e.parent()}}while(0<e.length);return e};o.before(F.hDiv).click((function(t){var e=y("states.select"),r=t.target,a=Lt.call(n,r),s=a.parent();if(0!==s.length&&!hasOneFromClasses(s,_t)){var l=s[0].id,d=a[0].cellIndex,c=$(r).hasClass("cbox")&&$(r).is(":enabled")&&!hasOneFromClasses(r,_t),u=feedback.call(n,"beforeSelectRow",l,t),p=!1,f=jgrid.detectRowEditing.call(n,l),g=null!=f&&"cellEditing"!==f.mode;if("A"!==r.tagName&&(!g||c)){if(feedback.call(n,"onCellSelect",l,d,a.html(),t),!0===x.cellEdit){if(u&&x.multiselect&&c){if(h.call(o,l,!0,t),c&&!x.noCellSelection)return;p=!0}try{i.editCell.call(o,s[0].rowIndex,d,!0)}catch(t){}if(!x.multiselect||!x.noCellSelection||x.multiboxonly&&p)return}if(u)if(x.multikey)t[x.multikey]&&!p?h.call(o,l,!0,t):x.multiselect&&c&&(c=$("#jqg_"+jqID(x.id)+"_"+l).is(":checked"),$("#jqg_"+jqID(x.id)+"_"+l).prop("checked",!c));else if(x.multiselect&&x.multiboxonly)if(c&&!p)h.call(o,l,!0,t);else{var m=x.frozenColumns?x.id+"_frozen":"";$(x.selarrrow).each((function(t,r){var n=i.getGridRowById.call(o,r);n&&$(n).removeClass(e),$("#jqg_"+jqID(x.id)+"_"+jqID(r)).prop("checked",!1),m&&($("#"+jqID(r),"#"+jqID(m)).removeClass(e),$("#jqg_"+jqID(x.id)+"_"+jqID(r),"#"+jqID(m)).prop("checked",!1))})),clearArray(x.selarrrow),p||h.call(o,l,!0,t)}else{var v=x.selrow;p||h.call(o,l,!0,t),"toggle"!==x.singleSelectClickMode||x.multiselect||v!==l||(n.grid.fbRows&&(s=s.add(n.grid.fbRows[s[0].rowIndex]===s[0]?n.rows[s[0].rowIndex]:n.grid.fbRows[s[0].rowIndex])),s.removeClass(e).attr({"aria-selected":"false",tabindex:"-1"}),x.selrow=null)}else c&&$(r).prop("checked",!1)}}})).on("reloadGrid",(function(t,e){var r=this,n=r.grid,o=$(this),a=r.p;if(0<a.savedRow.length&&"prevent"===a.reloadingDuringEditing)return!1;if(!0===a.treeGrid&&(a.datatype=a.treedatatype),e=l({},defaults.reloadGridOptions||{},a.reloadGridOptions||{},e||{}),"local"===a.datatype&&a.dataTypeOrg&&a.loadonce&&e.fromServer&&(a.datatype=a.dataTypeOrg,delete a.dataTypeOrg),e.current&&n.selectionPreserver.call(r),"local"===a.datatype?(a.multiPageSelection||i.resetSelection.call(o),a.data.length&&(G.call(r),H.call(r))):a.treeGrid||a.multiPageSelection||(a.selrow=null,a.multiselect&&(clearArray(a.selarrrow),X.call(r,!1)),clearArray(a.savedRow),a.editingInfo={}),K(a.reloadingDuringEditing),a.iRow=-1,a.iCol=-1,a.scroll&&F.emptyRows.call(r,!0,!1),e.page){var s=parseInt(e.page,10);s>a.lastpage&&(s=a.lastpage),s<1&&(s=1),a.page=s,n.prevRowHeight?n.bDiv.scrollTop=(s-1)*n.prevRowHeight*a.rowNum:n.bDiv.scrollTop=0}return n.prevRowHeight&&a.scroll&&void 0===e.page?(delete a.lastpage,n.populateVisible.call(r)):n.populate.call(r),!0===a._inlinenav&&o.jqGrid("showAddEditButtons",!1),!1})).dblclick((function(t){var e=Lt.call(n,t.target),i=e.parent();if(0<e.length&&!feedback.call(n,"ondblClickRow",i.attr("id"),i[0].rowIndex,e[0].cellIndex,t))return!1})).on("contextmenu",(function(t){var e=Lt.call(n,t.target),i=e.parent(),r=i.attr("id");if(0!==e.length)return x.multiselect||x.selrow===r||!0!==x.selectOnContextMenu||h.call(o,r,!0,t),!!feedback.call(n,"onRightClickRow",r,i[0].rowIndex,e[0].cellIndex,t)&&void 0})),F.bDiv=document.createElement("div"),E&&"auto"===String(x.height).toLowerCase()&&(x.height="100%"),$(F.bDiv).append($("<div style='position:relative;'></div>").append("<div></div>").append(n)).addClass("ui-jqgrid-bdiv").css({height:x.height+(isNaN(x.height)?"":"px"),width:F.width+"px"}).scroll(F.scrollGrid),x.maxHeight&&$(F.bDiv).css("max-height",x.maxHeight+(isNaN(x.maxHeight)?"":"px")),o.css({width:"1px"}),$.support.tbody||2===$(">tbody",n).length&&$(">tbody:gt(0)",n).remove(),x.multikey&&$(F.bDiv).on(jgrid.msie?"selectstart":"mousedown",(function(){return!1})),Pt&&$(F.bDiv).hide(),F.cDiv=document.createElement("div");var Wt=w("gridMinimize.visible"),Vt=w("gridMinimize.hidden"),Yt=C("showhide"),Ut=!0===x.hidegrid?$("<a role='link' class='"+y("titleButton","ui-jqgrid-titlebar-close")+"'"+(Yt?" title='"+Yt+"'":"")+"/>").hover((function(){Ut.addClass(yt)}),(function(){Ut.removeClass(yt)})).append("<span class='"+Wt+"'></span>"):"";if($(F.cDiv).append("<span class='ui-jqgrid-title'>"+x.caption+"</span>").append(Ut).addClass(y("gridTitle","ui-jqgrid-titlebar ui-jqgrid-caption"+("rtl"===O?"-rtl ":" ")+Gt)),$(F.cDiv).insertBefore(F.hDiv),x.toolbar[0]){F.uDiv=document.createElement("div"),"top"===x.toolbar[1]?$(F.uDiv).insertBefore(F.hDiv):"bottom"===x.toolbar[1]&&$(F.uDiv).insertAfter(F.hDiv);var Qt=y("toolbarUpper","ui-userdata");"both"===x.toolbar[1]?(F.ubDiv=document.createElement("div"),$(F.uDiv).addClass(Qt).attr("id","t_"+x.id).insertBefore(F.hDiv),$(F.ubDiv).addClass(y("toolbarBottom","ui-userdata")).attr("id","tb_"+x.id).insertAfter(F.hDiv),Pt&&$(F.ubDiv).hide()):$(F.uDiv).width(F.width).addClass(Qt).attr("id","t_"+x.id),Pt&&$(F.uDiv).hide()}if("string"==typeof x.datatype&&(x.datatype=x.datatype.toLowerCase()),x.toppager?(x.toppager=x.id+"_toppager",F.topDiv=$("<div id='"+x.toppager+"'></div>")[0],$(F.topDiv).addClass(y("pager.pager","ui-jqgrid-toppager"+(x.caption?"":" "+Gt))).css({width:F.width+"px"}).insertBefore(F.hDiv),J.call(n,x.toppager,"_t"),x.toppager="#"+jqID(x.toppager)):""!==x.pager||x.scroll||(x.rowNum=x.maxRowNum),x.footerrow&&(F.sDiv=$("<div class='ui-jqgrid-sdiv'></div>")[0],Bt=$("<div class='ui-jqgrid-hbox"+("rtl"===O?"-rtl":"")+"'></div>"),$(F.sDiv).append(Bt).width(F.width).insertAfter(F.hDiv),$(Bt).append(Nt),F.footers=$(".ui-jqgrid-ftable",F.sDiv)[0].rows[0].cells,x.rownumbers&&(F.footers[0].className=y("rowNum","jqgrid-rownum")),Pt&&$(F.sDiv).hide()),Bt=null,x.caption){var Xt=x.datatype;!0===x.hidegrid&&($(".ui-jqgrid-titlebar-close",F.cDiv).click((function(t){var e=".ui-jqgrid-bdiv,.ui-jqgrid-hdiv,.ui-jqgrid-pager,.ui-jqgrid-sdiv",i=this;!0===x.toolbar[0]&&("both"===x.toolbar[1]&&(e+=",#"+jqID($(F.ubDiv).attr("id"))),e+=",#"+jqID($(F.uDiv).attr("id")));var r=$(e,x.gView).length;return x.toppager&&(e+=","+x.toppager),"visible"===x.gridstate?$(e,x.gBox).slideUp("fast",(function(){0==--r&&($("span",i).removeClass(Wt).addClass(Vt),x.gridstate="hidden",$(x.gBox).hasClass("ui-resizable")&&$(".ui-resizable-handle",x.gBox).hide(),$(F.cDiv).addClass(Ht),Pt||feedback.call(n,"onHeaderClick",x.gridstate,t))})):"hidden"===x.gridstate&&($(F.cDiv).removeClass(Ht),$(e,x.gBox).slideDown("fast",(function(){0==--r&&($("span",i).removeClass(Vt).addClass(Wt),Pt&&(x.datatype=Xt,Q.call(n),Pt=!1),x.gridstate="visible",$(x.gBox).hasClass("ui-resizable")&&$(".ui-resizable-handle",x.gBox).show(),Pt||feedback.call(n,"onHeaderClick",x.gridstate,t))}))),!1})),Pt&&(x.datatype="local",$(".ui-jqgrid-titlebar-close",F.cDiv).trigger("click")))}else $(F.cDiv).hide(),$(F.cDiv).nextAll("div:visible").first().addClass("ui-corner-top");$(F.hDiv).after(F.bDiv),F.eDiv=$("<div class='"+y("gridError","ui-jqgrid-errorbar ui-jqgrid-errorbar-"+O)+"' style='display:none;'><span class='"+y("gridErrorText","ui-jqgrid-error")+"'></span></div>")[0],$(F.hDiv).after(F.eDiv),$(N).click(I).dblclick((function(t){var e=$(x.rs),r=e.offset(),a=e.data("idx"),s=e.data("delta"),l=x.colModel[a],d=$(this).data("pageX")||e.data("pageX");if(null==d||null==l)return!1;var c=String(d).split(";"),u=parseFloat(c[0]),h=parseFloat(c[1]);return 2===c.length&&(5<Math.abs(u-h)||5<Math.abs(t.pageX-u)||5<Math.abs(t.pageX-h))||(feedback.call(n,"resizeDblClick",a,l)&&r.left-1<=t.pageX+s&&t.pageX+s<=r.left+e.outerWidth()+1&&l.autoResizable&&i.autoResizeColumn.call(o,a),feedback.call(n,"afterResizeDblClick",{iCol:a,cm:l,cmName:l.name})),!1})),x.pager||$(F.cDiv).nextAll("div:visible").filter(":last").addClass(Ht),$(".ui-jqgrid-labels",F.hDiv).on("selectstart",(function(){return!1})),n.formatCol=M,n.sortData=tt,n.updatepager=function(t,e){var i,r,n,o,a,s,l,d,c=this,u=$(c),h=c.grid,p=x.pager||"",f=x.pager?"_"+x.pager.substr(1):"",g=h.bDiv,m=$.fmatter?$.fmatter.NumberFormat:null,v=x.toppager?"_"+x.toppager.substr(1):"",b=y("states.hover"),w=y("states.disabled");if((n=parseInt(x.page,10)-1)<0&&(n=0),a=(n*=parseInt(x.rowNum,10))+x.reccount,x.scroll){var A=$(getGridComponent(COMPONENT_NAMES.BODY_TABLE,g)[0].rows).slice(1);n=a-A.length,x.reccount=A.length;var j=A.outerHeight()||h.prevRowHeight;if(j){var k=n*j,D=jgrid.fixMaxHeightOfDiv.call(c,parseInt(x.records,10)*j);$(g).children("div").first().css({height:D+"px"}).children("div").first().css({height:k+"px",display:""}),0===g.scrollTop&&1<x.page&&(g.scrollTop=x.rowNum*(x.page-1)*j)}g.scrollLeft=h.hDiv.scrollLeft}if(p+=x.toppager?(p?",":"")+x.toppager:""){if(l=_("formatter.integer")||{},i=S(x.page),r=S(x.lastpage),$(".selbox",p).prop("disabled",!1),!0===x.pginput){var q=$(".ui-pg-input",p),I=String(x.page).length;q.val(x.page),q.each((function(){var t=parseInt($(this).attr("size"),10);0<t&&t<I&&$(this).attr("size",I)})),d=x.toppager?"#sp_1"+f+",#sp_1"+v:"#sp_1"+f,$(d).html($.fmatter?m(x.lastpage,l):x.lastpage).closest(".ui-pg-table").each((function(){V.call(c,$(this))}))}x.viewrecords&&(0===x.reccount?$(".ui-paging-info",p).html(C("emptyrecords")):(o=n+1,s=x.records,$.fmatter&&(o=m(o,l),a=m(a,l),s=m(s,l)),$(".ui-paging-info",p).html(jgrid.format(C("recordtext"),o,a,s)))),!0===x.pgbuttons&&(r<=0&&(i=0),i<=0&&(i=r=0),1===i||0===i?($("#first"+f+", #prev"+f).addClass(w).removeClass(b),x.toppager&&$("#first_t"+v+", #prev_t"+v).addClass(w).removeClass(b)):($("#first"+f+", #prev"+f).removeClass(w),x.toppager&&$("#first_t"+v+", #prev_t"+v).removeClass(w)),i===r||0===i?($("#next"+f+", #last"+f).addClass(w).removeClass(b),x.toppager&&$("#next_t"+v+", #last_t"+v).addClass(w).removeClass(b)):($("#next"+f+", #last"+f).removeClass(w),x.toppager&&$("#next_t"+v+", #last_t"+v).removeClass(w)))}!0===t&&!0===x.rownumbers&&$(">td.jqgrid-rownum",c.rows).each((function(t){$(this).html(n+1+t)})),e&&x.jqgdnd&&u.jqGrid("gridDnD","updateDnD"),feedback.call(c,"gridComplete"),u.triggerHandler("jqGridAfterGridComplete")},n.refreshIndex=H,n.addItemDataToColumnIndex=B,n.removeItemDataFromColumnIndex=function(t){var e,i,r,n=x.dataIndexById[t];if(null!=n){for(e in n)if(n.hasOwnProperty(e))for(r in i=n[e])i.hasOwnProperty(r)&&(delete x.indexByColumnData[e][r][t],$.isEmptyObject(x.indexByColumnData[e][r])&&delete x.indexByColumnData[e][r]);delete x.dataIndexById[t]}},n.generateValueFromColumnIndex=function(t,e,i){var r,n,o=$(this).jqGrid("getUniqueValueFromColumnIndex",t),a="";if(null!=o)for(i=i||";",e=e||":",r=0,n=o.length;r<n;r++)""!==a&&(a+=i||";"),a+=o[r]+(e||":")+o[r];return a},n.setHeadCheckBox=X,n.fixScrollOffsetAndhBoxPadding=A,n.constructTr=function(t,e,r,n,o,s){var l,d="-1",c="",u=e?"display:none;":"",h=y("gridRow","jqgrow ui-row-"+x.direction)+(r?" "+r:"")+(s?" "+y("states.select"):""),p=$(this).triggerHandler("jqGridRowAttr",[n,o,t]);if("object"!=typeof p&&(p=a(x.rowattr)?x.rowattr.call(this,n,o,t):"string"==typeof x.rowattr&&null!=jgrid.rowattr&&a(jgrid.rowattr[x.rowattr])?jgrid.rowattr[x.rowattr].call(this,n,o,t):{}),null!=p&&!$.isEmptyObject(p)){p.hasOwnProperty("id")&&(t=p.id,delete p.id),p.hasOwnProperty("tabindex")&&(d=p.tabindex,delete p.tabindex),p.hasOwnProperty("style")&&(u+=p.style,delete p.style),p.hasOwnProperty("class")&&(h+=" "+p.class,delete p.class);try{delete p.role}catch(t){}for(l in p)p.hasOwnProperty(l)&&(c+=" "+l+"="+p[l])}if(x.treeGrid&&parseInt(n[x.treeReader.level_field],10)!==parseInt(x.tree_root_level,10)){var f=i.getNodeParent.call($(this),n);!f||!f.hasOwnProperty(x.treeReader.expanded_field)||f[x.treeReader.expanded_field]||e||(u+="display:none;")}return"<tr role='row' id='"+t+"' tabindex='"+d+"' class='"+h+"'"+(""===u?"":" style='"+u+"'")+c+">"},n.formatter=function(t,e,i,r,o,s){var l,d,c=x.colModel[i];if(void 0!==c.formatter){var u={rowId:t=""!==String(x.idPrefix)?(d=t,stripPref(x.idPrefix,d)):t,colModel:c,gid:x.id,pos:i,rowData:s||r};l=a(c.cellBuilder)?c.cellBuilder.call(n,e,u,r,o):a(c.formatter)?c.formatter.call(n,e,u,r,o):$.fmatter?$.fn.fmatter.call(n,c.formatter,e,u,r,o):z(e)}else l=z(e);if(l=c.autoResizable&&"actions"!==c.formatter?"<span class='"+x.autoResizing.wrapperClassName+"'>"+l+"</span>":l,x.treeGrid&&"edit"!==o&&(null==x.ExpandColumn&&0===i||x.ExpandColumn===c.name)){null==s&&(s=x.data[x._index[t]]);var h=parseInt(s[x.treeReader.level_field]||0,10),p=0===parseInt(x.tree_root_level,10)?h:h-1,f=s[x.treeReader.leaf_field],g=s[x.treeReader.expanded_field],m=s[x.treeReader.icon_field],v=f?(null!=m&&""!==m?m:x.treeIcons.leaf)+" tree-leaf":g?x.treeIcons.minus+" tree-minus":x.treeIcons.plus+" tree-plus";if(!f&&m&&"string"==typeof m){var b=m.split(",");2===b.length&&(v=g?b[0]:b[1])}l="<div class='tree-wrap' style='width:"+18*(p+1)+"px;'><div class='"+mergeCssClasses(x.treeIcons.commonIconClass,v,"treeclick")+"' style='"+(!0===x.ExpandColClick?"cursor:pointer;":"")+("rtl"===x.direction?"margin-right:":"margin-left:")+18*p+"px;'></div></div><span class='cell-wrapper"+(f?"leaf":"")+"'"+(x.ExpandColClick?" style='cursor:pointer;'":"")+">"+l+"</span>"}return l},l(F,{populate:Q,emptyRows:function(t,e){var i=F.bDiv,r=null!=F.fbDiv?F.fbDiv.children(".ui-jqgrid-btable")[0]:null,n=function(t){if(t){var e=t.rows,i=e[0];if(x.deepempty)e&&$(e).slice(1).remove();else if(x.quickEmpty)if("quickest"===x.quickEmpty)t.replaceChild(document.createElement("tbody"),t.tBodies[0]),t.firstChild.appendChild(i);else for(;1<e.length;)t.deleteRow(e.length-1);else $(t.firstChild).empty().append(i)}};$(this).off(".jqGridFormatter"),n(this),n(r),t&&x.scroll&&($(i.firstChild).css({height:"auto"}),$(i.firstChild.firstChild).css({height:0,display:"none"}),0!==i.scrollTop&&(i.scrollTop=0)),!0===e&&x.treeGrid&&(clearArray(x.data),clearArray(x.lastSelectedData),x._index={},x.dataIndexById={},x.indexByColumnData={}),x.rowIndexes={},x.iRow=-1,x.iCol=-1},beginReq:Y,endReq:U}),n.addXmlData=W,n.addJSONData=W,n.rebuildRowIndexes=q,n.grid.cols=n.rows[0].cells,feedback.call(n,"onInitGrid"),x.treeGrid&&"local"===x.datatype&&null!=x.data&&0<x.data.length&&(x.datatype="jsonstring",x.datastr=x.data,x.data=[]),Q.call(n),x.hiddengrid=!1}else f(_("errors.model"))}else f("Element is not a table!")}}))};var base=$.fn.jqGrid;jgrid.extend({getGridRes:function(t){var e=this[0];if(!e||!e.grid||!e.p)return null;var i=jgrid.getRes(locales[e.p.locale],t)||jgrid.getRes(locales["en-US"],t),r=jgrid.getRes(jgrid,t);return"object"!=typeof i||null===i||$.isArray(i)?void 0!==r?r:i:$.extend(!0,{},i,r||{})},getGuiStyles:function(t,e){var i=this instanceof $&&0<this.length?this[0]:this;if(!i||!i.grid||!i.p)return"";var r,n=i.p.guiStyle||jgrid.defaults.guiStyle||"jQueryUI",o=jgrid.getRes(jgrid.guiStyles[n],t);return void 0===o&&"string"==typeof(r=jgrid.getRes(jgrid.guiStyles[n],"baseGuiStyle"))&&(o=jgrid.getRes(jgrid.guiStyles[r],t)),jgrid.mergeCssClasses(o||"",e||"")},isBootstrapGuiStyle:function(){return 0<=$.inArray("ui-jqgrid-bootstrap",$(this).jqGrid("getGuiStyles","gBox").split(" "))},displayErrorMessage:function(t){var e=this instanceof $&&0<this.length?this[0]:this;if(e&&e.grid&&e.p&&t){var i=$(e.grid.eDiv),r=i.children(".ui-jqgrid-error");r.html(t),i.show(),e.p.errorDisplayTimeout&&setTimeout((function(){r.empty(),i.hide()}),e.p.errorDisplayTimeout)}},getIconRes:function(t){var e=this instanceof $&&0<this.length?this[0]:this;if(!e||!e.p)return"";var i=e.p,r=jgrid.icons[i.iconSet],n=function(t,e,i){var r,n,o,a=e.split("."),s=a.length,l=[];if(null==(t="string"==typeof t?jgrid.icons[t]:t))return"";for((r=t).common?l.push(r.common):i&&i.common&&l.push(i.common),o=0;o<s&&(n=a[o]);o++){if(o+1===s&&r.ignoreParents&&(l=[]),void 0===(r=r[n])){if("common"===n)break;return""}if("string"==typeof r){l.push(r);break}null!=r&&r.common&&l.push(r.common)}return jgrid.mergeCssClasses.apply(this,l)};if(null==r)return"";var o=n(i.iconSet,t);return""===o&&null!=r.baseIconSet&&(o=n(r.baseIconSet,t,jgrid.icons[i.iconSet])),o||""},isInCommonIconClass:function(t){var e=this instanceof $&&0<this.length?this[0]:this;if(!e||!e.p)return"";var i=e.p,r=jgrid.icons[i.iconSet];if(null==r)return!1;var n=r.common;if(void 0===n){if(null==r.baseIconSet)return!1;if(null==(r=jgrid.icons[r.baseIconSet]))return!1;n=r.common}return"string"==typeof n&&0<=$.inArray(t,n.split(" "))},getUniqueValueFromColumnIndex:function(t){var e=this[0];if(!e||!e.grid)return null;var i,r=[],n="",o=e.p.indexByColumnData[t];if(null!=o){for(n in o)if(o.hasOwnProperty(n)){for(i in o[n])if(o[n].hasOwnProperty(i)){n=String(o[n][i]);break}r.push(n)}e.p.ignoreCase?void 0===String.prototype.localeCompare?r.sort((function(t,e){var i=t.toLowerCase(),r=e.toLowerCase();return i===r?0:r<i?1:-1})):r.sort((function(t,e){return String(t).toLowerCase().localeCompare(String(e).toLowerCase())})):r.sort()}return r},generateDatalistFromColumnIndex:function(t){if(!this[0]||!this[0].grid)return null;var e,i,r=this.jqGrid("getUniqueValueFromColumnIndex",t),n=$("<datalist></datalist>");if(!(null!=r&&0<r.length))return $();for(e=0,i=r.length;e<i;e++)n.append($("<option></option>").attr("value",r[e]));return n},getGridParam:function(t){var e=this[0];return e&&e.grid?t?void 0!==e.p[t]?e.p[t]:null:e.p:null},setGridParam:function(t,e){return this.each((function(){null==e&&(e=!1),this.grid&&"object"==typeof t&&(!0===e?$.extend(this.p,t):$.extend(!0,this.p,t))}))},abortAjaxRequest:function(){return this.each((function(){null!=this.p.jqXhr&&this.p.jqXhr.abort(),this.grid.endReq.call(this)}))},getGridRowById:function(t){if(null==t)return null;var e,i=t.toString();return this.each((function(){var r,n,o=this.rows;if(null!=this.p.rowIndexes&&(n=o[this.p.rowIndexes[i]])&&n.id===i&&(e=n),!e)try{for(r=o.length;r--;)if(n=o[r],i===n.id){e=n;break}}catch(r){e=0<(e=$(this.grid.bDiv).find("#"+jqID(t))).length?e[0]:null}})),e},getDataIDs:function(){var t=[];return this.each((function(){var e,i,r=this.rows,n=r.length;if(n&&0<n)for(e=0;e<n;e++)i=r[e],$(i).hasClass("jqgrow")&&t.push(i.id)})),t},setSelection:function(t,e,i){return this.each((function(){var r,n,o,a,s,l,d,c,u,h,p,f,g,m,v=this,b=$(v),w=v.p,y=base.getGuiStyles,x=base.getGridRowById,_=y.call(b,"states.select"),C=y.call(b,"states.disabled"),A=v.grid.fbRows,j=function(t,e){var i=e?"addClass":"removeClass",r=w.iColByName.cb,n=e?{"aria-selected":"true",tabindex:"0"}:{"aria-selected":"false",tabindex:"-1"},o=function(t){$(t)[i](_).attr(n),void 0!==r&&$(t.cells[r]).children("input.cbox").prop("checked",e)};o(t),A&&o(A[t.rowIndex])};void 0!==t&&(e=!1!==e,null!=i&&0<(d=$(i.target).closest("tr.jqgrow")).length&&(n=d[0],A&&(n=v.rows[n.rowIndex])),null==n&&(n=x.call(b,t)),!n||!n.className||-1<n.className.indexOf(C)||(!0===w.scrollrows&&null!=(o=x.call(b,t))&&0<=(o=o.rowIndex)&&(u=v.rows[o],(p=(h=v.grid.bDiv).clientHeight)+(f=h.scrollTop)<=(g=$(u).position().top)+(m=u.clientHeight)?h.scrollTop=g-(p+f)+m+f:g<p+f&&g<f&&(h.scrollTop=g)),w.multiselect?(v.setHeadCheckBox(!1),w.selrow=n.id,c=jgrid.detectRowEditing.call(v,n.id),-1===(a=$.inArray(w.selrow,w.selarrrow))?(r=!0,w.selarrrow.push(w.selrow)):null===c||"inlineEditing"!==c.mode&&$(i.target).hasClass("cbox")?(r=!1,w.selarrrow.splice(a,1),s=w.selarrrow[0],w.selrow=void 0===s?null:s):r=!0,"ui-subgrid"!==n.className&&j(n,r),e&&feedback.call(v,"onSelectRow",n.id,r,i||{})):"ui-subgrid"!==n.className&&(w.selrow!==n.id?(null!==w.selrow&&(l=x.call(b,w.selrow))&&j(l,!1),j(n,!0),r=!0):r=!1,w.selrow=n.id,e&&feedback.call(v,"onSelectRow",n.id,r,i||{}))))}))},resetSelection:function(t){return this.each((function(){var e,i=this,r=$(this),n=i.p,o=base.getGuiStyles,a=base.getGridRowById,s=o.call(r,"states.select"),l="edit-cell "+s,d="selected-row "+o.call(r,"states.hover"),c=n.iColByName.cb,u=void 0!==c,h=i.grid.fbRows,p=function(t){var e,i="removeClass",r={"aria-selected":"false",tabindex:"-1"};$(t)[i](s).attr(r),u&&$(t.cells[c]).children("input.cbox").prop("checked",!1),h&&(e=h[t.rowIndex],$(e)[i](s).attr(r),u&&$(e.cells[c]).children("input.cbox").prop("checked",!1))};if(void 0!==t){if(e=a.call(r,t),p(e),u){i.setHeadCheckBox(!1);var f=$.inArray(t,n.selarrrow);-1!==f&&n.selarrrow.splice(f,1)}}else n.multiselect?($(i.rows).each((function(){var t=$.inArray(this.id,n.selarrrow);-1!==t&&(p(this),n.selarrrow.splice(t,1))})),i.setHeadCheckBox(!1),n.multiPageSelection||clearArray(n.selarrrow),n.selrow=null):n.selrow&&(e=a.call(r,n.selrow),p(e),n.selrow=null);!0===n.cellEdit&&0<=parseInt(n.iCol,10)&&0<=parseInt(n.iRow,10)&&(null!=(e=i.rows[n.iRow])&&($(e.cells[n.iCol]).removeClass(l),$(e).removeClass(d)),h&&null!=(e=h[n.iRow])&&($(e.cells[n.iCol]).removeClass(l),$(e).removeClass(d)))}))},isCellEditing:function(t,e,i){var r=this[0],n=jgrid.detectRowEditing.call(r,t);if(null!=n&&("inlineEditing"===n.mode||"cellEditing"===n.mode&&n.savedRow.ic===e)){e=isNaN(e)?r.p.iColByName[e]:parseInt(e,10);var o=null!=i&&i.id===t?i:base.getGridRowById.call($(r),t),a=r.p.colModel[e],s=a.editable;if($.isFunction(s)&&(s=s.call(r,{rowid:t,id:stripPref(r.p.idPrefix,t),iCol:e,iRow:o.rowIndex,cmName:a.name,cm:a,mode:n.mode,td:o.cells[e],tr:o,dataElement:jgrid.getDataFieldOfCell.call(r,o,e)[0]})),!0===s)return!0}return!1},getRowData:function(t,e){var i,r={};return"object"==typeof t&&(e=t,t=void 0),e=e||{},this.each((function(){var n,o,a,s,l,d,c,u=this,h=u.p,p=!1,f=1,g=u.rows;if(void 0===t)p=!0,i=[],f=g.length;else if(!(n=base.getGridRowById.call($(u),t)))return r;for(o=0;o<f;o++)if(p&&(n=g[o]),$(n).hasClass("jqgrow")){for(jgrid.detectRowEditing.call(u,t),s=$(n).find("td[role=gridcell]"),a=0;a<s.length;a++)if(d=(l=h.colModel[a]).name,$.inArray(d,h.reservedColumnNames)<0&&"actions"!==l.formatter&&(!e.skipHidden||!l.hidden))if(c=s[a],base.isCellEditing.call($(u),t,a,n))r[d]=jgrid.getEditedValue.call(u,jgrid.getDataFieldOfCell.call(u,n,a),l,{},l.editable);else if(!0===h.treeGrid&&d===h.ExpandColumn)r[d]=htmlDecode($("span",c).first().html());else try{r[d]=$.unformat.call(u,c,{rowId:t,colModel:l},a)}catch(n){r[d]=htmlDecode($(c).html())}!e.includeId||!1!==h.keyName&&null!=r[h.keyName]||(r[h.prmNames.id]=stripPref(h.idPrefix,n.id)),p&&(i.push(r),r={})}})),i||r},delRowData:function(t){var e=!1;return this.each((function(){var i,r,n,o=this,a=o.p,s=$.jgrid.detectRowEditing.call(o,t);if(!(i=base.getGridRowById.call($(o),t)))return!1;if(a.subGrid&&(n=$(i).next()).hasClass("ui-subgrid")&&n.remove(),null!=s)try{"inlineEditing"===s.mode&&null!=base.restoreRow?base.restoreRow.call($(o),t):"cellEditing"===s.mode&&null!=base.restoreCell&&base.restoreCell.call($(o),s.savedRow.id,s.savedRow.ic)}catch(i){}if(i.rowIndex===a.iRow&&(a.iRow=-1,a.iCol=-1),$(i).remove(),a.records--,a.reccount--,o.updatepager(!0,!1),e=!0,a.multiselect&&-1!==(r=$.inArray(t,a.selarrrow))&&a.selarrrow.splice(r,1),a.multiselect&&0<a.selarrrow.length?a.selrow=a.selarrrow[a.selarrrow.length-1]:a.selrow===t&&(a.selrow=null),"local"===a.datatype){var l=stripPref(a.idPrefix,t),d=a._index[l];void 0!==d&&(o.removeItemDataFromColumnIndex(l),a.data.splice(d,1),o.refreshIndex())}if(o.rebuildRowIndexes(),!0===a.altRows&&e&&!$(o).jqGrid("isBootstrapGuiStyle")){var c=a.altclass,u=o.grid.fbRows;$(o.rows).each((function(t){var e=$(this);u&&(e=e.add(u[this.rowIndex])),e[t%2==0?"addClass":"removeClass"](c)}))}feedback.call(o,"afterDelRow",t)})),e},setRowData:function(t,e,i){var r=!0;return this.each((function(){var n,o=this,a=o.p,s=typeof i,l={};if(!o.grid)return!1;if(!(n=base.getGridRowById.call($(o),t)))return!1;if(e)try{var d,c=stripPref(a.idPrefix,t),u=a._index[c],h={},p=null!=u?a.data[u]:void 0;if($(a.colModel).each((function(t){var i=this,r=i.name,n=getAccessor(e,r);void 0!==n&&("local"===a.datatype&&null!=p&&(n=convertOnSaveLocally.call(o,n,i,p[r],c,p,t),$.isFunction(i.saveLocally)?i.saveLocally.call(o,{newValue:n,newItem:l,oldItem:p,id:c,cm:i,cmName:r,iCol:t}):l[r]=n),h[r]=n)})),$(a.colModel).each((function(i){var r,s=this.name,d=getAccessor(e,s),c=$(n.cells[i]);if(void 0!==d){"local"===a.datatype&&null!=p&&(d=l[s]),r=this.title?{title:d}:{},d=o.formatter(t,d,i,e,"edit",h),"select"===this.formatter&&(r=this.title?{title:stripHtml(d)}:{});var u=c;!0===a.treeGrid&&s===a.ExpandColumn&&(u=u.children("span.cell-wrapperleaf,span.cell-wrapper").first()),u.html(d),c.attr(r),a.frozenColumns&&(u=$(o.grid.fbRows[n.rowIndex].cells[i]),!0===a.treeGrid&&s===a.ExpandColumn&&(u=u.children("span.cell-wrapperleaf,span.cell-wrapper").first()),u.html(d).attr(r))}})),"local"===a.datatype){if(a.treeGrid)for(d in a.treeReader)a.treeReader.hasOwnProperty(d)&&delete l[a.treeReader[d]];void 0!==p&&(a.data[u]=$.extend(!0,p,l),o.removeItemDataFromColumnIndex(c),o.addItemDataToColumnIndex(a.data[u],c))}feedback.call(o,"afterSetRow",{rowid:t,inputData:e,iData:u,iRow:n.rowIndex,tr:n,localData:l,cssProp:i})}catch(s){r=!1}r&&("string"===s?$(n).addClass(i):null!==i&&"object"===s&&$(n).css(i))})),r},changeRowid:function(t,e){return this.each((function(){var i,r,n,o,a,s,l,d=this,c=$(d),u=d.p;if(d.grid&&u&&t!==e&&(o=c.jqGrid("getGridRowById",t))&&null==c.jqGrid("getGridRowById",e)){var h=jgrid.stripPref(u.idPrefix,t),p=jgrid.stripPref(u.idPrefix,e),f=!1===u.keyName?u.prmNames.id:u.keyName,g=function(){var t=this.id,e=t.length-h.length;0<e&&t.substr(e)===h&&$(this).attr("id",t.substr(0,e)+p)};for(0<=u.iColByName[f]&&c.jqGrid("setCell",t,f,p),"local"===u.datatype&&void 0!==u._index[h]&&(u._index[p]=u._index[h],i=u.data[u._index[h]],delete u._index[h],i.hasOwnProperty(f)&&(i[f]=p)),u.rowIndexes[e]=o.rowIndex,delete u.rowIndexes[t],(a=null==d.grid.fbRows?$(o):$(o).add(d.grid.fbRows[o.rowIndex])).attr("id",e),u.selrow===t&&(u.selrow=e),$.isArray(u.selarrrow)&&0<=(r=$.inArray(t,u.selarrrow))&&(u.selarrrow[r]=e),u.multiselect&&(n="jqg_"+u.id+"_"+e,a.find("input.cbox").attr("id",n).attr("name",n)),r=0;r<u.colModel.length;r++)"actions"===(s=u.colModel[r]).formatter?a.find(".ui-jqgrid-actions .ui-pg-div").each(g):("showlink"===s.formatter||null!=s.unformat&&null!=s.formatter)&&(l=c.jqGrid("getCell",e,r),c.jqGrid("setCell",e,r,l,!1,!1,!0));feedback.call(d,"afterChangeRowid",{rowid:e,oldRowid:t,iRow:o.rowIndex,tr:o})}}))},addRowData:function(t,e,i,r){$.inArray(i,["first","last","before","after","afterSelected","beforeSelected"])<0&&(i="last");var n,o,a,s,l,d,c,u,h,p,f,g=!1;return e&&($.isArray(e)?(d=!0,c=t):d=!(e=[e]),this.each((function(){var m,v,b=this,w=b.p,y=e.length,x=$(b),_=b.rows,C=0,A=base.getGridRowById,j=w.colModel,k=w.additionalProperties;for(d||(void 0!==t?t=String(t):(t=randId(),!1!==w.keyName&&(c=w.keyName,void 0!==e[0][c]&&(t=e[0][c])))),u=w.altclass;C<y;){if(h=e[C],o=[],d)try{void 0===(t=h[c])&&(t=randId())}catch(m){t=randId()}for(f=jgrid.stripPref(w.idPrefix,t),m={},s=0;s<j.length;s++)p=j[s],"rn"!==(n=p.name)&&"cb"!==n&&"subgrid"!==n&&(l=convertOnSaveLocally.call(b,h[n],p,void 0,f,{},s),$.isFunction(p.saveLocally)?p.saveLocally.call(b,{newValue:l,newItem:m,oldItem:{},id:f,rowid:t,cm:p,cmName:n,iCol:s}):void 0!==l&&(m[n]=l));for(s=0;s<k.length;s++)"object"==typeof(n=k[s])&&n.hasOwnProperty("name")&&(n=n.name),void 0!==(l=getAccessor(h,n))&&(m[n]=l);if("local"===w.datatype&&(m[w.localReader.id]=f,w._index[f]=w.data.length,w.data.push(m),b.addItemDataToColumnIndex(m,f)),v=w.grouping,w.grouping=!1,o=jgrid.parseDataToHtml.call(b,1,[t],[h]),w.grouping=v,o=o.join(""),0===_.length)$(b.tBodies[0]).append(o);else switch("afterSelected"!==i&&"beforeSelected"!==i||(void 0===r&&null!==w.selrow?(r=w.selrow,i="afterSelected"===i?"after":"before"):i="afterSelected"===i?"last":"first"),i){case"last":$(_[_.length-1]).after(o),a=_.length-1;break;case"first":$(_[0]).after(o),a=1;break;case"after":(a=A.call(x,r))&&($(_[a.rowIndex+1]).hasClass("ui-subgrid")?($(_[a.rowIndex+1]).after(o),a=a.rowIndex+2):($(a).after(o),a=a.rowIndex+1));break;case"before":(a=A.call(x,r))&&($(a).before(o),a=a.rowIndex-1)}!0===w.subGrid&&base.addSubGrid.call(x,w.iColByName.subgrid,a),w.records++,w.reccount++,0===w.lastpage&&(w.lastpage=1),feedback.call(b,"afterAddRow",{rowid:t,inputData:e,position:i,srcRowid:r,iRow:a,tr:_[a],localData:m,iData:w.data.length-1}),C++}!0!==w.altRows||d||x.jqGrid("isBootstrapGuiStyle")||("last"===i?(_.length-1)%2==0&&$(_[_.length-1]).addClass(u):$(_).each((function(t){t%2==1?$(this).addClass(u):$(this).removeClass(u)}))),b.rebuildRowIndexes(),b.updatepager(!0,!0),g=!0}))),g},footerData:function(t,e,i){var r=!1,n={};return null==t&&(t="get"),"boolean"!=typeof i&&(i=!0),t=t.toLowerCase(),this.each((function(){var o,a,s,l,d=this,c=d.p;if(!d.grid||!c.footerrow)return!1;if("set"===t&&function(t){var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(e))return!1;r=!0;var u=$(d.grid.sDiv).children(".ui-jqgrid-hbox"+("rtl"===c.direction?"-rtl":"")).children(".ui-jqgrid-ftable")[0];if(null==u||null==u.rows)return!1;var h=u.rows[0].cells,p=c.colModel,f=null==d.grid.fsDiv?{}:d.grid.fsDiv.children(".ui-jqgrid-ftable")[0].rows[0].cells;if("get"===t)for(l=0;l<p.length;l++)s=p[l].name,$.inArray(s,c.reservedColumnNames)<0&&(!1!==e?(o=$(h[l]).text(),$.trim(o)&&(n[s]=o)):n[s]=$(h[l]).html());else if("set"===t)for(s in e)l=c.iColByName[s],e.hasOwnProperty(s)&&void 0!==l&&(o=i?d.formatter("",e[s],l,e,"edit"):e[s],(a=$(h[l]).add(f[l])).html(o),p[l].title&&a.attr({title:stripHtml(o)}))})),"get"===t?n:r},resetColumnResizerHeight:function(){return this.each((function(){if($.jgrid.msie){var t,e,i,r,n=this.grid.headers;for(i=0;i<n.length;i++)(r=(t=$(n[i].el)).height())&&0<(e=t.children(".ui-jqgrid-resize")).length&&.5<Math.abs(r-e.height())&&t.children(".ui-jqgrid-resize").height(r)}}))},rotateColumnHeaders:function(t,e){return this.each((function(){var i,r,n,o,a,s,l,d,c,u,h,p,f,g,m,v,b=$(this),w=this.p,y=w.frozenColumns&&$.isFunction(base.getNumberOfFrozenColumns)?b.jqGrid("getNumberOfFrozenColumns"):0;for($.isArray(t)||(t=[t]),i=0;i<t.length;i++)s=t[i],0<=(r=isNaN(s)?w.iColByName[s]:parseInt(s,10))&&(n=this.grid.headers[r].el,l=(o=r<y?$(n).add($(this.grid.fhDiv.find("#"+jqID(n.id)))):$(n)).children("div"),d=l.children("span.s-ico"),u=l.children("span.ui-jqgrid-sort-order"),(c=l.children("span."+w.autoResizing.wrapperClassName)).length<1&&(d.detach(),u.detach(),l.wrapInner("<span class='"+w.autoResizing.wrapperClassName+"'></span>"),c=l.children("span."+w.autoResizing.wrapperClassName),l.each((function(t){t<d.length&&$(this).append(d[t]),t<u.length&&$(this).append(u[t])}))),h=d.outerWidth(!0),p=c.outerWidth(),m=parseFloat(o.css("padding-top")||0),v=parseFloat(o.css("padding-bottom")||0),f=parseFloat(o.css("padding-left")||0),g=parseFloat(o.css("padding-right")||0),w.showSortOrder&&(h+=.5*h),a=void 0===e||0===e?p+h+f+g:e,o.height(a),o.css({paddingTop:g+"px",paddingBottom:f+"px",paddingLeft:m+"px",paddingRight:v+"px"}),l.css("min-width",a-f-g+"px").addClass("ui-jqgrid-rotate").css({bottom:0}),w.colModel[r].rotated=!0);b.jqGrid("resetColumnResizerHeight"),w.frozenColumns&&setTimeout((function(){b.triggerHandler("jqGridResetFrozenHeights",{header:{resizeDiv:!0,resizedRows:{iRowStart:0,iRowEnd:-1}},resizeFooter:!0,body:{resizeDiv:!0,resizedRows:{iRowStart:-1,iRowEnd:-1}}})}),0)}))},showHideCol:function(t,e,i){return this.each((function(){var r,n=this,o=$(n),a=n.grid,s=!1,l=n.p,d=jgrid.cell_width?0:l.cellLayout;if(a){"string"==typeof t&&(t=[t]),i=i||{};var c=""==(e="none"!==e&&!1!==e?"":"none"),u=l.groupHeader,h=u&&("object"==typeof u||$.isFunction(u));if(h&&!i.skipSetGroupHeaders&&base.destroyGroupHeader.call(o,!1),$(l.colModel).each((function(o){var u=function(t){var i,r,n,a,s,d,u,h,p,f,g,m,v,b,w;for(i=0,r=t.length;i<r;i++)a=(n=t[i]).cells[o],(!$(n).hasClass("jqgroup")||null!=a&&1===a.colSpan)&&(s=$(a),0===i&&$(n).hasClass("jqgfirstrow")?(s.css("height","1px"),s.css("display",e),s.css("height","0")):s.css("display",e),c&&null!=a&&"TH"===a.tagName.toUpperCase()&&s.hasClass("ui-th-column")&&(d=s.children("div")).hasClass("ui-jqgrid-rotate")&&(u=d.children("span.s-ico"),(h=d.children("span."+l.autoResizing.wrapperClassName)).outerHeight(),p=h.outerWidth(),u.outerHeight(),f=u.outerWidth(!0),0<h.length&&(m=parseFloat(s.css("padding-top")||0),v=parseFloat(s.css("padding-bottom")||0),b=parseFloat(s.css("padding-left")||0),w=parseFloat(s.css("padding-right")||0),l.showSortOrder&&(f+=.5*f),g=p+f+b+w,s.height(g),s.css({paddingTop:w+"px",paddingBottom:b+"px",paddingLeft:m+"px",paddingRight:v+"px"}),d.css("min-width",g-b-w+"px").css({bottom:0}))))};if(-1!==$.inArray(this.name,t)&&this.hidden===c){if(!0===l.frozenColumns&&!0===this.frozen&&!i.notSkipFrozen)return!0;u($(a.hDiv).find(".ui-jqgrid-htable>thead>tr")),!0===l.frozenColumns&&null!=a.fhDiv&&u($(a.fhDiv).find(".ui-jqgrid-htable>thead>tr")),u(n.rows),!0===l.frozenColumns&&null!=a.fbRows&&u(n.rows),l.footerrow&&(u($(a.sDiv).find("tr.footrow")),!0===l.frozenColumns&&null!=a.fsDiv&&u($(a.fsDiv).find("tr.footrow"))),r=parseInt(this.width,10),"none"===e?l.tblwidth-=r+d:l.tblwidth+=r+d,this.hidden=!c,s=!0,i.skipFeedback?(i.toReport=i.toReport||{},i.toReport[this.name]=c):feedback.call(n,"onShowHideCol",c,this.name,o,i)}})),!0===s){var p=l.autowidth||void 0!==l.widthOrg&&"auto"!==l.widthOrg&&"100%"!==l.widthOrg?l.width:l.tblwidth+parseInt(l.scrollOffset,10);i.skipSetGridWidth?i.newGridWidth=p:base.setGridWidth.call(o,p)}if(h&&!i.skipSetGroupHeaders)if(null!=l.pivotOptions&&null!=l.pivotOptions.colHeaders&&1<l.pivotOptions.colHeaders.length){var f,g=l.pivotOptions.colHeaders;for(f=0;f<g.length;f++)g[f]&&g[f].groupHeaders.length&&base.setGroupHeaders.call(o,g[f])}else base.setGroupHeaders.call(o,l.groupHeader)}}))},hideCol:function(t,e){return this.each((function(){base.showHideCol.call($(this),t,"none",e)}))},showCol:function(t,e){return this.each((function(){base.showHideCol.call($(this),t,"",e)}))},remapColumns:function(t,e,i){var r,n,o,a,s=this[0],l=s.p,d=s.grid,c=$.makeArray,u=!0===l.frozenColumns,h=this.jqGrid("getNumberOfFrozenColumns");function p(t){var e=t.length?c(t):$.extend({},t);$.each(a,(function(i){t[i]=e[this]}))}function f(t,e){(e?t.children(e):t.children()).each((function(){var t=this,e=c(t.cells);$.each(a,(function(i){var r=e[this],n=t.cells[i];null!=r&&null!=n&&r.cellIndex!==i&&r.parentNode.insertBefore(r,n)}))}))}if(null!=d&&null!=l){for(a=function(){var e,i=[],r=[],n=t.length;for(e=0;e<n;e++)u&&t[e]<h?i.push(t[e]):r.push(t[e]);return i.concat(r)}(),p(l.colModel),p(l.colNames),p(d.headers),o=$(d.hDiv).children("div").children("table.ui-jqgrid-htable").children("thead"),u&&null!=d.fhDiv&&(o=o.add(d.fhDiv.children("table.ui-jqgrid-htable").children("thead"))),f(o,i&&":not(.ui-jqgrid-labels)"),e&&(o=$(s.tBodies[0]),u&&null!=d.fbDiv&&(o=o.add(d.fbDiv.children("table.ui-jqgrid-btable").children("tbody").first())),f(o,"tr.jqgfirstrow,tr.jqgrow,tr.jqfoot")),l.footerrow&&(o=$(d.sDiv).children("div").children("table.ui-jqgrid-ftable").children("tbody").first(),u&&null!=d.fsDiv&&(o=o.add(d.fsDiv.children("table.ui-jqgrid-ftable").children("tbody").first())),f(o)),l.remapColumns&&(l.remapColumns.length?p(l.remapColumns):l.remapColumns=c(a)),l.lastsort=$.inArray(l.lastsort,a),l.iColByName={},r=0,n=l.colModel.length;r<n;r++)l.iColByName[l.colModel[r].name]=r;feedback.call(s,"onRemapColumns",a,e,i)}},remapColumnsByName:function(t,e,i){var r,n,o=this[0].p,a=[],s=t.slice(),l=$.inArray;for(o.subGrid&&l("subgrid",s)<0&&s.unshift("subgrid"),o.multiselect&&l("cb",s)<0&&s.unshift("cb"),o.rownumbers&&l("rn",s)<0&&s.unshift("rn"),r=0,n=s.length;r<n;r++)a.push(o.iColByName[s[r]]);return base.remapColumns.call(this,a,e,i),this},setGridWidth:function(t,e){return this.each((function(){var i,r,n,o,a=this,s=a.p,l=a.grid,d=0,c=0,u=!1,h=0,p=jgrid.isCellClassHidden,f=t;if(l&&null!=s){a.fixScrollOffsetAndhBoxPadding();var g,m,v,b,w=s.colModel,y=s.scrollOffset,x=jgrid.cell_width?0:s.cellLayout,_=l.headers,C=l.footers,A=l.bDiv,j=l.hDiv,k=l.sDiv,D=l.cols,q=$(j).find(">div>.ui-jqgrid-htable>thead>tr").first()[0].cells,I=function(t){l.width=s.width=t,$(s.gBox).css("width",t+"px"),$(s.gView).css("width",t+"px"),$(A).css("width",t+"px"),$(j).css("width",t+"px"),s.pager&&$(s.pager).css("width",t+"px"),s.toppager&&$(s.toppager).css("width",t+"px"),!0===s.toolbar[0]&&($(l.uDiv).css("width",t+"px"),"both"===s.toolbar[1]&&$(l.ubDiv).css("width",t+"px")),s.footerrow&&$(k).css("width",t+"px")};if("boolean"!=typeof e&&(e=s.shrinkToFit),!isNaN(f)){if(I(f=parseInt(f,10)),!1===e&&!0===s.forceFit&&(s.forceFit=!1),!0===e){if($.each(w,(function(){!1!==this.hidden||p(this.classes)||(i=this.widthOrg,d+=i+x,this.fixed?h+=this.width+x:c++)})),0===c)return;if(s.tblwidth=parseInt(d,10),n=f-x*c-h,isNaN(s.height)||(A.clientHeight<A.scrollHeight||1===a.rows.length)&&(u=!0,n-=y),(b=n/(s.tblwidth-x*c-h))<0)return;if(v=(d=0)<D.length,$.each(w,(function(t){!1!==this.hidden||p(this.classes)||this.fixed||(i=Math.round(this.widthOrg*b),this.width=i,d+=i,_[t].width=i,q[t].style.width=i+"px",s.footerrow&&(C[t].style.width=i+"px"),v&&(D[t].style.width=i+"px"),r=t)})),!r)return;o=0,u?f-h-(d+x*c)!==y&&(o=f-h-(d+x*c)-y):1!==Math.abs(f-h-(d+x*c))&&(o=f-h-(d+x*c)),(g=w[r]).width+=o,s.tblwidth=parseInt(d+o+x*c+h,10),s.tblwidth>f&&(m=s.tblwidth-parseInt(f,10),s.tblwidth=f,g.width=g.width-m),i=g.width,_[r].width=i,q[r].style.width=i+"px",v&&(D[r].style.width=i+"px"),s.footerrow&&(C[r].style.width=i+"px"),s.tblwidth+(u?y:0)<s.width&&I(s.tblwidth+(u?y:0)),A.offsetWidth>A.clientWidth&&(s.autowidth||void 0!==s.widthOrg&&"auto"!==s.widthOrg&&"100%"!==s.widthOrg||I(A.offsetWidth))}s.tblwidth&&(s.tblwidth=parseInt(s.tblwidth,10),f=s.tblwidth,j.scrollLeft=A.scrollLeft,m=Math.abs(f-s.width),s.shrinkToFit&&!e&&m<3&&0<m&&(f<s.width&&I(f),A.offsetWidth>A.clientWidth&&(s.autowidth||void 0!==s.widthOrg&&"auto"!==s.widthOrg&&"100%"!==s.widthOrg||I(A.offsetWidth)))),a.fixScrollOffsetAndhBoxPadding();var S={resizeDiv:!0,resizedRows:{iRowStart:e?0:-1,iRowEnd:-1}};$(a).triggerHandler("jqGridResetFrozenHeights",[{header:S,resizeFooter:!0,body:S}])}}}))},setGridHeight:function(t){return this.each((function(){var e=this,i=e.grid,r=e.p;if(i){var n=$(i.bDiv);n.css({height:t+(isNaN(t)?"":"px")}),!0===r.frozenColumns&&$(r.idSel+"_frozen").parent().height(n.height()-16),r.height=t,r.scroll&&i.populateVisible.call(e),e.fixScrollOffsetAndhBoxPadding(),$(e).triggerHandler("jqGridResetFrozenHeights")}}))},setCaption:function(t){return this.each((function(){var e=this.grid.cDiv;this.p.caption=t,$("span.ui-jqgrid-title, span.ui-jqgrid-title-rtl",e).html(t),$(e).show(),$(e).nextAll("div").removeClass(base.getGuiStyles.call(this,"top")),$(this).triggerHandler("jqGridResetFrozenHeights")}))},setLabel:function(t,e,i,r){return this.each((function(){var n,o,a=this.p;if(this.grid){if(isNaN(t)){if(void 0===(n=a.iColByName[t]))return}else n=parseInt(t,10);0<=n&&(o=$(this.grid.headers[n].el),a.frozenColumns&&(o=o.add(this.grid.fhDiv.find("#"+jqID(o)))),e&&(o.each((function(){var t=$("[id^=jqgh_]",this),i=t.children("span.ui-jqgrid-cell-wrapper");if(0<i.length)i.html(e);else{var r=$(".s-ico",this);t.empty().html(e)[a.sortIconsBeforeText?"prepend":"append"](r)}})),a.colNames[n]=e),i&&("string"==typeof i?o.addClass(i):o.css(i)),"object"==typeof r&&o.attr(r))}}))},setCell:function(t,e,i,r,n,o){return this.each((function(){var a,s,l,d,c,u,h,p,f,g,m,v=this,b=v.p,w=b.colModel,y={};if(v.grid&&0<=(a=isNaN(e)?b.iColByName[e]:parseInt(e,10))&&(u=base.getGridRowById.call($(v),t))){if(h=jgrid.getCell.call(v,u,a),""!==i||!0===o){if(d=w[a],"local"===b.datatype&&(g=stripPref(b.idPrefix,t),void 0!==(m=b._index[g])&&(c=b.data[m])),null==c){for(l=0;l<u.cells.length;l++)if(l!==a&&0<(p=jgrid.getDataFieldOfCell.call(v,u,l)).length){try{f=$.unformat.call(v,p,{rowId:t,colModel:w[l]},l)}catch(a){f=htmlDecode(p[0].innerHTML)}y[w[l].name]=f}}else y=c;y[d.name]=i,s=v.formatter(t,i,a,y,"edit");var x=h;!0===b.treeGrid&&d.name===b.ExpandColumn&&(x=x.children("span.cell-wrapperleaf,span.cell-wrapper").first()),x.html(s),d.title&&h.attr({title:i}),null!=c&&(s=convertOnSaveLocally.call(v,i,d,c[d.name],g,c,a),$.isFunction(d.saveLocally)?d.saveLocally.call(v,{newValue:s,newItem:c,oldItem:c,id:g,cm:d,cmName:d.name,iCol:a}):c[d.name]=s)}(r||n)&&(h=jgrid.getCell.call(v,u,a),r&&h["string"==typeof r?"addClass":"css"](r),"object"==typeof n&&h.attr(n))}}))},getCell:function(t,e){var i=!1;return this.each((function(){var r,n,o,a,s=this,l=s.p;if(s.grid&&0<=(r=isNaN(e)?l.iColByName[e]:parseInt(e,10))&&(n=base.getGridRowById.call($(s),t))){o=jgrid.getDataFieldOfCell.call(s,n,r).first(),a=l.colModel[r];try{i=base.isCellEditing.call($(s),t,r,n)?jgrid.getEditedValue.call(s,o,a,{},a.editable):$.unformat.call(s,o,{rowId:n.id,colModel:a},r)}catch(r){i=htmlDecode(o.html())}}})),i},getCol:function(t,e,i){var r,n,o,a,s=[],l=0;return e="boolean"==typeof e&&e,void 0===i&&(i=!1),this.each((function(){var d,c,u=this,h=u.p;if(u.grid&&0<=(d=isNaN(t)?h.iColByName[t]:parseInt(t,10))){var p,f,g=u.rows,m=g.length,v=0,b=0,w=h.colModel[d];if(m&&0<m){for(;v<m;){if(p=g[v],$(p).hasClass("jqgrow")){c=jgrid.getDataFieldOfCell.call(u,p,d).first(),f=p.id;try{r=base.isCellEditing.call($(u),f,d,p)?jgrid.getEditedValue.call(u,c,w,{},w.editable):$.unformat.call(u,c,{rowId:f,colModel:w},d)}catch(d){r=htmlDecode(c.html())}i?(a=parseFloat(r),isNaN(a)||(l+=a,void 0===o&&(o=n=a),n=Math.min(n,a),o=Math.max(o,a),b++)):e?s.push({id:f,value:r}):s.push(r)}v++}if(i)switch(i.toLowerCase()){case"sum":s=l;break;case"avg":s=l/b;break;case"count":s=m-1;break;case"min":s=n;break;case"max":s=o}}}})),s},clearGridData:function(t){return this.each((function(){var e=this,i=e.p,r=e.rows,n=e.grid;n&&i&&r&&("boolean"!=typeof t&&(t=!1),$(e).off(".jqGridFormatter"),n.emptyRows.call(e,!1,!0),i.footerrow&&t&&$(".ui-jqgrid-ftable td",n.sDiv).html(" "),i.selrow=null,clearArray(i.selarrrow),clearArray(i.savedRow),i.editingInfo={},clearArray(i.data),clearArray(i.lastSelectedData),i._index={},i.rowIndexes={},i.dataIndexById={},i.indexByColumnData={},i.records=0,i.page=1,i.lastpage=0,i.reccount=0,e.updatepager(!0,!1))}))},getInd:function(t,e){var i=base.getGridRowById.call($(this),t);return!!i&&(!0===e?i:i.rowIndex)},bindKeys:function(t){var e=$.extend({onEnter:null,onSpace:null,onLeftKey:null,onRightKey:null,scrollingRows:!0},t||{});return this.each((function(){var t=this,i=t.p,r=$(t);i.scrollrows=e.scrollingRows,r.on("keydown.jqGrid",(function(n){var o=$(this).find("tr[tabindex=0]")[0],a=jgrid.detectRowEditing.call(t,$(n.target).closest("tr.jqgrow").attr("id")),s=function(t){do{if(null===(o=o[t]))return}while($(o).is(":hidden")||!$(o).hasClass("jqgrow"));base.setSelection.call(r,o.id,!0),n.preventDefault()},l=function(n,o){var a=e["on"+n+(o||"")];r.triggerHandler("jqGridKey"+n,[i.selrow]),$.isFunction(a)&&a.call(t,i.selrow)},d=function(t){if(i.treeGrid){var e=i.data[i._index[stripPref(i.idPrefix,o.id)]][i.treeReader.expanded_field];"Right"===t&&(e=!e),e&&$(o).find("div.treeclick").trigger("click")}l(t,"Key")};if(o&&null===a)switch(n.keyCode){case 38:s("previousSibling");break;case 40:s("nextSibling");break;case 37:d("Left");break;case 39:d("Right");break;case 13:l("Enter");break;case 32:l("Space")}}))}))},unbindKeys:function(){return this.each((function(){$(this).off("keydown.jqGrid")}))},getLocalRow:function(t){var e,i=!1;return this.each((function(){var r=this.p;void 0!==t&&null!=r&&null!=r._index&&null!=r.data&&0<=(e=r._index[stripPref(r.idPrefix,t)])&&(i=r.data[e])})),i},progressBar:function(t){return t=$.extend({htmlcontent:"",method:"hide",loadtype:"disable"},t||{}),this.each((function(){var e="show"===t.method,i=jqID(this.p.id),r=$("#load_"+i);switch(""!==t.htmlcontent&&r.html(t.htmlcontent),t.loadtype){case"disable":break;case"enable":r.toggle(e);break;case"block":$("#lui_"+i).toggle(e),r.toggle(e)}}))},setColWidth:function(t,e,i,r){return this.each((function(){var n,o=$(this),a=this.grid,s=this.p;if("string"==typeof t){if(void 0===(t=s.iColByName[t]))return}else if("number"!=typeof t)return;null!=(n=a.headers[t])&&(n.newWidth=e,a.newWidth=s.tblwidth+e-n.width,a.resizeColumn(t,!s.frozenColumns,r),!1===i||r||(this.fixScrollOffsetAndhBoxPadding(),base.setGridWidth.call(o,a.newWidth+s.scrollOffset,!1)))}))},getAutoResizableWidth:function(t){var e=this;if(0===e.length)return-1;var i,r,n,o,a,s=(e=e[0]).rows,l=e.p,d=l.colModel[t],c=$(e.grid.headers[t].el),u=c.children("div"),h=parseFloat(c.css(d.rotated?"padding-top":"padding-left")||0),p=parseFloat(c.css(d.rotated?"padding-bottom":"padding-right")||0),f=u.children("span.s-ico"),g=u.children(".ui-jqgrid-sort-order"),m=u.children("."+l.autoResizing.wrapperClassName),v=d.rotated?m.outerHeight():m.outerWidth(),b=parseFloat(m.css(d.rotated?"height":"width")||0),w=0,y=0,x=null!=d.autoResizing&&void 0!==d.autoResizable.compact?d.autoResizable.compact:l.autoResizing.compact,_=l.autoResizing.wrapperClassName;if(null==d||!d.autoResizable||0===m.length||d.hidden||jgrid.isCellClassHidden(d.classes)||d.fixed)return-1;for(x&&!f.is(":visible")&&"none"===f.css("display")||(y=d.rotated?f.outerHeight(!0):f.outerWidth(!0)+(0<g.length?g.outerWidth(!0):0),l.sortIconsBeforeText||(y-="rtl"===l.direction?parseFloat(f.css("padding-left")||0)+parseFloat(f.css("margin-left")||0):parseFloat(f.css("padding-right")||0)+parseFloat(f.css("margin-right")||0))),d.rotated?y=Math.max(y,v+h+p):y+=v+h+(b===v?h+p:0)+parseFloat(u.css("margin-left")||0)+parseFloat(u.css("margin-right")||0),n=0,s=e.rows;n<s.length;n++)r=(i=s[n]).cells[t],o=$(i.cells[t]),null!=r&&($(i).hasClass("jqgrow")&&"none"!==i.style.display&&"none"!==r.style.display||$(i).hasClass("jqgroup")&&1===r.colSpan)?(a=$(r.firstChild)).hasClass(_)?y=Math.max(y,a.outerWidth()+w):l.treeGrid&&l.ExpandColumn===d.name&&(a=o.children(".cell-wrapper,.cell-wrapperleaf"),y=Math.max(y,a.outerWidth()+w+o.children(".tree-wrap").outerWidth())):$(i).hasClass("jqgfirstrow")&&(w=(jgrid.cell_width?parseFloat(o.css("padding-left")||0)+parseFloat(o.css("padding-right")||0):0)+parseFloat(o.css("border-right")||0)+parseFloat(o.css("border-left")||0));return y=Math.max(y,null!=d.autoResizing&&void 0!==d.autoResizing.minColWidth?d.autoResizing.minColWidth:l.autoResizing.minColWidth),Math.min(y,null!=d.autoResizing&&void 0!==d.autoResizing.maxColWidth?d.autoResizing.maxColWidth:l.autoResizing.maxColWidth)},autoResizeColumn:function(t,e){return this.each((function(){var i,r=$(this),n=this.p,o=n.colModel[t],a=$(this.grid.headers[t].el),s=base.getAutoResizableWidth.call(r,t),l=(o.autoResizing||{}).resetWidthOrg;null==o||s<0||s===o.width||(base.setColWidth.call(r,t,s,n.autoResizing.adjustGridWidth&&!n.autoResizing.fixWidthOnShrink&&!e,e),n.autoResizing.fixWidthOnShrink&&n.shrinkToFit&&!e&&(o.fixed=!0,i=o.widthOrg,o.widthOrg=o.width,base.setGridWidth.call(r,n.width,!0),o.widthOrg=i,o.fixed=!1),(l||void 0===l&&n.autoResizing.resetWidthOrg)&&(o.widthOrg=o.width),a.data("autoResized","true"))}))},autoResizeAllColumns:function(){return this.each((function(){var t,e,i=$(this),r=this.p,n=r.colModel,o=n.length,a=r.shrinkToFit,s=r.autoResizing.adjustGridWidth,l=r.autoResizing.fixWidthOnShrink,d=parseInt(r.widthOrg,10),c=this.grid,u=base.autoResizeColumn;for(r.shrinkToFit=!1,r.autoResizing.adjustGridWidth=!0,r.autoResizing.fixWidthOnShrink=!1,t=0;t<o;t++)(e=n[t]).autoResizable&&"actions"!==e.formatter&&u.call(i,t,!0);c.hDiv.scrollLeft=c.bDiv.scrollLeft,r.footerrow&&(c.sDiv.scrollLeft=c.bDiv.scrollLeft),this.fixScrollOffsetAndhBoxPadding(),isNaN(d)?s&&base.setGridWidth.call(i,c.newWidth+r.scrollOffset,!1):base.setGridWidth.call(i,d,!1),r.autoResizing.fixWidthOnShrink=l,r.autoResizing.adjustGridWidth=s,r.shrinkToFit=a}))}});var getTdByColumnIndex=function(t,e){var i=this.grid.fbRows;return null!=(t=null!=i&&i[0].cells.length>e?i[t.rowIndex]:t)&&null!=t.cells?$(t.cells[e]):$()},safeHeightSet=function(t,e){var i=t.height();1<=Math.abs(i-e)&&0<e&&(t.height(e),i=t.height(),1<=Math.abs(e-i)&&t.height(e+Math.round(e-i)))};jgrid.extend({editCell:function(t,e,i){return this.each((function(){var r,n,o,a,s=this,l=$(s),d=s.p,c=s.rows;if(s.grid&&!0===d.cellEdit&&null!=c&&null!=c[t]&&(t=parseInt(t,10),e=parseInt(e,10),!isNaN(t)&&!isNaN(e))){var u,h=c[t],p=null!=h?h.id:null,f=$(h),g=parseInt(d.iCol,10),m=parseInt(d.iRow,10),v=$(c[m]),b=d.savedRow;if(null!=p){if(d.selrow=p,d.knv||l.jqGrid("GridNav"),0<b.length&&0<v.length){if(!0===i&&t===m&&e===g)return;l.jqGrid("saveCell",b[0].id,b[0].ic)}else setTimeout((function(){$("#"+jgrid.jqID(d.knv)).attr("tabindex","-1").focus()}),1);if("subgrid"!==(r=(a=d.colModel[e]).name)&&"cb"!==r&&"rn"!==r){o=getTdByColumnIndex.call(s,h,e);var w=a.editable;$.isFunction(w)&&(w=w.call(s,{rowid:p,iCol:e,iRow:t,cmName:r,cm:a,mode:"cell"}));var y=l.jqGrid("getGuiStyles","states.select","edit-cell"),x=l.jqGrid("getGuiStyles","states.hover","selected-row");if(!0!==w||!0!==i||o.hasClass("not-editable-cell"))d.noCellSelection||(0<=g&&0<=m&&(getTdByColumnIndex.call(s,v[0],g).removeClass(y),v.removeClass(x)),o.addClass(y),f.addClass(x)),n=o.html().replace(/ /gi,""),feedback.call(s,"onSelectCell",p,r,n,t,e);else{d.noCellSelection||(0<=g&&0<=m&&(getTdByColumnIndex.call(s,v[0],g).removeClass(y),v.removeClass(x)),o.addClass(y),f.addClass(x)),a.edittype||(a.edittype="text"),u=a.edittype;try{n=$.unformat.call(s,o,{rowId:p,colModel:a},e)}catch(r){n="textarea"===u?o.text():o.html()}if(d.autoEncodeOnEdit&&(n=jgrid.oldDecodePostedData(n)),(" "===n||" "===n||1===n.length&&160===n.charCodeAt(0))&&(n=""),$.isFunction(d.formatCell)){var _=d.formatCell.call(s,p,r,n,t,e);void 0!==_&&(n=_)}feedback.call(s,"beforeEditCell",p,r,n,t,e),b.push({id:t,ic:e,name:r,v:n}),d.editingInfo[p]={mode:"cellEditing",savedRow:b[b.length-1],editable:{}},d.editingInfo[p].editable[r]=w;var C=$.extend({},a.editoptions||{},{id:t+"_"+r,name:r,rowId:p,mode:"cell",cm:a,iCol:e}),A=jgrid.createEl.call(s,u,C,n,!0,$.extend({},jgrid.ajaxOptions,d.ajaxSelectOptions||{})),j=o,k=!0===d.treeGrid&&r===d.ExpandColumn;k&&(j=o.children("span.cell-wrapperleaf,span.cell-wrapper")),j.html("").append(A).attr("tabindex","0"),k&&$(A).width(o.width()-o.children("div.tree-wrap").outerWidth()),jgrid.bindEv.call(s,A,C),d.frozenColumns&&e<l.jqGrid("getNumberOfFrozenColumns")&&safeHeightSet($(s.rows[h.rowIndex].cells[e]),o.height()),setTimeout((function(){$(A).focus()}),0),$("input, select, textarea",o).on("keydown",(function(i){if(27===i.keyCode&&(0<$("input.hasDatepicker",o).length?$(".ui-datepicker").is(":hidden")?l.jqGrid("restoreCell",t,e):$("input.hasDatepicker",o).datepicker("hide"):l.jqGrid("restoreCell",t,e)),13===i.keyCode&&!i.shiftKey)return l.jqGrid("saveCell",t,e),!1;if(9===i.keyCode){if(s.grid.hDiv.loading)return!1;i.shiftKey?l.jqGrid("prevCell",t,e):l.jqGrid("nextCell",t,e)}i.stopPropagation()})),feedback.call(s,"afterEditCell",p,r,n,t,e)}d.iCol=e,d.iRow=t}}}}))},saveCell:function(t,e){return this.each((function(){var i=this,r=$(i),n=i.p,o=i.grid,a=jgrid.info_dialog,s=jgrid.jqID;if(o&&!0===n.cellEdit){var l=r.jqGrid("getGridRes","errors"),d=l.errcap,c=r.jqGrid("getGridRes","edit").bClose,u=n.savedRow,h=1<=u.length?0:null;if(null!==h){var p,f=i.rows[t],g=null!=f?f.id:null,m=null!=f?$(f):$(),v=n.colModel[e],b=v.name,w=getTdByColumnIndex.call(i,f,e),y={},x=jgrid.getEditedValue.call(i,w,v,y);if(x!==u[h].v){void 0!==(p=r.triggerHandler("jqGridBeforeSaveCell",[g,b,x,t,e]))&&(x=p),$.isFunction(n.beforeSaveCell)&&void 0!==(p=n.beforeSaveCell.call(i,g,b,x,t,e))&&(x=p);var _=jgrid.checkValues.call(i,x,e,void 0,void 0,{oldValue:u[h].v,newValue:x,cmName:b,rowid:g,iCol:e,iRow:t,cm:v,tr:f,td:w,mode:"cell"}),C=v.formatoptions||{};if(null==_||!0===_||!0===_[0]){var A=r.triggerHandler("jqGridBeforeSubmitCell",[g,b,x,t,e])||{};if($.isFunction(n.beforeSubmitCell)&&((A=n.beforeSubmitCell.call(i,g,b,x,t,e))||(A={})),0<$("input.hasDatepicker",w).length&&$("input.hasDatepicker",w).datepicker("hide"),"date"===v.formatter&&!0!==C.sendFormatted&&(x=$.unformat.date.call(i,x,v)),"remote"===n.cellsubmit)if(n.cellurl){var j={};j[b]=x;var k=n.prmNames,D=k.id,q=k.oper;j[D]=jgrid.stripPref(n.idPrefix,g),j[q]=k.editoper,j=$.extend(A,j),n.autoEncodeOnEdit&&$.each(j,(function(t,e){$.isFunction(e)||(j[t]=jgrid.oldEncodePostedData(e))})),r.jqGrid("progressBar",{method:"show",loadtype:n.loadui,htmlcontent:r.jqGrid("getGridRes","defaults.savetext")||"Saving..."}),o.hDiv.loading=!0,$.ajax($.extend({url:$.isFunction(n.cellurl)?n.cellurl.call(i,n.cellurl,t,e,g,x,b):n.cellurl,data:jgrid.serializeFeedback.call(i,n.serializeCellData,"jqGridSerializeCellData",j),type:"POST",complete:function(s){if(o.endReq.call(i),(s.status<300||304===s.status)&&(0!==s.status||4!==s.readyState)){var l=r.triggerHandler("jqGridAfterSubmitCell",[i,s,j.id,b,x,t,e])||[!0,""];(!0===l||!0===l[0]&&$.isFunction(n.afterSubmitCell))&&(l=n.afterSubmitCell.call(i,s,j.id,b,x,t,e)),null==l||!0===l||!0===l[0]?(r.jqGrid("setCell",g,e,x,!1,!1,!0),w.addClass("dirty-cell"),m.addClass("edited"),feedback.call(i,"afterSaveCell",g,b,x,t,e),u.splice(0,1),delete n.editingInfo[g]):(a.call(i,d,l[1],c),r.jqGrid("restoreCell",t,e))}},error:function(o,s,l){r.triggerHandler("jqGridErrorCell",[o,s,l]),$.isFunction(n.errorCell)?n.errorCell.call(i,o,s,l):a.call(i,d,o.status+" : "+o.statusText+"<br/>"+s,c),r.jqGrid("restoreCell",t,e)}},jgrid.ajaxOptions,n.ajaxCellOptions||{}))}else try{a.call(i,d,l.nourl,c),r.jqGrid("restoreCell",t,e)}catch(s){}if("clientArray"===n.cellsubmit){if(r.jqGrid("setCell",g,e,"select"===v.edittype&&"select"!==v.formatter?y.text:x,!1,!1,!0),w.addClass("dirty-cell"),m.addClass("edited"),feedback.call(i,"afterSaveCell",g,b,x,t,e),n.frozenColumns&&e<r.jqGrid("getNumberOfFrozenColumns"))try{i.rows[f.rowIndex].cells[e].style.height=""}catch(s){}u.splice(0,1),delete n.editingInfo[g]}}else try{setTimeout((function(){var t=jgrid.getRelativeRect.call(i,w);a.call(i,d,x+" "+_[1],c,{top:t.top,left:t.left+$(i).closest(".ui-jqgrid").offset().left})}),50),r.jqGrid("restoreCell",t,e)}catch(s){}}else r.jqGrid("restoreCell",t,e)}setTimeout((function(){$("#"+s(n.knv)).attr("tabindex","-1").focus()}),0)}}))},restoreCell:function(t,e){return this.each((function(){var i,r,n,o=this,a=o.p,s=o.rows[t],l=s.id;if(o.grid&&!0===a.cellEdit){var d=a.savedRow,c=getTdByColumnIndex.call(o,s,e);if(1<=d.length){if($.isFunction($.fn.datepicker))try{$("input.hasDatepicker",c).datepicker("hide")}catch(i){}if(r=a.colModel[e],!0===a.treeGrid&&null!=r&&r.name===a.ExpandColumn?c.children("span.cell-wrapperleaf,span.cell-wrapper").empty():c.empty(),c.attr("tabindex","-1"),i=d[0].v,null!=r&&(n=r.formatoptions||{},"date"===r.formatter&&!0!==n.sendFormatted&&(i=$.unformat.date.call(o,i,r)),$(o).jqGrid("setCell",l,e,i,!1,!1,!0),a.frozenColumns&&e<$(o).jqGrid("getNumberOfFrozenColumns")))try{o.rows[s.rowIndex].cells[e].style.height=""}catch(i){}feedback.call(o,"afterRestoreCell",l,i,t,e),d.splice(0,1),delete a.editingInfo[l]}setTimeout((function(){$("#"+a.knv).attr("tabindex","-1").focus()}),0)}}))},nextCell:function(t,e){return this.each((function(){var i,r,n,o=this,a=$(o),s=o.p,l=!1,d=o.rows;if(o.grid&&!0===s.cellEdit&&null!=d&&null!=d[t]){for(i=e+1;i<s.colModel.length;i++)if(r=(n=s.colModel[i]).editable,$.isFunction(r)&&(r=r.call(o,{rowid:d[t].id,iCol:i,iRow:t,cmName:n.name,cm:n,mode:"cell"})),!0===r){l=i;break}!1!==l?a.jqGrid("editCell",t,l,!0):0<s.savedRow.length&&a.jqGrid("saveCell",t,e)}}))},prevCell:function(t,e){return this.each((function(){var i,r,n,o=this,a=$(o),s=o.p,l=!1,d=o.rows;if(o.grid&&!0===s.cellEdit&&null!=d&&null!=d[t]){for(i=e-1;0<=i;i--)if(r=(n=s.colModel[i]).editable,$.isFunction(r)&&(r=r.call(o,{rowid:d[t].id,iCol:i,iRow:t,cmName:n.name,cm:n,mode:"cell"})),!0===r){l=i;break}!1!==l?a.jqGrid("editCell",t,l,!0):0<s.savedRow.length&&a.jqGrid("saveCell",t,e)}}))},GridNav:function(){return this.each((function(){var t,e,i=this,r=$(i),n=i.p,o=i.grid;if(o&&!0===n.cellEdit){var a=o.bDiv;n.knv=n.id+"_kn";var s=$("<div style='position:fixed;top:0px;width:1px;height:1px;' tabindex='0'><div tabindex='-1' style='width:1px;height:1px;' id='"+n.knv+"'></div></div>");$(s).insertBefore(o.cDiv),$("#"+n.knv).focus().keydown((function(o){var a=parseInt(n.iRow,10),s=parseInt(n.iCol,10);switch(e=o.keyCode,"rtl"===n.direction&&(37===e?e=39:39===e&&(e=37)),e){case 38:0<a-1&&(l(a-1,s,"vu"),r.jqGrid("editCell",a-1,s,!1));break;case 40:a+1<=i.rows.length-1&&(l(a+1,s,"vd"),r.jqGrid("editCell",a+1,s,!1));break;case 37:0<=s-1&&(l(a,t=d(s-1,"lft"),"h"),r.jqGrid("editCell",a,t,!1));break;case 39:s+1<=n.colModel.length-1&&(l(a,t=d(s+1,"rgt"),"h"),r.jqGrid("editCell",a,t,!1));break;case 13:0<=s&&0<=a&&r.jqGrid("editCell",a,s,!0);break;default:return!0}return!1}))}function l(t,e,r){var n=i.rows[t];if("v"===r.substr(0,1)){var o=a.clientHeight,s=a.scrollTop,l=n.offsetTop+n.clientHeight,d=n.offsetTop;"vd"===r&&s+o<=l&&(a.scrollTop=a.scrollTop+n.clientHeight),"vu"===r&&d<s&&(a.scrollTop=a.scrollTop-n.clientHeight)}if("h"===r){var c=a.clientWidth,u=a.scrollLeft,h=n.cells[e],p=h.offsetLeft+h.clientWidth,f=h.offsetLeft;p>=c+parseInt(u,10)?a.scrollLeft=a.scrollLeft+h.clientWidth:f<u&&(a.scrollLeft=a.scrollLeft-h.clientWidth)}}function d(t,e){var i,r=0,o=n.colModel;if("lft"===e)for(r=t+1,i=t;0<=i;i--)if(!0!==o[i].hidden){r=i;break}if("rgt"===e)for(r=t-1,i=t;i<o.length;i++)if(!0!==o[i].hidden){r=i;break}return r}}))},getChangedCells:function(t){var e=[];return t||(t="all"),this.each((function(){var i=this,r=i.p,n=jgrid.htmlDecode,o=i.rows;i.grid&&!0===r.cellEdit&&$(o).each((function(a){var s={};if($(this).hasClass("edited")){var l=this;$(this.cells).each((function(e){var d=r.colModel[e],c=d.name,u=getTdByColumnIndex.call(i,l,e);if("cb"!==c&&"subgrid"!==c&&"rn"!==c&&("dirty"!==t||u.hasClass("dirty-cell")))try{s[c]=$.unformat.call(i,u[0],{rowId:o[a].id,colModel:d},e)}catch(e){s[c]=n(u.html())}})),s.id=this.id,e.push(s)}}))})),e}});var getGuiStyles=base.getGuiStyles,getGridRes=base.getGridRes;jgrid.jqModal=jgrid.jqModal||{},$.extend(!0,jgrid.jqModal,{toTop:!0}),$.extend(jgrid,{showModal:function(t){t.w.show()},closeModal:function(t){t.w.hide().attr("aria-hidden","true"),t.o&&t.o.remove()},hideModal:function(t,e){var i=!(!(e=$.extend({jqm:!0,gb:"",removemodal:!1},e||{})).gb||"string"!=typeof e.gb||"#gbox_"!==e.gb.substr(0,6))&&$("#"+e.gb.substr(6))[0],r=$(t);if(e.onClose){var n=i?e.onClose.call(i,t):e.onClose(t);if("boolean"==typeof n&&!n)return}if($.fn.jqm&&!0===e.jqm)r.attr("aria-hidden","true").jqmHide();else{if(""!==e.gb)try{$(">.jqgrid-overlay",e.gb).first().hide()}catch(t){}r.hide().attr("aria-hidden","true")}e.removemodal&&r.remove()},createModal:function(t,e,i,r,n,o,a){var s=jgrid.jqID,l=this.p;i=$.extend(!0,{resizingRightBottomIcon:base.getIconRes.call(this,"form.resizableLtr")},jgrid.jqModal||{},null!=l&&l.jqModal||{},i);var d=document.createElement("div"),c="#"+s(t.themodal),u="rtl"===$(i.gbox).attr("dir"),h=!!t.resizeAlso&&"#"+s(t.resizeAlso);a=$.extend({},a||{}),d.className=getGuiStyles.call(this,"dialog.window","ui-jqdialog"),d.id=t.themodal,d.dir=u?"rtl":"ltr";var p=document.createElement("div");p.className=getGuiStyles.call(this,"dialog.document"),$(p).attr("role","document");var f=document.createElement("div");f.className=getGuiStyles.call(this,"dialog.subdocument"),p.appendChild(f),d.appendChild(p);var g=document.createElement("div");g.className=getGuiStyles.call(this,"dialog.header","ui-jqdialog-titlebar "+(u?"ui-jqdialog-titlebar-rtl":"ui-jqdialog-titlebar-ltr")),g.id=t.modalhead,$(g).append("<span class='ui-jqdialog-title'>"+i.caption+"</span>");var m=getGuiStyles.call(this,"states.hover"),v=$("<a aria-label='Close' class='"+getGuiStyles.call(this,"dialog.closeButton","ui-jqdialog-titlebar-close")+"'></a>").hover((function(){v.addClass(m)}),(function(){v.removeClass(m)})).append("<span class='"+base.getIconRes.call(this,"form.close")+"'></span>");$(g).append(v);var b=document.createElement("div");$(b).addClass(getGuiStyles.call(this,"dialog.content","ui-jqdialog-content")).attr("id",t.modalcontent),$(b).append(e),f.appendChild(b),$(f).prepend(g),!0===o?$("body").append(d):"string"==typeof o?$(o).append(d):$(d).insertBefore(r),$(d).css(a),void 0===i.jqModal&&(i.jqModal=!0);var w={};if($.fn.jqm&&!0===i.jqModal?(0===i.left&&0===i.top&&i.overlay&&((i=$(n).offset()).left+=4,i.top+=4),w.top=i.top+"px",w.left=i.left):0===i.left&&0===i.top||(w.left=i.left,w.top=i.top+"px"),$("a.ui-jqdialog-titlebar-close",g).click((function(){var t=$(c).data("onClose")||i.onClose,e=$(c).data("gbox")||i.gbox;return jgrid.hideModal(c,{gb:e,jqm:i.jqModal,onClose:t,removemodal:i.removemodal||!1}),!1})),0!==i.width&&i.width||(i.width=300),0!==i.height&&i.height||(i.height=200),!i.zIndex){var y=$(r).parents("*[role=dialog]").first().css("z-index");y?(i.zIndex=parseInt(y,10)+2,i.toTop=!0):i.zIndex=950}if(w.left&&(w.left+="px"),$(d).css($.extend({width:isNaN(i.width)?"auto":i.width+"px",height:isNaN(i.height)?"auto":i.height+"px",zIndex:i.zIndex},w)).attr({tabIndex:"-1",role:"dialog","aria-labelledby":t.modalhead,"aria-hidden":"true"}),void 0===i.drag&&(i.drag=!0),void 0===i.resize&&(i.resize=!0),i.drag)if($.fn.jqDrag)$(g).css("cursor","move"),$(d).jqDrag(g);else try{$(d).draggable({handle:$("#"+s(g.id))})}catch(t){}if(i.resize)if($.fn.jqResize)$(b).append("<div class='jqResize ui-resizable-handle ui-resizable-se "+i.resizingRightBottomIcon+"'></div>"),$(c).jqResize(".jqResize",h);else try{$(d).resizable({handles:"se, sw",alsoResize:h})}catch(t){}!0===i.closeOnEscape&&$(d).keydown((function(t){if(27===t.which){var e=$(c).data("onClose")||i.onClose;jgrid.hideModal(c,{gb:i.gbox,jqm:i.jqModal,onClose:e,removemodal:i.removemodal||!1,formprop:!i.recreateForm||!1,form:i.form||""})}}))},viewModal:function(t,e){if(e=$.extend(!0,{overlay:30,modal:!1,overlayClass:getGuiStyles.call(this,"overlay"),onShow:jgrid.showModal,onHide:jgrid.closeModal,gbox:"",jqm:!0,jqM:!0},jgrid.jqModal||{},e||{}),$.fn.jqm&&!0===e.jqm)e.jqM?$(t).attr("aria-hidden","false").jqm(e).jqmShow():$(t).attr("aria-hidden","false").jqmShow();else{""!==e.gbox&&($(">.jqgrid-overlay",e.gbox).first().show(),$(t).data("gbox",e.gbox)),$(t).show().attr("aria-hidden","false");try{$(":input:visible",t)[0].focus()}catch(t){}}},info_dialog:function(t,e,i,r){var n=this,o=n.p,a=$.extend(!0,{width:290,height:"auto",dataheight:"auto",drag:!0,resize:!1,left:250,top:170,zIndex:1e3,jqModal:!0,modal:!1,closeOnEscape:!0,align:"center",buttonalign:"center",buttons:[]},jgrid.jqModal||{},null!=o&&o.jqModal||{},{caption:"<b>"+t+"</b>"},r||{}),s=a.jqModal;$.fn.jqm&&!s&&(s=!1);var l,d="",c=getGuiStyles.call(n,"states.hover");if(0<a.buttons.length)for(l=0;l<a.buttons.length;l++)void 0===a.buttons[l].id&&(a.buttons[l].id="info_button_"+l),d+=jgrid.builderFmButon.call(n,a.buttons[l].id,a.buttons[l].text);var u=isNaN(a.dataheight)?a.dataheight:a.dataheight+"px",h="text-align:"+a.align+";",p=$("#info_dialog"),f="<div id='info_id'>";f+="<div id='infocnt' style='margin:0px;padding-bottom:1em;width:100%;overflow:auto;position:relative;height:"+u+";"+h+"'>"+e+"</div>",(i||""!==d)&&(f+="<hr class='"+getGuiStyles.call(n,"dialog.hr")+"' style='margin:1px'/><div style='text-align:"+a.buttonalign+";padding:.8em 0 .5em 0;background-image:none;border-width: 1px 0 0 0;'>"+(i?jgrid.builderFmButon.call(n,"closedialog",i):"")+d+"</div>"),f+="</div>";try{"false"===p.attr("aria-hidden")&&jgrid.hideModal("#info_dialog",{jqm:s}),p.remove()}catch(t){}jgrid.createModal.call(n,{themodal:"info_dialog",modalhead:"info_head",modalcontent:"info_content",resizeAlso:"infocnt"},f,a,"","",!0),p=$("#info_dialog"),d&&$.each(a.buttons,(function(){$("#"+jgrid.jqID(this.id),"#info_id").on("click",{click:this.onClick},(function(t){return $.isFunction(t.data.click)&&t.data.click.call(n,t,p),!1}))})),$("#closedialog","#info_id").click((function(){return jgrid.hideModal("#info_dialog",{jqm:s,onClose:p.data("onClose")||a.onClose,gb:p.data("gbox")||a.gbox}),!1})),$(".fm-button","#info_dialog").hover((function(){$(this).addClass(c)}),(function(){$(this).removeClass(c)})),$.isFunction(a.beforeOpen)&&a.beforeOpen(),jgrid.viewModal.call(n,"#info_dialog",{onHide:function(t){t.w.hide().remove(),t.o&&t.o.remove()},modal:a.modal,jqm:s}),$.isFunction(a.afterOpen)&&a.afterOpen();try{p.focus()}catch(t){}},bindEv:function(t,e){$.isFunction(e.dataInit)&&e.dataInit.call(this,t,e),e.dataEvents&&$.each(e.dataEvents,(function(){void 0!==this.data?$(t).on(this.type,"object"==typeof this.data&&null!==this.data?$.extend(!0,{},e,this.data):this.data,this.fn):$(t).on(this.type,e,this.fn)}))},createEl:function(t,e,i,r,n){var o="",a=this,s=a.p,l=jgrid.info_dialog,d=function(t){return getGridRes.call($(a),t)},c=d("errors.errcap"),u=d("edit"),h=u.msg,p=u.bClose;function f(t,e,i){var r=["dataInit","dataEvents","dataUrl","buildSelect","sopt","searchhidden","defaultValue","attr","custom_element","custom_value","generateValue","postData","selectFilled","rowId","column","mode","cm","iCol"];void 0!==i&&$.isArray(i)&&$.merge(r,i),$.each(e,(function(e,i){-1===$.inArray(e,r)&&$(t).attr(e,i)})),e.hasOwnProperty("id")||$(t).attr("id",jgrid.randId())}if(null==e)return"";switch(t){case"textarea":o=document.createElement("textarea"),r?e.cols||$(o).css({width:"100%","box-sizing":"border-box"}):e.cols||(e.cols=19),e.rows||(e.rows=2),(" "===i||" "===i||1===i.length&&160===i.charCodeAt(0))&&(i=""),o.value=i,f(o,e),$(o).attr({role:"textbox"});break;case"checkbox":if((o=document.createElement("input")).type="checkbox",""!==i&&null!=i||(i=e.hasOwnProperty("defaultValue")?$.isFunction(e.defaultValue)?e.defaultValue.call(a,{cellValue:i,options:e}):e.defaultValue:"false"),e.value){var g=e.value.split(":");i===g[0]&&(o.checked=!0,o.defaultChecked=!0),o.value=i,$(o).data("offval",g[1])}else{var m=String(i).toLowerCase();m.search(/(false|f|0|no|n|off|undefined)/i)<0&&""!==m?(o.checked=!0,o.defaultChecked=!0,o.value=i):o.value="on",$(o).data("offval","off")}f(o,e,["value"]),$(o).attr({role:"checkbox","aria-checked":o.checked?"true":"false"});break;case"select":o=document.createElement("select");var v,b=[],w=null;!0===e.multiple||"multiple"===e.multiple?(v=!0,o.multiple="multiple",$(o).attr("aria-multiselectable","true"),b=i.split(","),b=$.map(b,(function(t){return $.trim(t)}))):(v=!1,b[0]=$.trim(i)),void 0===e.size&&(e.size=v?3:1);try{w=e.rowId}catch(t){}if(s&&s.idPrefix&&(w=jgrid.stripPref(s.idPrefix,w)),void 0===e.dataUrl&&e.generateValue&&null!=s.indexByColumnData[e.cm.name]&&(e.value=a.generateValueFromColumnIndex(e.cm.name,e.separator,e.delimiter)),void 0!==e.dataUrl){var y=e.postData||n.postData,x={elem:o,options:e,cm:e.cm,mode:e.mode,rowid:w,iCol:e.iCol,ovm:b};f(o,e,y?["postData"]:void 0),$.ajax($.extend({url:$.isFunction(e.dataUrl)?e.dataUrl.call(a,w,i,String(e.name),x):e.dataUrl,type:"GET",dataType:"html",data:$.isFunction(y)?y.call(a,w,i,String(e.name)):y,context:x,success:function(t,e,i){var r=this.ovm,n=this.elem,o=this.cm,s=this.iCol,l=$.extend({},this.options),d=this.rowid,c=this.mode,u=$.isFunction(l.buildSelect)?l.buildSelect.call(a,t,i,o,s):t;"string"==typeof u&&(u=$($.trim(u)).html()),u&&($(n).append(u),setTimeout((function(){var t;$("option",n).each((function(e){0===e&&n.multiple&&(this.selected=!1),-1<$.inArray($.trim($(this).val()),r)&&(this.selected=!0,t=!0)})),t||$("option",n).each((function(){-1<$.inArray($.trim($(this).text()),r)&&(this.selected=!0)})),jgrid.fullBoolFeedback.call(a,l.selectFilled,"jqGridSelectFilled",{elem:n,options:l,cm:o,rowid:d,mode:c,cmName:null!=o?o.name:l.name,iCol:s})}),0))}},n||{}))}else e.value&&(jgrid.fillSelectOptions(o,e.value,void 0===e.separator?":":e.separator,void 0===e.delimiter?";":e.delimiter,v,i),f(o,e,["value"]),jgrid.fullBoolFeedback.call(a,e.selectFilled,"jqGridSelectFilled",{elem:o,options:e,cm:e.cm,rowid:w,mode:e.mode,cmName:null!=e.cm?e.cm.name:e.name,iCol:e.iCol}));break;case"text":case"password":case"button":var _;_="button"===t?"button":"textbox",(o=document.createElement("input")).type=t,f(o,e),o.value=i,"button"!==t&&(r?e.size||$(o).css({width:"100%","box-sizing":"border-box"}):e.size||(e.size=20)),$(o).attr("role",_);break;case"image":case"file":(o=document.createElement("input")).type=t,f(o,e);break;case"custom":o=document.createElement("span");try{if(!$.isFunction(e.custom_element))throw"editoptions.custom_element is not a function";var C=e.custom_element.call(a,i,e);if(!(C instanceof jQuery||jgrid.isHTMLElement(C)||"string"==typeof C))throw"editoptions.custom_element returns value of a wrong type";C=$(C).addClass("customelement").attr({id:e.id,name:e.name}),$(o).empty().append(C)}catch(t){"e1"===t&&l.call(a,c,"function 'custom_element' "+h.nodefined,p),"e2"===t?l.call(a,c,"function 'custom_element' "+h.novalue,p):l.call(a,c,"string"==typeof t?t:t.message,p)}}return o},checkDate:function(t,e){var i,r={};if(i=-1!==(t=t.toLowerCase()).indexOf("/")?"/":-1!==t.indexOf("-")?"-":-1!==t.indexOf(".")?".":"/",t=t.split(i),3!==(e=e.split(i)).length)return!1;var n,o,a,s,l,d=-1,c=-1,u=-1;for(o=0;o<t.length;o++)a=isNaN(e[o])?0:parseInt(e[o],10),r[t[o]]=a,-1!==(n=t[o]).indexOf("y")&&(d=o),-1!==n.indexOf("m")&&(u=o),-1!==n.indexOf("d")&&(c=o);return n="y"===t[d]||"yyyy"===t[d]?4:"yy"===t[d]?2:-1,-1!==d&&(s=r[t[d]].toString(),2===n&&1===s.length&&(n=1),!(s.length!==n||0===r[t[d]]&&"00"!==e[d]||-1===u||(s=r[t[u]].toString()).length<1||r[t[u]]<1||12<r[t[u]]||-1===c||(s=r[t[c]].toString()).length<1||r[t[c]]<1||31<r[t[c]]||2===r[t[u]]&&r[t[c]]>((l=r[t[d]])%4!=0||l%100==0&&l%400!=0?28:29)||r[t[c]]>[0,31,29,31,30,31,30,31,31,30,31,30,31][r[t[u]]]))},isEmpty:function(t){return!(!t.match(/^\s+$/)&&""!==t)},checkTime:function(t){var e;if(!jgrid.isEmpty(t)){if(!(e=t.match(/^(\d{1,2}):(\d{2})([apAP][Mm])?$/)))return!1;if(e[3]){if(e[1]<1||12<e[1])return!1}else if(23<e[1])return!1;if(59<e[2])return!1}return!0},checkValues:function(t,e,i,r,n){var o,a,s,l,d,c=this,u=c.p,h=u.colModel,p=jgrid.isEmpty,f=getGridRes.call($(c),"edit.msg"),g=function(t){var e=o[t];return $.isFunction(e)?e.call(c,n):e},m=getGridRes.call($(c),"formatter.date.masks");if(void 0===i){if("string"==typeof e&&(e=u.iColByName[e]),void 0===e||e<0)return[!0,"",""];l=h[e],o=l.editrules,null!=l.formoptions&&(a=l.formoptions.label)}else o=i,a=void 0===r?"_":r,l=h[e];if(o){if(a||(a=null!=u.colNames?u.colNames[e]:l.label),!0===g("required")&&p(t))return[!1,a+": "+f.required,""];var v=!1!==g("required");if(!0===g("number")&&(!1!==v||!p(t))&&isNaN(t))return[!1,a+": "+f.number,""];if(void 0!==o.minValue&&!isNaN(o.minValue)&&parseFloat(t)<parseFloat(o.minValue))return[!1,a+": "+f.minValue+" "+o.minValue,""];if(void 0!==o.maxValue&&!isNaN(o.maxValue)&&parseFloat(t)>parseFloat(o.maxValue))return[!1,a+": "+f.maxValue+" "+o.maxValue,""];if(!0===g("email")&&!(!1===v&&p(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(t)))return[!1,a+": "+f.email,""];if(!0===g("integer")&&(!1!==v||!p(t))){if(isNaN(t))return[!1,a+": "+f.integer,""];if(t%1!=0||-1!==t.indexOf("."))return[!1,a+": "+f.integer,""]}if(!0===g("date")&&!(!1===v&&p(t)||(l.formatoptions&&l.formatoptions.newformat?(s=l.formatoptions.newformat,m.hasOwnProperty(s)&&(s=m[s])):s=h[e].datefmt||"Y-m-d",jgrid.checkDate(s,t))))return[!1,a+": "+f.date+" - "+s,""];if(!0===g("time")&&!(!1===v&&p(t)||jgrid.checkTime(t)))return[!1,a+": "+f.date+" - hh:mm (am/pm)",""];if(!0===g("url")&&!(!1===v&&p(t)||/^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i.test(t)))return[!1,a+": "+f.url,""];if(!0===o.custom){if(!1!==v||!p(t))return $.isFunction(o.custom_func)?(d=o.custom_func.call(c,t,a,e),$.isArray(d)?d:[!1,f.customarray,""]):[!1,f.customfcheck,""]}else if($.isFunction(o.custom)&&(!1!==v||!p(t)))return d=o.custom.call(c,n),$.isArray(d)?d:[!1,f.customarray,""]}return[!0,"",""]}}),jgrid.extend({getColProp:function(t){var e,i=this[0];return null!=i&&i.grid&&void 0!==(e=i.p.iColByName[t])?i.p.colModel[e]:{}},setColProp:function(t,e){return this.each((function(){var i,r=this.p;this.grid&&null!=r&&e&&void 0!==(i=r.iColByName[t])&&$.extend(!0,r.colModel[i],e)}))},sortGrid:function(t,e,i){return this.each((function(){var r,n,o,a=this.grid,s=this.p,l=s.colModel,d=l.length,c=!1;if(a)for(t||(t=s.sortname),"boolean"!=typeof e&&(e=!1),n=0;n<d;n++)if((r=l[n]).index===t||r.name===t){!0===s.frozenColumns&&!0===r.frozen&&(c=a.fhDiv.find("#"+jqID(s.id+"_"+t))),c&&0!==c.length||(c=a.headers[n].el),("boolean"!=typeof(o=r.sortable)||o)&&this.sortData(r.index||r.name,n,e,i,c);break}}))},clearBeforeUnload:function(){return this.each((function(){var t,e=this,i=e.p,r=e.grid,n=jgrid.clearArray,o=Object.prototype.hasOwnProperty;$.isFunction(r.emptyRows)&&r.emptyRows.call(e,!0,!0),$(document).off("mousemove.jqGrid mouseup.jqGrid"+i.id),$(e).off();var a,s=r.headers.length;for(a=0;a<s;a++)r.headers[a].el=null;for(t in r)r.hasOwnProperty(t)&&(r.propOrMethod=null);var l=["formatCol","sortData","updatepager","refreshIndex","setHeadCheckBox","constructTr","clearToolbar","fixScrollOffsetAndhBoxPadding","rebuildRowIndexes","modalAlert","toggleToolbar","triggerToolbar","formatter","addXmlData","addJSONData","ftoolbar","_inlinenav","nav","grid","p"];for(s=l.length,a=0;a<s;a++)o.call(e,l[a])&&(e[l[a]]=null);e._index={},n(i.data),n(i.lastSelectedData),n(i.selarrrow),n(i.savedRow),i.editingInfo={}}))},GridDestroy:function(){return this.each((function(){var t=this.p;if(this.grid&&null!=t){t.pager&&$(t.pager).remove();try{$("#alertmod_"+jqID(t.id)).remove(),$(this).jqGrid("clearBeforeUnload"),$(t.gBox).remove()}catch(t){}}}))},GridUnload:function(){return this.each((function(){var t=$(this),e=this.p,i=$.fn.jqGrid;this.grid&&(t.removeClass(i.getGuiStyles.call(t,"grid","ui-jqgrid-btable")),e.pager&&(e.pager.substr(1,$.jgrid.uidPref.length)===$.jgrid.uidPref?$(e.pager).remove():$(e.pager).empty().removeClass(i.getGuiStyles.call(t,"pager.pager","ui-jqgrid-pager "+i.getGuiStyles.call(t,"bottom"))).removeAttr("style").removeAttr("dir")),t.jqGrid("clearBeforeUnload"),t.removeAttr("style").removeAttr("tabindex").removeAttr("role").removeAttr("aria-labelledby").removeAttr("style"),t.empty(),t.insertBefore(e.gBox).show(),$(e.pager).insertBefore(e.gBox).show(),$(e.gBox).remove())}))},setGridState:function(t){return this.each((function(){var e=this,i=e.p,r=e.grid,n=r.cDiv,o=$(r.uDiv),a=$(r.ubDiv);if(r&&null!=i){var s=function(t){return base.getIconRes.call(e,"gridMinimize."+t)},l=s("visible"),d=s("hidden");"hidden"===t?($(".ui-jqgrid-bdiv, .ui-jqgrid-hdiv",i.gView).slideUp("fast"),i.pager&&$(i.pager).slideUp("fast"),i.toppager&&$(i.toppager).slideUp("fast"),!0===i.toolbar[0]&&("both"===i.toolbar[1]&&a.slideUp("fast"),o.slideUp("fast")),i.footerrow&&$(".ui-jqgrid-sdiv",i.gBox).slideUp("fast"),$(".ui-jqgrid-titlebar-close span",n).removeClass(l).addClass(d),i.gridstate="hidden"):"visible"===t&&($(".ui-jqgrid-hdiv, .ui-jqgrid-bdiv",i.gView).slideDown("fast"),i.pager&&$(i.pager).slideDown("fast"),i.toppager&&$(i.toppager).slideDown("fast"),!0===i.toolbar[0]&&("both"===i.toolbar[1]&&a.slideDown("fast"),o.slideDown("fast")),i.footerrow&&$(".ui-jqgrid-sdiv",i.gBox).slideDown("fast"),$(".ui-jqgrid-titlebar-close span",n).removeClass(d).addClass(l),i.gridstate="visible")}}))},filterToolbar:function(t){return this.each((function(){var e=this,i=e.grid,r=$(e),n=e.p,o=jgrid.info_dialog,a=jgrid.htmlEncode;if(!this.ftoolbar){var s,l=$.extend(!0,{autosearch:!0,autosearchDelay:500,searchOnEnter:!0,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,searchurl:"",sField:"searchField",sValue:"searchString",sOper:"searchOper",sFilter:n.prmNames.filters,stringResult:!1,groupOp:"AND",defaultSearch:"bw",idMode:"new",searchOperators:!1,resetIcon:"×",applyLabelClasses:!0,loadFilterDefaults:!0,operands:{eq:"==",ne:"!",lt:"<",le:"<=",gt:">",ge:">=",bw:"^",bn:"!^",in:"=",ni:"!=",ew:"|",en:"!@",cn:"~",nc:"!~",nu:"#",nn:"!#"}},jgrid.search,n.searching||{},t||{}),d=n.colModel,c=function(t){return getGridRes.call(r,t)},u=c("errors.errcap"),h=c("edit.bClose"),p=c("edit.msg"),f=getGuiStyles.call(e,"states.hover"),g=getGuiStyles.call(e,"states.select"),m=getGuiStyles.call(e,"filterToolbar.dataField"),v={},b=function(t){var e="gs_";switch(l.idMode){case"compatibility":e+=n.idPrefix;break;case"new":e+=n.id+"_"}return e+t},w=function(t){return"#"+jqID(b(t))},y=function(t){var e=(t.value||"").split(":");return{on:e[0]||"on",off:e[1]||"off"}},x=function(t){var e,i,r,o,a,s,c=n.postData[l.sFilter],u={},h=n.iColByName;if(t)for(i=0;i<d.length;i++)!1!==(a=d[i]).search&&(s=a.searchoptions||{},u[a.name]={op:s.sopt?s.sopt[0]:"select"===a.stype||"checkbox"===a.stype?"eq":l.defaultSearch,data:void 0!==s.defaultValue?s.defaultValue:""});if(!c||!n.search)return u;if("string"==typeof c)try{c=$.parseJSON(c)}catch(t){c={}}else c=c||{};if(r=c.rules||{},null==c||null!=c.groupOp&&null!=l.groupOp&&c.groupOp.toUpperCase()!==l.groupOp.toUpperCase()||null==r||0===r.length||null!=c.groups&&0<c.groups.length)return u;for(i=0;i<r.length;i++)for(o=r[i],a=d[h[o.field]],e=0;e<d.length;e++)if(((a=d[e]).index||a.name)===o.field&&!1!==a.search){if((s=a.searchoptions||{}).sopt){if($.inArray(o.op,s.sopt)<0)continue}else if("select"===a.stype||"checkbox"===a.stype){if("eq"!==o.op)continue}else if(o.op!==l.defaultSearch)continue;u[a.name]={op:o.op,data:o.data}}return u},_=function(t,e){switch(e){case 1:t.data("state",1).prop({checked:!0,indeterminate:!1});break;case 0:t.data("state",0).prop({checked:!1,indeterminate:!1});break;default:t.data("state",-1).prop({checked:!1,indeterminate:!0})}},C=function(){var t={},o=0,a={};$.each(d,(function(){var r,s,d=this,u=d.index||d.name,h=d.searchoptions||{},p=$(w(d.name),!0===d.frozen&&!0===n.frozenColumns?i.fhDiv:i.hDiv),f=function(t,e){var i=d.formatoptions||{};return void 0!==i[t]?i[t]:c("formatter."+(e||d.formatter)+"."+t)},g=function(t){var e=f("thousandsSeparator").replace(/([\.\*\_\'\(\)\{\}\+\?\\])/g,"\\$1");return t.replace(new RegExp(e,"g"),"")};if(s=l.searchOperators?p.parent().prev().children("a").data("soper")||l.defaultSearch:h.sopt?h.sopt[0]:"select"===d.stype||"checkbox"===d.stype?"eq":l.defaultSearch,"custom"===d.stype&&$.isFunction(h.custom_value)&&0<p.length&&"SPAN"===p[0].nodeName.toUpperCase())r=h.custom_value.call(e,p.children(".customelement").first(),"get");else if("select"===d.stype)r=p.prop("multiple")?null==(r=p.val())||0===r.length?"":r.join(n.inFilterSeparator||","):p.val();else if("checkbox"===d.stype){var m=y(h);switch(p.data("state")){case-1:r="";break;case 0:r=m.off;break;default:r=m.on}}else switch(r=$.trim(p.val()),d.formatter){case"integer":""!==(r=g(r).replace(f("decimalSeparator","number"),"."))&&(r=String(parseInt(r,10)));break;case"number":""!==(r=g(r).replace(f("decimalSeparator"),"."))&&"0"===String(r).charAt(0)&&(r=String(parseFloat(r)));break;case"currency":var v=f("prefix"),b=f("suffix");v&&v.length&&r.substr(0,v.length)===v&&(r=r.substr(v.length)),b&&b.length&&r.length>b.length&&r.substr(r.length-b.length,b.length)===b&&(r=r.substr(0,r.length-b.length)),""!==(r=g(r).replace(f("decimalSeparator"),"."))&&(r=String(parseFloat(r)))}if(r||"nu"===s||"nn"===s||0<=$.inArray(s,n.customUnaryOperations))t[u]=r,a[u]=s,o++;else if(t.hasOwnProperty(u)&&delete t[u],!l.stringResult&&!l.searchOperators&&"local"!==n.datatype)try{null!=n.postData&&n.postData.hasOwnProperty(u)&&delete n.postData[u]}catch(r){}}));var s,u=0<o;if(l.stringResult||l.searchOperators||"local"===n.datatype){var h='{"groupOp":"'+l.groupOp+'","rules":[',p=0;$.each(t,(function(t,e){0<p&&(h+=","),h+='{"field":"'+t+'",',h+='"op":"'+a[t]+'",',h+='"data":"'+(e+="").replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}',p++})),h+="]}",n.postData[l.sFilter]=h,$.each([l.sField,l.sValue,l.sOper],(function(t,e){n.postData.hasOwnProperty(e)&&delete n.postData[e]}))}else $.extend(n.postData,t);n.searchurl&&(s=n.url,r.jqGrid("setGridParam",{url:n.searchurl}));var f="stop"===r.triggerHandler("jqGridToolbarBeforeSearch");!f&&$.isFunction(l.beforeSearch)&&(f=l.beforeSearch.call(e)),f||r.jqGrid("setGridParam",{search:u}).trigger("reloadGrid",[$.extend({page:1},l.reloadGridSearchOptions||{})]),s&&r.jqGrid("setGridParam",{url:s}),r.triggerHandler("jqGridToolbarAfterSearch"),$.isFunction(l.afterSearch)&&l.afterSearch.call(e)},A=c("search.odata")||[],j=n.customSortOperations,k=[],D=$("<tr></tr>",{class:"ui-search-toolbar",role:"row form"});l.loadFilterDefaults&&(v=x()||{}),$.each(d,(function(t){var i,a,d,g,w,y,x,q=this,I="filter",S=q.searchoptions||{},F=q.editoptions||{},O=$("<th></th>",{class:getGuiStyles.call(e,"colHeaders","ui-th-column ui-th-"+n.direction+" "+(l.applyLabelClasses&&q.labelClasses||"")),role:"gridcell","aria-describedby":n.id+"_"+q.name}),R=$("<div></div>"),E=$("<table class='ui-search-table'><tbody><tr><td class='ui-search-oper'></td><td class='ui-search-input'></td><td class='ui-search-clear' style='width:1px'></td></tr></tbody></table>"),N=E.children("tbody").children("tr").children("td"),T=N.eq(0),M=N.eq(1),z=N.eq(2);if(!0===this.hidden&&O.css("display","none"),this.search=!1!==this.search,void 0===this.stype&&(this.stype="text"),i=$.extend({mode:I,name:q.name,cm:q,iCol:t,id:b(q.name)},S),this.search){if(l.searchOperators){for(g=n.search&&null!=v[this.name]?v[this.name].op:i.sopt?i.sopt[0]:"select"===q.stype||"checkbox"===q.stype?"eq":l.defaultSearch,w=0;w<A.length;w++)if(A[w].oper===g){d=l.operands[g]||"";break}var P;if(void 0===d&&null!=j)for(P in j)if(j.hasOwnProperty(P)&&P===g){d=j[P].operand;break}void 0===d&&(d="="),T.append("<a title='"+(null!=i.searchtitle?i.searchtitle:c("search.operandTitle"))+"' data-soper='"+g+"' class='"+getGuiStyles.call(e,"searchToolbar.operButton","soptclass")+"' data-colname='"+this.name+"'>"+d+"</a>")}if(T.data("colindex",t),null!=i.sopt&&1!==i.sopt.length||T.hide(),n.search&&null!=v[this.name]&&(i.defaultValue=v[this.name].data),void 0===i.clearSearch&&(i.clearSearch="text"===this.stype),i.clearSearch){var B=$.isFunction(l.resetTitle)?l.resetTitle.call(e,{options:l,cm:q,cmName:q.name,iCol:t}):(c("search.resetTitle")||"Clear Search Value")+" "+jgrid.stripHtml(n.colNames[t]);z.append("<a title='"+B+"' aria-label='"+B+"' class='"+getGuiStyles.call(e,"searchToolbar.clearButton","clearsearchclass")+"'><span>"+l.resetIcon+"</span></a>")}else z.hide();switch(R.append(E),this.stype){case"checkbox":var G=void 0!==i.defaultValue?i.defaultValue:"-1";x=$("<input role='search' type='checkbox' class='"+m+"' name='"+(q.index||q.name)+"' id='"+b(q.name)+"' aria-labelledby='jqgh_"+n.id+"_"+q.name+"' data-state='"+G+"'/>"),"-1"===G?x.prop("indeterminate",!0):"1"===G&&x.prop("checked",!0),x.click((function(){var t=$(this);switch(t.data("state")){case-1:_(t,1);break;case 0:_(t,-1);break;default:_(t,0)}!0===l.autosearch&&C()})),M.append(x),i.attr&&x.attr(i.attr),k.push({elem:x[0],options:i});break;case"select":var H,L,W;if(a=this.surl||i.dataUrl)$.ajax($.extend({url:a,context:{$tdInput:M,options:i,cm:q,iCol:t},dataType:"html",success:function(t,r,n){var o,a,s,d=this.cm,c=this.iCol,u=this.options,h=this.$tdInput;void 0!==u.buildSelect?(o=u.buildSelect.call(e,t,n,d,c))&&h.append(o):h.append(t),(s=h.children("select")).attr({name:d.index||d.name,id:b(d.name)}),u.attr&&s.attr(u.attr),s.addClass(m),s.css({width:"100%"}),0===s.find("option[value='']").length&&"string"==typeof i.noFilterText&&((a=document.createElement("option")).value="",a.innerHTML=i.noFilterText,s.prepend(a),null!=$(s[0].options[s[0].selectedIndex]).attr("selected")||s[0].multiple||(s[0].selectedIndex=0)),s[0].multiple&&0===s.find("option[selected]").length&&-1!==s[0].selectedIndex&&(s[0].options[s[0].selectedIndex].selected=!1),void 0!==u.defaultValue&&s.val(u.defaultValue),jgrid.bindEv.call(e,s[0],u),jgrid.fullBoolFeedback.call(e,u.selectFilled,"jqGridSelectFilled",{elem:s[0],options:u,cm:d,cmName:d.name,iCol:c,mode:I}),!0===l.autosearch&&s.change((function(){return C(),!1}))}},jgrid.ajaxOptions,n.ajaxSelectOptions||{}));else if(q.searchoptions?(H=void 0===S.value?F.value||"":S.value,L=void 0===S.separator?F.separator||":":S.separator,W=void 0===S.delimiter?F.delimiter||";":S.delimiter):q.editoptions&&(H=void 0===F.value?"":F.value,L=void 0===F.separator?":":F.separator,W=void 0===F.delimiter?";":F.delimiter),S.generateValue&&null!=n.indexByColumnData[q.name]&&(H=e.generateValueFromColumnIndex(q.name,L,W)),H){if((y=document.createElement("select")).style.width="100%",x=$(y).attr({name:q.index||q.name,role:"search",id:b(q.name),"aria-describedby":n.id+"_"+q.name}),i.attr&&x.attr(i.attr),!jgrid.fillSelectOptions(y,H,L,W,null!=i.attr&&i.attr.multiple)&&"string"==typeof i.noFilterText){var V=document.createElement("option");V.value="",V.innerHTML=i.noFilterText,V.selected=!0,x.prepend(V)}void 0!==i.defaultValue&&x.val(i.defaultValue),x.addClass(m),k.push({elem:y,options:i}),M.append(y),jgrid.fullBoolFeedback.call(e,i.selectFilled,"jqGridSelectFilled",{elem:y,options:q.searchoptions||F,cm:q,cmName:q.name,iCol:t,mode:I}),!0===l.autosearch&&x.change((function(){return C(),!1}))}break;case"text":if(x=$("<input role='search' type='text' class='"+m+"' name='"+(q.index||q.name)+"' id='"+b(q.name)+"' aria-labelledby='jqgh_"+n.id+"_"+q.name+"' value='"+(void 0!==i.defaultValue?i.defaultValue:"")+"'/>"),M.append(x),q.createColumnIndex&&i.generateDatalist){var Y="dl_"+b(q.name),U=r.jqGrid("generateDatalistFromColumnIndex",q.name);null!=U&&0<U.length&&(x.attr("list",Y),M.append(U.attr("id",Y)))}i.attr&&x.attr(i.attr),k.push({elem:x[0],options:i}),!0===l.autosearch&&(l.searchOnEnter?x.keypress((function(t){return 13===(t.charCode||t.keyCode||0)?(C(),!1):this})):x.keydown((function(t){switch(t.which){case 13:return!1;case 9:case 16:case 37:case 38:case 39:case 40:case 27:break;default:s&&clearTimeout(s),s=setTimeout((function(){C()}),l.autosearchDelay)}})));break;case"custom":M.append("<span style='width:100%;padding:0;box-sizing:border-box;' name='"+(q.index||q.name)+"' id='"+b(q.name)+"'/>");try{if(!$.isFunction(i.custom_element))throw"e1";var Q=i.custom_element.call(e,void 0!==i.defaultValue?i.defaultValue:"",i);if(!Q)throw"e2";Q=$(Q).addClass("customelement"),R.find("span[name='"+(q.index||q.name)+"']").append(Q)}catch(t){"e1"===t&&o.call(e,u,"function 'custom_element' "+p.nodefined,h),"e2"===t?o.call(e,u,"function 'custom_element' "+p.novalue,h):o.call(e,u,"string"==typeof t?t:t.message,h)}}}O.append(R),O.find(".ui-search-oper .soptclass,.ui-search-clear .clearsearchclass").hover((function(){$(this).addClass(f)}),(function(){$(this).removeClass(f)})),D.append(O),l.searchOperators||T.hide()})),$(i.hDiv).find(">div>.ui-jqgrid-htable>thead").append(D),$.each(k,(function(){jgrid.bindEv.call(e,this.elem,this.options)})),l.searchOperators&&($(".soptclass",D).click((function(t){var i=$(this).offset();!function(t,i,o){$("#sopt_menu").remove(),i=parseInt(i,10),o=parseInt(o,10)+18;var s,c,u=0,h=[],p=$(t).data("soper"),m=$(t).data("colname"),v=$(".ui-jqgrid-view").css("font-size")||"11px",b="<ul id='sopt_menu' class='"+getGuiStyles.call(e,"searchToolbar.menu","ui-search-menu")+"' role='menu' tabindex='0' style='z-index:9999;display:block;font-size:"+v+";left:"+i+"px;top:"+o+"px;'>";if(void 0!==(u=n.iColByName[m])){var w,y,x,_,k,D=d[u],q=$.extend({},D.searchoptions);for(q.sopt||(q.sopt=[],q.sopt[0]="select"===D.stype||"checkbox"===D.stype?"eq":l.defaultSearch),$.each(A,(function(){h.push(this.oper)})),null!=j&&$.each(j,(function(t){h.push(t)})),u=0;u<q.sopt.length;u++)x=q.sopt[u],-1!==(c=$.inArray(x,h))&&(void 0!==(w=A[c])?(_=l.operands[x],k=w.text):null!=j&&(_=(y=j[x]).operand,k=y.text),s=p===x?g:"",b+='<li class="'+getGuiStyles.call(e,"searchToolbar.menuItem","ui-jqgrid-menu-item "+s)+'" role="presentation"><a class="'+getGuiStyles.call(e,"searchToolbar.menuItemButton","g-menu-item")+'" tabindex="0" role="menuitem" value="'+a(x)+'" data-oper="'+a(_)+'"><table><tr><td style="width:25px">'+a(_)+"</td><td>"+a(k)+"</td></tr></table></a></li>");b+="</ul>",$("body").append(b),$("#sopt_menu > li > a").hover((function(){$(this).addClass(f)}),(function(){$(this).removeClass(f)})).click((function(){var e=$(this).attr("value"),i=$(this).data("oper");if(r.triggerHandler("jqGridToolbarSelectOper",[e,i,t]),$("#sopt_menu").hide(),$(t).data("soper",e).text(i),!0===l.autosearch){var o=$(t).parent().next().children()[0];($(o).val()||"nu"===e||"nn"===e||0<=$.inArray(e,n.customUnaryOperations))&&C()}}))}}(this,i.left,i.top),t.stopPropagation()})),$("body").on("click",(function(t){"soptclass"!==t.target.className&&$("#sopt_menu").hide()}))),$(".clearsearchclass",D).click((function(){var t,e,i=$(this).closest(".ui-search-clear"),r=i.siblings(".ui-search-oper"),o=r.children("a"),a=o.data("soper"),s=parseInt(r.data("colindex"),10),c=i.siblings(".ui-search-input"),u=d[s],h=$.extend({},u.searchoptions||{}),p=h.defaultValue||"";switch(u.stype){case"select":p?c.find("select").val(p):c.find("select")[0].selectedIndex=0;break;case"checkbox":_(c.find("input[type=checkbox]"),-1);break;default:c.find("input").val(p)}("nu"===a||"nn"===a||0<=$.inArray(a,n.customUnaryOperations))&&(t=h.sopt?h.sopt[0]:"select"===u.stype||"checkbox"===u.stype?"eq":l.defaultSearch,e=null!=j&&null!=j[t]?j[t].operand:l.operands[t]||"",o.data("soper",t).text(e)),!0===l.autosearch&&C()})),e.ftoolbar=!0,e.triggerToolbar=C,e.clearToolbar=function(t){var o,a={},s=0;t="boolean"!=typeof t||t,$.each(d,(function(){var t,r,l=this,d=$(w(l.name),!0===l.frozen&&!0===n.frozenColumns?i.fhDiv:i.hDiv),c=l.searchoptions||{};switch(void 0!==c.defaultValue&&(t=c.defaultValue),o=l.index||l.name,l.stype){case"checkbox":_(d,-1);break;case"select":if(r=!(0<d.length&&d[0].multiple),d.find("option").each((function(e){if(this.selected=0===e&&r,$(this).val()===t)return!(this.selected=!0)})),void 0!==t)a[o]=t,s++;else try{delete n.postData[o]}catch(l){}break;case"text":if(d.val(t||""),void 0!==t)a[o]=t,s++;else try{delete n.postData[o]}catch(l){}break;case"custom":$.isFunction(c.custom_value)&&0<d.length&&"SPAN"===d[0].nodeName.toUpperCase()&&(void 0===t&&(t=""),c.custom_value.call(e,d.children(".customelement").first(),"set",t))}}));var c,u=0<s;if(n.resetsearch=!0,l.stringResult||l.searchOperators||"local"===n.datatype){var h='{"groupOp":"'+l.groupOp+'","rules":[',p=0;$.each(a,(function(t,e){0<p&&(h+=","),h+='{"field":"'+t+'",',h+='"op":"eq",',h+='"data":"'+(e+="").replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}',p++})),h+="]}",n.postData[l.sFilter]=h,$.each([l.sField,l.sValue,l.sOper],(function(t,e){n.postData.hasOwnProperty(e)&&delete n.postData[e]}))}else $.extend(n.postData,a);n.searchurl&&(c=n.url,r.jqGrid("setGridParam",{url:n.searchurl}));var f="stop"===r.triggerHandler("jqGridToolbarBeforeClear");!f&&$.isFunction(l.beforeClear)&&(f=l.beforeClear.call(e)),f||t&&r.jqGrid("setGridParam",{search:u}).trigger("reloadGrid",[$.extend({page:1},l.reloadGridResetOptions||{})]),c&&r.jqGrid("setGridParam",{url:c}),r.triggerHandler("jqGridToolbarAfterClear"),$.isFunction(l.afterClear)&&l.afterClear.call(e)},e.toggleToolbar=function(){var t=$("tr.ui-search-toolbar",i.hDiv),e=!0===n.frozenColumns&&$("tr.ui-search-toolbar",i.fhDiv);"none"===t.css("display")?(t.show(),e&&e.show()):(t.hide(),e&&e.hide()),!0===n.frozenColumns&&(r.jqGrid("destroyFrozenColumns"),r.jqGrid("setFrozenColumns"))},!0===n.frozenColumns&&(r.jqGrid("destroyFrozenColumns"),r.jqGrid("setFrozenColumns")),r.on("jqGridRefreshFilterValues.filterToolbar"+(l.loadFilterDefaults?" jqGridAfterLoadComplete.filterToolbar":""),(function(){var t,i,r,o,a,s,d,c=x(!0)||{};if(l.stringResult||l.searchOperators||"local"===n.datatype||!n.search){for(t in c)if(c.hasOwnProperty(t)&&(i=c[t],s=(r=$(w(t))).closest("th.ui-th-column"),0<r.length&&0<s.length)){if(d=(n.colModel[s[0].cellIndex]||{}).searchoptions||{},"SELECT"===r[0].tagName.toUpperCase()&&r[0].multiple)r.val(i.data.split(n.inFilterSeparator||","));else if(r.is("input[type=checkbox]")){var u=y(d);_(r,i.data===u.on?1:i.data===u.off?0:-1)}else if(0<r.find(".customelement").length&&$.isFunction(d.custom_value)){var h=d.custom_value.call(e,r.find(".customelement").first(),"get");""===i.data&&void 0!==d.defaultValue&&(i.data=d.defaultValue),void 0===h&&(h=""),i.data!==h&&String(i.data)!==String(h)&&d.custom_value.call(e,r.find(".customelement").first(),"set",i.data)}else""===i.data&&void 0!==d.defaultValue&&(i.data=d.defaultValue),$.trim(r.val())!==String(i.data)&&r.val(i.data);(o=r.closest(".ui-search-input").siblings(".ui-search-oper").children(".soptclass")).data("soper",i.op),o.text(l.operands[i.op]||(n.customSortOperations[i.op]||{}).operand)}for(a=0;a<n.colModel.length;a++)t=n.colModel[a].name,c.hasOwnProperty(t)||$(w(t)).val("")}}))}}))},destroyFilterToolbar:function(){return this.each((function(){var t=this;t.ftoolbar&&(t.triggerToolbar=null,t.clearToolbar=null,t.toggleToolbar=null,t.ftoolbar=!1,$(t.grid.hDiv).find("table thead tr.ui-search-toolbar").remove(),!0===t.p.frozenColumns&&$(t).jqGrid("destroyFrozenColumns").jqGrid("setFrozenColumns"))}))},destroyGroupHeader:function(t){return void 0===t&&(t=!0),this.each((function(){var e,i,r,n,o,a=this.grid,s=this.p.colModel,l=$("table.ui-jqgrid-htable thead",a.hDiv);if(a){$(this).off(".setGroupHeaders");var d=$("<tr>",{role:"row"}).addClass("ui-jqgrid-labels"),c=a.headers;for(e=0,i=c.length;e<i;e++){o=s[e].hidden?"none":"",r=$(c[e].el).width(c[e].width).css("display",o);try{r.removeAttr("rowSpan")}catch(e){r.attr("rowSpan",1)}d.append(r),0<(n=r.children("span.ui-jqgrid-resize")).length&&(n[0].style.height=""),r.children("div")[0].style.top=""}$(l).children("tr.ui-jqgrid-labels").remove(),$(l).prepend(d),!0===t&&$(this).jqGrid("setGridParam",{groupHeader:null})}}))},setGroupHeaders:function(t){return t=$.extend({useColSpanStyle:!1,applyLabelClasses:!0,groupHeaders:[]},t||{}),this.each((function(){this.p.groupHeader=t;var e,i,r,n,o,a,s,l,d,c,u,h,p,f,g=this,m=0,v=g.p,b=v.colModel,w=b.length,y=g.grid.headers,x=$("table.ui-jqgrid-htable",g.grid.hDiv),_=jgrid.isCellClassHidden,C=x.children("thead").children("tr.ui-jqgrid-labels"),A=C.last().addClass("jqg-second-row-header"),j=x.children("thead"),k=x.find(".jqg-first-row-header");void 0===k[0]?k=$("<tr>",{role:"row","aria-hidden":"true"}).addClass("jqg-first-row-header").css("height","auto"):k.empty();var D=function(t,e){var i;for(i=0;i<e.length;i++)if(e[i].startColumnName===t)return e[i];return 0};for($(g).prepend(j),r=$("<tr>",{role:"row"}).addClass("ui-jqgrid-labels jqg-third-row-header"),e=0;e<w;e++)if(o=y[e].el,a=$(o),i=b[e],s={height:"0",width:y[e].width+"px",display:i.hidden?"none":""},$("<th>",{role:"gridcell"}).css(s).addClass("ui-first-th-"+v.direction+(t.applyLabelClasses?" "+(i.labelClasses||""):"")).appendTo(k),o.style.width="",f=getGuiStyles.call(g,"colHeaders","ui-th-column-header ui-th-"+v.direction+" "+(t.applyLabelClasses&&i.labelClasses||"")),d=D(i.name,t.groupHeaders)){for(c=d.numberOfColumns,u=d.titleText,l=h=0;l<c&&e+l<w;l++)b[e+l].hidden||_(b[e+l].classes)||h++;n=$("<th>").addClass(f).html(u||" "),0<h&&n.attr("colspan",String(h)),v.headertitles&&n.attr("title",n.text()),0===h&&n.hide(),a.before(n),r.append(o),m=c-1}else 0===m?t.useColSpanStyle?a.attr("rowspan",C.length+1):($("<th>").addClass(f).css({display:i.hidden?"none":"","border-top":"0 none"}).insertBefore(a),r.append(o)):(r.append(o),m--);(p=$(g).children("thead")).prepend(k),r.insertAfter(A),x.prepend(p),$(g).triggerHandler("jqGridAfterSetGroupHeaders")}))},getNumberOfFrozenColumns:function(){var t=this;if(0===t.length)return 0;var e,i=(t=t[0]).p.colModel,r=i.length,n=-1;for(e=0;e<r&&!0===i[e].frozen;e++)n=e;return n+1},setFrozenColumns:function(t){return t=t||{},this.each((function(){var e=this,i=$(e),r=e.p,n=e.grid;if(n&&null!=r&&!0!==r.frozenColumns){var o,a,s=r.colModel,l=s.length,d=-1,c=!1,u=[],h=jqID(r.id),p=getGuiStyles.call(e,"states.hover");if(!0!==r.subGrid&&!0!==r.treeGrid&&!r.scroll){for(o=0;o<l&&!0===s[o].frozen;o++)c=!0,d=o,u.push("#jqgh_"+h+"_"+jqID(s[o].name));if(r.sortable){a=$(n.hDiv).find(".ui-jqgrid-htable .ui-jqgrid-labels");try{a.sortable("destroy")}catch(a){}i.jqGrid("setGridParam",{sortable:{options:{items:0<u.length?">th:not(:has("+u.join(",")+"),:hidden)":">th:not(:hidden)"}}}),i.jqGrid("sortableColumns",a)}if(0<=d&&c){var f=r.caption?$(n.cDiv).outerHeight():0,g=$(".ui-jqgrid-htable",r.gView).height();r.toppager&&(f+=$(n.topDiv).outerHeight()),!0===r.toolbar[0]&&"bottom"!==r.toolbar[1]&&(f+=$(n.uDiv).outerHeight()),n.fhDiv=$("<div style='position:absolute;overflow:hidden;"+("rtl"===r.direction?"right:0;border-top-left-radius:0;":"left:0;border-top-right-radius:0;")+"top:"+f+"px;height:"+g+"px;' class='"+getGuiStyles.call(e,"hDiv","frozen-div ui-jqgrid-hdiv")+"'></div>"),n.fbDiv=$("<div style='position:absolute;overflow:hidden;"+("rtl"===r.direction?"right:0;":"left:0;")+"top:"+(parseInt(f,10)+parseInt(g,10)+1)+"px;overflow:hidden;' class='frozen-bdiv ui-jqgrid-bdiv'></div>"),$(r.gView).append(n.fhDiv);var m=$(".ui-jqgrid-htable",r.gView).clone(!0),v=m[0].tHead.rows;if(r.groupHeader){$(v[0].cells).filter(":gt("+d+")").remove(),$(v).filter(".jqg-third-row-header").each((function(){$(this).children("th[id]").each((function(){var t,i=$(this).attr("id");i&&i.substr(0,e.id.length+1)===e.id+"_"&&(t=i.substr(e.id.length+1),r.iColByName[t]>d&&$(this).remove())}))}));var b,w=-1,y=-1;$(v).filter(".jqg-second-row-header").children("th").each((function(){if(b=parseInt($(this).attr("colspan")||1,10),1<parseInt($(this).attr("rowspan")||1,10)?(w++,y++):b&&(w+=b,y++),w===d)return!1})),w!==d&&(y=d),$(v).filter(".jqg-second-row-header,.ui-search-toolbar").each((function(){$(this).children(":gt("+y+")").remove()}))}else $(v).each((function(){$(this).children(":gt("+d+")").remove()}));if($(m).width(1),$(n.fhDiv).append(m).scroll((function(){this.scrollLeft=0})),r.footerrow){var x=$(".ui-jqgrid-bdiv",r.gView).height();n.fsDiv=$("<div style='position:absolute;"+("rtl"===r.direction?"right:0;":"left:0;")+"top:"+(parseInt(f,10)+parseInt(g,10)+parseInt(x,10)+1)+"px;' class='frozen-sdiv ui-jqgrid-sdiv'></div>"),$(r.gView).append(n.fsDiv);var _=$(".ui-jqgrid-ftable",r.gView).clone(!0);$("tr",_).each((function(){$("td:gt("+d+")",this).remove()})),$(_).width(1),$(n.fsDiv).append(_)}$(r.gView).append(n.fbDiv),$(n.bDiv).scroll((function(){$(n.fbDiv).scrollTop($(this).scrollTop())})),$(n.fbDiv).on("mousewheel.setFrozenColumns DOMMouseScroll.setFrozenColumns",(function(i){n.bDiv.scrollTop+=$.isFunction(t.mouseWheel)?t.mouseWheel.call(e,i):"mousewheel"===i.type?-i.originalEvent.wheelDelta/10:6*i.originalEvent.detail})),!0===r.hoverrows&&$(r.idSel).off("mouseover.jqGrid mouseout.jqGrid");var C=function(t,e){var i=t.height();1<=Math.abs(i-e)&&0<e&&(t.height(e),i=t.height(),1<=Math.abs(e-i)&&t.height(e+Math.round(e-i)))},A=function(t,e){var i=t.width();1<=Math.abs(i-e)&&(t.width(e),i=t.width(),1<=Math.abs(e-i)&&t.width(e+Math.round(e-i)))},j=function(t,e,i,n){var a,s,l,d,c,u,h,p,f,g,m,v,b=$(e).position().top;if(null!=t&&0<t.length){if(t[0].scrollTop=e.scrollTop,t.css("rtl"===r.direction?{top:b,right:0}:{top:b,left:0}),l=t.children("table").children("thead").children("tr"),0===(d=$(e).children("div").children("table").children("thead").children("tr")).length&&0<t.children("table").length&&(l=$(t.children("table")[0].rows),d=$($(e).children("div").children("table")[0].rows)),g=0<(s=Math.min(l.length,d.length))?$(l[0]).position().top:0,m=0<s?$(d[0]).position().top:0,0<=i)for(0<=n&&(s=Math.min(n+1,s)),a=i;a<s;a++)if("none"!==(c=$(d[a])).css("display")&&c.is(":visible")){if(b=c.position().top,h=(u=$(l[a])).position().top,p=c.height(),null!=r.groupHeader&&r.groupHeader.useColSpanStyle)for(v=c[0].cells,o=0;o<v.length;o++)null!=(f=v[o])&&"TH"===f.nodeName.toUpperCase()&&(p=Math.max(p,$(f).height()));C(u,p+(b-m)+(g-h))}C(t,e.clientHeight)}},k={resizeDiv:!0,resizedRows:{iRowStart:0,iRowEnd:-1}},D={header:k,resizeFooter:!0,body:k};i.on("jqGridAfterGridComplete.setFrozenColumns",(function(){$(r.idSel+"_frozen").remove(),$(n.fbDiv).height(n.hDiv.clientHeight);var t=$(this).clone(!0),e=t[0].rows,o=i[0].rows;if($(e).filter("tr[role=row]").each((function(){$(this.cells).filter("td[role=gridcell]:gt("+d+")").remove()})),n.fbRows=e,t.width(1).attr("id",r.id+"_frozen"),t.appendTo(n.fbDiv),!0===r.hoverrows){var a=function(t,e,i){$(t)[e](p),$(i[t.rowIndex])[e](p)};$(e).filter(".jqgrow").hover((function(){a(this,"addClass",o)}),(function(){a(this,"removeClass",o)})),$(o).filter(".jqgrow").hover((function(){a(this,"addClass",e)}),(function(){a(this,"removeClass",e)}))}j(n.fhDiv,n.hDiv,0,-1),j(n.fbDiv,n.bDiv,0,-1),n.sDiv&&j(n.fsDiv,n.sDiv,0,-1)}));var q=function(t){$(n.fbDiv).scrollTop($(n.bDiv).scrollTop()),t.header.resizeDiv&&j(n.fhDiv,n.hDiv,t.header.resizedRows.iRowStart,t.header.resizedRows.iRowEnd),t.body.resizeDiv&&j(n.fbDiv,n.bDiv,t.body.resizedRows.iRowStart,t.body.resizedRows.iRowEnd),t.resizeFooter&&n.sDiv&&t.resizeFooter&&j(n.fsDiv,n.sDiv,0,-1);var e=n.fhDiv[0].clientWidth;t.header.resizeDiv&&null!=n.fhDiv&&1<=n.fhDiv.length&&C($(n.fhDiv),n.hDiv.clientHeight),t.body.resizeDiv&&null!=n.fbDiv&&0<n.fbDiv.length&&A($(n.fbDiv),e),t.resizeFooter&&null!=n.fsDiv&&0<=n.fsDiv.length&&A($(n.fsDiv),e)};$(r.gBox).on("resizestop.setFrozenColumns",(function(){setTimeout((function(){q(D)}),50)})),i.on("jqGridInlineEditRow.setFrozenColumns jqGridInlineAfterRestoreRow.setFrozenColumns jqGridInlineAfterSaveRow.setFrozenColumns jqGridAfterEditCell.setFrozenColumns jqGridAfterRestoreCell.setFrozenColumns jqGridAfterSaveCell.setFrozenColumns jqGridResizeStop.setFrozenColumns",(function(t,e){var r=i.jqGrid("getInd",e);q({header:{resizeDiv:!1,resizedRows:{iRowStart:-1,iRowEnd:-1}},resizeFooter:!0,body:{resizeDiv:!0,resizedRows:{iRowStart:r,iRowEnd:r}}})})),i.on("jqGridResizeStop.setFrozenColumns",(function(){q(D)})),i.on("jqGridResetFrozenHeights.setFrozenColumns",(function(t,e){q(e||D)})),n.hDiv.loading||setTimeout((function(){i.triggerHandler("jqGridAfterGridComplete")}),0),r.frozenColumns=!0}}}}))},destroyFrozenColumns:function(){return this.each((function(){var t=$(this),e=this.grid,i=this.p,r=jqID(i.id);if(e&&!0===i.frozenColumns){if($(e.fhDiv).remove(),$(e.fbDiv).off(".setFrozenColumns"),$(e.fbDiv).remove(),e.fhDiv=null,e.fbDiv=null,e.fbRows=null,i.footerrow&&($(e.fsDiv).remove(),e.fsDiv=null),t.off(".setFrozenColumns"),!0===i.hoverrows){var n,o=getGuiStyles.call(this,"states.hover");t.on("mouseover.jqGrid",(function(t){n=$(t.target).closest("tr.jqgrow"),"ui-subgrid"!==$(n).attr("class")&&$(n).addClass(o)})).on("mouseout.jqGrid",(function(t){n=$(t.target).closest("tr.jqgrow"),$(n).removeClass(o)}))}if(i.frozenColumns=!1,i.sortable){var a=$(e.hDiv).find(".ui-jqgrid-htable .ui-jqgrid-labels");a.sortable("destroy"),t.jqGrid("setGridParam",{sortable:{options:{items:">th:not(:has(#jqgh_"+r+"_cb,#jqgh_"+r+"_rn,#jqgh_"+r+"_subgrid),:hidden)"}}}),t.jqGrid("sortableColumns",a)}}}))}}),$.fn.jqFilter=function(t){if("string"==typeof t){var e=$.fn.jqFilter[t];if(!e)throw"jqFilter - No such method: "+t;var i=$.makeArray(arguments).slice(1);return e.apply(this,i)}var r=$.extend(!0,{filter:null,columns:[],onChange:null,afterRedraw:null,error:!1,errmsg:"",errorcheck:!0,showQuery:!0,sopt:null,ops:[],operands:null,numopts:["eq","ne","lt","le","gt","ge","nu","nn","in","ni"],stropts:["eq","ne","bw","bn","ew","en","cn","nc","nu","nn","in","ni"],strarr:["text","string","blob"],groupOps:[{op:"AND",text:"AND"},{op:"OR",text:"OR"}],groupButton:!0,ruleButtons:!0,direction:"ltr"},jgrid.filter,t||{});return this.each((function(){if(!this.filter){null!==(this.p=r).filter&&void 0!==r.filter||(r.filter={groupOp:r.groupOps[0].op,rules:[],groups:[]});var t,e,i=r.columns.length,n=/msie/i.test(navigator.userAgent)&&!window.opera,o=$.isFunction,a=null!=jgrid.defaults&&o(jgrid.defaults.fatalError)?jgrid.defaults.fatalError:alert,s=function(){return $("#"+jgrid.jqID(r.id))[0]||null},l=function(t,e){return $(s()).jqGrid("getGuiStyles",t,e||"")},d=function(t){return $(s()).jqGrid("getGridRes","search."+t)},c=function(t){var e=s(),i=e.p.iColByName[t];return void 0!==i?{cm:e.p.colModel[i],iCol:i}:void 0!==(i=e.p.iPropByName[t])?{cm:e.p.additionalProperties[i],iCol:i,isAddProp:!0}:{cm:null,iCol:-1}},u=l("states.error"),h=l("dialog.content");if(r.initFilter=$.extend(!0,{},r.filter),i){for(t=0;t<i;t++)(e=r.columns[t]).stype?e.inputtype=e.stype:e.inputtype||(e.inputtype="text"),e.sorttype?e.searchtype=e.sorttype:e.searchtype||(e.searchtype="string"),void 0===e.hidden&&(e.hidden=!1),e.label||(e.label=e.name),e.cmName=e.name,e.index&&(e.name=e.index),e.hasOwnProperty("searchoptions")||(e.searchoptions={}),e.hasOwnProperty("searchrules")||(e.searchrules={});r.showQuery&&$(this).append("<table class='queryresult "+h+"' style='display:block;max-width:440px;border:0px none;' dir='"+r.direction+"'><tbody><tr><td class='query'></td></tr></tbody></table>");var p=function(t,e){var i=[!0,""],n=s();if(o(e.searchrules))i=e.searchrules.call(n,t,e);else if(jgrid&&jgrid.checkValues)try{i=jgrid.checkValues.call(n,t,-1,e.searchrules,e.label)}catch(t){}i&&i.length&&!1===i[0]&&(r.error=!i[0],r.errmsg=i[1])};this.onchange=function(){return r.error=!1,r.errmsg="",!!o(r.onChange)&&r.onChange.call(s(),r,this)},this.reDraw=function(){$("table.group:first",this).remove();var t=this.createTableForGroup(r.filter,null);$(this).append(t),o(r.afterRedraw)&&r.afterRedraw.call(s(),r,this)},this.createTableForGroup=function(t,e){var i,n=this,o=$("<table class='"+l("searchDialog.operationGroup","group")+"' style='border:0px none;'><tbody></tbody></table>"),a="left";"rtl"===r.direction&&(a="right",o.attr("dir","rtl")),null===e&&o.append("<tr class='error' style='display:none;'><th colspan='5' class='"+u+"' align='"+a+"'></th></tr>");var s=$("<tr></tr>");o.append(s);var c=$("<th colspan='5' align='"+a+"'></th>");if(s.append(c),!0===r.ruleButtons){var h=$("<select class='"+l("searchDialog.operationSelect","opsel")+"'></select>");c.append(h);var p,f="";for(i=0;i<r.groupOps.length;i++)p=t.groupOp===n.p.groupOps[i].op?" selected='selected'":"",f+="<option value='"+n.p.groupOps[i].op+"'"+p+">"+n.p.groupOps[i].text+"</option>";h.append(f).on("change",(function(){t.groupOp=$(h).val(),n.onchange()}))}var g,m,v,b="<span></span>";if(r.groupButton&&(b=$("<input type='button' value='+ {}' title='"+d("addGroupTitle")+"' class='"+l("searchDialog.addGroupButton","add-group")+"'/>")).on("click",(function(){return void 0===t.groups&&(t.groups=[]),t.groups.push({groupOp:r.groupOps[0].op,rules:[],groups:[]}),n.reDraw(),n.onchange(),!1})),c.append(b),!0===r.ruleButtons){var w,y=$("<input type='button' value='+' title='"+d("addRuleTitle")+"' class='"+l("searchDialog.addRuleButton","add-rule ui-add")+"'/>");y.on("click",(function(){var e,r,o;for(void 0===t.rules&&(t.rules=[]),i=0;i<n.p.columns.length;i++)if(e=void 0===n.p.columns[i].search||n.p.columns[i].search,r=!0===n.p.columns[i].hidden,!0===n.p.columns[i].searchoptions.searchhidden&&e||e&&!r){w=n.p.columns[i];break}return o=w.searchoptions.sopt?w.searchoptions.sopt:n.p.sopt?n.p.sopt:-1!==$.inArray(w.searchtype,n.p.strarr)?n.p.stropts:n.p.numopts,t.rules.push({field:w.name,op:o[0],data:""}),n.reDraw(),!1})),c.append(y)}if(null!==e){var x=$("<input type='button' value='-' title='"+d("deleteGroupTitle")+"' class='"+l("searchDialog.deleteGroupButton","delete-group")+"'/>");c.append(x),x.on("click",(function(){for(i=0;i<e.groups.length;i++)if(e.groups[i]===t){e.groups.splice(i,1);break}return n.reDraw(),n.onchange(),!1}))}if(void 0!==t.groups)for(i=0;i<t.groups.length;i++)g=$("<tr></tr>"),o.append(g),m=$("<td class='first'></td>"),g.append(m),(v=$("<td colspan='4'></td>")).append(this.createTableForGroup(t.groups[i],t)),g.append(v);if(void 0===t.groupOp&&(t.groupOp=n.p.groupOps[0].op),void 0!==t.rules)for(i=0;i<t.rules.length;i++)o.append(this.createTableRowForRule(t.rules[i],t));return o},this.createTableRowForRule=function(t,e){var i,a,u,h,p=this,f=s(),g=$("<tr></tr>"),m="";g.append("<td class='first'></td>");var v=$("<td class='columns'></td>");g.append(v);var b,w=$("<select class='"+l("searchDialog.label","selectLabel")+"'></select>"),y=[];v.append(w),w.on("change",(function(){t.field=$(w).val();var e,i,r=$(this).parents("tr:first");for(i=0;i<p.p.columns.length;i++)if(p.p.columns[i].name===t.field){e=p.p.columns[i];break}if(e){var s=$.extend({},e.editoptions||{});delete s.readonly,delete s.disabled;var d=$.extend({},s||{},e.searchoptions||{},c(e.cmName),{id:jgrid.randId(),name:e.name,mode:"search"});d.column=e,n&&"text"===e.inputtype&&(d.size||(d.size=10));var u=jgrid.createEl.call(f,e.inputtype,$.extend({},d,d.attr||{}),"",!0,p.p.ajaxSelectOptions||{},!0);$(u).addClass(l("searchDialog.elem","input-elm")),a=d.sopt?d.sopt:p.p.sopt?p.p.sopt:-1!==$.inArray(e.searchtype,p.p.strarr)?p.p.stropts:p.p.numopts;var h,g,m,v="",x=0;for(y=[],$.each(p.p.ops,(function(){y.push(this.oper)})),p.p.cops&&$.each(p.p.cops,(function(t){y.push(t)})),i=0;i<a.length;i++)g=a[i],-1!==(b=$.inArray(a[i],y))&&(m=void 0!==(h=p.p.ops[b])?h.text:p.p.cops[g].text,0===x&&(t.op=g),v+="<option value='"+g+"'>"+m+"</option>",x++);if($(".selectopts",r).empty().append(v),$(".selectopts",r)[0].selectedIndex=0,jgrid.msie&&jgrid.msiever()<9){var _=parseInt($("select.selectopts",r)[0].offsetWidth,10)+1;$(".selectopts",r).width(_),$(".selectopts",r).css("width","auto")}if($(".data",r).empty().append(u),e.createColumnIndex&&d.generateDatalist){var C="dl_"+u.id,A=$(f).jqGrid("generateDatalistFromColumnIndex",e.name);null!=A&&0<A.length&&($(u).attr("list",C),$(".data",r).append(A.attr("id",C)))}jgrid.bindEv.call(f,u,d),$(".input-elm",r).on("change",d,(function(e){var i=e.target,r=e.data.column;t.data=r&&"custom"===r.inputtype&&o(r.searchoptions.custom_value)?r.searchoptions.custom_value.call(f,$(this).find(".customelement").first(),"get"):i.value,$(i).is("input[type=checkbox]")&&!$(i).is(":checked")&&(t.data=$(i).data("offval")),p.onchange()})),setTimeout((function(){t.data=$(u).val(),p.onchange()}),0)}}));var x,_,C=0;for(i=0;i<p.p.columns.length;i++)x=void 0===p.p.columns[i].search||p.p.columns[i].search,_=!0===p.p.columns[i].hidden,(!0===p.p.columns[i].searchoptions.searchhidden&&x||x&&!_)&&(h="",t.field===p.p.columns[i].name&&(h=" selected='selected'",C=i),m+="<option value='"+p.p.columns[i].name+"'"+h+">"+p.p.columns[i].label+"</option>");w.append(m);var A=$("<td class='operators'></td>");g.append(A),u=r.columns[C],n&&"text"===u.inputtype&&(u.searchoptions.size||(u.searchoptions.size=10));var j=$.extend({},u.editoptions||{});delete j.readonly,delete j.disabled;var k=$.extend({},j,u.searchoptions||{},c(u.cmName),{id:jgrid.randId(),name:u.name,mode:"search"});k.column=u;var D=jgrid.createEl.call(f,u.inputtype,$.extend({},k,k.attr||{}),t.data,!0,p.p.ajaxSelectOptions||{},!0);("nu"===t.op||"nn"===t.op||0<=$.inArray(t.op,f.p.customUnaryOperations))&&($(D).attr("readonly","true"),$(D).attr("disabled","true"));var q,I,S=$("<select class='"+l("searchDialog.operator","selectopts")+"'></select>");for(A.append(S),S.on("change",(function(){t.op=$(S).val();var e=$(this).parents("tr:first"),i=$(".input-elm",e)[0];"nu"===t.op||"nn"===t.op||0<=$.inArray(t.op,f.p.customUnaryOperations)?(t.data="","SELECT"!==i.tagName.toUpperCase()&&(i.value=""),i.setAttribute("readonly","true"),i.setAttribute("disabled","true")):("SELECT"===i.tagName.toUpperCase()&&(t.data=i.value),i.removeAttribute("readonly"),i.removeAttribute("disabled")),p.onchange()})),a=u.searchoptions.sopt?u.searchoptions.sopt:p.p.sopt?p.p.sopt:-1!==$.inArray(u.searchtype,p.p.strarr)?p.p.stropts:p.p.numopts,m="",$.each(p.p.ops,(function(){y.push(this.oper)})),p.p.cops&&$.each(p.p.cops,(function(t){y.push(t)})),i=0;i<a.length;i++)I=a[i],-1!==(b=$.inArray(a[i],y))&&(q=p.p.ops[b],m+="<option value='"+I+"'"+(h=t.op===I?" selected='selected'":"")+">"+(void 0!==q?q.text:p.p.cops[I].text)+"</option>");S.append(m);var F=$("<td class='data'></td>");if(g.append(F),F.append(D),u.createColumnIndex&&u.searchoptions.generateDatalist){var O="dl_"+D.id,R=$(f).jqGrid("generateDatalistFromColumnIndex",u.name);null!=R&&0<R.length&&($(D).attr("list",O),F.append(R.attr("id",O)))}jgrid.bindEv.call(f,D,u.searchoptions),$(D).addClass(l("searchDialog.elem","input-elm")).on("change",(function(){t.data="custom"===u.inputtype?u.searchoptions.custom_value.call(f,$(this).find(".customelement").first(),"get"):$(this).val(),$(this).is("input[type=checkbox]")&&!$(this).is(":checked")&&(t.data=$(this).data("offval")),$.isArray(t.data)&&(t.data=t.data.join(r.inFilterSeparator||",")),p.onchange()}));var E=$("<td></td>");if(g.append(E),!0===r.ruleButtons){var N=$("<input type='button' value='-' title='"+d("deleteRuleTitle")+"' class='"+l("searchDialog.deleteRuleButton","delete-rule ui-del")+"'/>");E.append(N),N.on("click",(function(){for(i=0;i<e.rules.length;i++)if(e.rules[i]===t){e.rules.splice(i,1);break}return p.reDraw(),p.onchange(),!1}))}return g},this.getStringForGroup=function(t){var e,i="(";if(void 0!==t.groups)for(e=0;e<t.groups.length;e++){1<i.length&&(i+=" "+t.groupOp+" ");try{i+=this.getStringForGroup(t.groups[e])}catch(t){a(t)}}if(void 0!==t.rules)try{for(e=0;e<t.rules.length;e++)1<i.length&&(i+=" "+t.groupOp+" "),i+=this.getStringForRule(t.rules[e])}catch(t){a(t)}return"()"==(i+=")")?"":i},this.getStringForRule=function(t){var e,i,n,a="",l="",d=t.data;for(e=0;e<r.ops.length;e++)if(r.ops[e].oper===t.op){a=r.operands.hasOwnProperty(t.op)?r.operands[t.op]:"",l=r.ops[e].oper;break}if(""===l&&null!=r.cops)for(n in r.cops)if(r.cops.hasOwnProperty(n)&&(l=n,a=r.cops[n].operand,o(r.cops[n].buildQueryValue)))return r.cops[n].buildQueryValue.call(r,{cmName:t.field,searchValue:d,operand:a});for(e=0;e<r.columns.length;e++)if(r.columns[e].name===t.field){i=r.columns[e];break}return null==i?"":("bw"!==l&&"bn"!==l||(d+="%"),"ew"!==l&&"en"!==l||(d="%"+d),"cn"!==l&&"nc"!==l||(d="%"+d+"%"),"in"!==l&&"ni"!==l||(d=" ("+d+")"),r.errorcheck&&p(t.data,i),-1!==$.inArray(i.searchtype,["int","integer","float","number","currency"])||"nn"===l||"nu"===l||0<=$.inArray(l,s().p.customUnaryOperations)?t.field+" "+a+" "+d:t.field+" "+a+' "'+d+'"')},this.resetFilter=function(){r.filter=$.extend(!0,{},r.initFilter),this.reDraw(),this.onchange()},this.hideError=function(){$("th."+u,this).html(""),$("tr.error",this).hide()},this.showError=function(){$("th."+u,this).html(r.errmsg),$("tr.error",this).show()},this.toUserFriendlyString=function(){return this.getStringForGroup(r.filter)},this.toString=function(){var t=this;function e(e){if(t.p.errorcheck){var i,r;for(i=0;i<t.p.columns.length;i++)if(t.p.columns[i].name===e.field){r=t.p.columns[i];break}r&&p(e.data,r)}return e.op+"(item."+e.field+",'"+e.data+"')"}return function t(i){var r,n="(";if(void 0!==i.groups)for(r=0;r<i.groups.length;r++)1<n.length&&("OR"===i.groupOp?n+=" || ":n+=" && "),n+=t(i.groups[r]);if(void 0!==i.rules)for(r=0;r<i.rules.length;r++)1<n.length&&("OR"===i.groupOp?n+=" || ":n+=" && "),n+=e(i.rules[r]);return"()"==(n+=")")?"":n}(r.filter)},this.reDraw(),r.showQuery&&this.onchange(),this.filter=!0}}}))},$.extend($.fn.jqFilter,{toSQLString:function(){var t="";return this.each((function(){t=this.toUserFriendlyString()})),t},filterData:function(){var t;return this.each((function(){t=this.p.filter})),t},getParameter:function(t){return void 0!==t&&this.p.hasOwnProperty(t)?this.p[t]:this.p},resetFilter:function(){return this.each((function(){this.resetFilter()}))},addFilter:function(t){"string"==typeof t&&(t=$.parseJSON(t)),this.each((function(){this.p.filter=t,this.reDraw(),this.onchange()}))}});var xmlJsonClass={xml2json:function(t,e){9===t.nodeType&&(t=t.documentElement);var i=this.removeWhite(t),r=this.toObj(i),n=this.toJson(r,t.nodeName,"\t");return"{\n"+e+(e?n.replace(/\t/g,e):n.replace(/\t|\n/g,""))+"\n}"},json2xml:function(t,e){var i,r=function(t,e,i){var n,o,a,s,l="";if(t instanceof Array)if(0===t.length)l+=i+"<"+e+">__EMPTY_ARRAY_</"+e+">\n";else for(n=0,o=t.length;n<o;n+=1)l+=i+r(t[n],e,i+"\t")+"\n";else if("object"==typeof t){for(s in a=!1,l+=i+"<"+e,t)t.hasOwnProperty(s)&&("@"===s.charAt(0)?l+=" "+s.substr(1)+'="'+t[s].toString()+'"':a=!0);if(l+=a?">":"/>",a){for(s in t)t.hasOwnProperty(s)&&("#text"===s?l+=t[s]:"#cdata"===s?l+="<![CDATA["+t[s]+"]]>":"@"!==s.charAt(0)&&(l+=r(t[s],s,i+"\t")));l+=("\n"===l.charAt(l.length-1)?i:"")+"</"+e+">"}}else"function"==typeof t?l+=i+"<"+e+"><![CDATA["+t+"]]></"+e+">":(void 0===t&&(t=""),'""'===t.toString()||0===t.toString().length?l+=i+"<"+e+">__EMPTY_STRING_</"+e+">":l+=i+"<"+e+">"+t.toString()+"</"+e+">");return l},n="";for(i in t)t.hasOwnProperty(i)&&(n+=r(t[i],i,""));return e?n.replace(/\t/g,e):n.replace(/\t|\n/g,"")},toObj:function(t){var e,i,r={},n=/function/i,o=0,a=0,s=!1;if(1===t.nodeType){if(t.attributes.length)for(e=0;e<t.attributes.length;e+=1)r["@"+t.attributes[e].nodeName]=(t.attributes[e].nodeValue||"").toString();if(t.firstChild){for(i=t.firstChild;i;i=i.nextSibling)1===i.nodeType?s=!0:3===i.nodeType&&i.nodeValue.match(/[^ \f\n\r\t\v]/)?o+=1:4===i.nodeType&&(a+=1);if(s)if(o<2&&a<2)for(this.removeWhite(t),i=t.firstChild;i;i=i.nextSibling)3===i.nodeType?r["#text"]=this.escape(i.nodeValue):4===i.nodeType?n.test(i.nodeValue)?r[i.nodeName]=[r[i.nodeName],i.nodeValue]:r["#cdata"]=this.escape(i.nodeValue):r[i.nodeName]?r[i.nodeName]instanceof Array?r[i.nodeName][r[i.nodeName].length]=this.toObj(i):r[i.nodeName]=[r[i.nodeName],this.toObj(i)]:r[i.nodeName]=this.toObj(i);else t.attributes.length?r["#text"]=this.escape(this.innerXml(t)):r=this.escape(this.innerXml(t));else if(o)t.attributes.length?r["#text"]=this.escape(this.innerXml(t)):"__EMPTY_ARRAY_"===(r=this.escape(this.innerXml(t)))?r="[]":"__EMPTY_STRING_"===r&&(r="");else if(a)if(1<a)r=this.escape(this.innerXml(t));else for(i=t.firstChild;i;i=i.nextSibling){if(n.test(t.firstChild.nodeValue)){r=t.firstChild.nodeValue;break}r["#cdata"]=this.escape(i.nodeValue)}}t.attributes.length||t.firstChild||(r=null)}else 9===t.nodeType?r=this.toObj(t.documentElement):(null!=$.jgrid&&null!=$.jgrid.defaults&&$.isFunction($.jgrid.defaults.fatalError)?$.jgrid.defaults.fatalError:alert)("unhandled node type: "+t.nodeType);return r},toJson:function(t,e,i,r){void 0===r&&(r=!0);var n,o,a,s=e?'"'+e+'"':"",l="\t",d="\n",c=[],u=[];if(r||(d=l=""),"[]"===t)s+=e?":[]":"[]";else if(t instanceof Array){for(o=0,n=t.length;o<n;o+=1)c[o]=this.toJson(t[o],"",i+l,r);s+=(e?":[":"[")+(1<c.length?d+i+l+c.join(","+d+i+l)+d+i:c.join(""))+"]"}else if(null===t)s+=(e&&":")+"null";else if("object"==typeof t){for(a in t)t.hasOwnProperty(a)&&(u[u.length]=this.toJson(t[a],a,i+l,r));s+=(e?":{":"{")+(1<u.length?d+i+l+u.join(","+d+i+l)+d+i:u.join(""))+"}"}else s+="string"==typeof t?(e&&":")+'"'+t.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"':(e&&":")+t.toString();return s},innerXml:function(t){var e,i="",r=function(t){var e,i,n="";if(1===t.nodeType){for(n+="<"+t.nodeName,e=0;e<t.attributes.length;e+=1)n+=" "+t.attributes[e].nodeName+'="'+(t.attributes[e].nodeValue||"").toString()+'"';if(t.firstChild){for(n+=">",i=t.firstChild;i;i=i.nextSibling)n+=r(i);n+="</"+t.nodeName+">"}else n+="/>"}else 3===t.nodeType?n+=t.nodeValue:4===t.nodeType&&(n+="<![CDATA["+t.nodeValue+"]]>");return n};if(t.hasOwnProperty("innerHTML"))i=t.innerHTML;else for(e=t.firstChild;e;e=e.nextSibling)i+=r(e);return i},escape:function(t){return t.replace(/[\\]/g,"\\\\").replace(/[\"]/g,'\\"').replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r")},removeWhite:function(t){t.normalize();for(var e,i=t.firstChild;i;)3===i.nodeType?i.nodeValue.match(/[^ \f\n\r\t\v]/)?i=i.nextSibling:(e=i.nextSibling,t.removeChild(i),i=e):(1===i.nodeType&&this.removeWhite(i),i=i.nextSibling);return t}};window.xmlJsonClass=xmlJsonClass;var jgridFeedback=jgrid.feedback,fullBoolFeedback=jgrid.fullBoolFeedback,builderFmButon=jgrid.builderFmButon,addFormIcon=function(t,e,i){var r;!0===e[0]&&(r="<span class='"+mergeCssClasses("fm-button-icon",i,e[2])+"'></span>","right"===e[1]?t.addClass("fm-button-icon-right").append(r):t.addClass("fm-button-icon-left").prepend(r))},getGuiStateStyles=function(t){return getGuiStyles.call(this,"states."+t)},hideRowsWithoutVissibleCells=function(t){t.find("tr[data-rowpos]").each((function(){var t=0;$(this).children("td").each((function(){"hidden"!==$(this).css("visibility")&&t++})),t||$(this).hide()}))},isEmptyString=function(t){return" "===t||" "===t||1===t.length&&160===t.charCodeAt(0)};jgrid.extend({searchGrid:function(t){return this.each((function(){var e=this,i=$(e),r=e.p;if(e.grid&&null!=r){var n=$.extend(!0,{drag:!0,sField:"searchField",sValue:"searchString",sOper:"searchOper",sFilter:r.prmNames.filters,loadDefaults:!0,beforeShowSearch:null,afterShowSearch:null,onInitializeSearch:null,afterRedraw:null,afterChange:null,closeAfterSearch:!1,closeAfterReset:!1,closeOnEscape:!1,searchOnEnter:!1,multipleSearch:!1,multipleGroup:!1,top:0,left:0,removemodal:!0,resize:!0,width:450,height:"auto",dataheight:"auto",showQuery:!1,errorcheck:!0,sopt:null,stringResult:void 0,onClose:null,onSearch:null,onReset:null,columns:[],tmplNames:null,tmplFilters:null,tmplLabel:" Template: ",showOnLoad:!1,layer:null,operands:{eq:"=",ne:"<>",lt:"<",le:"<=",gt:">",ge:">=",bw:"LIKE",bn:"NOT LIKE",in:"IN",ni:"NOT IN",ew:"LIKE",en:"NOT LIKE",cn:"LIKE",nc:"NOT LIKE",nu:"IS NULL",nn:"IS NOT NULL"}},base.getGridRes.call(i,"search"),jgrid.search||{},r.searching||{},t||{}),o="fbox_"+r.id,a=n.commonIconClass,s={themodal:"searchmod"+o,modalhead:"searchhd"+o,modalcontent:"searchcnt"+o,resizeAlso:o},l="#"+jqID(s.themodal),d=r.gBox,c=r.gView,u=$.each,h=r.postData[n.sFilter],p=function(){var t=$.makeArray(arguments);return t.unshift("Search"),t.unshift("Filter"),t.unshift(n),jgridFeedback.apply(e,t)},f=function(){jgrid.hideModal(l,{gb:d,jqm:n.jqModal,onClose:n.onClose,removemodal:n.removemodal})};if("string"==typeof h&&(h=""!==$.trim(h)?$.parseJSON(h):void 0),$(l).remove(),void 0!==$(l)[0])D($("#fbox_"+jqID(r.id)));else{var g=$("<div><div id='"+o+"' class='"+getGuiStyles.call(e,"dialog.body","searchFilter")+"' style='overflow:auto'></div></div>").insertBefore(c);"rtl"===r.direction&&g.attr("dir","rtl");var m,v,b="",w="",y=!1,x=-1,_=$.extend([],r.colModel),C=builderFmButon.call(e,o+"_search",n.Find,mergeCssClasses(a,n.findDialogIcon),"right"),A=builderFmButon.call(e,o+"_reset",n.Reset,mergeCssClasses(a,n.resetDialogIcon),"left");if(n.showQuery&&(b=builderFmButon.call(e,o+"_query","Query",mergeCssClasses(a,n.queryDialogIcon),"left")+" "),n.searchForAdditionalProperties&&u(r.additionalProperties,(function(){var t="string"==typeof this?{name:this}:this;t.label||(t.label=t.name),t.isAddProp=!0,_.push(t)})),n.columns.length?(_=n.columns,m=_[x=0].index||_[0].name):u(_,(function(t,e){if(e.label||(e.label=e.isAddProp?e.name:r.colNames[t]),!y){var i=void 0===e.search||e.search,n=!0===e.hidden;(e.searchoptions&&!0===e.searchoptions.searchhidden&&i||i&&!n)&&(y=!0,m=e.index||e.name,x=t)}})),!h&&m||!1===n.multipleSearch){var j="eq";0<=x&&_[x].searchoptions&&_[x].searchoptions.sopt?j=_[x].searchoptions.sopt[0]:n.sopt&&n.sopt.length&&(j=n.sopt[0]),h={groupOp:"AND",rules:[{field:m,op:j,data:""}]}}y=!1,n.tmplNames&&n.tmplNames.length&&(y=!0,w=n.tmplLabel,w+="<select class='ui-template'>",w+="<option value='default'>Default</option>",u(n.tmplNames,(function(t,e){w+="<option value='"+t+"'>"+e+"</option>"})),w+="</select>"),v="<div class='"+getGuiStyles.call(e,"dialog.footer")+"'><table class='EditTable' style='border:0px none;margin-top:5px' id='"+o+"_2'><tbody><tr><td colspan='2'><hr class='"+getGuiStyles.call(e,"dialog.hr")+"' style='margin:1px'/></td></tr><tr><td class='EditButton EditButton-"+r.direction+"' style='float:"+("rtl"===r.direction?"right":"left")+";'>"+A+w+"</td><td class='EditButton EditButton-"+r.direction+"'>"+b+C+"</td></tr></tbody></table></div>",o=jqID(o),n.gbox=d,n.height="auto",$(o="#"+o).jqFilter({columns:_,filter:n.loadDefaults?h:null,showQuery:n.showQuery,errorcheck:n.errorcheck,sopt:n.sopt,groupButton:n.multipleGroup,ruleButtons:n.multipleSearch,afterRedraw:n.afterRedraw,ops:n.odata,cops:r.customSortOperations,operands:n.operands,ajaxSelectOptions:r.ajaxSelectOptions,groupOps:n.groupOps,onChange:function(t,i){t.showQuery&&$(".query",i).text(i.toUserFriendlyString()),fullBoolFeedback.call(e,n.afterChange,"jqGridFilterAfterChange",$(o),n,t,i)},direction:r.direction,id:r.id}),g.append(v),y&&n.tmplFilters&&n.tmplFilters.length&&$(".ui-template",g).on("change",(function(){var t=$(this).val();return"default"===t?$(o).jqFilter("addFilter",h):$(o).jqFilter("addFilter",n.tmplFilters[parseInt(t,10)]),!1})),!0===n.multipleGroup&&(n.multipleSearch=!0),p("onInitialize",$(o)),n.layer?jgrid.createModal.call(e,s,g,n,c,$(d)[0],"#"+jqID(n.layer),{position:"relative"}):jgrid.createModal.call(e,s,g,n,c,$(d)[0]),(n.searchOnEnter||n.closeOnEscape)&&$(l).keydown((function(t){var e=$(t.target);return!n.searchOnEnter||13!==t.which||e.hasClass("add-group")||e.hasClass("add-rule")||e.hasClass("delete-group")||e.hasClass("delete-rule")||e.hasClass("fm-button")&&e.is("[id$=_query]")?n.closeOnEscape&&27===t.which?($("#"+jqID(s.modalhead)).find(".ui-jqdialog-titlebar-close").click(),!1):void 0:($(o+"_search").click(),!1)})),b&&$(o+"_query").on("click",(function(){return $(".queryresult",g).toggle(),!1})),void 0===n.stringResult&&(n.stringResult=n.multipleSearch),$(o+"_search").on("click",(function(){var t,a={},s="",l=$(o),d=l.find(".input-elm");if(d.filter(":focus")&&(d=d.filter(":focus")),d.change(),t=l.jqFilter("filterData"),n.errorcheck&&(l[0].hideError(),n.showQuery||l.jqFilter("toSQLString"),l[0].p.error))return l[0].showError(),!1;if(n.stringResult||"local"===r.datatype){try{s=JSON.stringify(t)}catch(t){}"string"==typeof s&&(a[n.sFilter]=s,u([n.sField,n.sValue,n.sOper],(function(){a[this]=""})))}else n.multipleSearch?(a[n.sFilter]=t,u([n.sField,n.sValue,n.sOper],(function(){a[this]=""}))):(a[n.sField]=t.rules[0].field,a[n.sValue]=t.rules[0].data,a[n.sOper]=t.rules[0].op,a[n.sFilter]="");return $.extend(r.postData,a),fullBoolFeedback.call(e,n.onSearch,"jqGridFilterSearch",r.filters)&&(r.search=!0,i.trigger("reloadGrid",[$.extend({page:1},n.reloadGridSearchOptions||{})])),n.closeAfterSearch&&f(),!1})),$(o+"_reset").on("click",(function(){var t={},a=$(o);return r.search=!1,!(r.resetsearch=!0)===n.multipleSearch?t[n.sField]=t[n.sValue]=t[n.sOper]="":t[n.sFilter]="",a[0].resetFilter(),y&&$(".ui-template",g).val("default"),$.extend(r.postData,t),fullBoolFeedback.call(e,n.onReset,"jqGridFilterReset")&&i.trigger("reloadGrid",[$.extend({page:1},n.reloadGridResetOptions||{})]),n.closeAfterReset&&f(),!1})),D($(o));var k=getGuiStateStyles.call(e,"hover");$(".fm-button:not(."+getGuiStateStyles.call(e,"disabled").split(" ").join(".")+")",g).hover((function(){$(this).addClass(k)}),(function(){$(this).removeClass(k)}))}}function D(t){p("beforeShow",t)&&($(l).data("onClose",n.onClose),jgrid.viewModal.call(e,l,{gbox:d,jqm:n.jqModal,overlay:n.overlay,modal:n.modal,overlayClass:n.overlayClass,toTop:n.toTop,onHide:function(t){t.w.remove(),t.o&&t.o.remove()}}),p("afterShow",t))}}))},editGridRow:function(t,e){return this.each((function(){var i=this,r=$(i),n=i.p;if(i.grid&&null!=n&&t){var o,a,s=n.id,l=base.getGridRes,d=base.setSelection,c=$.extend(!0,{top:0,left:0,width:300,datawidth:"auto",height:"auto",dataheight:"auto",drag:!0,resize:!0,url:null,mtype:"POST",clearAfterAdd:!0,closeAfterEdit:!1,reloadAfterSubmit:!0,onInitializeForm:null,beforeInitData:null,beforeShowForm:null,afterShowForm:null,beforeSubmit:null,afterSubmit:null,onclickSubmit:null,afterComplete:null,onclickPgButtons:null,afterclickPgButtons:null,editData:{},closeOnEscape:!1,addedrow:"first",topinfo:"",bottominfo:"",labelswidth:"",savekey:[!1,13],navkeys:[!1,38,40],checkOnSubmit:!1,checkOnUpdate:!1,_savedData:{},processing:!1,onClose:null,ajaxEditOptions:{},serializeEditData:null,viewPagerButtons:!0,overlayClass:getGuiStyles.call(this,"overlay"),removemodal:!0,skipPostTypes:["image","file"],saveui:"enable",savetext:l.call(r,"defaults.savetext")||"Saving..."},l.call(r,"edit"),jgrid.edit,n.formEditing||{},e||{}),u="FrmGrid_"+s,h=u,p="TblGrid_"+s,f="#"+jqID(p),g=f+"_2",m={themodal:"editmod"+s,modalhead:"edithd"+s,modalcontent:"editcnt"+s,resizeAlso:u},v="#"+jqID(m.themodal),b=n.gBox,w=n.colModel,y=n.iColByName,x=1,_=0,C=c.commonIconClass,A=function(){jgrid.hideModal(v,{gb:b,jqm:c.jqModal,onClose:c.onClose,removemodal:c.removemodal})},j=l.call(r,"errors.errcap"),k=function(){var t=$.makeArray(arguments);return t.unshift(""),t.unshift("AddEdit"),t.unshift(c),jgridFeedback.apply(i,t)},D=getGuiStateStyles.call(i,"hover"),q=getGuiStateStyles.call(i,"disabled"),I=getGuiStateStyles.call(i,"select"),S=getGuiStateStyles.call(i,"active"),F=getGuiStateStyles.call(i,"error");$(v).remove(),u="#"+jqID(u),"new"===t?(t="_empty",a="add",c.caption=c.addCaption):(c.caption=c.editCaption,a="edit");var O=!0;!c.checkOnUpdate||!0!==c.jqModal&&void 0!==c.jqModal||c.modal||(O=!1);var R=isNaN(c.dataheight)?c.dataheight:c.dataheight+"px",E=isNaN(c.datawidth)?c.datawidth:c.datawidth+"px",N=$("<form name='FormPost' id='"+h+"' class='FormGrid' onSubmit='return false;' style='width:"+E+";overflow:auto;position:relative;height:"+R+";'></form>").data("disabled",!1),T=$("<table id='"+p+"' class='EditTable'><tbody></tbody></table>");$(w).each((function(){var t=this.formoptions;x=Math.max(x,t&&t.colpos||0),_=Math.max(_,t&&t.rowpos||0)})),$(N).append(T);var M=$("<tr id='FormError' style='display:none'><td class='"+F+"' colspan='"+2*x+"'> </td></tr>");if(M[0].rp=0,$(T).append(M),(M=$("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+2*x+"'>"+(c.topinfo||" ")+"</td></tr>"))[0].rp=0,$(T).append(M),k("beforeInitData",N,a)){!function(){var e=jgrid.detectRowEditing.call(i,t);if(null!=e)if("inlineEditing"===e.mode)base.restoreRow.call(r,t);else{var n=e.savedRow,o=i.rows[n.id];base.restoreCell.call(r,n.id,n.ic),$(o.cells[n.ic]).removeClass("edit-cell "+I),$(o).addClass(I).attr({"aria-selected":"true",tabindex:"0"})}}();var z="rtl"===n.direction,P=z?"nData":"pData",B=z?"pData":"nData";!function(t,e,o){var a,l=0,d=[],h=!1,p=$(e),f=String(c.labelswidth)+(!c.labelswidth||isNaN(c.labelswidth)?"":"px"),g="<td class='CaptionTD"+(f?"' style='width:"+f+";":"")+"'> </td><td class='DataTD'> </td>",m="";for(a=1;a<=o;a++)m+=g;if("_empty"!==t&&(h=base.getInd.call(r,t)),$(w).each((function(e){var a,s,f,g,v,b=this,w=b.name,y=b.editable,x=!1,_=!1,C="_empty"===t?"addForm":"editForm";switch($.isFunction(y)&&(y=y.call(i,{rowid:t,iCol:e,iRow:h,cmName:w,cm:b,mode:C})),s=!(b.editrules&&!0===b.editrules.edithidden||!0!==b.hidden&&"hidden"!==y),String(y).toLowerCase()){case"hidden":y=!0;break;case"disabled":x=y=!0;break;case"readonly":_=y=!0}if("cb"!==w&&"subgrid"!==w&&!0===y&&"rn"!==w){if(!1===h)g="";else{a=$(i.rows[h].cells[e]);try{g=$.unformat.call(i,a,{rowId:t,colModel:b},e)}catch(e){g=b.edittype&&"textarea"===b.edittype?a.text():a.html()}isEmptyString(g)&&(g="")}var A=$.extend({},b.editoptions||{},{id:w,name:w,rowId:t,mode:C,cm:b,iCol:e}),j=$.extend({},{elmprefix:"",elmsuffix:"",rowabove:!1,rowcontent:""},b.formoptions||{}),k=parseInt(j.rowpos,10)||l+1,D=parseInt(2*(parseInt(j.colpos,10)||1),10);if("_empty"===t&&A.defaultValue&&(g=$.isFunction(A.defaultValue)?A.defaultValue.call(i):A.defaultValue),b.edittype||(b.edittype="text"),n.autoEncodeOnEdit&&(g=jgrid.oldDecodePostedData(g)),v=jgrid.createEl.call(i,b.edittype,A,g,!1,$.extend({},jgrid.ajaxOptions,n.ajaxSelectOptions||{})),(c.checkOnSubmit||c.checkOnUpdate)&&(c._savedData[w]=g),$(v).addClass("FormElement"),-1<$.inArray(b.edittype,["text","textarea","checkbox","password","select"])&&$(v).addClass(getGuiStyles.call(i,"dialog.dataField")),f=p.find("tr[data-rowpos="+k+"]"),j.rowabove){var I=$("<tr><td class='contentinfo' colspan='"+2*o+"'>"+j.rowcontent+"</td></tr>");p.append(I),I[0].rp=k}0===f.length&&(f=$("<tr data-rowpos='"+k+"'></tr>").addClass("FormData").attr("id","tr_"+w),$(f).append(m),p.append(f),f[0].rp=k);var S=$("td:eq("+(D-2)+")",f[0]),F=$("td:eq("+(D-1)+")",f[0]);S.html(void 0===j.label?n.colNames[e]:j.label||" ");var O=F[isEmptyString(F.html())?"html":"append"](j.elmprefix);if(O.append(v).append(j.elmsuffix),"INPUT"===v.tagName.toUpperCase()&&b.createColumnIndex&&A.generateDatalist){var R=r.jqGrid("generateDatalistFromColumnIndex",b.name);null!=R&&0<R.length&&($(v).attr("list","dl_"+v.id),O.append(R.attr("id","dl_"+v.id)))}x?(S.addClass(q),F.addClass(q),$(v).prop("readonly",!0),$(v).prop("disabled",!0)):_&&$(v).prop("readonly",!0),"custom"===b.edittype&&$.isFunction(A.custom_value)&&A.custom_value.call(i,$("#"+jqID(w),u),"set",g),jgrid.bindEv.call(i,v,A),s&&S.add(F).css("visibility","hidden"),d[l]=e,l++}})),hideRowsWithoutVissibleCells(p),0<l){var v=$("<tr class='FormData' style='display:none'><td class='CaptionTD'> </td><td colspan='"+(2*o-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+s+"_id' value='"+t+"'/></td></tr>");v[0].rp=l+999,p.append(v),(c.checkOnSubmit||c.checkOnUpdate)&&(c._savedData[s+"_id"]=t)}}(t,T,x);var G=builderFmButon.call(i,P,"",mergeCssClasses(C,c.prevIcon),"","left"),H=builderFmButon.call(i,B,"",mergeCssClasses(C,c.nextIcon),"","right"),L=builderFmButon.call(i,"sData",c.bSubmit),W=builderFmButon.call(i,"cData",c.bCancel),V="<div class='"+getGuiStyles.call(i,"dialog.footer")+"'><table class='EditTable' id='"+p+"_2'><tbody><tr><td colspan='2'><hr class='"+getGuiStyles.call(i,"dialog.hr")+"' style='margin:1px'/></td></tr><tr id='Act_Buttons'><td class='navButton navButton-"+n.direction+"'>"+(z?H+G:G+H)+"</td><td class='EditButton EditButton-"+n.direction+"'>"+L+" "+W+"</td></tr>";if(V+="<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+(c.bottominfo||" ")+"</td></tr>",V+="</tbody></table></div>",0<_){var Y=[];$.each($(T)[0].rows,(function(t,e){Y[t]=e})),Y.sort((function(t,e){return t.rp>e.rp?1:t.rp<e.rp?-1:0})),$.each(Y,(function(t,e){$("tbody",T).append(e)}))}c.gbox=b;var U=!1;!0===c.closeOnEscape&&(c.closeOnEscape=!1,U=!0);var Q=$("<div></div>").append($("<div class='"+getGuiStyles.call(i,"dialog.body")+"'></div>").append(N)).append(V);if(jgrid.createModal.call(i,m,Q,c,n.gView,$(b)[0]),c.topinfo&&$(".tinfo",f).show(),c.bottominfo&&$(".binfo",g).show(),V=Q=null,$(v).keydown((function(t){var e,i,r=(t.target.tagName||"").toUpperCase();if(!0===$(u).data("disabled"))return!1;if(13===t.which&&"TEXTAREA"!==r){if(i=(e=$(g).find(":focus")).attr("id"),0<e.length&&0<=$.inArray(i,["pData","nData","cData"]))return e.trigger("click"),!1;if(!0===c.savekey[0]&&13===c.savekey[1])return $("#sData",g).trigger("click"),!1}if(!0===c.savekey[0]&&t.which===c.savekey[1]&&"TEXTAREA"!==r)return $("#sData",g).trigger("click"),!1;if(27===t.which)return it()&&U&&A(),!1;if(!0===c.navkeys[0]){if("_empty"===$("#id_g",f).val())return!0;if(t.which===c.navkeys[1])return $("#pData",g).trigger("click"),!1;if(t.which===c.navkeys[2])return $("#nData",g).trigger("click"),!1}})),c.checkOnUpdate&&($("a.ui-jqdialog-titlebar-close span",v).removeClass("jqmClose"),$("a.ui-jqdialog-titlebar-close",v).off("click").click((function(){return it()&&A(),!1}))),addFormIcon($("#sData",g),c.saveicon,C),addFormIcon($("#cData",g),c.closeicon,C),c.checkOnSubmit||c.checkOnUpdate){L=builderFmButon.call(i,"sNew",c.bYes),H=builderFmButon.call(i,"nNew",c.bNo),W=builderFmButon.call(i,"cNew",c.bExit);var X=c.zIndex||999;X++,$("<div class='"+c.overlayClass+" jqgrid-overlay confirm' style='z-index:"+X+";display:none;'> </div><div class='"+getGuiStyles.call(i,"dialog.content","confirm ui-jqconfirm")+"' style='z-index:"+(X+1)+"'>"+c.saveData+"<br/><br/>"+L+H+W+"</div>").insertAfter(u),$("#sNew",v).click((function(){return tt(),$(u).data("disabled",!1),$(".confirm",v).hide(),!1})),$("#nNew",v).click((function(){return $(".confirm",v).hide(),$(u).data("disabled",!1),setTimeout((function(){$(u).find("input,textarea,select,button,object,*[tabindex]").filter(":input:visible:not(:disabled)").first().focus()}),0),!1})),$("#cNew",v).click((function(){return $(".confirm",v).hide(),$(u).data("disabled",!1),A(),!1}))}k("onInitializeForm",$(u),a),"_empty"!==t&&c.viewPagerButtons?$("#pData,#nData",g).show():$("#pData,#nData",g).hide(),k("beforeShowForm",$(u),a),$(v).data("onClose",c.onClose),jgrid.viewModal.call(i,v,{gbox:b,jqm:c.jqModal,overlay:c.overlay,modal:c.modal,overlayClass:c.overlayClass,toTop:c.toTop,onHide:function(t){t.w.remove(),t.o&&t.o.remove()}}),O||$("."+jqID(c.overlayClass)).click((function(){return it()&&A(),!1})),$(".fm-button",v).hover((function(){$(this).addClass(D)}),(function(){$(this).removeClass(D)})),$("#sData",g).click((function(){return o={},$("#FormError",f).hide(),J(),"_empty"===o[s+"_id"]?tt():!0===c.checkOnSubmit&&et(o,c._savedData)?($(u).data("disabled",!0),$(".confirm",v).show()):tt(),!1})),$("#cData",g).click((function(){return it()&&A(),!1})),$("#nData",g).click((function(){if(!it())return!1;$("#FormError",f).hide();var t=nt();if(t[0]=parseInt(t[0],10),-1!==t[0]&&t[1][t[0]+1]){if(!k("onclickPgButtons","next",$(u),t[1][t[0]]))return!1;Z(t[1][t[0]+1],u),d.call(r,t[1][t[0]+1]),k("afterclickPgButtons","next",$(u),t[1][t[0]+1]),rt(t[0]+1,t)}return!1})),$("#pData",g).click((function(){if(!it())return!1;$("#FormError",f).hide();var t=nt();if(-1!==t[0]&&t[1][t[0]-1]){if(!k("onclickPgButtons","prev",$(u),t[1][t[0]]))return!1;if(hasOneFromClasses($("#"+jqID(t[1][t[0]-1])),q))return!1;Z(t[1][t[0]-1],u),d.call(r,t[1][t[0]-1]),k("afterclickPgButtons","prev",$(u),t[1][t[0]-1]),rt(t[0]-1,t)}return!1})),k("afterShowForm",$(u),a);var K=nt();rt(K[0],K)}}function J(){return $(f+" > tbody > tr > td .FormElement").each((function(){var t,e,n=$(".customelement",this),a=n.length?n.attr("name"):this.name,s=y[a],d=void 0!==s&&w[s]||{},u=d.editoptions||{};if(n.length&&$.isFunction(u.custom_value)){try{if(o[a]=u.custom_value.call(i,$("#"+jqID(a),f),"get"),void 0===o[a])throw"e1"}catch(t){"e1"===t?jgrid.info_dialog.call(i,j,"function 'custom_value' "+c.msg.novalue,c.bClose):jgrid.info_dialog.call(i,j,t.message,c.bClose)}return!0}switch(e=$(this)[0].type){case"checkbox":var h="string"==typeof u.value?u.value.split(":"):["Yes","No"];o[a]=$(this).is(":checked")?h[0]:h[1];break;case"select-one":o[a]=$("option:selected",this).val();break;case"select-multiple":o[a]=$(this).val(),o[a]=o[a]?o[a].join(","):"";var p=[];$("option:selected",this).each((function(t,e){p[t]=$(e).text()}));break;case"date":o[a]=$(this).val(),3===String(o[a]).split("-").length&&(t=(d.formatoptions||{}).newformat||l.call(r,"formatter.date.newformat"),o[a]=jgrid.parseDate.call(r[0],"Y-m-d",o[a],t));break;default:void 0!==e&&$.inArray(e,c.skipPostTypes)<0&&(o[a]=$(this).val())}})),!0}function Z(t,e){var o,a,l,d,u,h=0;(c.checkOnSubmit||c.checkOnUpdate)&&(c._savedData={},c._savedData[s+"_id"]=t);var p=n.colModel;if("_empty"===t)return $(p).each((function(){o=this.name,l=$.extend({},this.editoptions||{}),(a=$("#"+jqID(o),e))&&a.length&&null!==a[0]&&(d="","custom"===this.edittype&&$.isFunction(l.custom_value)?l.custom_value.call(i,a,"set",d):l.defaultValue?(d=$.isFunction(l.defaultValue)?l.defaultValue.call(i):l.defaultValue,"checkbox"===a[0].type?(u=d.toLowerCase()).search(/(false|f|0|no|n|off|undefined)/i)<0&&""!==u?(a[0].checked=!0,a[0].defaultChecked=!0,a[0].value=d):(a[0].checked=!1,a[0].defaultChecked=!1):a.val(d)):"checkbox"===a[0].type?(a[0].checked=!1,a[0].defaultChecked=!1,d=$(a).data("offval")):a[0].type&&"select"===a[0].type.substr(0,6)?a[0].selectedIndex=0:a.val(d),(!0===c.checkOnSubmit||c.checkOnUpdate)&&(c._savedData[o]=d))})),void $("#id_g",e).val(t);var g=base.getInd.call(r,t,!0);g&&($(g.cells).filter("td[role=gridcell]").each((function(r){var a;if("cb"!==(o=p[r].name)&&"subgrid"!==o&&"rn"!==o&&!0===p[r].editable){try{a=$.unformat.call(i,$(this),{rowId:t,colModel:p[r]},r)}catch(t){a="textarea"===p[r].edittype?$(this).text():$(this).html()}switch(n.autoEncodeOnEdit&&(a=jgrid.oldDecodePostedData(a)),(!0===c.checkOnSubmit||c.checkOnUpdate)&&(c._savedData[o]=a),o="#"+jqID(o),p[r].edittype){case"password":case"text":case"button":case"image":case"textarea":isEmptyString(a)&&(a=""),$(o,e).val(a);break;case"select":var s=a.split(",");s=$.map(s,(function(t){return $.trim(t)})),$(o+" option",e).each((function(){var t,e=this,i=$(e),n=$.trim(i.val());if(p[r].editoptions.multiple||s[0]!==n?p[r].editoptions.multiple&&-1<(t=$.inArray(n,s))?(s.splice(t,1),e.selected=!0):e.selected=!1:(s.splice(0,1),e.selected=!0),0===s.length)return!1})),0<s.length&&$(o+" option",e).each((function(){var t,e=$(this),i=$.trim(e.text());if(p[r].editoptions.multiple||$.trim(a)!==i&&s[0]!==i?p[r].editoptions.multiple&&-1<(t=$.inArray(i,s))&&(s.splice(t,1),this.selected=!0):(s.splice(0,1),this.selected=!0),0===s.length)return!1}));break;case"checkbox":a=String(a),a=p[r].editoptions&&p[r].editoptions.value?p[r].editoptions.value.split(":")[0]===a:(a=a.toLowerCase()).search(/(false|f|0|no|n|off|undefined)/i)<0&&""!==a,$(o,e).prop({checked:a,defaultChecked:a});break;case"custom":try{if(!p[r].editoptions||!$.isFunction(p[r].editoptions.custom_value))throw"e1";p[r].editoptions.custom_value.call(i,$(o,e),"set",a)}catch(t){"e1"===t?jgrid.info_dialog.call(i,j,"function 'custom_value' "+c.msg.nodefined,c.bClose):jgrid.info_dialog.call(i,j,t.message,c.bClose)}}h++}})),0<h&&$("#id_g",f).val(t))}function tt(){var e,l,h,p,m,v,b,y,x,_=[!0,"",""],C=_,j={},k=n.prmNames,D=base.getInd.call(r,t),q=!1===D?null:i.rows[D],I=r.triggerHandler("jqGridAddEditBeforeCheckValues",[o,$(u),a]);for(h in I&&"object"==typeof I&&(o=I),D=!1===D?-1:D,$.isFunction(c.beforeCheckValues)&&(I=c.beforeCheckValues.call(i,o,$(u),a))&&"object"==typeof I&&(o=I),o)if(o.hasOwnProperty(h)&&(y=n.iColByName[h],null!=(C=jgrid.checkValues.call(i,o[h],h,void 0,void 0,{oldValue:"_empty"===t?null:base.getCell.call(r,t,y),newValue:o[h],cmName:h,rowid:t,cm:w[y],iCol:y,iRow:D,tr:q,td:null==q?null:q.cells[y],mode:"_empty"===t?"addForm":"editForm"}))&&!0!==C||(C=_),!1===C[0]))break;if(x=c.url||n.editurl,$.each(w,(function(t,e){var r=e.name;o.hasOwnProperty(r)&&("date"!==e.formatter||null!=e.formatoptions&&!0===e.formatoptions.sendFormatted||(o[r]=$.unformat.date.call(i,o[r],e)),"clientArray"!==x&&e.editoptions&&!0===e.editoptions.NullIfEmpty&&""===o[r]&&(o[r]="null"))})),C[0]&&(void 0===(j=r.triggerHandler("jqGridAddEditClickSubmit",[c,o,a]))&&$.isFunction(c.onclickSubmit)&&(j=c.onclickSubmit.call(i,c,o,a)||{}),null!=(C=r.triggerHandler("jqGridAddEditBeforeSubmit",[o,$(u),a]))&&!0!==C||(C=_),C[0]&&$.isFunction(c.beforeSubmit)&&(null!=(C=c.beforeSubmit.call(i,o,$(u),a))&&!0!==C||(C=_))),C[0]&&!c.processing){if(c.processing=!0,$("#sData",g).addClass(S),v=c.url||n.editurl,l=k.oper,e="clientArray"===v&&!1!==n.keyName?n.keyName:k.id,o[l]="_empty"===$.trim(o[s+"_id"])?k.addoper:k.editoper,(o[l]!==k.addoper||void 0===o[e])&&(o[e]=o[s+"_id"]),delete o[s+"_id"],o=$.extend(o,c.editData,j),!0===n.treeGrid){if(o[l]===k.addoper){p=n.selrow;var F="adjacency"===n.treeGridModel?n.treeReader.parent_id_field:"parent_id";o[F]=p}for(m in n.treeReader)if(n.treeReader.hasOwnProperty(m)&&(b=n.treeReader[m],o.hasOwnProperty(b))){if(o[l]===k.addoper&&"parent_id_field"===m)continue;delete o[b]}}o[e]=jgrid.stripPref(n.idPrefix,o[e]),n.autoEncodeOnEdit&&$.each(o,(function(t,e){$.isFunction(e)||(o[t]=jgrid.oldEncodePostedData(e))}));var O=$.extend({url:$.isFunction(v)?v.call(i,o[e],a,o,c):v,type:$.isFunction(c.mtype)?c.mtype.call(i,a,c,o[e],o):c.mtype,data:jgrid.serializeFeedback.call(i,$.isFunction(c.serializeEditData)?c.serializeEditData:n.serializeEditData,"jqGridAddEditSerializeEditData",o),complete:function(t,h){if(r.jqGrid("progressBar",{method:"hide",loadtype:c.saveui}),$("#sData",g).removeClass(S),o[e]=$("#id_g",f).val(),300<=t.status&&304!==t.status||0===t.status&&4===t.readyState?(C[0]=!1,C[1]=r.triggerHandler("jqGridAddEditErrorTextFormat",[t,a]),$.isFunction(c.errorTextFormat)?C[1]=c.errorTextFormat.call(i,t,a):C[1]=h+" Status: '"+t.statusText+"'. Error code: "+t.status):(null!=(C=r.triggerHandler("jqGridAddEditAfterSubmit",[t,o,a]))&&!0!==C||(C=_),C[0]&&$.isFunction(c.afterSubmit)&&(null!=(C=c.afterSubmit.call(i,t,o,a))&&!0!==C||(C=_))),!1===C[0])$("#FormError>td",f).html(C[1]),$("#FormError",f).show();else{n.autoEncodeOnEdit&&$.each(o,(function(t,e){o[t]=jgrid.oldDecodePostedData(e)}));var m,v=[$.extend({},c.reloadGridOptions||{})];if(o[l]===k.addoper?(C[2]||(C[2]=jgrid.randId()),null==o[e]||"_empty"===o[e]||o[l]===k.addoper?o[e]=C[2]:C[2]=o[e],c.reloadAfterSubmit?r.trigger("reloadGrid",v):!0===n.treeGrid?base.addChildNode.call(r,C[2],p,o):base.addRowData.call(r,C[2],o,c.addedrow),c.closeAfterAdd?(!0!==n.treeGrid&&d.call(r,C[2]),A()):c.clearAfterAdd&&Z("_empty",u)):(c.reloadAfterSubmit?(r.trigger("reloadGrid",v),c.closeAfterEdit||setTimeout((function(){d.call(r,o[e])}),1e3)):!0===n.treeGrid?base.setTreeRow.call(r,o[e],o):base.setRowData.call(r,o[e],o),c.closeAfterEdit&&A()),$.isFunction(c.afterComplete)){var b=t;setTimeout((function(){r.triggerHandler("jqGridAddEditAfterComplete",[b,o,$(u),a]),c.afterComplete.call(i,b,o,$(u),a),b=null}),50)}if((c.checkOnSubmit||c.checkOnUpdate)&&($(u).data("disabled",!1),"_empty"!==c._savedData[s+"_id"]))for(m in c._savedData)c._savedData.hasOwnProperty(m)&&o[m]&&(c._savedData[m]=o[m])}c.processing=!1;try{$(u).find("input,textarea,select,button,object,*[tabindex]").filter(":input:visible:not(:disabled)").first().focus()}catch(t){}}},jgrid.ajaxOptions,c.ajaxEditOptions);if(O.url||c.useDataProxy||($.isFunction(n.dataProxy)?c.useDataProxy=!0:(C[0]=!1,C[1]+=" "+jgrid.errors.nourl)),C[0])if(r.jqGrid("progressBar",{method:"show",loadtype:c.saveui,htmlcontent:c.savetext}),c.useDataProxy){var R=n.dataProxy.call(i,O,"set_"+s);void 0===R&&(R=[!0,""]),!1===R[0]?(C[0]=!1,C[1]=R[1]||"Error deleting the selected row!"):(O.data.oper===k.addoper&&c.closeAfterAdd&&A(),O.data.oper===k.editoper&&c.closeAfterEdit&&A())}else"clientArray"===O.url?(c.reloadAfterSubmit=!1,o=O.data,O.complete({status:200,statusText:""},"")):$.ajax(O)}!1===C[0]&&($("#FormError>td",f).html(C[1]),$("#FormError",f).show())}function et(t,e){var i,r=!1;for(i in t)if(t.hasOwnProperty(i)&&String(t[i])!==String(e[i])){r=!0;break}return r}function it(){var t=!0;return $("#FormError",f).hide(),c.checkOnUpdate&&(o={},J(),et(o,c._savedData)&&($(u).data("disabled",!0),$(".confirm",v).show(),t=!1)),t}function rt(t,e){var i=e[1].length-1;0===t||void 0!==e[1][t-1]&&hasOneFromClasses($("#"+jqID(e[1][t-1])),q)?$("#pData",g).addClass(q):$("#pData",g).removeClass(q),t===i||void 0!==e[1][t+1]&&hasOneFromClasses($("#"+jqID(e[1][t+1])),q)?$("#nData",g).addClass(q):$("#nData",g).removeClass(q)}function nt(){var t=base.getDataIDs.call(r),e=$("#id_g",f).val();return[$.inArray(e,t),t]}}))},viewGridRow:function(t,e){return this.each((function(){var i=this,r=$(i),n=i.p;if(i.grid&&null!=n&&t){var o=n.id,a=$.extend(!0,{top:0,left:0,width:0,datawidth:"auto",height:"auto",dataheight:"auto",drag:!0,resize:!0,closeOnEscape:!1,labelswidth:"",navkeys:[!1,38,40],onClose:null,beforeShowForm:null,beforeInitData:null,viewPagerButtons:!0,removemodal:!0},base.getGridRes.call(r,"view"),jgrid.view||{},n.formViewing||{},e||{}),s="#ViewGrid_"+jqID(o),l="#ViewTbl_"+jqID(o),d=l+"_2",c="ViewGrid_"+o,u="ViewTbl_"+o,h=a.commonIconClass,p={themodal:"viewmod"+o,modalhead:"viewhd"+o,modalcontent:"viewcnt"+o,resizeAlso:c},f="#"+jqID(p.themodal),g=n.gBox,m=n.colModel,v=1,b=0,w=function(){var t=$.makeArray(arguments);return t.unshift(""),t.unshift("View"),t.unshift(a),jgridFeedback.apply(i,t)},y=function(){jgrid.hideModal(f,{gb:g,jqm:a.jqModal,onClose:a.onClose,removemodal:a.removemodal})},x=getGuiStateStyles.call(i,"hover"),_=getGuiStateStyles.call(i,"disabled"),C=isNaN(a.dataheight)?a.dataheight:a.dataheight+"px",A=isNaN(a.datawidth)?a.datawidth:a.datawidth+"px",j=$("<div class='"+getGuiStyles.call(i,"dialog.body")+"'><form name='FormPost' id='"+c+"' class='FormGrid' style='width:"+A+";overflow:auto;position:relative;height:"+C+";'></form></div>"),k=j.children("form.FormGrid"),D=$("<table id='"+u+"' class='EditTable'><tbody></tbody></table>");if($(f).remove(),$(m).each((function(){var t=this.formoptions;v=Math.max(v,t&&t.colpos||0),b=Math.max(b,t&&t.rowpos||0)})),k.append(D),w("beforeInitData",k)){!function(t,e,o){var s,l,d,c,u,h,p,f,g=0,v=[],b=base.getInd.call(r,t),w=getGuiStyles.call(i,"dialog.viewData"),y=$(e),x=getGuiStyles.call(i,"dialog.viewLabel"),_=String(a.labelswidth)+(!a.labelswidth||isNaN(a.labelswidth)?"":"px"),C="<td class='"+getGuiStyles.call(i,"dialog.viewCellLabel","CaptionTD form-view-label")+(_?"' style='width:"+_+";":"")+"'> </td><td class='"+getGuiStyles.call(i,"dialog.viewCellData","DataTD form-view-data")+"'> </td>",A="",j=["integer","number","currency"],k=0,D=0;for(u=0;u<o;u++)A+=C;if($(m).each((function(){var t=this;(l=(!t.editrules||!0!==t.editrules.edithidden)&&!0===t.hidden)||"right"!==t.align||(t.formatter&&-1!==$.inArray(t.formatter,j)?k=Math.max(k,parseInt(t.width,10)):D=Math.max(D,parseInt(t.width,10)))})),h=0!==k?k:0!==D?D:0,$(m).each((function(t){var e=this;if(s=e.name,p=!1,l=(!e.editrules||!0!==e.editrules.edithidden)&&!0===e.hidden,f="boolean"!=typeof e.viewable||e.viewable,"cb"!==s&&"subgrid"!==s&&"rn"!==s&&f){c=!1===b?"":jgrid.getDataFieldOfCell.call(i,i.rows[b],t).html(),p="right"===e.align&&0!==h;var r=$.extend({},{rowabove:!1,rowcontent:""},e.formoptions||{}),a=parseInt(r.rowpos,10)||g+1,u=parseInt(2*(parseInt(r.colpos,10)||1),10);if(r.rowabove){var m=$("<tr><td class='contentinfo' colspan='"+2*o+"'>"+r.rowcontent+"</td></tr>");y.append(m),m[0].rp=a}0===(d=y.find("tr[data-rowpos="+a+"]")).length&&((d=$("<tr data-rowpos='"+a+"'></tr>").addClass("FormData").attr("id","trv_"+s)).append(A),y.append(d),d[0].rp=a);var _=void 0===r.label?n.colNames[t]:r.label,C=$("td:eq("+(u-1)+")",d[0]),j=$("td:eq("+(u-2)+")",d[0]);j.html("<label for='"+s+"'"+(x?" class='"+x+"'>":">")+(_||" ")+"</label>"),C[isEmptyString(C.html())?"html":"append"]("<span id='"+s+"'"+(w?" class='"+w+"'>":">")+(c||" ")+"</span>").attr("id","v_"+s),p&&$("td:eq("+(u-1)+") span",d[0]).css({"text-align":"right",width:h+"px"}),l&&j.add(C).css("visibility","hidden"),v[g]=t,g++}})),hideRowsWithoutVissibleCells(y),0<g){var q=$("<tr class='FormData' style='display:none'><td class='CaptionTD'> </td><td colspan='"+(2*o-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+t+"'/></td></tr>");q[0].rp=g+99,y.append(q)}}(t,D,v);var q="rtl"===n.direction,I=q?"nData":"pData",S=q?"pData":"nData",F=builderFmButon.call(i,I,"",mergeCssClasses(h,a.prevIcon),"","left"),O=builderFmButon.call(i,S,"",mergeCssClasses(h,a.nextIcon),"","right"),R=builderFmButon.call(i,"cData",a.bClose);if(0<b){var E=[];$.each($(D)[0].rows,(function(t,e){E[t]=e})),E.sort((function(t,e){return t.rp>e.rp?1:t.rp<e.rp?-1:0})),$.each(E,(function(t,e){$("tbody",D).append(e)}))}a.gbox=g;var N=$("<div></div>").append(j).append("<div class='"+getGuiStyles.call(i,"dialog.footer")+"'><table border='0' class='EditTable' id='"+u+"_2'><tbody><tr id='Act_Buttons'><td class='navButton navButton-"+n.direction+"' width='"+(a.labelswidth||"auto")+"'>"+(q?O+F:F+O)+"</td><td class='EditButton EditButton-"+n.direction+"'>"+R+"</td></tr></tbody></table></div>");jgrid.createModal.call(i,p,N,a,n.gView,$(n.gView)[0]),a.viewPagerButtons||$("#pData, #nData",d).hide(),N=null,$(f).keydown((function(t){var e,i;if(!0===$(s).data("disabled"))return!1;if(13===t.which&&(i=(e=$(d).find(":focus")).attr("id"),0<e.length&&0<=$.inArray(i,["pData","nData","cData"])))return e.trigger("click"),!1;if(27===t.which)return a.closeOnEscape&&y(),!1;if(!0===a.navkeys[0]){if(t.which===a.navkeys[1])return $("#pData",d).trigger("click"),!1;if(t.which===a.navkeys[2])return $("#nData",d).trigger("click"),!1}})),addFormIcon($("#cData",d),a.closeicon,h),w("beforeShowForm",$(s)),jgrid.viewModal.call(i,f,{gbox:g,jqm:a.jqModal,overlay:a.overlay,toTop:a.toTop,modal:a.modal,onHide:function(t){t.w.remove(),t.o&&t.o.remove()}}),$(".fm-button:not(."+_.split(" ").join(".")+")",d).hover((function(){$(this).addClass(x)}),(function(){$(this).removeClass(x)})),M(),$("#cData",d).click((function(){return y(),!1})),$("#nData",d).click((function(){$("#FormError",l).hide();var t=B();if(t[0]=parseInt(t[0],10),-1!==t[0]&&t[1][t[0]+1]){if(!w("onclickPgButtons","next",$(s),t[1][t[0]]))return!1;z(t[1][t[0]+1]),base.setSelection.call(r,t[1][t[0]+1]),w("afterclickPgButtons","next",$(s),t[1][t[0]+1]),P(t[0]+1,t)}return M(),!1})),$("#pData",d).click((function(){$("#FormError",l).hide();var t=B();if(-1!==t[0]&&t[1][t[0]-1]){if(!w("onclickPgButtons","prev",$(s),t[1][t[0]]))return!1;z(t[1][t[0]-1]),base.setSelection.call(r,t[1][t[0]-1]),w("afterclickPgButtons","prev",$(s),t[1][t[0]-1]),P(t[0]-1,t)}return M(),!1}));var T=B();P(T[0],T)}}function M(){!0!==a.closeOnEscape&&!0!==a.navkeys[0]||setTimeout((function(){$("#cData").focus()}),0)}function z(t){var e,n,o=0,a=base.getInd.call(r,t,!0);a&&($("td",a).each((function(t){n=m[t],"cb"!==(e=n.name)&&"subgrid"!==e&&"rn"!==e&&(e=jqID("v_"+e),$("#"+e+" span",l).html(jgrid.getDataFieldOfCell.call(i,a,t).html()),o++)})),0<o&&$("#id_g",l).val(t))}function P(t,e){var i=e[1].length-1;0===t||void 0!==e[1][t-1]&&hasOneFromClasses($("#"+jqID(e[1][t-1])),_)?$("#pData",d).addClass(_):$("#pData",d).removeClass(_),t===i||void 0!==e[1][t+1]&&hasOneFromClasses($("#"+jqID(e[1][t+1])),_)?$("#nData",d).addClass(_):$("#nData",d).removeClass(_)}function B(){var t=base.getDataIDs.call(r),e=$("#id_g",l).val();return[$.inArray(e,t),t]}}))},delGridRow:function(t,e){return this.each((function(){var i=this,r=i.p,n=$(i);if(i.grid&&null!=r&&t){var o,a,s,l,d=r.id,c=$.extend(!0,{top:0,left:0,width:240,removemodal:!0,height:"auto",dataheight:"auto",datawidth:"auto",drag:!0,resize:!0,url:"",mtype:"POST",reloadAfterSubmit:!0,beforeShowForm:null,beforeInitData:null,afterShowForm:null,beforeSubmit:null,onclickSubmit:null,afterSubmit:null,closeOnEscape:!1,delData:{},idSeparator:",",onClose:null,ajaxDelOptions:{},processing:!1,serializeDelData:null,useDataProxy:!1,delui:"disable",deltext:base.getGridRes.call(n,"defaults.deltext")||"Deleting..."},base.getGridRes.call(n,"del"),jgrid.del||{},r.formDeleting||{},e||{}),u="DelTbl_"+d,h="#DelTbl_"+jqID(d),p={themodal:"delmod"+d,modalhead:"delhd"+d,modalcontent:"delcnt"+d,resizeAlso:u},f="#"+jqID(p.themodal),g=r.gBox,m=c.commonIconClass,v=function(){var t=$.makeArray(arguments);return t.unshift(""),t.unshift("Delete"),t.unshift(c),jgridFeedback.apply(i,t)},b=getGuiStateStyles.call(i,"hover"),w=getGuiStateStyles.call(i,"active"),y=getGuiStateStyles.call(i,"error");if($.isArray(t)||(t=[String(t)]),void 0!==$(f)[0]){if(!v("beforeInitData",$(h)))return;$("#DelData>td",h).text(t.join(c.idSeparator)).data("rowids",t),$("#DelError",h).hide(),!0===c.processing&&(c.processing=!1,$("#dData",h).removeClass(w)),v("beforeShowForm",$(h)),jgrid.viewModal.call(i,f,{gbox:g,jqm:c.jqModal,jqM:!1,overlay:c.overlay,toTop:c.toTop,modal:c.modal}),v("afterShowForm",$(h))}else{var x=isNaN(c.dataheight)?c.dataheight:c.dataheight+"px",_=isNaN(c.datawidth)?c.datawidth:c.datawidth+"px",C="<div class='"+getGuiStyles.call(i,"dialog.body")+"'><div id='"+u+"' class='formdata' style='width:"+_+";overflow:auto;position:relative;height:"+x+";'>";C+="<table class='DelTable'><tbody>",C+="<tr id='DelError' style='display:none'><td class='"+y+"'></td></tr>",C+="<tr id='DelData' style='display:none'><td >"+t.join(c.idSeparator)+"</td></tr>",C+="<tr><td class='delmsg'>"+c.msg+"</td></tr>",C+="</tbody></table></div></div>";var A=builderFmButon.call(i,"dData",c.bSubmit),j=builderFmButon.call(i,"eData",c.bCancel);if(C+="<div class='"+getGuiStyles.call(i,"dialog.footer")+"'><table class='EditTable' id='"+u+"_2'><tbody><tr><td><hr class='"+getGuiStyles.call(i,"dialog.hr")+"' style='margin:1px'/></td></tr><tr><td class='DelButton EditButton EditButton-"+r.direction+"'>"+A+" "+j+"</td></tr></tbody></table></div>",c.gbox=g,jgrid.createModal.call(i,p,C,c,r.gView,$(r.gView)[0]),$("#DelData>td",h).data("rowids",t),!v("beforeInitData",$(C)))return;$(".fm-button",h+"_2").hover((function(){$(this).addClass(b)}),(function(){$(this).removeClass(b)})),addFormIcon($("#dData",h+"_2"),c.delicon,m),addFormIcon($("#eData",h+"_2"),c.cancelicon,m),$("#dData",h+"_2").click((function(){var t,e=[!0,""],u=$("#DelData>td",h),p=u.text(),m=u.data("rowids"),b={};if($.isFunction(c.onclickSubmit)&&(b=c.onclickSubmit.call(i,c,p,m)||{}),$.isFunction(c.beforeSubmit)&&(e=c.beforeSubmit.call(i,p,m)||e),e[0]&&!c.processing){if(c.processing=!0,s=r.prmNames,o=$.extend({},c.delData,b),l=s.oper,o[l]=s.deloper,a=s.id,!(p=m.slice()).length)return!1;for(t in p)p.hasOwnProperty(t)&&(p[t]=jgrid.stripPref(r.idPrefix,p[t]));o[a]=p.join(c.idSeparator),$(this).addClass(w);var y=c.url||r.editurl,x=$.extend({url:$.isFunction(y)?y.call(i,o[a],o,c,m):y,type:c.mtype,data:$.isFunction(c.serializeDelData)?c.serializeDelData.call(i,o,m):o,complete:function(t,a){var s;if(n.jqGrid("progressBar",{method:"hide",loadtype:c.delui}),$("#dData",h+"_2").removeClass(w),300<=t.status&&304!==t.status||0===t.status&&4===t.readyState?(e[0]=!1,$.isFunction(c.errorTextFormat)?e[1]=c.errorTextFormat.call(i,t):e[1]=a+" Status: '"+t.statusText+"'. Error code: "+t.status):$.isFunction(c.afterSubmit)&&(e=c.afterSubmit.call(i,t,o,m)||[!0]),!1===e[0])$("#DelError>td",h).html(e[1]),$("#DelError",h).show();else{if("local"===r.datatype||!0===r.treeGrid||!c.reloadAfterSubmit)if(!0===r.treeGrid)try{base.delTreeNode.call(n,m[0])}catch(t){}else for(m=m.slice(),s=0;s<m.length;s++)base.delRowData.call(n,m[s]);c.reloadAfterSubmit&&n.trigger("reloadGrid",[$.extend({},c.reloadGridOptions||{})]),setTimeout((function(){v("afterComplete",t,p,$(h),m)}),50)}c.processing=!1,e[0]&&jgrid.hideModal(f,{gb:g,jqm:c.jqModal,onClose:c.onClose,removemodal:c.removemodal})}},jgrid.ajaxOptions,c.ajaxDelOptions);if(x.url||c.useDataProxy||($.isFunction(r.dataProxy)?c.useDataProxy=!0:(e[0]=!1,e[1]+=" "+jgrid.errors.nourl)),e[0])if(n.jqGrid("progressBar",{method:"show",loadtype:c.delui,htmlcontent:c.deltext}),c.useDataProxy){var _=r.dataProxy.call(i,x,"del_"+d);void 0===_&&(_=[!0,""]),!1===_[0]?(e[0]=!1,e[1]=_[1]||"Error deleting the selected row!"):jgrid.hideModal(f,{gb:g,jqm:c.jqModal,onClose:c.onClose,removemodal:c.removemodal})}else"clientArray"===x.url?(o=x.data,x.complete({status:200,statusText:""},"")):$.ajax(x)}return!1===e[0]&&($("#DelError>td",h).html(e[1]),$("#DelError",h).show()),!1})),$("#eData",h+"_2").click((function(){return jgrid.hideModal(f,{gb:g,jqm:c.jqModal,onClose:c.onClose,removemodal:c.removemodal}),!1})),v("beforeShowForm",$(h)),jgrid.viewModal.call(i,f,{gbox:g,jqm:c.jqModal,overlay:c.overlay,toTop:c.toTop,modal:c.modal}),v("afterShowForm",$(h))}!0===c.closeOnEscape&&setTimeout((function(){$(".ui-jqdialog-titlebar-close","#"+jqID(p.modalhead)).attr("tabindex","-1").focus()}),0)}}))},navGrid:function(t,e,i,r,n,o,a){return"object"==typeof t&&(a=o,o=n,n=r,r=i,i=e,e=t,t=void 0),r=r||{},i=i||{},a=a||{},n=n||{},o=o||{},this.each((function(){var s=this,l=s.p,d=$(s);if(s.grid&&null!=l&&!(s.nav&&0<$(t).find(".navtable").length)){var c=l.id,u=$.extend({edit:!0,add:!0,del:!0,search:!0,refresh:!0,refreshstate:"firstpage",view:!1,closeOnEscape:!0,beforeRefresh:null,afterRefresh:null,cloneToTop:!1,hideEmptyPagerParts:!0,alertwidth:200,alertheight:"auto",alerttop:null,removemodal:!0,alertleft:null,alertzIndex:null,iconsOverText:!1},base.getGridRes.call(d,"nav"),jgrid.nav||{},l.navOptions||{},e||{});u.position=u.position||("rtl"===l.direction?"right":"left");var h,p,f,g=l.idSel,m=l.gBox,v=u.commonIconClass,b={themodal:"alertmod_"+c,modalhead:"alerthd_"+c,modalcontent:"alertcnt_"+c},w=function(){var t=document.documentElement,e=window,i=1024,r=768,n=d.closest(".ui-jqgrid").offset();void 0===$("#"+jqID(b.themodal))[0]&&(u.alerttop||u.alertleft||(void 0!==e.innerWidth?(i=e.innerWidth,r=e.innerHeight):null!=t&&void 0!==t.clientWidth&&0!==t.clientWidth&&(i=t.clientWidth,r=t.clientHeight),i=i/2-parseInt(u.alertwidth,10)/2-n.left+(void 0!==e.pageXOffset?e.pageXOffset:(t||document.body.parentNode||document.body).scrollLeft),r=r/2-25-n.top+(void 0!==e.pageYOffset?e.pageYOffset:(t||document.body.parentNode||document.body).scrollTop)),jgrid.createModal.call(s,b,"<div class='"+getGuiStyles.call(s,"dialog.body")+"'><div>"+u.alerttext+"</div></div>",{gbox:m,jqModal:u.jqModal,drag:!0,resize:!0,caption:u.alertcap,top:null!=u.alerttop?u.alerttop:r,left:null!=u.alertleft?u.alertleft:i,width:u.alertwidth,height:u.alertheight,closeOnEscape:u.closeOnEscape,zIndex:u.alertzIndex,removemodal:u.removemodal},l.gView,$(m)[0],!1)),jgrid.viewModal.call(s,"#"+jqID(b.themodal),{gbox:m,toTop:u.alertToTop,jqm:u.jqModal});var o=$("#"+jqID(b.modalhead)).find(".ui-jqdialog-titlebar-close");o.attr({tabindex:"0",href:"#",role:"button"}),setTimeout((function(){o.focus()}),50)},y=function(t){var e;if(13===t.which&&0<(e=$(this).find(".ui-pg-button").filter(":focus")).length){var i=e[0].id,r=i.substr(0,0<$(this).closest(".ui-jqgrid-toppager").length?i.length-c.length-5:i.length-c.length-1)+"mod"+l.id,n=$(".ui-jqdialog").filter(":visible").map((function(){return this.id}));if($.inArray(r,n)<0)return e.trigger("click"),!1}},x=getGuiStateStyles.call(s,"hover"),_=getGuiStateStyles.call(s,"disabled"),C=getGuiStyles.call(s,"navButton","ui-pg-button");if(s.grid){s.modalAlert=w,void 0===t&&(l.pager?(t=l.pager,l.toppager&&(u.cloneToTop=!0)):l.toppager&&(t=l.toppager));var A,j,k,D,q,I,S,F=1,O=["left","center","right"],R="<div class='"+getGuiStyles.call(s,"navButton","ui-pg-button "+getGuiStateStyles.call(s,"disabled"))+"'><span class='ui-separator'></span></div>",E=function(){hasOneFromClasses(this,_)||$(this).addClass(x)},N=function(){$(this).removeClass(x)},T=function(){return hasOneFromClasses(this,_)||($.isFunction(u.addfunc)?u.addfunc.call(s,r):base.editGridRow.call(d,"new",r)),!1},M=function(t,e,i){if(!hasOneFromClasses(this,_)){var r=l.selrow;r?$.isFunction(t)?t.call(s,r,i):base[e].call(d,r,i):w()}return!1},z=function(){return M.call(this,u.editfunc,"editGridRow",i)},P=function(){return M.call(this,u.viewfunc,"viewGridRow",a)},B=function(){var t;return hasOneFromClasses(this,_)||(l.multiselect?0===(t=l.selarrrow).length&&(t=null):t=l.selrow,t?$.isFunction(u.delfunc)?u.delfunc.call(s,t,n):base.delGridRow.call(d,t,n):w()),!1},G=function(){return hasOneFromClasses(this,_)||($.isFunction(u.searchfunc)?u.searchfunc.call(s,o):base.searchGrid.call(d,o)),!1},H=function(){if(!hasOneFromClasses(this,_)){$.isFunction(u.beforeRefresh)&&u.beforeRefresh.call(s),l.search=!1,l.resetsearch=!0;try{if("currentfilter"!==u.refreshstate){l.postData.filters="";try{$("#fbox_"+g).jqFilter("resetFilter")}catch(t){}$.isFunction(s.clearToolbar)&&s.clearToolbar(!1)}}catch(t){}switch(u.refreshstate){case"firstpage":d.trigger("reloadGrid",[$.extend({},u.reloadGridOptions||{},{page:1})]);break;case"current":case"currentfilter":d.trigger("reloadGrid",[$.extend({},u.reloadGridOptions||{},{current:!0})])}$.isFunction(u.afterRefresh)&&u.afterRefresh.call(s)}return!1},L=function(t,e,i){var r=$("<div class='"+C+"' tabindex='0' role='button'></div>"),n=u[t+"icon"],o=$.trim(u[t+"text"]);return r.append("<div class='ui-pg-div'><span class='"+(u.iconsOverText?mergeCssClasses("ui-pg-button-icon-over-text",v,n):mergeCssClasses(v,n))+"'></span>"+(o?"<span class='ui-pg-button-text"+(u.iconsOverText?" ui-pg-button-icon-over-text":"")+"'>"+o+"</span>":"")+"</div>"),$(f).append(r),r.attr({title:u[t+"title"]||"",id:e||t+"_"+D}).click(i).hover(E,N),r};for(u.cloneToTop&&l.toppager&&(F=2),A=0;A<F;A++){if(f=$("<div class='ui-pg-table navtable' role='toolbar' style='float:"+("rtl"===l.direction?"right":"left")+";table-layout:auto;'></div>"),0===A?(D=c,(k=t)===l.toppager&&(D+="_top",F=1)):(k=l.toppager,D=c+"_top"),u.add&&L("add",r.id,T),u.edit&&L("edit",i.id,z),u.view&&L("view",a.id,P),u.del&&L("del",n.id,B),(u.add||u.edit||u.del||u.view)&&$(f).append(R),u.search&&(j=L("search",o.id,G),o.showOnLoad&&!0===o.showOnLoad&&$(j,f).click()),u.refresh&&L("refresh","",H),p=$(".ui-jqgrid>.ui-jqgrid-view").css("font-size")||"11px",$("body").append("<div id='testpg2' class='"+getGuiStyles.call(s,"gBox","ui-jqgrid")+"' style='font-size:"+p+";visibility:hidden;' ></div>"),h=$(f).clone().appendTo("#testpg2").width(),$("#testpg2").remove(),$(k+"_"+u.position,k).append(f),u.hideEmptyPagerParts)for(q=0;q<O.length;q++)O[q]!==u.position&&(0===(S=$(k+"_"+O[q],k)).length||0===S[0].childNodes.length?S.hide():1===S[0].childNodes.length&&(I=S[0].firstChild,!$(I).is("table.ui-pg-table")||0!==I.rows&&0!==I.rows[0].cells.length||S.hide()));l._nvtd&&(h>l._nvtd[0]&&($(k+"_"+u.position,k).width(h),l._nvtd[0]=h),l._nvtd[1]=h),s.nav=!0,f.on("keydown.jqGrid",y)}d.triggerHandler("jqGridResetFrozenHeights")}}}))},navButtonAdd:function(t,e){return"object"==typeof t&&(e=t,t=void 0),this.each((function(){var i=this,r=i.p;if(i.grid){var n=$.extend({caption:"newButton",title:"",onClickButton:null,position:"last",iconsOverText:!1},base.getGridRes.call($(i),"nav"),jgrid.nav||{},r.navOptions||{},e||{}),o=n.id,a=getGuiStateStyles.call(i,"hover"),s=getGuiStateStyles.call(i,"disabled"),l=getGuiStyles.call(i,"navButton","ui-pg-button");if(void 0===t)if(r.pager){if(base.navButtonAdd.call($(i),r.pager,n),!r.toppager)return;t=r.toppager,o&&(o+="_top")}else r.toppager&&(t=r.toppager);"string"==typeof t&&0!==t.indexOf("#")&&(t="#"+jqID(t));var d=$(".navtable",t),c=n.commonIconClass;if(0<d.length){if(o&&0<d.find("#"+jqID(o)).length)return;var u=$("<div tabindex='0' role='button'></div>");"NONE"===n.buttonicon.toString().toUpperCase()?$(u).addClass(l).append("<div class='ui-pg-div'>"+(n.caption?"<span class='ui-pg-button-text"+(n.iconsOverText?" ui-pg-button-icon-over-text":"")+"'>"+n.caption+"</span>":"")+"</div>"):$(u).addClass(l).append("<div class='ui-pg-div'><span class='"+(n.iconsOverText?mergeCssClasses("ui-pg-button-icon-over-text",c,n.buttonicon):mergeCssClasses(c,n.buttonicon))+"'></span>"+(n.caption?"<span class='ui-pg-button-text"+(n.iconsOverText?" ui-pg-button-icon-over-text":"")+"'>"+n.caption+"</span>":"")+"</div>"),o&&$(u).attr("id",o),"first"===n.position&&0<d.children("div.ui-pg-button").length?d.children("div.ui-pg-button").first().before(u):d.append(u),$(u,d).attr("title",n.title||"").click((function(t){return hasOneFromClasses(this,s)||$.isFunction(n.onClickButton)&&n.onClickButton.call(i,n,t),!1})).hover((function(){hasOneFromClasses(this,s)||$(this).addClass(a)}),(function(){$(this).removeClass(a)})),$(i).triggerHandler("jqGridResetFrozenHeights")}}}))},navSeparatorAdd:function(t,e){return e=$.extend({sepclass:"ui-separator",sepcontent:"",position:"last"},e||{}),this.each((function(){if(this.grid){var i=this.p,r=getGuiStyles.call(this,"navButton","ui-pg-button "+getGuiStateStyles.call(this,"disabled"));if(void 0===t)if(i.pager){if(base.navSeparatorAdd.call($(this),i.pager,e),!i.toppager)return;t=i.toppager}else i.toppager&&(t=i.toppager);"string"==typeof t&&0!==t.indexOf("#")&&(t="#"+jqID(t));var n=$(".navtable",t);if(0<n.length){var o="<div class='"+r+"'><span class='"+e.sepclass+"'></span>"+e.sepcontent+"</div>";"first"===e.position?0===n.children("div.ui-pg-button").length?n.append(o):n.children("div.ui-pg-button").first().before(o):n.append(o)}}}))},GridToForm:function(t,e){return this.each((function(){var i,r,n,o;if(this.grid){var a=base.getRowData.call($(this),t);if(a)for(i in a)if(a.hasOwnProperty(i))if((r=$("[name="+jqID(i)+"]",e)).is("input:radio")||r.is("input:checkbox"))for(n=0;n<r.length;n++)(o=$(r[n])).prop("checked",o.val()===String(a[i]));else r.val(isEmptyString(a[i])?"":a[i])}}))},FormToGrid:function(t,e,i,r){return this.each((function(){if(this.grid){i||(i="set"),r||(r="first");var n=$(e).serializeArray(),o={};$.each(n,(function(t,e){o[e.name]=e.value})),"add"===i?base.addRowData.call($(this),t,o,r):"set"===i&&base.setRowData.call($(this),t,o)}}))}}),jgrid.extend({groupingSetup:function(){return this.each((function(){var t,e,i,r,n,o=this.p,a=o.colModel,s=o.groupingView,l=function(){return""};if(null===s||"object"!=typeof s&&!$.isFunction(s))o.grouping=!1;else if(s.groupField.length){for(void 0===s.visibiltyOnNextGrouping&&(s.visibiltyOnNextGrouping=[]),s.lastvalues=[],s._locgr||(s.groups=[]),s.counters=[],t=0;t<s.groupField.length;t++)s.groupOrder[t]||(s.groupOrder[t]="asc"),s.groupText[t]||(s.groupText[t]="{0}"),"boolean"!=typeof s.groupColumnShow[t]&&(s.groupColumnShow[t]=!0),"boolean"!=typeof s.groupSummary[t]&&(s.groupSummary[t]=!1),s.groupSummaryPos[t]||(s.groupSummaryPos[t]="footer"),r=a[o.iColByName[s.groupField[t]]],!0===s.groupColumnShow[t]?(s.visibiltyOnNextGrouping[t]=!0,null!=r&&!0===r.hidden&&base.showCol.call($(this),s.groupField[t])):(s.visibiltyOnNextGrouping[t]=$("#"+jgrid.jqID(o.id+"_"+s.groupField[t])).is(":visible"),null!=r&&!0!==r.hidden&&base.hideCol.call($(this),s.groupField[t]));for(s.summary=[],s.hideFirstGroupCol&&(s.formatDisplayField[0]=function(t){return t}),e=0,i=a.length;e<i;e++)r=a[e],s.hideFirstGroupCol&&(r.hidden||s.groupField[0]!==r.name||(r.formatter=l)),r.summaryType&&(n={nm:r.name,st:r.summaryType,v:"",sr:r.summaryRound,srt:r.summaryRoundType||"round"},r.summaryDivider&&(n.sd=r.summaryDivider,n.vd=""),s.summary.push(n))}else o.grouping=!1}))},groupingPrepare:function(t,e){return this.each((function(){var i,r,n,o,a,s,l,d,c,u=this,h=u.p,p=h.groupingView,f=p.groups,g=p.counters,m=p.lastvalues,v=p.isInTheSameGroup,b=p.groupField.length,w=!1,y=base.groupingCalculations.handler,x=function(){var e,i,r;for(e=0;e<a.summary.length;e++)i=a.summary[e],r=$.isArray(i.st)?i.st[o.idx]:i.st,$.isFunction(r)?i.v=r.call(u,i.v,i.nm,t,o):(i.v=y.call($(u),r,i.v,i.nm,i.sr,i.srt,t),"avg"===r.toLowerCase()&&i.sd&&(i.vd=y.call($(u),r,i.vd,i.sd,i.sr,i.srt,t)));return a.summary},_=function(t,e){if(null==t&&p.useDefaultValuesOnGrouping){var i,r=void 0!==h.iColByName[e]?h.colModel[h.iColByName[e]]:h.additionalProperties[h.iPropByName[e]];null!=r&&null!=r.formatter&&(null!=r.formatoptions&&void 0!==r.formatoptions.defaultValue?t=r.formatoptions.defaultValue:"string"==typeof r.formatter&&void 0!==(i=$(u).jqGrid("getGridRes","formatter."+r.formatter+".defaultValue"))&&(t=i))}return t};for(i=0;i<b;i++)if(s=p.groupField[i],l=_(t[s],s),null==(c=null==(d=p.displayField[i])?null:_(t[d],d))&&(c=l),void 0!==l){for(n=[],r=0;r<=i;r++)n.push(t[p.groupField[r]]);for(o={idx:i,dataIndex:s,value:l,displayValue:c,startRow:e,cnt:1,keys:n,summary:[]},a={cnt:1,pos:f.length,summary:$.extend(!0,[],p.summary)},0===e?(f.push(o),m[i]=l,g[i]=a):"object"==typeof l||($.isArray(v)&&$.isFunction(v[i])?v[i].call(u,m[i],l,i,p):m[i]===l)?w?(f.push(o),m[i]=l,g[i]=a):((a=g[i]).cnt+=1,f[a.pos].cnt=a.cnt):(f.push(o),m[i]=l,w=!0,g[i]=a),f[a.pos].summary=x(),r=a.pos-1;0<=r;r--)if(f[r].idx<f[a.pos].idx){f[a.pos].parentGroupIndex=r,f[a.pos].parentGroup=f[r];break}}})),this},getGroupHeaderIndex:function(t,e){var i=this[0].p,r=e?$(e).closest("tr.jqgroup"):$("#"+jgrid.jqID(t)),n=parseInt(r.data("jqgrouplevel"),10),o=i.id+"ghead_"+n+"_";return isNaN(n)||!r.hasClass("jqgroup")||t.length<=o.length?-1:parseInt(t.substring(o.length),10)},groupingToggle:function(t,e){return this.each((function(){var i,r,n,o=this,a=o.p,s=a.groupingView,l=s.minusicon,d=s.plusicon,c=e?$(e).closest("tr.jqgroup"):$("#"+jgrid.jqID(t)),u=function(t){return t.find(">td>span.tree-wrap")},h=!0,p=!1,f=[],g=function(t){var e,i=t.length;for(e=0;e<i;e++)f.push(t[e])},m=parseInt(c.data("jqgrouplevel"),10);for(a.frozenColumns&&0<c.length&&(r=c[0].rowIndex,c=(c=$(o.rows[r])).add(o.grid.fbRows[r])),n=u(c),jgrid.hasAllClasses(n,l)?(n.removeClass(l).addClass(d),p=!0):n.removeClass(d).addClass(l),c=c.next();c.length;c=c.next())if(c.hasClass("jqfoot")){if(i=parseInt(c.data("jqfootlevel"),10),p){if(i=parseInt(c.data("jqfootlevel"),10),(!s.showSummaryOnHide&&i===m||m<i)&&g(c),i<m)break}else if((i===m||s.showSummaryOnHide&&i===m+1)&&g(c),i<=m)break}else if(c.hasClass("jqgroup"))if(i=parseInt(c.data("jqgrouplevel"),10),p){if(i<=m)break;g(c)}else{if(i<=m)break;i===m+1&&(u(c).removeClass(l).addClass(d),g(c)),h=!1}else(p||h)&&g(c);$(f).css("display",p?"none":""),a.frozenColumns&&$(o).triggerHandler("jqGridResetFrozenHeights",[{header:{resizeDiv:!1,resizedRows:{iRowStart:-1,iRowEnd:-1}},resizeFooter:!1,body:{resizeDiv:!0,resizedRows:{iRowStart:r,iRowEnd:c.length?c[0].rowIndex-1:-1}}}]),o.fixScrollOffsetAndhBoxPadding(),$(o).triggerHandler("jqGridGroupingClickGroup",[t,p]),$.isFunction(a.onClickGroup)&&a.onClickGroup.call(o,t,p)})),!1},groupingRender:function(t,e){var i="",r=this[0],n=r.p,o=0,a=[],s=n.groupingView,l=$.makeArray(s.groupSummary),d=s.groupField.length,c=s.groups,u=n.colModel,h=u.length,p=n.page,f="jqGridShowHideCol.groupingRender",g=function(t){return base.getGuiStyles.call(r,"gridRow",t)},m=g("jqgroup ui-row-"+n.direction),v=g("jqfoot ui-row-"+n.direction);function b(t,e,i,o,a){var l,d,p,f,g,m,v,b,w,y,x,_,C,A=c[t],j="",k=0,D=!0;if(0!==e&&0!==c[t].idx)for(l=t;0<=l;l--)if(c[l].idx===c[t].idx-e){A=c[l];break}for(d=A.cnt,x=void 0===a?o:0;x<h;x++){for(p=" ",y=u[x],b=0;b<A.summary.length;b++)if(w=A.summary[b],_=$.isArray(w.st)?w.st[i.idx]:w.st,C=$.isArray(y.summaryTpl)?y.summaryTpl[i.idx]:y.summaryTpl||"{0}",w.nm===y.name){"string"==typeof _&&"avg"===_.toLowerCase()&&(w.sd&&w.vd?w.v=w.v/w.vd:w.v&&0<d&&(w.v=w.v/d));try{w.groupCount=A.cnt,w.groupIndex=A.dataIndex,w.groupValue=A.value,m=r.formatter("",w.v,x,w)}catch(t){m=w.v}p=jgrid.format(C,m),y.summaryFormat&&(p=y.summaryFormat.call(r,i,p,m,y,w));break}g=f=!1,void 0!==a&&D&&(y.hidden||(p=a,D=!1,1<o&&(f=!0,k=o-1),g=y.align,y.align="rtl"===n.direction?"right":"left",s.iconColumnName=y.name)),v=!1,0<k&&!y.hidden&&" "===p?(v=!0,g&&(y.align=g),k--):(j+="<td role='gridcell' "+r.formatCol(x,1,"")+(f?"colspan='"+o+"'":"")+">"+p+"</td>",f=!1,g&&(y.align=g),v&&(y.hidden=!1,k--))}return j}return $.each(u,(function(t,e){var i;for(i=0;i<d;i++)if(s.groupField[i]===e.name){a[i]=t;break}})),l.reverse(),$.each(c,(function(f,g){var w,y,x,_,C,A,j,k,D=n.id+"ghead_"+g.idx,q=D+"_"+f,I=$.isFunction(s.groupCollapse)?s.groupCollapse.call(r,{group:g,rowid:q}):s.groupCollapse,S=1,F=0,O=d-1===g.idx,R=null!=g.parentGroup&&g.parentGroup.collapsed,E="<span style='cursor:pointer;margin-"+("rtl"===n.direction?"right:":"left:")+12*g.idx+"px;' class='"+s.commonIconClass+" "+(I?s.plusicon:s.minusicon)+" tree-wrap'></span>";if(s._locgr&&!(g.startRow+g.cnt>(p-1)*e&&g.startRow<p*e))return!0;R&&(I=!0),void 0!==I&&(g.collapsed=I),o++;try{$.isArray(s.formatDisplayField)&&$.isFunction(s.formatDisplayField[g.idx])?(g.displayValue=s.formatDisplayField[g.idx].call(r,g.displayValue,g.value,u[a[g.idx]],g.idx,g,f),w=g.displayValue):w=r.formatter(q,g.displayValue,a[g.idx],g.value,g)}catch(f){w=g.displayValue}if(i+="<tr id='"+q+"' data-jqgrouplevel='"+g.idx+"' "+(I&&R?"style='display:none;' ":"")+"role='row' class='"+m+" "+D+"'>","string"!=typeof(k=$.isFunction(s.groupText[g.idx])?s.groupText[g.idx].call(r,w,g.cnt,g.summary):jgrid.template(s.groupText[g.idx],w,g.cnt,g.summary))&&"number"!=typeof k&&(k=w),"header"===s.groupSummaryPos[g.idx]?(S=1,"cb"!==u[0].name&&"cb"!==u[1].name||S++,"subgrid"!==u[0].name&&"subgrid"!==u[1].name||S++,i+=b(f,0,g,S,E+"<span class='cell-wrapper'>"+k+"</span>")):i+="<td role='gridcell' style='padding-left:"+12*g.idx+"px;' colspan='"+h+"'>"+E+k+"</td>",i+="</tr>",O){for(A=c[f+1],C=g.startRow,j=void 0!==A?A.startRow:c[f].startRow+c[f].cnt,s._locgr&&(F=(p-1)*e)>g.startRow&&(C=F),x=C;x<j&&t[x-F];x++)i+=t[x-F].join("");if("header"!==s.groupSummaryPos[g.idx]){if(void 0!==A){for(y=0;y<s.groupField.length&&A.dataIndex!==s.groupField[y];y++);o=s.groupField.length-y}for(_=0;_<o;_++)l[_]&&(i+="<tr data-jqfootlevel='"+(g.idx-_)+(I&&(0<g.idx-_||!s.showSummaryOnHide)?"' style='display:none;'":"'")+" role='row' class='"+v+"'>",i+=b(f,_,c[g.idx-_],0),i+="</tr>");o=y}}})),this.off(f).on(f,(function(){var t,e,i,o,a=n.iColByName[s.iconColumnName];if(0<=$.inArray("header",s.groupSummaryPos)){for(o=0;o<u.length;o++)if(!u[o].hidden){i=o;break}if(void 0===i||a===i)return;for(t=0;t<r.rows.length;t++)e=r.rows[t],$(e).hasClass("jqgroup")&&($(e.cells[i]).html(e.cells[a].innerHTML),$(e.cells[a]).html(" "));s.iconColumnName=u[i].name}})),i},groupingGroupBy:function(t,e){return this.each((function(){var i,r,n=this.p,o=n.groupingView;for("string"==typeof t&&(t=[t]),n.grouping=!0,o._locgr=!1,void 0===o.visibiltyOnNextGrouping&&(o.visibiltyOnNextGrouping=[]),i=0;i<o.groupField.length;i++)r=n.colModel[n.iColByName[o.groupField[i]]],!o.groupColumnShow[i]&&o.visibiltyOnNextGrouping[i]&&null!=r&&!0===r.hidden&&base.showCol.call($(this),o.groupField[i]);for(i=0;i<t.length;i++)o.visibiltyOnNextGrouping[i]=$(n.idSel+"_"+jgrid.jqID(t[i])).is(":visible");n.groupingView=$.extend(n.groupingView,e||{}),o.groupField=t,$(this).trigger("reloadGrid")}))},groupingRemove:function(t){return this.each((function(){var e,i=this.p,r=this.tBodies[0],n=i.groupingView;if(void 0===t&&(t=!0),!(i.grouping=!1)===t){for(e=0;e<n.groupField.length;e++)!n.groupColumnShow[e]&&n.visibiltyOnNextGrouping[e]&&base.showCol.call($(this),n.groupField);$("tr.jqgroup, tr.jqfoot",r).remove(),$("tr.jqgrow",r).filter(":hidden").show()}else $(this).trigger("reloadGrid")}))},groupingCalculations:{handler:function(t,e,i,r,n,o){var a,s,l={sum:function(){return parseFloat(e||0)+parseFloat(o[i]||0)},min:function(){return""===e?parseFloat(o[i]||0):Math.min(parseFloat(e),parseFloat(o[i]||0))},max:function(){return""===e?parseFloat(o[i]||0):Math.max(parseFloat(e),parseFloat(o[i]||0))},count:function(){return""===e&&(e=0),o.hasOwnProperty(i)?e+1:0},avg:function(){return l.sum()}};if(!l[t])throw"jqGrid Grouping No such method: "+t;return a=l[t](),null!=r&&("fixed"===n?a=a.toFixed(r):(s=Math.pow(10,r),a=Math.round(a*s)/s)),a}}}),$.jgrid.extend({jqGridImport:function(t){return t=$.extend({imptype:"xml",impstring:"",impurl:"",mtype:"GET",impData:{},xmlGrid:{config:"roots>grid",data:"roots>rows"},jsonGrid:{config:"grid",data:"data"},ajaxOptions:{}},t||{}),this.each((function(){var e,i=this,r=function(t,e){var r,n,o,a,s=$(e.xmlGrid.config,t)[0],l=$(e.xmlGrid.data,t)[0];if(xmlJsonClass.xml2json){for(o in r=xmlJsonClass.xml2json(s," "),r=$.parseJSON(r))r.hasOwnProperty(o)&&(n=r[o]);void 0!==n&&(l?(a=r.grid.datatype,r.grid.datatype="xmlstring",r.grid.datastr=t,$(i).jqGrid(n).jqGrid("setGridParam",{datatype:a})):$(i).jqGrid(n))}else(null!=jgrid.defaults&&$.isFunction(jgrid.defaults.fatalError)?jgrid.defaults.fatalError:alert)("xml2json or parse are not present")},n=function(t,e){if(t&&"string"==typeof t){var r,n=$.parseJSON(t),o=n[e.jsonGrid.config],a=n[e.jsonGrid.data];a?(r=o.datatype,o.datatype="jsonstring",o.datastr=a,$(i).jqGrid(o).jqGrid("setGridParam",{datatype:r})):$(i).jqGrid(o)}};switch(t.imptype){case"xml":$.ajax($.extend({url:t.impurl,type:t.mtype,data:t.impData,dataType:"xml",context:t,complete:function(t){!(t.status<300||304===t.status)||0===t.status&&4===t.readyState||(r(t.responseXML,this),$(i).triggerHandler("jqGridImportComplete",[t,this]),$.isFunction(this.importComplete)&&this.importComplete(t))}},t.ajaxOptions));break;case"xmlstring":t.impstring&&"string"==typeof t.impstring&&(e=$.parseXML(t.impstring))&&(r(e,t),$(i).triggerHandler("jqGridImportComplete",[e,t]),$.isFunction(t.importComplete)&&t.importComplete(e),t.impstring=null);break;case"json":$.ajax($.extend({url:t.impurl,type:t.mtype,data:t.impData,dataType:"json",context:t,complete:function(t){try{!(t.status<300||304===t.status)||0===t.status&&4===t.readyState||(n(t.responseText,this),$(i).triggerHandler("jqGridImportComplete",[t,this]),$.isFunction(this.importComplete)&&this.importComplete(t))}catch(t){}}},t.ajaxOptions));break;case"jsonstring":t.impstring&&"string"==typeof t.impstring&&(n(t.impstring,t),$(i).triggerHandler("jqGridImportComplete",[t.impstring,t]),$.isFunction(t.importComplete)&&t.importComplete(t.impstring),t.impstring=null)}}))},jqGridExport:function(t){t=$.extend({exptype:"xmlstring",root:"grid",ident:"\t"},t||{});var e=null;return this.each((function(){if(this.grid){var i,r=$.extend(!0,{},$(this).jqGrid("getGridParam"));if(r.rownumbers&&(r.colNames.splice(0,1),r.colModel.splice(0,1)),r.multiselect&&(r.colNames.splice(0,1),r.colModel.splice(0,1)),r.subGrid&&(r.colNames.splice(0,1),r.colModel.splice(0,1)),r.knv=null,r.treeGrid)for(i in r.treeReader)r.treeReader.hasOwnProperty(i)&&(r.colNames.splice(r.colNames.length-1),r.colModel.splice(r.colModel.length-1));switch(t.exptype){case"xmlstring":e="<"+t.root+">"+xmlJsonClass.json2xml(r,t.ident)+"</"+t.root+">";break;case"jsonstring":e="{"+xmlJsonClass.toJson(r,t.root,t.ident,!1)+"}",void 0!==r.postData.filters&&(e=(e=e.replace(/filters":"/,'filters":')).replace(/\}\]\}"/,"}]}"))}}})),e},excelExport:function(t){return t=$.extend({exptype:"remote",url:null,oper:"oper",tag:"excel",exportOptions:{}},t||{}),this.each((function(){var e;this.grid&&"remote"===t.exptype&&((e=$.extend({},this.p.postData,t.exportOptions))[t.oper]=t.tag,window.location=t.url+(null!=t.url&&0<=t.url.indexOf("?")?"&":"?")+$.param(e))}))}});var editFeedback=function(t){var e=$.makeArray(arguments).slice(1);return e.unshift(""),e.unshift("Inline"),e.unshift(t),jgrid.feedback.apply(this,e)};jgrid.inlineEdit=jgrid.inlineEdit||{},jgrid.extend({editRow:function(t,e,i,r,n,o,a,s,l,d){var c={},u=$.makeArray(arguments).slice(1);return"object"===$.type(u[0])?c=u[0]:(void 0!==e&&(c.keys=e),$.isFunction(i)&&(c.oneditfunc=i),$.isFunction(r)&&(c.successfunc=r),void 0!==n&&(c.url=n),null!=o&&(c.extraparam=o),$.isFunction(a)&&(c.aftersavefunc=a),$.isFunction(s)&&(c.errorfunc=s),$.isFunction(l)&&(c.afterrestorefunc=l),$.isFunction(d)&&(c.beforeEditRow=d)),this.each((function(){var e=this,i=$(e),r=e.p,n=0,o=null,a={},s={},l=r.colModel,d=r.prmNames;if(e.grid){var u=$.extend(!0,{keys:!1,oneditfunc:null,successfunc:null,url:null,extraparam:{},aftersavefunc:null,errorfunc:null,afterrestorefunc:null,restoreAfterError:!0,beforeEditRow:null,focusField:!0},jgrid.inlineEdit,r.inlineEditing||{},c),h=i.jqGrid("getInd",t,!0),p=u.focusField,f="object"==typeof p&&null!=p?$(p.target||p).closest("tr.jqgrow>td")[0]:null;if(!1!==h&&(u.extraparam[d.oper]===d.addoper||editFeedback.call(e,u,"beforeEditRow",u,t))&&"0"===($(h).attr("editable")||"0")&&!$(h).hasClass("not-editable-row")){var g=jgrid.detectRowEditing.call(e,t);if(null!=g&&"cellEditing"===g.mode){var m=g.savedRow,v=e.rows[m.id],b=getGuiStateStyles.call(e,"select");i.jqGrid("restoreCell",m.id,m.ic),$(v.cells[m.ic]).removeClass("edit-cell "+b),$(v).addClass(b).attr({"aria-selected":"true",tabindex:"0"})}if(jgrid.enumEditableCells.call(e,h,$(h).hasClass("jqgrid-new-row")?"add":"edit",(function(i){var l,d,c,u=i.cm,h=$(i.dataElement),p=i.dataWidth,f=u.name,g=u.edittype,m=i.iCol,v=u.editoptions||{};if(s[f]=i.editable,"hidden"!==i.editable){try{l=$.unformat.call(this,i.td,{rowId:t,colModel:u},m)}catch(i){l="textarea"===g?h.text():h.html()}a[f]=l,h.html(""),d=$.extend({},v,{id:t+"_"+f,name:f,rowId:t,mode:i.mode,cm:u,iCol:m}),(" "===l||" "===l||1===l.length&&160===l.charCodeAt(0))&&(l=""),c=jgrid.createEl.call(e,g,d,l,!0,$.extend({},jgrid.ajaxOptions,r.ajaxSelectOptions||{})),$(c).addClass("editable"),h.append(c),p&&$(c).width(i.dataWidth),jgrid.bindEv.call(e,c,d),"select"===g&&!0===v.multiple&&void 0===v.dataUrl&&jgrid.msie&&$(c).width($(c).width()),null===o&&(o=m),n++}})),0<n){if(a.id=t,r.savedRow.push(a),r.editingInfo[t]={mode:"inlineEditing",savedRow:a,editable:s},$(h).attr("editable","1"),p&&("number"==typeof p&&parseInt(p,10)<=l.length?o=p:"string"==typeof p?o=r.iColByName[p]:null!=f&&(o=f.cellIndex),setTimeout((function(){var t=i.jqGrid("getNumberOfFrozenColumns"),n=function(i){return r.frozenColumns&&0<t&&o<t?e.grid.fbRows[h.rowIndex].cells[i]:h.cells[i]},a=function(t){return $(t).find("input,textarea,select,button,object,*[tabindex]").filter(":input:visible:not(:disabled)")},s=function(){return a(r.frozenColumns&&0<t?e.grid.fbRows[h.rowIndex]:h).first()},l=a(n(o));0<l.length?l.first().focus():"number"==typeof u.defaultFocusField||"string"==typeof u.defaultFocusField?(0===(l=a(n("number"==typeof u.defaultFocusField?u.defaultFocusField:r.iColByName[u.defaultFocusField]))).length&&(l=s()),l.first().focus()):s().focus()}),0)),!0===u.keys){var w=$(h);r.frozenColumns&&(w=w.add(e.grid.fbRows[h.rowIndex])),w.on("keydown",(function(e){return 27===e.keyCode?(i.jqGrid("restoreRow",t,u.afterrestorefunc),!1):13===e.keyCode?"TEXTAREA"===e.target.tagName||(i.jqGrid("saveRow",t,u),!1):void 0}))}fullBoolFeedback.call(e,u.oneditfunc,"jqGridInlineEditRow",t,u)}}}}))},saveRow:function(t,e,i,r,n,o,a,s){var l,d=$.makeArray(arguments).slice(1),c={},u=this[0],h=$(u),p=null!=u?u.p:null,f=jgrid.info_dialog,g=$.isFunction,m=null!=jgrid.defaults&&g(jgrid.defaults.fatalError)?jgrid.defaults.fatalError:alert;if(u.grid&&null!=p){"object"===$.type(d[0])?c=d[0]:(g(e)&&(c.successfunc=e),void 0!==i&&(c.url=i),void 0!==r&&(c.extraparam=r),g(n)&&(c.aftersavefunc=n),g(o)&&(c.errorfunc=o),g(a)&&(c.afterrestorefunc=a),g(s)&&(c.beforeSaveRow=s));var v=function(t){return h.jqGrid("getGridRes",t)};c=$.extend(!0,{successfunc:null,url:null,extraparam:{},aftersavefunc:null,errorfunc:null,afterrestorefunc:null,restoreAfterError:!0,beforeSaveRow:null,ajaxSaveOptions:{},serializeSaveData:null,mtype:"POST",saveui:"enable",savetext:v("defaults.savetext")||"Saving..."},jgrid.inlineEdit,p.inlineEditing||{},c);var b,w,y,x,_,C,A,j,k={},D={},q={},I=h.jqGrid("getInd",t,!0),S=$(I),F=p.prmNames,O=v("errors.errcap"),R=v("edit.bClose"),E=function(t,e){try{var i=jgrid.getRelativeRect.call(u,e);f.call(u,O,t,R,{top:i.top,left:i.left+$(u).closest(".ui-jqgrid").offset().left})}catch(e){m(t)}};if(!1!==I&&(l=c.extraparam[F.oper]===F.addoper?"add":"edit",editFeedback.call(u,c,"beforeSaveRow",c,t,l)&&(b=S.attr("editable"),c.url=c.url||p.editurl,A="clientArray"!==c.url,"1"===b))){if(C=$.jgrid.detectRowEditing.call(u,t),jgrid.enumEditableCells.call(u,I,S.hasClass("jqgrid-new-row")?"add":"edit",(function(t){var e=t.cm,i=e.formatter,r=e.editoptions||{},n=e.formatoptions||{},o={},a=jgrid.getEditedValue.call(u,$(t.dataElement),e,o,t.editable);if("select"===e.edittype&&"select"!==e.formatter&&(D[e.name]=o.text),null!=(_=jgrid.checkValues.call(u,a,t.iCol,void 0,void 0,$.extend(t,{oldValue:null!=C?C.savedRow[e.name]:null,newValue:a,oldRowData:null!=C?C.savedRow:null})))&&!1===_[0])return j=!0,E(_[1],t.td),!1;"date"===i&&!0!==n.sendFormatted&&(a=$.unformat.date.call(u,a,e)),A&&!0===r.NullIfEmpty&&""===a&&(a="null"),k[e.name]=a})),j)return;var N;F=p.prmNames,N=!1===p.keyName?F.id:p.keyName,k&&(k[F.oper]=F.editoper,void 0!==k[N]&&""!==k[N]||(k[N]=jgrid.stripPref(p.idPrefix,t)),k=$.extend({},k,p.inlineData||{},c.extraparam));var T={options:c,rowid:t,tr:I,iRow:I.rowIndex,savedRow:C.savedRow,newData:k,mode:l};if(!editFeedback.call(u,c,"saveRowValidation",T))return void(T.errorText&&E(T.errorText,I));if(A)h.jqGrid("progressBar",{method:"show",loadtype:c.saveui,htmlcontent:c.savetext}),(q=$.extend({},k,q))[N]=jgrid.stripPref(p.idPrefix,q[N]),p.autoEncodeOnEdit&&$.each(q,(function(t,e){g(e)||(q[t]=jgrid.oldEncodePostedData(e))})),I.id===p.idPrefix+q[N]||null==F.idold||q.hasOwnProperty(F.idold)||(q[F.idold]=jgrid.stripPref(p.idPrefix,I.id)),$.ajax($.extend({url:g(c.url)?c.url.call(u,q[N],l,q,c):c.url,data:jgrid.serializeFeedback.call(u,g(c.serializeSaveData)?c.serializeSaveData:p.serializeRowData,"jqGridInlineSerializeSaveData",q),type:g(c.mtype)?c.mtype.call(u,l,c,q[N],q):c.mtype,complete:function(e,i){var r,n,o;if(h.jqGrid("progressBar",{method:"hide",loadtype:c.saveui}),(e.status<300||304===e.status)&&(0!==e.status||4!==e.readyState))if(null!=(n=h.triggerHandler("jqGridInlineSuccessSaveRow",[e,t,c,l,q]))&&!0!==n||(n=[!0,k]),n[0]&&g(c.successfunc)&&(n=c.successfunc.call(u,e,t,c,l,q)),$.isArray(n)?(r=n[0],k=n[1]||k):r=n,!0===r){for(p.autoEncodeOnEdit&&$.each(k,(function(t,e){k[t]=jgrid.oldDecodePostedData(e)})),k=$.extend({},k,D),h.jqGrid("setRowData",t,k),S.attr("editable","0"),o=0;o<p.savedRow.length;o++)if(String(p.savedRow[o].id)===String(t)){y=o;break}0<=y&&(p.savedRow.splice(y,1),delete p.editingInfo[t]),fullBoolFeedback.call(u,c.aftersavefunc,"jqGridInlineAfterSaveRow",t,e,k,c),null!=n[2]?h.jqGrid("changeRowid",t,p.idPrefix+n[2]):I.id!==p.idPrefix+k[N]&&h.jqGrid("changeRowid",I.id,p.idPrefix+k[N]),S.removeClass("jqgrid-new-row").off("keydown")}else fullBoolFeedback.call(u,c.errorfunc,"jqGridInlineErrorSaveRow",t,e,i,null,c),!0===c.restoreAfterError&&h.jqGrid("restoreRow",t,c.afterrestorefunc)},error:function(e,i,r){if(h.triggerHandler("jqGridInlineErrorSaveRow",[t,e,i,r,c]),g(c.errorfunc))c.errorfunc.call(u,t,e,i,r);else{var n=e.responseText||e.statusText;try{f.call(u,O,'<div class="'+getGuiStateStyles.call(u,"error")+'">'+n+"</div>",R,{buttonalign:"right"})}catch(e){m(n)}}!0===c.restoreAfterError&&h.jqGrid("restoreRow",t,c.afterrestorefunc)}},jgrid.ajaxOptions,p.ajaxRowOptions,c.ajaxSaveOptions||{}));else{for(k=$.extend({},k,D),x=h.jqGrid("setRowData",t,k),S.attr("editable","0"),w=0;w<p.savedRow.length;w++)if(String(p.savedRow[w].id)===String(t)){y=w;break}0<=y&&(p.savedRow.splice(y,1),delete p.editingInfo[t]),fullBoolFeedback.call(u,c.aftersavefunc,"jqGridInlineAfterSaveRow",t,x,k,c),S.removeClass("jqgrid-new-row").off("keydown"),I.id!==p.idPrefix+k[N]&&h.jqGrid("changeRowid",I.id,p.idPrefix+k[N])}}}},restoreRow:function(t,e){var i=$.makeArray(arguments).slice(1),r={};return"object"===$.type(i[0])?r=i[0]:$.isFunction(e)&&(r.afterrestorefunc=e),this.each((function(){var e,i=this,n=$(i),o=i.p,a=-1,s={};if(i.grid){var l=$.extend(!0,{},jgrid.inlineEdit,o.inlineEditing||{},r),d=n.jqGrid("getInd",t,!0);if(!1!==d&&editFeedback.call(i,l,"beforeCancelRow",l,t)){for(e=0;e<o.savedRow.length;e++)if(String(o.savedRow[e].id)===String(t)){a=e;break}if(0<=a){if($.isFunction($.fn.datepicker))try{$("input.hasDatepicker","#"+jgrid.jqID(d.id)).datepicker("hide")}catch(e){}$.each(o.colModel,(function(){var t=this.name;o.savedRow[a].hasOwnProperty(t)&&(s[t]=o.savedRow[a][t],!this.formatter||"date"!==this.formatter||null!=this.formatoptions&&!0===this.formatoptions.sendFormatted||(s[t]=$.unformat.date.call(i,s[t],this)))})),n.jqGrid("setRowData",t,s),$(d).attr("editable","0").off("keydown"),o.savedRow.splice(a,1),delete o.editingInfo[t],$("#"+jgrid.jqID(t),i).hasClass("jqgrid-new-row")&&setTimeout((function(){n.jqGrid("delRowData",t),n.jqGrid("showAddEditButtons",!1)}),0)}fullBoolFeedback.call(i,l.afterrestorefunc,"jqGridInlineAfterRestoreRow",t)}}}))},addRow:function(t){return this.each((function(){if(this.grid){var e=this,i=$(e),r=e.p,n=$.extend(!0,{rowID:null,initdata:{},position:"first",useDefValues:!0,useFormatter:!1,beforeAddRow:null,addRowParams:{extraparam:{}}},jgrid.inlineEdit,r.inlineEditing||{},t||{});if(editFeedback.call(e,n,"beforeAddRow",n.addRowParams))if(n.rowID=$.isFunction(n.rowID)?n.rowID.call(e,n):null!=n.rowID?n.rowID:jgrid.randId(),!0===n.useDefValues&&$(r.colModel).each((function(){if(this.editoptions&&this.editoptions.defaultValue){var t=this.editoptions.defaultValue;n.initdata[this.name]=$.isFunction(t)?t.call(e,n):t}})),n.rowID=r.idPrefix+n.rowID,i.jqGrid("addRowData",n.rowID,n.initdata,n.position),$("#"+jgrid.jqID(n.rowID),e).addClass("jqgrid-new-row"),n.useFormatter)$("#"+jgrid.jqID(n.rowID)+" .ui-inline-edit",e).click();else{var o=r.prmNames,a=o.oper;n.addRowParams.extraparam[a]=o.addoper,i.jqGrid("editRow",n.rowID,n.addRowParams),i.jqGrid("setSelection",n.rowID)}}}))},inlineNav:function(t,e){return"object"==typeof t&&(e=t,t=void 0),this.each((function(){var i=this,r=$(i),n=i.p;if(this.grid&&null!=n){var o,a=t===n.toppager?n.idSel+"_top":n.idSel,s=t===n.toppager?n.id+"_top":n.id,l=getGuiStateStyles.call(i,"disabled"),d=$.extend(!0,{edit:!0,editicon:"ui-icon-pencil",add:!0,addicon:"ui-icon-plus",save:!0,saveicon:"ui-icon-disk",cancel:!0,cancelicon:"ui-icon-cancel",commonIconClass:"ui-icon",iconsOverText:!1,addParams:{addRowParams:{extraparam:{}}},editParams:{},restoreAfterSelect:!0},r.jqGrid("getGridRes","nav"),jgrid.nav||{},n.navOptions||{},jgrid.inlineNav||{},n.inlineNavOptions||{},e||{}),c=function(){i.modalAlert()};if(void 0===t)if(n.pager){if(r.jqGrid("inlineNav",n.pager,d),!n.toppager)return;t=n.toppager,a=n.idSel+"_top",s=n.id+"_top"}else n.toppager&&(t=n.toppager,a=n.idSel+"_top",s=n.id+"_top");if(void 0!==t&&!((o=$(t)).length<=0)){if(o.find(".navtable").length<=0&&r.jqGrid("navGrid",t,{add:!1,edit:!1,del:!1,search:!1,refresh:!1,view:!1}),(n._inlinenav=!0)===d.addParams.useFormatter){var u,h,p,f=n.colModel;for(u=0;u<f.length;u++)if(f[u].formatter&&"actions"===f[u].formatter){f[u].formatoptions&&(h={keys:!1,onEdit:null,onSuccess:null,afterSave:null,onError:null,afterRestore:null,extraparam:{},url:null},p=$.extend(h,f[u].formatoptions),d.addParams.addRowParams={keys:p.keys,oneditfunc:p.onEdit,successfunc:p.onSuccess,url:p.url,extraparam:p.extraparam,aftersavefunc:p.afterSave,errorfunc:p.onError,afterrestorefunc:p.afterRestore});break}}d.add&&r.jqGrid("navButtonAdd",t,{caption:d.addtext,title:d.addtitle,commonIconClass:d.commonIconClass,buttonicon:d.addicon,iconsOverText:d.iconsOverText,id:s+"_iladd",onClickButton:function(){hasOneFromClasses(this,l)||r.jqGrid("addRow",d.addParams)}}),d.edit&&r.jqGrid("navButtonAdd",t,{caption:d.edittext,title:d.edittitle,commonIconClass:d.commonIconClass,buttonicon:d.editicon,iconsOverText:d.iconsOverText,id:s+"_iledit",onClickButton:function(){if(!hasOneFromClasses(this,l)){var t=n.selrow;t?r.jqGrid("editRow",t,d.editParams):c()}}}),d.save&&(r.jqGrid("navButtonAdd",t,{caption:d.savetext,title:d.savetitle,commonIconClass:d.commonIconClass,buttonicon:d.saveicon,iconsOverText:d.iconsOverText,id:s+"_ilsave",onClickButton:function(){if(!hasOneFromClasses(this,l)&&0<n.savedRow.length){var t=n.savedRow[0].id;if(t){var e=n.prmNames,o=e.oper,a=d.editParams;$("#"+jgrid.jqID(t),i).hasClass("jqgrid-new-row")?(d.addParams.addRowParams.extraparam[o]=e.addoper,a=d.addParams.addRowParams):(d.editParams.extraparam||(d.editParams.extraparam={}),d.editParams.extraparam[o]=e.editoper),r.jqGrid("saveRow",t,a)}else c()}}}),$(a+"_ilsave").addClass(l)),d.cancel&&(r.jqGrid("navButtonAdd",t,{caption:d.canceltext,title:d.canceltitle,commonIconClass:d.commonIconClass,buttonicon:d.cancelicon,iconsOverText:d.iconsOverText,id:s+"_ilcancel",onClickButton:function(){if(!hasOneFromClasses(this,l)&&0<n.savedRow.length){var t=n.savedRow[0].id,e=d.editParams;t?($("#"+jgrid.jqID(t),i).hasClass("jqgrid-new-row")&&(e=d.addParams.addRowParams),r.jqGrid("restoreRow",t,e)):c()}}}),$(a+"_ilcancel").addClass(l)),!0===d.restoreAfterSelect&&r.on("jqGridSelectRow",(function(t,e){if(0<n.savedRow.length&&!0===n._inlinenav){var i=n.savedRow[0].id;e!==i&&"number"!=typeof i&&r.jqGrid("restoreRow",i,d.editParams)}})),r.on("jqGridInlineAfterRestoreRow jqGridInlineAfterSaveRow",(function(){r.jqGrid("showAddEditButtons",!1)})),r.on("jqGridInlineEditRow",(function(t,e){r.jqGrid("showAddEditButtons",!0,e)}))}}}))},showAddEditButtons:function(t){return this.each((function(){if(this.grid){var e=this.p,i=e.idSel,r=getGuiStateStyles.call(this,"disabled"),n=i+"_ilsave,"+i+"_ilcancel"+(e.toppager?","+i+"_top_ilsave,"+i+"_top_ilcancel":""),o=i+"_iladd,"+i+"_iledit"+(e.toppager?","+i+"_top_iladd,"+i+"_top_iledit":"");$(t?o:n).addClass(r),$(t?n:o).removeClass(r)}}))}});var $UiMultiselect=null!=$.ui?$.ui.multiselect:null,reorderSelectedColumns=function(t){if(null!=this.grid&&null!=this.grid.p){var e,i,r,n,o,a=this,s=this.grid.p,l=this.gh,d=this.selectedList,c=this.inGroup,u=d.find("li"),h=u.length-1,p=function(t,e,i){var r,n,o=d.find("li");for(void 0===e&&(e=i?o.length-1:0),r=e;i?0<=r:r<o.length;i?r--:r++)if((n=$(o[r]).data("optionLink"))&&t.call(o[r],parseInt(n.val(),10),r))return r},f=function(){0<=(i=$.inArray(s.colModel[t].name,a.newColOrder))&&a.newColOrder.splice(i,1),u=d.find("li"),e=0,p((function(i,r){if(i===t){for(h=r;0<=e&&e<s.colModel.length&&e!==t&&(s.colModel[e].hidden||s.colModel[e].hidedlg)&&(null==c||c[e]===c[t]);)e++;return a.newColOrder.splice(e,0,s.colModel[t].name),!0}(e=$.inArray(s.colModel[i].name,a.newColOrder,e))<0&&(e=$.inArray(s.colModel[i].name,a.newColOrder)),e++}))},g=function(e){if(c[e]===c[t])return $(this).after(u[h]),f(),!0},m=function(e){if(c[e]===c[t])return $(this).before(u[h]),f(),!0},v=function(e){if(c[e]===c[t]&&void 0!==c[e])return l[c[e]].startColumnName=s.colModel[e].name,!0};if(f(),l&&void 0!==l[c[t]]){for(n=l[c[t]],i=0;i<n.numberOfColumns;i++)if(e=s.iColByName[n.startColumnName]+i,!s.colModel[e].hidden&&!s.colModel[e].hidedlg){p(g,h-1,!0),p(m,h+1),p(v);break}}else if(l){if(u=d.find("li"),(i=p((function(e){if(e===t)return!0})))+1>=u.length||i<0)return;if((o=$(u[i+1]).data("optionLink"))&&void 0!==(r=c[parseInt(o.val(),10)])&&(o=$(u[i-1]).data("optionLink"))&&c[parseInt(o.val(),10)]===r){var b=p((function(t){if(c[t]!==r)return!0}),i+1);$(u[void 0===b||b>=u.length?u.length-1:b-1]).after(u[h]),f()}}}};if(jgrid.msie&&8===jgrid.msiever()&&($.expr[":"].hidden=function(t){return 0===t.offsetWidth||0===t.offsetHeight||"none"===t.style.display}),jgrid._multiselect=!1,$UiMultiselect){if($UiMultiselect.prototype._setSelected){var setSelected=$UiMultiselect.prototype._setSelected;$UiMultiselect.prototype._setSelected=function(t,e){var i=setSelected.call(this,t,e),r=this.element,n=parseInt(t.data("optionLink").val(),10);return e&&this.selectedList&&(reorderSelectedColumns.call(this,n),this.selectedList.find("li").each((function(){$(this).data("optionLink")&&$(this).data("optionLink").remove().appendTo(r)}))),i}}$UiMultiselect.prototype.destroy&&($UiMultiselect.prototype.destroy=function(){this.element.show(),this.container.remove(),void 0===$.Widget?$.widget.prototype.destroy.apply(this,arguments):$.Widget.prototype.destroy.apply(this,arguments)}),jgrid._multiselect=!0}function Aggregation(t,e,i){if(!(this instanceof Aggregation))return new Aggregation(t);this.aggregator=t,this.finilized=!1,this.context=e,this.pivotOptions=i}function ArrayOfFieldsets(t,e,i,r,n){var o,a,s=r.length,l=this,d=function(t,e){var i=t,r=e;if(null==i&&(i=""),null==r&&(r=""),i=String(i),r=String(r),this.caseSensitive||(i=i.toUpperCase(),r=r.toUpperCase()),i===r){if(t===e)return 0;if(void 0===t)return-1;if(void 0===e)return 1;if(null===t)return-1;if(null===e)return 1}return i<r?-1:1},c=function(t,e){return(t=Number(t))===(e=Number(e))?0:t<e?-1:1},u=function(t,e){return(t=Math.floor(Number(t)))===(e=Math.floor(Number(e)))?0:t<e?-1:1};for(l.items=[],l.indexesOfSourceData=[],l.trimByCollect=t,l.caseSensitive=e,l.skipSort=i,l.fieldLength=s,l.fieldNames=new Array(s),l.fieldSortDirection=new Array(s),l.fieldCompare=new Array(s),o=0;o<s;o++){switch(a=r[o],l.fieldNames[o]=a[n||"dataName"],a.sorttype){case"integer":case"int":l.fieldCompare[o]=u;break;case"number":case"currency":case"float":l.fieldCompare[o]=c;break;default:l.fieldCompare[o]=$.isFunction(a.compare)?a.compare:d}l.fieldSortDirection[o]="desc"===a.sortorder?-1:1}}jgrid.extend({sortableColumns:function(t){return this.each((function(){var e=this,i=e.p,r=jqID(i.id);if(i&&i.sortable&&$.isFunction($.fn.sortable)){var n={tolerance:"pointer",axis:"x",scrollSensitivity:"1",items:">th:not(:has(#jqgh_"+r+"_cb,#jqgh_"+r+"_rn,#jqgh_"+r+"_subgrid),:hidden)",placeholder:{element:function(t){return $(document.createElement(t[0].nodeName)).addClass(t[0].className+" ui-sortable-placeholder ui-state-highlight").removeClass("ui-sortable-helper")[0]},update:function(t,e){e.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),e.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10))}},start:function(){e.grid.hDiv.scrollLeft=e.grid.bDiv.scrollLeft},update:function(t,r){var n=$(">th",$(r.item).parent()),o=i.id+"_",a=[];n.each((function(){var t=$(">div",this).get(0).id.replace(/^jqgh_/,"").replace(o,""),e=i.iColByName[t];void 0!==e&&a.push(e)})),$(e).jqGrid("remapColumns",a,!0,!0),$.isFunction(i.sortable.update)&&i.sortable.update(a),setTimeout((function(){i.disableClick=!1}),50)}};if(i.sortable.options?$.extend(n,i.sortable.options):$.isFunction(i.sortable)&&(i.sortable={update:i.sortable}),n.start){var o=n.start;n.start=function(t,e){l(),o.call(this,t,e)}}else n.start=l;i.sortable.exclude&&(n.items+=":not("+i.sortable.exclude+")");var a=t.sortable(n),s=a.data("sortable")||a.data("uiSortable")||a.data("ui-sortable");null!=s&&(s.floating=!0)}function l(){i.disableClick=!0}}))},columnChooser:function(t){var e,i,r,n,o,a,s,l=this,d=l[0],c=d.p,u=c.colModel,h=u.length,p=c.colNames,f=function(t){return $UiMultiselect&&$UiMultiselect.prototype&&t.data($UiMultiselect.prototype.widgetFullName||$UiMultiselect.prototype.widgetName)||t.data("ui-multiselect")||t.data("multiselect")};if(!$("#colchooser_"+jqID(c.id)).length){if(e=$('<div id="colchooser_'+c.id+'" style="position:relative;overflow:hidden"><div><select multiple="multiple"></select></div></div>'),i=$("select",e),t=$.extend({width:400,height:240,classname:null,done:function(t){t&&l.jqGrid("remapColumns",t,!0)},msel:"multiselect",dlog:"dialog",dialog_opts:{minWidth:470,dialogClass:"ui-jqdialog"},dlog_opts:function(t){var e={};return e[t.bSubmit]=function(){t.apply_perm(),t.cleanup(!1)},e[t.bCancel]=function(){t.cleanup(!0)},$.extend(!0,{buttons:e,close:function(){t.cleanup(!0)},modal:t.modal||!1,resizable:t.resizable||!0,width:t.width+70,resize:function(){var t=f(i),e=t.container.closest(".ui-dialog-content");0<e.length&&"object"==typeof e[0].style?e[0].style.width="":e.css("width",""),t.selectedList.height(Math.max(t.selectedContainer.height()-t.selectedActions.outerHeight()-1,1)),t.availableList.height(Math.max(t.availableContainer.height()-t.availableActions.outerHeight()-1,1))}},t.dialog_opts||{})},apply_perm:function(){var e,r,n=new Array(c.colModel.length),o={notSkipFrozen:void 0!==t.notSkipFrozen&&t.notSkipFrozen,skipSetGridWidth:!0,skipSetGroupHeaders:!0};for(e=0;e<c.colModel.length;e++)n[e]=c.iColByName[a.newColOrder[e]];if($("option",i).each((function(){$(this).is(":selected")?l.jqGrid("showCol",u[this.value].name,o):l.jqGrid("hideCol",u[this.value].name,o)})),t.done&&t.done.call(l,n),c.groupHeader&&("object"==typeof c.groupHeader||$.isFunction(c.groupHeader)))if(l.jqGrid("destroyGroupHeader",!1),c.groupHeader.groupHeaders=a.gh,null!=c.pivotOptions&&null!=c.pivotOptions.colHeaders&&1<c.pivotOptions.colHeaders.length)for(r=c.pivotOptions.colHeaders,e=0;e<r.length;e++)r[e]&&r[e].groupHeaders.length&&l.jqGrid("setGroupHeaders",r[e]);else l.jqGrid("setGroupHeaders",c.groupHeader);var s=c.autowidth||void 0!==c.widthOrg&&"auto"!==c.widthOrg&&"100%"!==c.widthOrg?c.width:c.tblwidth;s!==c.width&&l.jqGrid("setGridWidth",s,c.shrinkToFit)},cleanup:function(r){C(t.dlog,e,"destroy"),C(t.msel,i,"destroy"),e.remove(),r&&t.done&&t.done.call(l)},msel_opts:{}},l.jqGrid("getGridRes","col"),jgrid.col,t||{}),$.ui&&$UiMultiselect&&$UiMultiselect.defaults){if(!jgrid._multiselect)return void(null!=jgrid.defaults&&$.isFunction(jgrid.defaults.fatalError)?jgrid.defaults.fatalError:alert)("Multiselect plugin loaded after jqGrid. Please load the plugin before the jqGrid!");t.msel_opts=$.extend($UiMultiselect.defaults,t.msel_opts)}t.caption&&e.attr("title",t.caption),t.classname&&(e.addClass(t.classname),i.addClass(t.classname)),t.width&&($(">div",e).css({width:t.width,margin:"0 auto"}),i.css("width",t.width)),t.height&&($(">div",e).css("height",t.height),i.css("height",t.height-10)),i.empty();var g,m,v,b,w=null!=c.groupHeader?c.groupHeader.groupHeaders:0,y={};if(w)for(g=0;g<w.length;g++)for(b=w[g],m=0;m<b.numberOfColumns;m++)v=c.iColByName[b.startColumnName]+m,y[v]=$.isFunction(t.buildItemText)?t.buildItemText.call(l[0],{iCol:v,cm:u[v],cmName:u[v].name,colName:p[v],groupTitleText:b.titleText}):$.jgrid.stripHtml(b.titleText)+": "+$.jgrid.stripHtml(""===p[v]?u[v].name:p[v]);for(v=0;v<h;v++)void 0===y[v]&&(y[v]=$.isFunction(t.buildItemText)?t.buildItemText.call(l[0],{iCol:v,cm:u[v],cmName:u[v].name,colName:p[v],groupTitleText:null}):$.jgrid.stripHtml(p[v]));if($.each(u,(function(t){this.hidedlg||i.append("<option value='"+t+"'"+(c.headertitles||this.headerTitle?" title='"+jgrid.stripHtml("string"==typeof this.headerTitle?this.headerTitle:y[t])+"'":"")+(this.hidden?"":" selected='selected'")+">"+y[t]+"</option>")})),r=$.isFunction(t.dlog_opts)?t.dlog_opts.call(l,t):t.dlog_opts,C(t.dlog,e,r),n=$.isFunction(t.msel_opts)?t.msel_opts.call(l,t):t.msel_opts,C(t.msel,i,n),(o=$("#colchooser_"+jqID(c.id))).css({margin:"auto"}),o.find(">div").css({width:"100%",height:"100%",margin:"auto"}),a=f(i)){var x,_;if(a.grid=d,w)for(a.gh=$.extend(!0,[],w),a.inGroup=new Array(c.colModel.length),x=0;x<w.length;x++)for(_=w[x],v=0;v<_.numberOfColumns;v++)a.inGroup[c.iColByName[_.startColumnName]+v]=x;a.newColOrder=$.map(u,(function(t){return t.name})),a.container.css({width:"100%",height:"100%",margin:"auto"}),a.selectedContainer.css({width:100*a.options.dividerLocation+"%",height:"100%",margin:"auto",boxSizing:"border-box"}),a.availableContainer.css({width:100-100*a.options.dividerLocation+"%",height:"100%",margin:"auto",boxSizing:"border-box"}),a.selectedList.css("height","auto"),a.availableList.css("height","auto"),s=Math.max(a.selectedList.height(),a.availableList.height()),s=Math.min(s,$(window).height()),a.selectedList.css("height",s),a.availableList.css("height",s),null!=a.options&&a.options.sortable&&a.selectedList.on("sortupdate",(function(e,i){reorderSelectedColumns.call(a,parseInt(i.item.data("optionLink").val(),10)),i.item.css({width:"",height:""}),$.isFunction(t.sortUpdate)&&t.sortUpdate.call(d,e,i)})),$.isFunction(t.init)&&t.init.call(d,a)}}function C(t,e){t&&("string"==typeof t?$.fn[t]&&$.fn[t].apply(e,$.makeArray(arguments).slice(2)):$.isFunction(t)&&t.apply(e,$.makeArray(arguments).slice(2)))}},sortableRows:function(t){return this.each((function(){var e=this,i=e.grid,r=e.p;i&&(r.treeGrid||$.fn.sortable&&((t=$.extend({cursor:"move",axis:"y",items:">tbody>.jqgrow"},t||{})).start&&$.isFunction(t.start)?(t._start_=t.start,delete t.start):t._start_=!1,t.update&&$.isFunction(t.update)?(t._update_=t.update,delete t.update):t._update_=!1,t.start=function(n,o){if($(o.item).css("border-width","0"),$("td",o.item).each((function(t){this.style.width=i.cols[t].style.width})),r.subGrid){var a=$(o.item).attr("id");try{$(e).jqGrid("collapseSubGridRow",a)}catch(n){}}t._start_&&t._start_.apply(this,[n,o])},t.update=function(i,n){$(n.item).css("border-width",""),!0===r.rownumbers&&$("td.jqgrid-rownum",e.rows).each((function(t){$(this).html(t+1+(parseInt(r.page,10)-1)*parseInt(r.rowNum,10))})),t._update_&&t._update_.apply(this,[i,n])},$(e).sortable(t)))}))},gridDnD:function(t){return this.each((function(){var e,i,r=this;if(r.grid&&!r.p.treeGrid&&$.fn.draggable&&$.fn.droppable)if(void 0===$("#jqgrid_dnd")[0]&&$("body").append("<table id='jqgrid_dnd' class='ui-jqgrid-dnd'></table>"),"string"!=typeof t||"updateDnD"!==t||!0!==r.p.jqgdnd){if((t=$.extend({drag:function(t){return $.extend({start:function(e,i){var n,o;if(r.p.subGrid){o=$(i.helper).attr("id");try{$(r).jqGrid("collapseSubGridRow",o)}catch(e){}}for(n=0;n<$.data(r,"dnd").connectWith.length;n++)0===$($.data(r,"dnd").connectWith[n]).jqGrid("getGridParam","reccount")&&$($.data(r,"dnd").connectWith[n]).jqGrid("addRowData","jqg_empty_row",{});i.helper.addClass("ui-state-highlight"),$("td",i.helper).each((function(t){this.style.width=r.grid.headers[t].width+"px"})),t.onstart&&$.isFunction(t.onstart)&&t.onstart.call($(r),e,i)},stop:function(e,i){var n,o;for(i.helper.dropped&&!t.dragcopy&&(void 0===(o=$(i.helper).attr("id"))&&(o=$(this).attr("id")),$(r).jqGrid("delRowData",o)),n=0;n<$.data(r,"dnd").connectWith.length;n++)$($.data(r,"dnd").connectWith[n]).jqGrid("delRowData","jqg_empty_row");t.onstop&&$.isFunction(t.onstop)&&t.onstop.call($(r),e,i)}},t.drag_opts||{})},drop:function(t){return $.extend({accept:function(t){if(!$(t).hasClass("jqgrow"))return t;var e=$(t).closest("table.ui-jqgrid-btable");if(0<e.length&&void 0!==$.data(e[0],"dnd")){var i=$.data(e[0],"dnd").connectWith;return-1!==$.inArray("#"+jqID(this.id),i)}return!1},drop:function(e,i){if($(i.draggable).hasClass("jqgrow")){var n,o=$(i.draggable).attr("id"),a=i.draggable.parent().parent(),s=a.jqGrid("getRowData",o);if(!t.dropbyname){var l,d,c,u,h={},p=a.jqGrid("getGridParam","colModel"),f=$("#"+jqID(this.id)).jqGrid("getGridParam","colModel");try{for(d=l=0;l<p.length&&d<f.length;l++)if("cb"!==(c=p[l].name)&&"rn"!==c&&"subgrid"!==c){for(;d<f.length;d++)if("cb"!==(u=f[d].name)&&"rn"!==u&&"subgrid"!==u){h[u]=s[c];break}d++}s=h}catch(e){}}if(i.helper.dropped=!0,t.beforedrop&&$.isFunction(t.beforedrop)){var g=t.beforedrop.call(this,e,i,s,$("#"+jqID(r.p.id)),$(this));null!=g&&"object"==typeof g&&(s=g)}i.helper.dropped&&(t.autoid&&($.isFunction(t.autoid)?n=t.autoid.call(this,s,{rowid:o,ev:e,ui:i}):(n=Math.ceil(1e3*Math.random()),n=t.autoidprefix+n)),$("#"+jqID(this.id)).jqGrid("addRowData",n,s,t.droppos),s[r.p.localReader.id]=n),t.ondrop&&$.isFunction(t.ondrop)&&t.ondrop.call(this,e,i,s)}}},t.drop_opts||{})},onstart:null,onstop:null,beforedrop:null,ondrop:null,drop_opts:{},drag_opts:{revert:"invalid",helper:"clone",cursor:"move",appendTo:"#jqgrid_dnd",zIndex:5e3},dragcopy:!1,dropbyname:!1,droppos:"first",autoid:!0,autoidprefix:"dnd_"},t||{})).connectWith)for(t.connectWith=t.connectWith.split(","),t.connectWith=$.map(t.connectWith,(function(t){return $.trim(t)})),$.data(r,"dnd",t),0===r.p.reccount||r.p.jqgdnd||n(),r.p.jqgdnd=!0,e=0;e<t.connectWith.length;e++)i=t.connectWith[e],$(i).droppable($.isFunction(t.drop)?t.drop.call($(r),t):t.drop)}else n();function n(){var t=$.data(r,"dnd");$("tr.jqgrow:not(.ui-draggable)",r).draggable($.isFunction(t.drag)?t.drag.call($(r),t):t.drag)}}))},gridResize:function(t){return this.each((function(){var e,i=this,r=i.grid,n=i.p,o=n.gView+">.ui-jqgrid-bdiv",a=!1,s=n.height;if(r&&$.fn.resizable){if((t=$.extend({},t||{})).alsoResize?(t._alsoResize_=t.alsoResize,delete t.alsoResize):t._alsoResize_=!1,t.stop&&$.isFunction(t.stop)?(t._stop_=t.stop,delete t.stop):t._stop_=!1,t.stop=function(l,d){$(i).jqGrid("setGridWidth",d.size.width,t.shrinkToFit),$(n.gView+">.ui-jqgrid-titlebar").css("width",""),a?($(e).each((function(){$(this).css("height","")})),"auto"!==s&&"100%"!==s||$(r.bDiv).css("height",s)):$(i).jqGrid("setGridParam",{height:$(o).height()}),i.fixScrollOffsetAndhBoxPadding&&i.fixScrollOffsetAndhBoxPadding(),t._stop_&&t._stop_.call(i,l,d)},e=o,"auto"!==s&&"100%"!==s||void 0!==t.handles||(t.handles="e,w"),t.handles){var l=$.map(String(t.handles).split(","),(function(t){return $.trim(t)}));2===l.length&&("e"===l[0]&&"w"===l[1]||"e"===l[1]&&"w"===l[1])&&(e=n.gView+">div:not(.frozen-div)",a=!0,n.pager&&(e+=","+n.pager))}t._alsoResize_?t.alsoResize=e+","+t._alsoResize_:t.alsoResize=e,delete t._alsoResize_,$(n.gBox).resizable(t)}}))}}),Aggregation.prototype.calc=function(t,e,i,r,n){var o=this;if(void 0!==t)switch(o.result=o.result||0,t=parseFloat(t),o.aggregator){case"sum":o.result+=t;break;case"count":o.result++;break;case"avg":o.finilized?(o.count=o.count||0,o.result=(o.result*o.count+t)/(o.count+1)):(o.result+=t,o.count=o.count||0),o.count++;break;case"min":o.result=Math.min(o.result,t);break;case"max":o.result=Math.max(o.result,t);break;default:$.isFunction(o.aggregator)&&(o.result=o.aggregator.call(o.context,{previousResult:o.result,value:t,fieldName:e,item:i,iItem:r,items:n}))}},Aggregation.prototype.getResult=function(t,e,i){var r=this;(void 0!==r.result||i)&&(i&&void 0!==r.result&&(r.result=0,r.count=0),void 0===r.result||r.finilized||"avg"!==r.aggregator||(r.result=r.result/r.count,r.finilized=!0),t[e]=r.result)},ArrayOfFieldsets.prototype.compareVectorsEx=function(t,e){var i,r,n=this.fieldLength;for(i=0;i<n;i++)if(0!==(r=this.fieldCompare[i](t[i],e[i])))return{index:i,result:r};return{index:-1,result:0}},ArrayOfFieldsets.prototype.getIndexOfDifferences=function(t,e){return null===e||null===t?0:this.compareVectorsEx(t,e).index},ArrayOfFieldsets.prototype.compareVectors=function(t,e){var i=this.compareVectorsEx(t,e);return 0<(0<=i.index?this.fieldSortDirection[i.index]:1)?i.result:-i.result},ArrayOfFieldsets.prototype.getItem=function(t){return this.items[t]},ArrayOfFieldsets.prototype.getIndexLength=function(){return this.items.length},ArrayOfFieldsets.prototype.getIndexesOfSourceData=function(t){return this.indexesOfSourceData[t]},ArrayOfFieldsets.prototype.createDataIndex=function(t){var e,i,r,n,o,a,s,l,d,c=t.length,u=this.fieldLength,h=this.fieldNames,p=this.indexesOfSourceData,f=this.items;for(e=0;e<c;e++){for(s=t[e],i=new Array(u),n=0;n<u;n++)void 0!==(r=s[h[n]])&&("string"==typeof r&&this.trimByCollect&&(r=$.trim(r)),i[n]=r);if(l=0,(d=f.length-1)<0)f.push(i),p.push([e]);else if(0!==(o=this.compareVectors(i,f[d])))if(1===o||this.skipSort)f.push(i),p.push([e]);else if(1!==(o=this.compareVectors(f[0],i)))if(0!==o)for(;;){if(d-l<2){f.splice(d,0,i),p.splice(d,0,[e]);break}if(a=Math.floor((l+d)/2),0===(o=this.compareVectors(f[a],i))){p[a].push(e);break}1===o?d=a:l=a}else p[0].push(e);else f.unshift(i),p.unshift([e]);else p[d].push(e)}},jgrid.extend({pivotSetup:function(t,e){var i,r,n,o,a,s,l,d,c,u,h,p,f,g,m,v,b,w,y,x,_,C,A,j,k,D,q,I,S,F=this[0],O=$.isArray,R={},E={groupField:[],groupSummary:[],groupSummaryPos:[]},N={grouping:!0,groupingView:E},T=$.extend({totals:!1,useColSpanStyle:!1,trimByCollect:!0,skipSortByX:!1,skipSortByY:!1,caseSensitive:!1,footerTotals:!1,groupSummary:!0,groupSummaryPos:"header",frozenStaticCols:!1,defaultFormatting:!0,data:t},e||{}),M=t.length,z=T.xDimension,P=T.yDimension,B=T.aggregates,G=T.totalText||T.totals||T.rowTotals||T.totalHeader,H=O(z)?z.length:0,L=O(P)?P.length:0,W=O(B)?B.length:0,V=L-(1===W?1:0),Y=[],U=[],Q=[],X=[],K=["pivotInfos"],J=new Array(W),Z=new Array(L),tt=function(e,i,r){var n=new ArrayOfFieldsets(T.trimByCollect,T.caseSensitive,i,e);return $.isFunction(r)&&(n.compareVectorsEx=r),n.createDataIndex(t),n},et=function(t,e,i,r,n){var o,a,s;switch(t){case 1:o=P[r].totalText||"{0} {1} {2}",a="y"+n+"t"+r;break;case 2:o=T.totalText||"{0}",a="t";break;default:o=1<W?e.label||"{0}":$.isFunction(P[r].label)?P[r].label:I.getItem(n)[r],a="y"+n}return delete(s=$.extend({},e,{name:a+(1<W?"a"+i:""),label:$.isFunction(o)?o.call(F,2===t?{aggregate:e,iAggregate:i,pivotOptions:T}:1===t?{yIndex:I.getItem(n),aggregate:e,iAggregate:i,yLevel:r,pivotOptions:T}:{yData:I.getItem(n)[r],yIndex:I.getItem(n),yLevel:r,pivotOptions:T}):jgrid.template.apply(F,2===t?[String(o),e.aggregator,e.member,i]:[String(o),e.aggregator,e.member,I.getItem(n)[r],r])})).member,delete s.aggregator,s},it=function(t,e,i){var r,n;for(r=0;r<W;r++)void 0===(n=B[r]).template&&void 0===n.formatter&&T.defaultFormatting&&(n.template="count"===n.aggregator?"integer":"number"),Q.push(et(t,n,r,e,i))},rt=function(t,e,i){var r,n,o,s;for(r=V-1;e<=r;r--)if(U[r]){for(n=0;n<=r;n++)(k=Y[n].groupHeaders)[k.length-1].numberOfColumns+=W;for(o=(a=P[r]).totalHeader,s=a.headerOnTop,n=r+1;n<=V-1;n++)Y[n].groupHeaders.push({titleText:s&&n===r+1||!s&&n===V-1?$.isFunction(o)?o.call(F,i,r):jgrid.template.call(F,String(o||""),i[r],r):"",startColumnName:"y"+(t-1)+"t"+r+(1===W?"":"a0"),numberOfColumns:W})}},nt=function(t){var i=new Aggregation("count"===B[t].aggregator?"sum":B[t].aggregator,F,e);return i.groupInfo={iRows:[],rows:[],ys:[],iYs:[]},i},ot=function(){var t,e;for(t=V-1;0<=t;t--)if(U[t])for(null==Z[t]&&(Z[t]=new Array(W)),e=0;e<W;e++)Z[t][e]=nt(e)},at=function(t,e,i,r){var n,o,a,s=I.getIndexOfDifferences(e,i);if(null!==i)for(s=Math.max(s,0),n=V-1;s<=n;n--)o="y"+t+"t"+n+(1<W?"a"+r:""),U[n]&&void 0===A[o]&&((a=Z[n][r]).getResult(A,o),A.pivotInfos[o]={colType:1,iA:r,a:B[r],level:n,iRows:a.groupInfo.iRows,rows:a.groupInfo.rows,ys:a.groupInfo.ys,iYs:a.groupInfo.iYs},e!==i&&(Z[n][r]=nt(r)))},st=function(e,i,r,n,o,a,s){var l,d,c;if(e!==i)for(l=V-1;0<=l;l--)U[l]&&((d=Z[l][n]).calc(o[r.member],r.member,o,a,t),c=d.groupInfo,$.inArray(s,c.iYs)<0&&(c.iYs.push(s),c.ys.push(e)),$.inArray(a,c.iRows)<0&&(c.iRows.push(a),c.rows.push(o)))};if(0===H||0===W)throw"xDimension or aggregates options are not set!";for(q=tt(z,T.skipSortByX,T.compareVectorsByX),I=tt(P,T.skipSortByY,T.compareVectorsByY),e.xIndex=q,e.yIndex=I,r=0;r<H;r++)s={name:"x"+r,label:null!=(o=z[r]).label?$.isFunction(o.label)?o.label.call(F,o,r,T):o.label:o.dataName,frozen:T.frozenStaticCols},r<H-1&&!o.skipGrouping&&!o.additionalProperty&&(E.groupField.push(s.name),E.groupSummary.push(T.groupSummary),E.groupSummaryPos.push(T.groupSummaryPos)),delete(s=$.extend(s,o)).dataName,delete s.footerText,o.additionalProperty?K.push(s.name):(Q.push(s),N.sortname=s.name);for(H<2&&(N.grouping=!1),E.hideFirstGroupCol=!0,r=0;r<L;r++)a=P[r],U.push(!!(a.totals||a.rowTotals||a.totalText||a.totalHeader));for(j=I.getItem(0),it(0,L-1,0),S=I.getIndexLength(),w=1;w<S;w++){for(y=I.getItem(w),r=I.getIndexOfDifferences(y,j),n=V-1;r<=n;n--)U[n]&&it(1,n,w-1);j=y,it(0,L-1,w)}for(r=V-1;0<=r;r--)U[r]&&it(1,r,S-1);for(G&&it(2),j=I.getItem(0),n=0;n<V;n++)Y.push({useColSpanStyle:T.useColSpanStyle,groupHeaders:[{titleText:$.isFunction(P[n].label)?P[n].label.call(F,{yData:j[n],yIndex:j,yLevel:n,pivotOptions:T}):j[n],startColumnName:1===W?"y0":"y0a0",numberOfColumns:W}]});for(w=1;w<S;w++){for(y=I.getItem(w),rt(w,r=I.getIndexOfDifferences(y,j),j),n=V-1;r<=n;n--)Y[n].groupHeaders.push({titleText:$.isFunction(P[n].label)?P[n].label.call(F,{yData:y[n],yIndex:y,yLevel:n,pivotOptions:T}):y[n],startColumnName:"y"+w+(1===W?"":"a0"),numberOfColumns:W});for(n=0;n<r;n++)(k=Y[n].groupHeaders)[k.length-1].numberOfColumns+=W;j=y}if(rt(S,0,j),G)for(r=0;r<V;r++)Y[r].groupHeaders.push({titleText:r<V-1?"":T.totalHeader||"",startColumnName:"t"+(1===W?"":"a0"),numberOfColumns:W});for(v=q.getIndexLength(),c=0;c<v;c++){for(u=q.getItem(c),A={pivotInfos:h={iX:c,x:u}},r=0;r<H;r++)A["x"+r]=u[r];if(b=q.getIndexesOfSourceData(c),G)for(n=0;n<W;n++)J[n]=nt(n);for(j=null,ot(),w=0;w<S;w++){for(y=I.getItem(w),x=I.getIndexesOfSourceData(w),n=0;n<W;n++){for(null!==j&&at(w-1,y,j,n),_=[],r=0;r<x.length;r++)D=x[r],0<=$.inArray(D,b)&&_.push(D);if(0<_.length){for(p=new Array(_.length),f=new Aggregation((C=B[n]).aggregator,F,e),l=0;l<_.length;l++)r=_[l],i=t[r],p[l]=i,f.calc(i[C.member],C.member,i,r,t),G&&((g=J[n]).calc(i[C.member],C.member,i,r,t),m=g.groupInfo,$.inArray(r,m.iYs)<0&&(m.iYs.push(w),m.ys.push(y)),$.inArray(r,m.iRows)<0&&(m.iRows.push(r),m.rows.push(i))),st(y,j,C,n,i,r,w);d="y"+w+(1===W?"":"a"+n),f.getResult(A,d),h[d]={colType:0,iY:w,y,iA:n,a:C,iRows:_,rows:p}}}j=y}if(null!==j)for(n=0;n<W;n++)at(S-1,j,j,n);if(G)for(n=0;n<W;n++)d="t"+(1===W?"":"a"+n),(g=J[n]).getResult(A,d),m=g.groupInfo,h[d]={colType:2,iA:n,a:B[n],iRows:m.iRows,rows:m.rows,iYs:m.iYs,ys:m.ys};X.push(A)}if(T.footerTotals||T.colTotals){for(M=X.length,r=0;r<H;r++)R["x"+r]=z[r].footerText||"";for(r=H;r<Q.length;r++){for(d=Q[r].name,f=new Aggregation(T.footerAggregator||"sum",F,e),l=0;l<M;l++)A=X[l],f.calc(A[d],d,A,l,X);f.getResult(R,d)}}return e.colHeaders=Y,{colModel:Q,additionalProperties:K,options:e,rows:X,groupOptions:N,groupHeaders:Y,summary:R}},jqPivot:function(t,e,i,r){return this.each((function(){var n=this,o=$(n),a=$.fn.jqGrid;function s(){var r,s=a.pivotSetup.call(o,t,e),l=s.groupHeaders,d=0<function(t){var e,i=0;for(e in t)t.hasOwnProperty(e)&&i++;return i}(s.summary),c=s.groupOptions.groupingView,u=jgrid.from.call(n,s.rows);if(!e.skipSortByX)for(r=0;r<c.groupField.length;r++)u.orderBy(c.groupField[r],null!=i&&i.groupingView&&null!=i.groupingView.groupOrder&&"desc"===i.groupingView.groupOrder[r]?"d":"a","text","");if(e.data=t,a.call(o,$.extend(!0,{datastr:$.extend(u.select(),d?{userdata:s.summary}:{}),datatype:"jsonstring",footerrow:d,userDataOnFooter:d,colModel:s.colModel,additionalProperties:s.additionalProperties,pivotOptions:s.options,viewrecords:!0,sortname:e.xDimension[0].dataName},s.groupOptions,i||{})),l.length)for(r=0;r<l.length;r++)l[r]&&l[r].groupHeaders.length&&a.setGroupHeaders.call(o,l[r]);e.frozenStaticCols&&a.setFrozenColumns.call(o)}"string"==typeof t?$.ajax($.extend({url:t,dataType:"json",success:function(e){t=jgrid.getAccessor(e,r&&r.reader?r.reader:"rows"),s()}},r||{})):s()}))}});var subGridFeedback=function(){var t=$.makeArray(arguments);return t[0]="subGrid"+t[0].charAt(0).toUpperCase()+t[0].substring(1),t.unshift(""),t.unshift(""),t.unshift(this.p),jgrid.feedback.apply(this,t)},collapseOrExpand=function(t,e){return this.each((function(){if(this.grid&&null!=t&&!0===this.p.subGrid){var i=$(this).jqGrid("getInd",t,!0);$(i).find(">td."+e).trigger("click")}}))};jgrid.extend({setSubGrid:function(){return this.each((function(){var t,e=this.p,i=$(this),r=e.subGridModel[0],n=function(t){return i.jqGrid("getIconRes",t)};if(e.subGridOptions=$.extend({commonIconClass:n("subgrid.common"),plusicon:n("subgrid.plus"),minusicon:n("subgrid.minus"),openicon:"rtl"===e.direction?n("subgrid.openRtl"):n("subgrid.openLtr"),expandOnLoad:!1,delayOnLoad:50,selectOnExpand:!1,selectOnCollapse:!1,reloadOnExpand:!0},e.subGridOptions||{}),e.colNames.unshift(""),e.colModel.unshift({name:"subgrid",width:jgrid.cell_width?e.subGridWidth+e.cellLayout:e.subGridWidth,labelClasses:"jqgh_subgrid",sortable:!1,resizable:!1,hidedlg:!0,search:!1,fixed:!0,frozen:!0}),r)for(r.align=$.extend([],r.align||[]),t=0;t<r.name.length;t++)r.align[t]=r.align[t]||"left"}))},addSubGridCell:function(t,e,i,r){var n=this[0],o=n.p.subGridOptions,a=!$.isFunction(o.hasSubgrid)||o.hasSubgrid.call(n,{rowid:i,iRow:e,iCol:t,data:r});return null==n.p?"":"<td role='gridcell' class='"+base.getGuiStyles.call(this,"subgrid.tdStart",a?"ui-sgcollapsed sgcollapsed":"")+"' "+n.formatCol(t,e)+">"+(a?"<div class='"+base.getGuiStyles.call(this,"subgrid.buttonDiv","sgbutton-div")+"'><a role='button' class='"+base.getGuiStyles.call(this,"subgrid.button","sgbutton")+"'><span class='"+jgrid.mergeCssClasses(o.commonIconClass,o.plusicon)+"'></span></a></div>":" ")+"</td>"},addSubGrid:function(t,e){return this.each((function(){var i,r,n,o=this,a=o.p,s=a.subGridModel[0],l=function(t,e){return base.getGuiStyles.call(o,"subgrid."+t,e||"")},d=l("thSubgrid","ui-th-subgrid ui-th-column ui-th-"+a.direction),c=l("rowSubTable","ui-subtblcell"),u=l("row","ui-subgrid ui-row-"+a.direction),h=l("tdWithIcon","subgrid-cell"),p=l("tdData","subgrid-data"),f=function(t,e,i){var r=s.align[i],n=$("<td"+(r?" style='text-align:"+r+";'":"")+"></td>").html(e);t.append(n)},g=function(t,e){var i=a.xmlReader.subgrid;$(i.root+" "+i.row,t).each((function(){var t,r,n=$("<tr class='"+c+"'></tr>");if(!0===i.repeatitems)$(i.cell,this).each((function(t){f(n,$(this).text()||" ",t)}));else if(t=s.mapping||s.name)for(r=0;r<t.length;r++)f(n,jgrid.getXmlData(this,t[r])||" ",r);e.append(n)}))},m=function(t,e){var i,r,n,o,l,d=a.jsonReader.subgrid,u=jgrid.getAccessor(t,d.root);if(null!=u)for(r=0;r<u.length;r++){if(l=u[r],i=$("<tr class='"+c+"'></tr>"),!0===d.repeatitems)for(d.cell&&(l=l[d.cell]),n=0;n<l.length;n++)f(i,l[n]||" ",n);else if((o=s.mapping||s.name).length)for(n=0;n<o.length;n++)f(i,jgrid.getAccessor(l,o[n])||" ",n);e.append(i)}},v=function(t,e,i){var r,n,c=l("legacyTable","ui-jqgrid-legacy-subgrid"+(!0===a.altRows&&$(o).jqGrid("isBootstrapGuiStyle")?" table-striped":"")),u=$("<table"+(c?" style='width:1px' role='presentation' class='"+c+"'":"")+"><thead></thead><tbody></tbody></table>"),h=$("<tr></tr>");for(o.grid.endReq.call(o),n=0;n<s.name.length;n++)r=$("<th class='"+d+"'></th>").html(s.name[n]).width(s.width[n]),h.append(r);return h.appendTo(u[0].tHead),i(t,$(u[0].tBodies[0])),$("#"+jqID(a.id+"_"+e)).append(u),!1},b=function(){var e,i=$(this).parent("tr")[0],r=i.nextSibling,n=i.id,l=a.id+"_"+n,d=function(t){return jgrid.mergeCssClasses(a.subGridOptions.commonIconClass,a.subGridOptions[t])},c=1;if($.each(a.colModel,(function(){!0!==this.hidden&&"rn"!==this.name&&"cb"!==this.name||c++})),$(this).hasClass("sgcollapsed")){if(!0===a.subGridOptions.reloadOnExpand||!1===a.subGridOptions.reloadOnExpand&&!$(r).hasClass("ui-subgrid")){if(e=1<=t?"<td colspan='"+t+"'> </td>":"",!subGridFeedback.call(o,"beforeExpand",l,n))return;$(i).after("<tr role='row' class='"+u+"'>"+e+"<td class='"+h+"'><span class='"+d("openicon")+"'></span></td><td colspan='"+parseInt(a.colNames.length-c,10)+"' class='"+p+"'><div id='"+l+"' class='tablediv'></div></td></tr>"),$(o).triggerHandler("jqGridSubGridRowExpanded",[l,n]),$.isFunction(a.subGridRowExpanded)?a.subGridRowExpanded.call(o,l,n):function(t){var e,i,r=$(t).attr("id"),n={nd_:(new Date).getTime()};if(n[a.prmNames.subgridid]=r,s){if(s.params)for(i=0;i<s.params.length;i++)void 0!==(e=a.iColByName[s.params[i]])&&(n[a.colModel[e].name]=$(t.cells[e]).text().replace(/\ \;/gi,""));if(!o.grid.hDiv.loading)switch(o.grid.beginReq.call(o),a.subgridtype||(a.subgridtype=a.datatype),$.isFunction(a.subgridtype)?a.subgridtype.call(o,n):a.subgridtype=a.subgridtype.toLowerCase(),a.subgridtype){case"xml":case"json":$.ajax($.extend({type:a.mtype,url:$.isFunction(a.subGridUrl)?a.subGridUrl.call(o,n):a.subGridUrl,dataType:a.subgridtype,context:r,data:jgrid.serializeFeedback.call(o,a.serializeSubGridData,"jqGridSerializeSubGridData",n),success:function(t){v(t,this,"xml"===a.subgridtype?g:m)},error:function(t,e,i){var r=void 0===a.loadSubgridError?a.loadError:a.loadSubgridError;o.grid.endReq.call(o),$.isFunction(r)&&r.call(o,t,e,i),a.subGridOptions.noEmptySubgridOnError||v(null,this,"xml"===a.subgridtype?g:m)}},jgrid.ajaxOptions,a.ajaxSubgridOptions||{}))}}}(i)}else $(r).show();$(this).html("<div class='"+base.getGuiStyles.call(o,"subgrid.buttonDiv","sgbutton-div")+"'><a role='button' class='"+base.getGuiStyles.call(o,"subgrid.button","sgbutton")+"'><span class='"+d("minusicon")+"'></span></a></div>").removeClass("sgcollapsed").addClass("sgexpanded"),a.subGridOptions.selectOnExpand&&$(o).jqGrid("setSelection",n)}else if($(this).hasClass("sgexpanded")){if(!subGridFeedback.call(o,"beforeCollapse",l,n))return;!0===a.subGridOptions.reloadOnExpand?$(r).remove(".ui-subgrid"):$(r).hasClass("ui-subgrid")&&$(r).hide(),$(this).html("<div class='"+base.getGuiStyles.call(o,"subgrid.buttonDiv","sgbutton-div")+"'><a role='button' class='"+base.getGuiStyles.call(o,"subgrid.button","sgbutton")+"'><span class='"+d("plusicon")+"'></span></a></div>").removeClass("sgexpanded").addClass("sgcollapsed"),a.subGridOptions.selectOnCollapse&&$(o).jqGrid("setSelection",n)}return!1},w=1;if(o.grid){for(i=o.rows.length,void 0!==e&&0<e&&(i=(w=e)+1);w<i;)r=o.rows[w],$(r).hasClass("jqgrow")&&(n=$(r.cells[t])).hasClass("ui-sgcollapsed")&&(a.scroll&&n.off("click"),n.on("click",b)),w++;if(!0===a.subGridOptions.expandOnLoad){var y=a.iColByName.subgrid;$(o.rows).filter(".jqgrow").each((function(t,e){$(e.cells[y]).filter(".sgcollapsed").children(".sgbutton-div").children(".sgbutton").click()}))}o.subGridXml=function(t,e){return v(t,e,g)},o.subGridJson=function(t,e){return v(t,e,m)}}}))},expandSubGridRow:function(t){return collapseOrExpand.call(this,t,"sgcollapsed")},collapseSubGridRow:function(t){return collapseOrExpand.call(this,t,"sgexpanded")},toggleSubGridRow:function(t){return collapseOrExpand.call(this,t,"ui-sgcollapsed")}}),window.tableToGrid=function(t,e){$(t).each((function(){var t,i,r,n,o,a,s,l,d=$(this),c=[],u=[],h=[],p=[],f=[];if(!this.grid){for(d.width("99%"),t=d.width(),i=$("tr td:first-child input[type=checkbox]:first",d),r=$("tr td:first-child input[type=radio]:first",d),o=!(n=0<i.length)&&0<r.length,a=n||o,$("th",d).each((function(){0===c.length&&a?(c.push({name:"__selection__",index:"__selection__",width:0,hidden:!0}),u.push("__selection__")):(c.push({name:$(this).attr("id")||$.trim($.jgrid.stripHtml($(this).html())).split(" ").join("_"),index:$(this).attr("id")||$.trim($.jgrid.stripHtml($(this).html())).split(" ").join("_"),width:$(this).width()||150}),u.push($(this).html()))})),$("tbody > tr",d).each((function(){var t={},e=0;$("td",$(this)).each((function(){if(0===e&&a){var i=$("input",$(this)),r=i.attr("value");p.push(r||h.length),i.is(":checked")&&f.push(r),t[c[e].name]=i.attr("value")}else t[c[e].name]=$(this).html();e++})),0<e&&h.push(t)})),d.empty(),d.jqGrid($.extend({datatype:"local",width:t,colNames:u,colModel:c,multiselect:n},e||{})),s=0;s<h.length;s++)l=null,0<p.length&&(l=p[s])&&l.replace&&(l=encodeURIComponent(l).replace(/[.\-%]/g,"_")),null===l&&(l=$.jgrid.randId()),d.jqGrid("addRowData",l,h[s]);for(s=0;s<f.length;s++)d.jqGrid("setSelection",f[s])}}))};var treeGridFeedback=function(){var t=$.makeArray(arguments);return t[0]="treeGrid"+t[0].charAt(0).toUpperCase()+t[0].substring(1),t.unshift(""),t.unshift(""),t.unshift(this.p),jgrid.feedback.apply(this,t)},getNodeIcons=function(t,e){var i=e[t.treeReader.icon_field],r=t.treeIcons,n=r.plus+" tree-plus",o=r.minus+" tree-minus";return i&&"string"==typeof i&&2===(i=i.split(",")).length&&(o=i[0],n=i[1]),{expanded:o,collapsed:n,common:r.commonIconClass}};jgrid.extend({setTreeNode:function(){return this.each((function(){var t=$(this),e=this.p;if(this.grid&&e.treeGrid){var i=e.treeReader.expanded_field,r=e.treeReader.leaf_field;t.off("jqGridBeforeSelectRow.setTreeNode"),t.on("jqGridBeforeSelectRow.setTreeNode",(function(n,o,a){if(null!=a){var s=$(a.target),l=s.closest("tr.jqgrow>td"),d=l.parent();return(s.is("div.treeclick")||e.ExpandColClick&&0<l.length&&0<s.closest("span.cell-wrapper",l).length)&&function(){var n=e.data[e._index[stripPref(e.idPrefix,o)]],a=n[i]?"collapse":"expand";n[r]||(base[a+"Row"].call(t,n,d),base[a+"Node"].call(t,n,d))}(),!0}}))}}))},setTreeGrid:function(){return this.each((function(){var t,e,i,r=this.p,n=[],o=["leaf_field","expanded_field","loaded"];if(r.treeGrid){for(e in r.treedatatype||$.extend(this.p,{treedatatype:r.datatype}),r.subGrid=!1,r.altRows=!1,r.pgbuttons=!1,r.pginput=!1,r.gridview=!0,null===r.rowTotal&&(r.rowNum=r.maxRowNum),r.rowList=[],r.treeIcons.plus="rtl"===r.direction?r.treeIcons.plusRtl:r.treeIcons.plusLtr,"nested"===r.treeGridModel?r.treeReader=$.extend({level_field:"level",left_field:"lft",right_field:"rgt",leaf_field:"isLeaf",expanded_field:"expanded",loaded:"loaded",icon_field:"icon"},r.treeReader):"adjacency"===r.treeGridModel&&(r.treeReader=$.extend({level_field:"level",parent_id_field:"parent",leaf_field:"isLeaf",expanded_field:"expanded",loaded:"loaded",icon_field:"icon"},r.treeReader)),r.colModel)if(r.colModel.hasOwnProperty(e))for(i in t=r.colModel[e].name,r.treeReader)r.treeReader.hasOwnProperty(i)&&r.treeReader[i]===t&&n.push(t);$.each(r.treeReader,(function(t){var e=String(this);e&&-1===$.inArray(e,n)&&(0<=$.inArray(t,o)?r.additionalProperties.push({name:e,search:!1,convert:function(t){return!0===t||"true"===String(t).toLowerCase()||"1"===String(t)||t}}):r.additionalProperties.push(e))}))}}))},expandRow:function(t){this.each((function(){var e=$(this),i=this.p;if(this.grid&&i.treeGrid){var r=i.treeReader.expanded_field,n=t[i.localReader.id];if(treeGridFeedback.call(this,"beforeExpandRow",{rowid:n,item:t})){var o=base.getNodeChildren.call(e,t);$(o).each((function(){var t=i.idPrefix+getAccessor(this,i.localReader.id);$(base.getGridRowById.call(e,t)).css("display",""),this[r]&&base.expandRow.call(e,this)})),treeGridFeedback.call(this,"afterExpandRow",{rowid:n,item:t})}}}))},collapseRow:function(t){this.each((function(){var e=$(this),i=this.p;if(this.grid&&i.treeGrid){var r=i.treeReader.expanded_field,n=t[i.localReader.id];if(treeGridFeedback.call(this,"beforeCollapseRow",{rowid:n,item:t})){var o=base.getNodeChildren.call(e,t);$(o).each((function(){var t=i.idPrefix+getAccessor(this,i.localReader.id);$(base.getGridRowById.call(e,t)).css("display","none"),this[r]&&base.collapseRow.call(e,this)})),treeGridFeedback.call(this,"afterCollapseRow",{rowid:n,item:t})}}}))},getRootNodes:function(){var t=[];return this.each((function(){var e=this.p;if(this.grid&&e.treeGrid)switch(e.treeGridModel){case"nested":var i=e.treeReader.level_field;$(e.data).each((function(){parseInt(this[i],10)===parseInt(e.tree_root_level,10)&&t.push(this)}));break;case"adjacency":var r=e.treeReader.parent_id_field;$(e.data).each((function(){null!==this[r]&&"null"!==String(this[r]).toLowerCase()||t.push(this)}))}})),t},getNodeDepth:function(t){var e=null;return this.each((function(){var i=this.p;if(this.grid&&i.treeGrid)switch(i.treeGridModel){case"nested":var r=i.treeReader.level_field;e=parseInt(t[r],10)-parseInt(i.tree_root_level,10);break;case"adjacency":e=base.getNodeAncestors.call($(this),t).length}})),e},getNodeParent:function(t){var e=this[0];if(!e||!e.grid||null==e.p||!e.p.treeGrid||null==t)return null;var i=e.p,r=i.treeReader,n=t[r.parent_id_field];if("nested"===i.treeGridModel){var o=null,a=r.left_field,s=r.right_field,l=r.level_field,d=parseInt(t[a],10),c=parseInt(t[s],10),u=parseInt(t[l],10);return $(i.data).each((function(){if(parseInt(this[l],10)===u-1&&parseInt(this[a],10)<d&&parseInt(this[s],10)>c)return o=this,!1})),o}if(null===n||"null"===n)return null;var h=i._index[n];return void 0!==h?i.data[h]:null},getNodeChildren:function(t){var e=[];return this.each((function(){var i=this.p;if(this.grid&&i.treeGrid)switch(i.treeGridModel){case"nested":var r=i.treeReader.left_field,n=i.treeReader.right_field,o=i.treeReader.level_field,a=parseInt(t[r],10),s=parseInt(t[n],10),l=parseInt(t[o],10);$(i.data).each((function(){parseInt(this[o],10)===l+1&&parseInt(this[r],10)>a&&parseInt(this[n],10)<s&&e.push(this)}));break;case"adjacency":var d=i.treeReader.parent_id_field,c=i.localReader.id;$(i.data).each((function(){String(this[d])===String(t[c])&&e.push(this)}))}})),e},getFullTreeNode:function(t){var e=[];return this.each((function(){var i,r=this.p;if(this.grid&&r.treeGrid)switch(r.treeGridModel){case"nested":var n=r.treeReader.left_field,o=r.treeReader.right_field,a=r.treeReader.level_field,s=parseInt(t[n],10),l=parseInt(t[o],10),d=parseInt(t[a],10);$(r.data).each((function(){parseInt(this[a],10)>=d&&parseInt(this[n],10)>=s&&parseInt(this[n],10)<=l&&e.push(this)}));break;case"adjacency":if(t){e.push(t);var c=r.treeReader.parent_id_field,u=r.localReader.id;$(r.data).each((function(){var t;for(i=e.length,t=0;t<i;t++)if(String(e[t][u])===String(this[c])){e.push(this);break}}))}}})),e},getNodeAncestors:function(t){var e=[];return this.each((function(){var i=$(this),r=base.getNodeParent;if(this.grid&&this.p.treeGrid)for(var n=r.call(i,t);n;)e.push(n),n=r.call(i,n)})),e},isVisibleNode:function(t){var e=!0;return this.each((function(){var i=this.p;if(this.grid&&i.treeGrid){var r=base.getNodeAncestors.call($(this),t),n=i.treeReader.expanded_field;$(r).each((function(){if(!(e=e&&this[n]))return!1}))}})),e},isNodeLoaded:function(t){var e;return this.each((function(){var i=this.p;if(this.grid&&i.treeGrid){var r=i.treeReader.leaf_field,n=i.treeReader.loaded;e=void 0!==t&&(void 0!==t[n]?t[n]:!!(t[r]||0<base.getNodeChildren.call($(this),t).length))}})),e},expandNode:function(t){return this.each((function(){var e,i,r,n=this,o=n.p;if(n.grid&&o.treeGrid){var a=o.treeReader;if(!t[a.expanded_field]){if(e=getAccessor(t,o.localReader.id),!treeGridFeedback.call(n,"beforeExpandNode",{rowid:e,item:t}))return;i=$("#"+o.idPrefix+jqID(e),n.grid.bDiv)[0],t[a.expanded_field]=!0,r=getNodeIcons(o,t),$("div.treeclick",i).removeClass(r.collapsed).addClass(r.common).addClass(r.expanded),"local"===o.treedatatype||base.isNodeLoaded.call($(n),o.data[o._index[e]])||n.grid.hDiv.loading||(o.treeANode=i.rowIndex,o.datatype=o.treedatatype,base.setGridParam.call($(n),{postData:"nested"===o.treeGridModel?{nodeid:e,n_level:t[a.level_field],n_left:t[a.left_field],n_right:t[a.right_field]}:{nodeid:e,n_level:t[a.level_field],parentid:t[a.parent_id_field]}}),$(n).trigger("reloadGrid"),t[a.loaded]=!0,base.setGridParam.call($(n),{postData:"nested"===o.treeGridModel?{nodeid:"",n_level:"",n_left:"",n_right:""}:{nodeid:"",n_level:"",parentid:""}})),treeGridFeedback.call(n,"afterExpandNode",{rowid:e,item:t})}}}))},collapseNode:function(t){return this.each((function(){var e,i=this.p;if(this.grid&&i.treeGrid){var r=i.treeReader.expanded_field;if(t[r]){var n=getAccessor(t,i.localReader.id);if(!treeGridFeedback.call(this,"beforeCollapseNode",{rowid:n,item:t}))return;t[r]=!1,e=getNodeIcons(i,t),$("#"+i.idPrefix+jqID(n),this.grid.bDiv).find("div.treeclick").removeClass(e.expanded).addClass(e.common).addClass(e.collapsed),(!0===i.unloadNodeOnCollapse||$.isFunction(i.unloadNodeOnCollapse)&&i.unloadNodeOnCollapse.call(this,t))&&(t[i.treeReader.loaded]=!1,$(this).jqGrid("delTreeNode",n,!0)),treeGridFeedback.call(this,"afterCollapseNode",{rowid:n,item:t})}}}))},SortTree:function(t,e,i,r){return this.each((function(){var n=this,o=n.p,a=$(n);if(n.grid&&o.treeGrid){var s,l,d,c=[],u=base.getRootNodes.call(a),h=jgrid.from.call(n,u);h.orderBy(t,e,i,r);var p=h.select();for(s=0,l=p.length;s<l;s++)d=p[s],c.push(d),base.collectChildrenSortTree.call(a,c,d,t,e,i,r);$.each(c,(function(t){var e=getAccessor(this,o.localReader.id);$(n.rows[t]).after(a.find(">tbody>tr#"+jqID(e)))}))}}))},collectChildrenSortTree:function(t,e,i,r,n,o){return this.each((function(){var a=$(this);if(this.grid&&this.p.treeGrid){var s,l,d,c=base.getNodeChildren.call(a,e),u=jgrid.from.call(this,c);u.orderBy(i,r,n,o);var h=u.select();for(s=0,l=h.length;s<l;s++)d=h[s],t.push(d),base.collectChildrenSortTree.call(a,t,d,i,r,n,o)}}))},setTreeRow:function(t,e){var i=!1;return this.each((function(){this.grid&&this.p.treeGrid&&(i=base.setRowData.call($(this),t,e))})),i},delTreeNode:function(t,e){return this.each((function(){var i,r,n,o,a,s=this.p,l=s.localReader.id,d=$(this),c=s.treeReader.left_field,u=s.treeReader.right_field;if(this.grid&&s.treeGrid){var h=s._index[t];if(void 0!==h){r=(i=parseInt(s.data[h][u],10))-parseInt(s.data[h][c],10)+1;var p=base.getFullTreeNode.call(d,s.data[h]);if(0<p.length)for(a=0;a<p.length;a++)e&&t===p[a][l]||base.delRowData.call(d,p[a][l]);if("nested"===s.treeGridModel){if((n=jgrid.from.call(this,s.data).greater(c,i,{stype:"integer"}).select()).length)for(o in n)n.hasOwnProperty(o)&&(n[o][c]=parseInt(n[o][c],10)-r);if((n=jgrid.from.call(this,s.data).greater(u,i,{stype:"integer"}).select()).length)for(o in n)n.hasOwnProperty(o)&&(n[o][u]=parseInt(n[o][u],10)-r)}}}}))},addChildNode:function(t,e,i,r){return this.each((function(){if(i){var n,o,a,s,l,d,c,u=this.p,h=$(this),p=base.getInd,f=u.treeIcons.minus+" tree-minus",g=e,m=u.treeReader.expanded_field,v=u.treeReader.leaf_field,b=u.treeReader.level_field,w=u.treeReader.parent_id_field,y=u.treeReader.left_field,x=u.treeReader.right_field,_=u.treeReader.loaded;void 0===r&&(r=!1),null==t&&(t=jgrid.randId());var C,A,j=p.call(h,e);if(d=!1,null==e||""===e)g=e=null,n="last",s=u.tree_root_level;else{n="after",o=u._index[e],a=u.data[o],e=a[u.localReader.id],l=p.call(h,e),s=parseInt(a[b],10)+1;var k,D,q,I=base.getFullTreeNode.call(h,a);if(I.length)for(k=0;k<I.length;k++)q=I[k][u.localReader.id],l<(D=p.call(h,q))&&(l=D,g=q);a[v]&&(d=!0,a[m]=!0,$(this.rows[j]).find("span.cell-wrapperleaf").removeClass("cell-wrapperleaf").addClass("cell-wrapper").end().find("div.tree-leaf").removeClass(u.treeIcons.leaf+" tree-leaf").addClass(u.treeIcons.commonIconClass).addClass(f),u.data[o][v]=!1,a[_]=!0)}if(void 0===i[m]&&(i[m]=!1),void 0===i[_]&&(i[_]=!1),i[b]=s,void 0===i[v]&&(i[v]=!0),"adjacency"===u.treeGridModel&&(i[w]=e),"nested"===u.treeGridModel)if(null!==e){if(c=parseInt(a[x],10),(C=jgrid.from.call(this,u.data).greaterOrEquals(x,c,{stype:"integer"}).select()).length)for(A in C)C.hasOwnProperty(A)&&(C[A][y]=C[A][y]>c?parseInt(C[A][y],10)+2:C[A][y],C[A][x]=C[A][x]>=c?parseInt(C[A][x],10)+2:C[A][x]);i[y]=c,i[x]=c+1}else{if(c=parseInt(base.getCol.call(h,x,!1,"max"),10),(C=jgrid.from.call(this,u.data).greater(y,c,{stype:"integer"}).select()).length)for(A in C)C.hasOwnProperty(A)&&(C[A][y]=parseInt(C[A][y],10)+2);if((C=jgrid.from.call(this,u.data).greater(x,c,{stype:"integer"}).select()).length)for(A in C)C.hasOwnProperty(A)&&(C[A][x]=parseInt(C[A][x],10)+2);i[y]=c+1,i[x]=c+2}(null===e||base.isNodeLoaded.call(h,a)||d)&&base.addRowData.call(h,t,i,n,g),a&&!a[m]&&r&&$(this.rows[j]).find("div.treeclick").click()}}))}});var namespace=".jqGrid",mouseDown="mousedown",mouseMove="mousemove",mouseUp="mouseup",getMouseCoordinates=function(t){var e=t.originalEvent.targetTouches;return e?{x:(e=e[0]).pageX,y:e.pageY}:{x:t.pageX,y:t.pageY}},jqDnR={drag:function(t){var e=t.data,i=e.e,r=e.dnr,n=e.ar,o=e.dnrAr,a=getMouseCoordinates(t);return"move"===r.k?i.css({left:r.X+a.x-r.pX,top:r.Y+a.y-r.pY}):(i.css({width:Math.max(a.x-r.pX+r.W,0),height:Math.max(a.y-r.pY+r.H,0)}),o&&n.css({width:Math.max(a.x-o.pX+o.W,0),height:Math.max(a.y-o.pY+o.H,0)})),!1},stop:function(){$(document).off(mouseMove,jqDnR.drag).off(mouseUp,jqDnR.stop)}},init=function(t,e,i,r){return t.each((function(){(e=e?$(e,t):t).on(mouseDown,{e:t,k:i},(function(t){var e,i,n,o,a,s,l=t.data,d={},c=function(t,e){return parseInt(t.css(e),10)||!1},u=function(t){return c(i,t)},h=function(t){return c(o,t)},p=getMouseCoordinates(t);if(!$(t.target).hasClass("ui-jqdialog-titlebar-close")&&!$(t.target).parent().hasClass("ui-jqdialog-titlebar-close")){if(i=l.e,o=!!r&&$(r),"relative"!==i.css("position"))try{i.position(d)}catch(t){}if(n={X:d.left||u("left")||0,Y:d.top||u("top")||0,W:u("width")||i[0].scrollWidth||0,H:u("height")||i[0].scrollHeight||0,pX:p.x,pY:p.y,k:l.k},a=!(!o||"move"===l.k)&&{X:d.left||h("left")||0,Y:d.top||h("top")||0,W:o[0].offsetWidth||h("width")||0,H:o[0].offsetHeight||h("height")||0,pX:p.x,pY:p.y,k:l.k},0<(e=i.find("input.hasDatepicker")).length)try{e.datepicker("hide")}catch(t){}return s={e:i,dnr:n,ar:o,dnrAr:a},$(document).on(mouseMove,s,jqDnR.drag),$(document).on(mouseUp,s,jqDnR.stop),!1}}))}))};window.PointerEvent?(mouseDown+=namespace+" pointerdown"+namespace,mouseMove+=namespace+" pointermove"+namespace,mouseUp+=namespace+" pointerup"+namespace):window.MSPointerEvent?(mouseDown+=namespace+" mspointerdown"+namespace,mouseMove+=namespace+" mspointermove"+namespace,mouseUp+=namespace+" mspointerup"):(mouseDown+=namespace+" touchstart"+namespace,mouseMove+=namespace+" touchmove"+namespace,mouseUp+=namespace+" touchend"+namespace),$.jqDnR=jqDnR,$.fn.jqDrag=function(t){return init(this,t,"move")},$.fn.jqResize=function(t,e){return init(this,t,"resize",e)};var jqmHashLength=0,jqmHash,createdModals=[],setFocusOnFirstVisibleInput=function(t){try{$(":input:visible",t.w).first().focus()}catch(t){}},setFocus=function(t){setFocusOnFirstVisibleInput(t)},keyOrMouseEventHandler=function(t){var e=jqmHash[createdModals[createdModals.length-1]],i=!$(t.target).parents(".jqmID"+e.s)[0],r=$(t.target).offset(),n=void 0!==t.pageX?t.pageX:r.left,o=void 0!==t.pageY?t.pageY:r.top,a=function(){var t=!1;return $(".jqmID"+e.s).each((function(){var e=$(this),i=e.offset();if(i.top<=o&&o<=i.top+e.height()&&i.left<=n&&n<=i.left+e.width())return!(t=!0)})),t};return!("mousedown"===t.type||!a())||("mousedown"===t.type&&i&&(a()&&(i=!1),i&&!$(t.target).is(":input")&&setFocusOnFirstVisibleInput(e)),!i)},bindOrUnbindEvents=function(t){$(document)[t]("keypress keydown mousedown",keyOrMouseEventHandler)},registerHideOrShow=function(t,e,i){return t.each((function(){var t=this._jqm;$(e).each((function(){this[i]||(this[i]=[],$(this).click((function(){var t,e,i,r=["jqmShow","jqmHide"];for(t=0;t<r.length;t++)for(i in this[e=r[t]])this[e].hasOwnProperty(i)&&jqmHash[this[e][i]]&&jqmHash[this[e][i]].w[e](this);return!1}))),this[i].push(t)}))}))};$.fn.jqm=function(t){var e={overlay:50,closeoverlay:!1,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:!1,ajaxText:"",target:!1,modal:!1,toTop:!1,onShow:!1,onHide:!1,onLoad:!1};return this.each((function(){if(this._jqm)return jqmHash[this._jqm].c=$.extend({},jqmHash[this._jqm].c,t),jqmHash[this._jqm].c;jqmHashLength++,this._jqm=jqmHashLength,jqmHash[jqmHashLength]={c:$.extend(e,$.jqm.params,t),a:!1,w:$(this).addClass("jqmID"+jqmHashLength),s:jqmHashLength},e.trigger&&$(this).jqmAddTrigger(e.trigger)}))},$.fn.jqmAddClose=function(t){return registerHideOrShow(this,t,"jqmHide")},$.fn.jqmAddTrigger=function(t){return registerHideOrShow(this,t,"jqmShow")},$.fn.jqmShow=function(t){return this.each((function(){$.jqm.open(this._jqm,t)}))},$.fn.jqmHide=function(t){return this.each((function(){$.jqm.close(this._jqm,t)}))},$.jqm={hash:{},open:function(t,e){var i,r,n,o,a,s=jqmHash[t],l=s.c,d=s.w.parent().offset(),c="."+l.closeClass,u=parseInt(s.w.css("z-index"),10);return u=0<u?u:3e3,i=$("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":u-1,opacity:l.overlay/100}),s.a||(s.t=e,s.a=!0,s.w.css("z-index",u),$(s.w[0].ownerDocument).data("ui-dialog-overlays")&&s.w.addClass("ui-dialog"),l.modal?(createdModals[0]||setTimeout((function(){bindOrUnbindEvents("bind")}),1),createdModals.push(t)):0<l.overlay?l.closeoverlay&&s.w.jqmAddClose(i):i=!1,s.o=!!i&&i.addClass(l.overlayClass).prependTo("body"),l.ajax?(r=l.target||s.w,n=l.ajax,r="string"==typeof r?$(r,s.w):$(r),n="@"===n.substr(0,1)?$(e).attr(n.substring(1)):n,r.html(l.ajaxText).load(n,(function(){l.onLoad&&l.onLoad.call(this,s),c&&s.w.jqmAddClose($(c,s.w)),setFocus(s)}))):c&&s.w.jqmAddClose($(c,s.w)),l.toTop&&s.o&&(d=s.w.parent().offset(),o=parseFloat(s.w.css("left")||0),a=parseFloat(s.w.css("top")||0),s.w.before('<span id="jqmP'+s.w[0]._jqm+'"></span>').insertAfter(s.o),s.w.css({top:d.top+a,left:d.left+o})),l.onShow?l.onShow(s):s.w.show(),setFocus(s)),!1},close:function(t){var e=jqmHash[t];return e.a&&(e.a=!1,createdModals[0]&&(createdModals.pop(),createdModals[0]||bindOrUnbindEvents("unbind")),e.c.toTop&&e.o&&$("#jqmP"+e.w[0]._jqm).after(e.w).remove(),e.c.onHide?e.c.onHide(e):(e.w.hide(),e.o&&e.o.remove())),!1},params:{}},jqmHash=$.jqm.hash,$.fmatter=$.fmatter||{};var fmatter=$.fmatter,getOptionByName=function(t,e){var i=t.formatoptions||{};return i.hasOwnProperty(e)?i[e]:(t.editoptions||{})[e]},encodeAttr=function(t){return String(t).replace(/\'/g,"'")},parseCheckboxOptions=function(t){var e,i,r=t.colModel||t.cm,n=!1!==r.title?" title='"+encodeAttr(t.colName||r.name)+"'":"",o=function(t){return getOptionByName(r,t)},a=o("checkedClass"),s=o("uncheckedClass"),l=o("value"),d="string"==typeof l&&l.split(":")[0]||"Yes",c="string"==typeof l&&l.split(":")[1]||"No",u=function(t){return"<i class='"+encodeAttr(t)+"'"+n+"></i>"},h=o("disabled");void 0===h&&(h=jgrid.formatter.checkbox.disabled);var p=base.getIconRes.call(this,"checkbox.checked"),f=base.getIconRes.call(this,"checkbox.checkedClasses"),g=base.getIconRes.call(this,"checkbox.unchecked");return!0===h&&(a||s||p||g)?(e=u(a||p),i=u(s||g),a=f||a||p):(e="<input type='checkbox' checked='checked'"+(n+=!(a="")===h?" disabled='disabled'":"")+" />",i="<input type='checkbox'"+n+" />"),{checkedClasses:a,checked:e,unchecked:i,yes:d,no:c}},yesObject={1:1,x:1,true:1,yes:1,y:1,on:1},noObject={0:1,false:1,no:1,n:1,off:1};$.extend(!0,jgrid,{formatter:{date:{parseRe:/[#%\\\/:_;.,\t\s\-]/,masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO"},reformatAfterEdit:!0,userLocalTime:!1},baseLinkUrl:"",showAction:"",target:"",checkbox:{disabled:!0,defaultValue:!1},idName:"id"},cmTemplate:{integerStr:{formatter:"integer",align:"right",sorttype:"integer",searchoptions:{sopt:["eq","ne","lt","le","gt","ge"]}},integer:{formatter:"integer",align:"right",sorttype:"integer",convertOnSave:function(t){var e=t.newValue;return isNaN(e)?e:parseInt(e,10)},searchoptions:{sopt:["eq","ne","lt","le","gt","ge"]}},numberStr:{formatter:"number",align:"right",sorttype:"number",searchoptions:{sopt:["eq","ne","lt","le","gt","ge"]}},number:{formatter:"number",align:"right",sorttype:"number",convertOnSave:function(t){var e=t.newValue;return isNaN(e)?e:parseFloat(e)},searchoptions:{sopt:["eq","ne","lt","le","gt","ge"]}},booleanCheckbox:{align:"center",formatter:"checkbox",sorttype:"boolean",edittype:"checkbox",editoptions:{value:"true:false",defaultValue:"false"},convertOnSave:function(t){var e=t.newValue,i=parseCheckboxOptions.call(this,t),r=String(e).toLowerCase();return yesObject[r]||r===i.yes.toLowerCase()?e=!0:(noObject[r]||r===i.no.toLowerCase())&&(e=!1),e},stype:"checkbox",searchoptions:{sopt:["eq"],value:"true:false"}},actions:function(){return{formatter:"actions",width:(null!=this.p&&(base.isInCommonIconClass.call(this,"fa")||base.isInCommonIconClass.call(this,"glyphicon"))?$(this).jqGrid("isBootstrapGuiStyle")?45:39:40)+(jgrid.cellWidth()?5:0),align:"center",label:"",autoResizable:!1,title:!1,frozen:!0,fixed:!0,hidedlg:!0,resizable:!1,sortable:!1,search:!1,editable:!1,viewable:!1}}}}),jgrid.cmTemplate.booleanCheckboxFa=jgrid.cmTemplate.booleanCheckbox,$.extend(fmatter,{isObject:function(t){return t&&("object"==typeof t||$.isFunction(t))||!1},isNumber:function(t){return"number"==typeof t&&isFinite(t)},isValue:function(t){return this.isObject(t)||"string"==typeof t||this.isNumber(t)||"boolean"==typeof t},isEmpty:function(t){return!("string"!=typeof t&&this.isValue(t)||this.isValue(t)&&""!==$.trim(t).replace(/ /gi,"").replace(/ /gi,""))},NumberFormat:function(t,e){var i=fmatter.isNumber;if(i(t)||(t*=1),i(t)){var r,n=t<0,o=String(t),a=e.decimalSeparator||".";if(i(e.decimalPlaces)){var s=e.decimalPlaces;if(r=(o=String(Number(Math.round(t+"e"+s)+"e-"+s))).lastIndexOf("."),0<s)for(r<0?r=(o+=a).length-1:"."!==a&&(o=o.replace(".",a));o.length-1-r<s;)o+="0"}if(e.thousandsSeparator){var l=e.thousandsSeparator;r=-1<(r=o.lastIndexOf(a))?r:o.length;var d,c=void 0===e.decimalSeparator?"":o.substring(r),u=-1;for(d=r;0<d;d--)++u%3==0&&d!==r&&(!n||1<d)&&(c=l+c),c=o.charAt(d-1)+c;o=c}return o}return t}});var $FnFmatter=function(t,e,i,r,n){var o=e;i=$.extend({},getGridRes.call($(this),"formatter"),i);try{o=$.fn.fmatter[t].call(this,e,i,r,n)}catch(t){}return o};$.fn.fmatter=$FnFmatter,$FnFmatter.getCellBuilder=function(t,e,i){var r=null!=$.fn.fmatter[t]?$.fn.fmatter[t].getCellBuilder:null;return $.isFunction(r)?r.call(this,$.extend({},getGridRes.call($(this),"formatter"),e),i):null},$FnFmatter.defaultFormat=function(t,e){return fmatter.isValue(t)&&""!==t?t:e.defaultValue||" "};var defaultFormat=$FnFmatter.defaultFormat,formatCheckboxValue=function(t,e,i){if(void 0===t||fmatter.isEmpty(t)){var r=getOptionByName(i,"defaultValue");void 0===r&&(r=e.no),t=r}return t=String(t).toLowerCase(),yesObject[t]||t===e.yes.toLowerCase()?e.checked:e.unchecked};$FnFmatter.email=function(t,e){return fmatter.isEmpty(t)?defaultFormat(t,e):"<a href='mailto:"+encodeAttr(t)+"'>"+t+"</a>"},$FnFmatter.checkbox=function(t,e){var i=parseCheckboxOptions.call(this,e);return formatCheckboxValue(t,i,e.colModel)},$FnFmatter.checkbox.getCellBuilder=function(t){var e,i=t.colModel;return t.colName=t.colName||this.p.colNames[t.pos],e=parseCheckboxOptions.call(this,t),function(t){return formatCheckboxValue(t,e,i)}},$FnFmatter.checkbox.unformat=function(t,e,i){var r=parseCheckboxOptions.call(this,e),n=$(i);return(r.checkedClasses?jgrid.hasAllClasses(n.children("i,svg"),r.checkedClasses):n.children("input").is(":checked"))?r.yes:r.no},$FnFmatter.checkboxFontAwesome4=$FnFmatter.checkbox,$FnFmatter.checkboxFontAwesome4.getCellBuilder=$FnFmatter.checkbox.getCellBuilder,$FnFmatter.checkboxFontAwesome4.unformat=$FnFmatter.checkbox.unformat,$FnFmatter.link=function(t,e){var i=e.colModel,r="",n={target:e.target};return null!=i&&(n=$.extend({},n,i.formatoptions||{})),n.target&&(r="target="+n.target),fmatter.isEmpty(t)?defaultFormat(t,n):"<a "+r+" href='"+encodeAttr(t)+"'>"+t+"</a>"},$FnFmatter.showlink=function(t,e,i){var r,n,o,a=this,s=e.colModel,l={baseLinkUrl:e.baseLinkUrl,showAction:e.showAction,addParam:e.addParam||"",target:e.target,idName:e.idName,hrefDefaultValue:"#"},d="",c=function(r){return $.isFunction(r)?r.call(a,{cellValue:t,rowid:e.rowId,rowData:i,options:l}):r||""};return null!=s&&(l=$.extend({},l,s.formatoptions||{})),l.target&&(d="target="+c(l.target)),r=c(l.baseLinkUrl)+c(l.showAction),n=l.idName?encodeURIComponent(c(l.idName))+"="+encodeURIComponent(c(l.rowId)||e.rowId):"","object"==typeof(o=c(l.addParam))&&null!==o&&(o=(""!==n?"&":"")+$.param(o)),""==(r+=n||o?"?"+n+o:"")&&(r=c(l.hrefDefaultValue)),"string"==typeof t||fmatter.isNumber(t)||$.isFunction(l.cellValue)?"<a "+d+" href='"+encodeAttr(r)+"'>"+($.isFunction(l.cellValue)?c(l.cellValue):t)+"</a>":defaultFormat(t,l)},$FnFmatter.showlink.getCellBuilder=function(t){var e={baseLinkUrl:t.baseLinkUrl,showAction:t.showAction,addParam:t.addParam||"",target:t.target,idName:t.idName,hrefDefaultValue:"#"},i=t.colModel;return null!=i&&(e=$.extend({},e,i.formatoptions||{})),function(t,i,r){var n,o,a,s=this,l=i.rowId,d="",c=function(i){return $.isFunction(i)?i.call(s,{cellValue:t,rowid:l,rowData:r,options:e}):i||""};return e.target&&(d="target="+c(e.target)),n=c(e.baseLinkUrl)+c(e.showAction),o=e.idName?encodeURIComponent(c(e.idName))+"="+encodeURIComponent(c(l)||i.rowId):"","object"==typeof(a=c(e.addParam))&&null!==a&&(a=(""!==o?"&":"")+$.param(a)),""==(n+=o||a?"?"+o+a:"")&&(n=c(e.hrefDefaultValue)),"string"==typeof t||fmatter.isNumber(t)||$.isFunction(e.cellValue)?"<a "+d+" href='"+encodeAttr(n)+"'>"+($.isFunction(e.cellValue)?c(e.cellValue):t)+"</a>":defaultFormat(t,e)}},$FnFmatter.showlink.pageFinalization=function(t){var e,i,r,n=$(this),o=this.p,a=o.colModel[t],s=o.autoResizing.wrapperClassName,l=this.rows,d=l.length,c=function(t){var e=$(this).closest("tr.jqgrow>td"),i=e.parent(),r=e[0].cellIndex,a=o.colModel[r];if(0<i.length)return a.formatoptions.onClick.call(n[0],{iCol:r,iRow:i[0].rowIndex,rowid:i.attr("id"),cm:a,cmName:a.name,cellValue:$(this).text(),a:this,event:t})};if(null!=a.formatoptions&&$.isFunction(a.formatoptions.onClick))for(e=0;e<d;e++)i=l[e],$(i).hasClass("jqgrow")&&(r=i.cells[t],a.autoResizable&&null!=r&&$(r.firstChild).hasClass(s)&&(r=r.firstChild),null!=r&&$(r.firstChild).on("click",c))};var insertPrefixAndSuffix=function(t,e){return t=e.prefix?e.prefix+t:t,e.suffix?t+e.suffix:t},numberHelper=function(t,e,i){var r=e.colModel,n=$.extend({},e[i]);return null!=r&&(n=$.extend({},n,r.formatoptions||{})),fmatter.isEmpty(t)?insertPrefixAndSuffix(n.defaultValue,n):insertPrefixAndSuffix(fmatter.NumberFormat(t,n),n)};$FnFmatter.integer=function(t,e){return numberHelper(t,e,"integer")},$FnFmatter.number=function(t,e){return numberHelper(t,e,"number")},$FnFmatter.currency=function(t,e){return numberHelper(t,e,"currency")};var numberCellBuilder=function(t,e){var i=t.colModel,r=$.extend({},t[e]);null!=i&&(r=$.extend({},r,i.formatoptions||{}));var n=fmatter.NumberFormat,o=r.defaultValue?insertPrefixAndSuffix(r.defaultValue,r):"";return function(t){return fmatter.isEmpty(t)?o:insertPrefixAndSuffix(n(t,r),r)}};$FnFmatter.integer.getCellBuilder=function(t){return numberCellBuilder(t,"integer")},$FnFmatter.number.getCellBuilder=function(t){return numberCellBuilder(t,"number")},$FnFmatter.currency.getCellBuilder=function(t){return numberCellBuilder(t,"currency")},$FnFmatter.date=function(t,e,i,r){var n=e.colModel,o=$.extend({},e.date);return null!=n&&(o=$.extend({},o,n.formatoptions||{})),o.reformatAfterEdit||"edit"!==r?fmatter.isEmpty(t)?defaultFormat(t,o):jgrid.parseDate.call(this,o.srcformat,t,o.newformat,o):defaultFormat(t,o)},$FnFmatter.date.getCellBuilder=function(t,e){var i=$.extend({},t.date);null!=t.colModel&&(i=$.extend({},i,t.colModel.formatoptions||{}));var r=jgrid.parseDate,n=i.srcformat,o=i.newformat;return i.reformatAfterEdit||"edit"!==e?function(t){return fmatter.isEmpty(t)?defaultFormat(t,i):r.call(this,n,t,o,i)}:function(t){return defaultFormat(t,i)}},$FnFmatter.select=function(t,e){var i,r=[],n=e.colModel,o=$.extend({},n.editoptions||{},n.formatoptions||{}),a="function"==typeof o.value?o.value():o.value,s=o.separator||":",l=o.delimiter||";";if(a){var d,c=!0===o.multiple,u=[],h=function(t,e){if(0<e)return t};if(c&&(u=$.map(String(t).split(","),(function(t){return $.trim(t)}))),"string"==typeof a){var p,f,g=a.split(l);for(p=0;p<g.length;p++)if(2<(d=g[p].split(s)).length&&(d[1]=$.map(d,h).join(s)),f=$.trim(d[0]),o.defaultValue===f&&(i=d[1]),c)-1<$.inArray(f,u)&&r.push(d[1]);else if(f===$.trim(t)){r=[d[1]];break}}else fmatter.isObject(a)&&(i=a[o.defaultValue],r=c?$.map(u,(function(t){return a[t]})):[void 0===a[t]?"":a[t]])}return""!==(t=r.join(", "))?t:void 0!==o.defaultValue?i:defaultFormat(t,o)},$FnFmatter.select.getCellBuilder=function(t){var e,i,r,n,o=t.colModel,a=$FnFmatter.defaultFormat,s=$.extend({},o.editoptions||{},o.formatoptions||{}),l="function"==typeof s.value?s.value():s.value,d=s.separator||":",c=s.delimiter||";",u=void 0!==s.defaultValue,h=!0===s.multiple,p={},f=function(t,e){if(0<e)return t};if("string"==typeof l)for(n=(r=l.split(c)).length-1;0<=n;n--)2<(i=r[n].split(d)).length&&(i[1]=$.map(i,f).join(d)),p[$.trim(i[0])]=i[1];else{if(!fmatter.isObject(l))return function(t){return t?String(t):a(t,s)};p=l}return u&&(e=p[s.defaultValue]),h?function(t){var i,r=[],n=$.map(String(t).split(","),(function(t){return $.trim(t)}));for(i=0;i<n.length;i++)t=n[i],p.hasOwnProperty(t)&&r.push(p[t]);return""!==(t=r.join(", "))?t:u?e:a(t,s)}:function(t){var i=p[String(t)];return""!==i&&void 0!==i?i:u?e:a(t,s)}},$FnFmatter.rowactions=function(t,e){var i,r,n,o,a=$(this).closest("tr.jqgrow>td"),s=a.parent(),l=s.attr("id"),d=$(this).closest("table.ui-jqgrid-btable").attr("id").replace(/_frozen([^_]*)$/,"$1"),c=$("#"+jgrid.jqID(d)),u=c[0],h=u.p,p=jgrid.getRelativeRect.call(u,s).top,f=h.colModel[a[0].cellIndex],g=$.extend(!0,{extraparam:{}},jgrid.actionsNav||{},h.actionsNavOptions||{},f.formatoptions||{});switch(void 0!==h.editOptions&&(g.editOptions=$.extend(!0,g.editOptions||{},h.editOptions)),void 0!==h.delOptions&&(g.delOptions=h.delOptions),s.hasClass("jqgrid-new-row")&&(g.extraparam[h.prmNames.oper]=h.prmNames.addoper),o={keys:g.keys,oneditfunc:g.onEdit,successfunc:g.onSuccess,url:g.url,extraparam:g.extraparam,aftersavefunc:g.afterSave,errorfunc:g.onError,afterrestorefunc:g.afterRestore,restoreAfterError:g.restoreAfterError,mtype:g.mtype},!h.multiselect&&l!==h.selrow||h.multiselect&&$.inArray(l,h.selarrrow)<0?c.jqGrid("setSelection",l,!0,t):jgrid.fullBoolFeedback.call(u,"onSelectRow","jqGridSelectRow",l,!0,t),e){case"edit":c.jqGrid("editRow",l,o);break;case"save":c.jqGrid("saveRow",l,o);break;case"cancel":c.jqGrid("restoreRow",l,g.afterRestore);break;case"del":g.delOptions=g.delOptions||{},void 0===g.delOptions.top&&(g.delOptions.top=p),c.jqGrid("delGridRow",l,g.delOptions);break;case"formedit":g.editOptions=g.editOptions||{},void 0===g.editOptions.top&&(g.editOptions.top=p,g.editOptions.recreateForm=!0),c.jqGrid("editGridRow",l,g.editOptions);break;default:if(null!=g.custom&&0<g.custom.length)for(r=g.custom.length,i=0;i<r;i++)(n=g.custom[i]).action===e&&$.isFunction(n.onClick)&&n.onClick.call(u,{rowid:l,event:t,action:e,options:n})}return t.stopPropagation&&t.stopPropagation(),!1},$FnFmatter.actions=function(t,e,i,r){var n,o,a,s=e.rowId,l="",d=$(this),c={},u=getGridRes.call(d,"edit")||{},h=$.extend({editbutton:!0,delbutton:!0,editformbutton:!1,commonIconClass:"ui-icon",editicon:"ui-icon-pencil",delicon:"ui-icon-trash",saveicon:"ui-icon-disk",cancelicon:"ui-icon-cancel",savetitle:u.bSubmit||"",canceltitle:u.bCancel||""},getGridRes.call(d,"nav")||{},jgrid.nav||{},this.p.navOptions||{},getGridRes.call(d,"actionsNav")||{},jgrid.actionsNav||{},this.p.actionsNavOptions||{},(e.colModel||{}).formatoptions||{}),p=[{action:"edit",actionName:"formedit",display:h.editformbutton},{action:"edit",display:!h.editformbutton&&h.editbutton},{action:"del",idPrefix:"Delete",display:h.delbutton},{action:"save",display:h.editformbutton||h.editbutton,hidden:!0},{action:"cancel",display:h.editformbutton||h.editbutton,hidden:!0}],f=function(t){var e,i=t.action,r=t.actionName||i,n=void 0!==t.idPrefix?t.idPrefix:i.charAt(0).toUpperCase()+i.substring(1);return"<div title='"+encodeAttr(h[i+"title"])+(t.hidden?"' style='display:none;":"")+"' class='"+encodeAttr(d.jqGrid("getGuiStyles","actionsButton","ui-pg-div ui-inline-"+i))+"' "+(null!==n?"id='j"+encodeAttr(n+"Button_"+s):"")+"' data-jqactionname=\""+r+'" '+(t.noHovering?"":'\' data-jqhovering="1" ')+"><span class='"+encodeAttr((e=i,jgrid.mergeCssClasses(h.commonIconClass,h[e+"icon"])))+"'></span></div>"},g=null!=h.custom?h.custom.length-1:-1;if(void 0===s||fmatter.isEmpty(s))return"";if($.isFunction(h.isDisplayButtons))try{c=h.isDisplayButtons.call(this,h,i,r)||{}}catch(t){}for(;0<=g;)p["first"===(a=h.custom[g--]).position?"unshift":"push"](a);for(n=0,g=p.length;n<g;n++)!1!==(o=$.extend({},p[n],c[p[n].action]||{})).display&&(l+=f(o));return"<div class='"+encodeAttr(d.jqGrid("getGuiStyles","actionsDiv","ui-jqgrid-actions"))+"'>"+l+"</div>"},$FnFmatter.actions.pageFinalization=function(t){var e,i,r,n,o=$(this),a=this.p,s=a.colModel[t],l=a.autoResizing.wrapperClassName,d=o.jqGrid("getGuiStyles","states.hover"),c=this.rows,u=this.grid.fbRows,h=c.length,p=(n=s.name,function(t,e){var i,r,s=0,l=a.colModel,d=l.length,c=a.iColByName[n];for(r=0;r<d&&!0===l[r].frozen;r++)s=r;null!=e&&null!=e.cells&&(i=$(e.cells[c]).children(".ui-jqgrid-actions"),l[c].frozen&&a.frozenColumns&&c<=s&&(i=i.add($(o[0].grid.fbRows[e.rowIndex].cells[c]).children(".ui-jqgrid-actions"))),t?(i.find(">.ui-inline-edit,>.ui-inline-del").show(),i.find(">.ui-inline-save,>.ui-inline-cancel").hide()):(i.find(">.ui-inline-edit,>.ui-inline-del").hide(),i.find(">.ui-inline-save,>.ui-inline-cancel").show()))}),f=function(t,e){var i=o.jqGrid("getGridRowById",e);return p(!0,i),!1},g=function(t,e){var i=o.jqGrid("getGridRowById",e);return p(!1,i),!1},m=function(t){1===$(t.target).closest("div.ui-pg-div").data("jqhovering")&&$(this).addClass(d)},v=function(t){1===$(t.target).closest("div.ui-pg-div").data("jqhovering")&&$(this).removeClass(d)},b=function(t){return $FnFmatter.rowactions.call(this,t,$(t.target).closest("div.ui-pg-div").data("jqactionname"))},w=function(t,e){e&&null!=t&&$(t.firstChild).hasClass(l)&&(t=t.firstChild),null!=t&&($(t.firstChild).on("click",b),$(t.firstChild).children("div.ui-pg-div").on("mouseover",m).on("mouseout",v))},y=(r=s.name,function(t,e){var i=a.iColByName[r];w(e.tr.cells[i],a.colModel[i].autoResizable)});for(null!=s.formatoptions&&s.formatoptions.editformbutton||(o.off("jqGridInlineAfterRestoreRow.jqGridFormatter jqGridInlineAfterSaveRow.jqGridFormatter",f),o.on("jqGridInlineAfterRestoreRow.jqGridFormatter jqGridInlineAfterSaveRow.jqGridFormatter",f),o.off("jqGridInlineEditRow.jqGridFormatter",g),o.on("jqGridInlineEditRow.jqGridFormatter",g),o.off("jqGridAfterAddRow.jqGridFormatter",y),o.on("jqGridAfterAddRow.jqGridFormatter",y)),e=0;e<h;e++)i=c[e],$(i).hasClass("jqgrow")&&(w(i.cells[t],s.autoResizable),null!=u&&null!=u[e]&&w(u[e].cells[t],s.autoResizable))},$.unformat=function(t,e,i,r){var n,o=e.colModel,a=o.formatter,s=this.p,l=o.formatoptions||{},d=o.unformat||$FnFmatter[a]&&$FnFmatter[a].unformat;if(t instanceof jQuery&&0<t.length&&(t=t[0]),s.treeGrid&&null!=t&&$(t.firstChild).hasClass("tree-wrap")&&($(t.lastChild).hasClass("cell-wrapper")||$(t.lastChild).hasClass("cell-wrapperleaf"))&&(t=t.lastChild),o.autoResizable&&null!=t&&$(t.firstChild).hasClass(s.autoResizing.wrapperClassName)&&(t=t.firstChild),void 0!==d&&$.isFunction(d))n=d.call(this,$(t).text(),e,t);else if(void 0!==a&&"string"==typeof a){var c=$(this),u=function(t,e){return void 0!==l[e]?l[e]:getGridRes.call(c,"formatter."+t+"."+e)},h=function(t,e){var i=u(t,"thousandsSeparator").replace(/([\.\*\_\'\(\)\{\}\+\?\\])/g,"\\$1");return e.replace(new RegExp(i,"g"),"")};switch(a){case"integer":n=h("integer",$(t).text());break;case"number":n=h("number",$(t).text()).replace(u("number","decimalSeparator"),".");break;case"currency":n=$(t).text();var p=u("currency","prefix"),f=u("currency","suffix");p&&p.length&&(n=n.substr(p.length)),f&&f.length&&(n=n.substr(0,n.length-f.length)),n=h("number",n).replace(u("number","decimalSeparator"),".");break;case"checkbox":n=$FnFmatter.checkbox.unformat(t,e,t);break;case"select":n=$.unformat.select(t,e,i,r);break;case"actions":return"";default:n=$(t).text()}}return void 0!==n?n:!0===r?$(t).text():jgrid.htmlDecode($(t).html())},$.unformat.select=function(t,e,i,r){var n=[],o=$(t).text(),a=e.colModel;if(!0===r)return o;var s=$.extend({},a.editoptions||{},a.formatoptions||{}),l=void 0===s.separator?":":s.separator,d=void 0===s.delimiter?";":s.delimiter;if(s.value){var c,u="function"==typeof s.value?s.value():s.value,h=!0===s.multiple,p=[],f=function(t,e){if(0<e)return t};if(h&&(p=o.split(","),p=$.map(p,(function(t){return $.trim(t)}))),"string"==typeof u){var g,m=u.split(d),v=0;for(g=0;g<m.length;g++)if(2<(c=m[g].split(l)).length&&(c[1]=$.map(c,f).join(l)),h)-1<$.inArray($.trim(c[1]),p)&&(n[v]=c[0],v++);else if($.trim(c[1])===$.trim(o)){n[0]=c[0];break}}else(fmatter.isObject(u)||$.isArray(u))&&(h||(p[0]=o),n=$.map(p,(function(t){var e;if($.each(u,(function(i,r){if(r===t)return e=i,!1})),void 0!==e)return e})));return n.join(", ")}return o||""},$.unformat.date=function(t,e){var i=$.extend(!0,{},getGridRes.call($(this),"formatter.date"),jgrid.formatter.date||{},e.formatoptions||{});return fmatter.isEmpty(t)?"":jgrid.parseDate.call(this,i.newformat,t,i.srcformat,i)}}))},569:()=>{var t;!function(t,e){var i;(i=t.ScrollFix||(t.ScrollFix={})).Watcher=function(t,r){this.element=t,this.options=e.extend({},i.Watcher.defaults,r),null===this.options.topFixOffset&&(this.options.topFixOffset=-this.options.topPosition),null===this.options.topUnfixOffset&&(this.options.topUnfixOffset=this.options.topPosition),null===this.options.bottomFixOffset&&(this.options.bottomFixOffset=-this.options.bottomPosition),null===this.options.bottomUnfixOffset&&(this.options.bottomUnfixOffset=this.options.bottomPosition),e(t).data("shira.scrollfix",this)},i.Watcher.defaults={topFixClass:"scrollfix-top",bottomFixClass:"scrollfix-bottom",substituteClass:"scrollfix-subtitute",topPosition:0,bottomPosition:0,topFixOffset:null,topUnfixOffset:null,bottomFixOffset:null,bottomUnfixOffset:null,syncSize:!0,syncPosition:!0,style:!0,styleSubstitute:!0,side:"top"},i.Watcher.prototype={element:null,substitute:null,options:null,fixed:!1,fixedAt:null,attached:!1,checkTop:!1,checkBottom:!1,getElementX:function(t){var e=0;do{e+=t.offsetLeft}while(t=t.offsetParent);return e},getElementY:function(t){var e=0;do{e+=t.offsetTop}while(t=t.offsetParent);return e},fix:function(t){if(!this.fixed){if(this.dispatchEvent("fix").isDefaultPrevented())return;var i=e(this.element),r=e(this.element.cloneNode(!1)).addClass(this.options.substituteClass);if(this.options.styleSubstitute&&r.css("visibility","hidden").height("border-box"===i.css("box-sizing")?i.outerHeight():i.height()),this.substitute=r.insertAfter(this.element)[0],this.options.style){var n={position:"fixed"};"top"===t?n.top=this.options.topPosition+"px":n.bottom=this.options.bottomPosition+"px",i.css(n)}i.addClass("top"===t?this.options.topFixClass:this.options.bottomFixClass),this.fixed=!0,this.fixedAt=t,this.dispatchEvent("fixed")}},updateFixed:function(){if(this.options.syncSize&&e(this.element).width(e(this.substitute).width()),this.options.syncPosition){var t=e(window).scrollLeft(),i=this.getElementX(this.substitute);e(this.element).css("left",i-t+"px")}this.dispatchEvent("update")},unfix:function(){if(this.fixed){if(this.dispatchEvent("unfix").isDefaultPrevented())return;e(this.substitute).remove(),this.substitute=null;var t={};this.options.syncPosition&&(t.left=""),this.options.syncSize&&(t.width=""),this.options.style&&(t.position="",t[this.fixedAt]=""),e(this.element).css(t).removeClass("top"===this.fixedAt?this.options.topFixClass:this.options.bottomFixClass),this.fixed=!1,this.fixedAt=null,this.dispatchEvent("unfixed")}},attach:function(){if(!this.attached){var t=this;this.updateEventHandler=function(){t.pulse()},e(window).scroll(this.updateEventHandler).resize(this.updateEventHandler),this.attached=!0,this.pulse()}},detach:function(){this.attached&&(this.unfix(),e(window).unbind("scroll",this.updateEventHandler).unbind("resize",this.updateEventHandler),this.attached=!1)},pulse:function(){var t=e(window),i=t.scrollTop(),r=i+t.height(),n=this.fixed?this.substitute:this.element,o=this.getElementY(n),a=o+e(n).outerHeight();this.fixed?"top"===this.fixedAt?i<=o-this.options.topUnfixOffset&&this.unfix():r>=a+this.options.bottomUnfixOffset&&this.unfix():("top"===this.options.side||"both"===this.options.side)&&i>o+this.options.topFixOffset?this.fix("top"):("bottom"===this.options.side||"both"===this.options.side)&&r<a-this.options.bottomFixOffset&&this.fix("bottom"),this.fixed&&this.updateFixed()},dispatchEvent:function(t){var i=new e.Event(t+".shira.scrollfix",{watcher:this});return e(this.element).trigger(i),i}},e.fn.scrollFix=function(t){for(var e=0;e<this.length;++e)new i.Watcher(this[e],t).attach();return this}}(t||(t={}),jQuery)},821:(t,e,i)=>{var r,n,o;n=[i(336)],void 0===(o="function"==typeof(r=function(t){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="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=i(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,r)}function r(){t.datepicker._isDisabledDatepicker(h.inline?h.dpDiv.parent()[0]:h.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function n(e,i){for(var r in t.extend(e,i),i)null==i[r]&&(e[r]=i[r]);return e}function o(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 a=0,s=Array.prototype.slice;t.cleanData=function(e){return function(i){var r,n,o;for(o=0;null!=(n=i[o]);o++)try{(r=t._data(n,"events"))&&r.remove&&t(n).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,r){var n,o,a,s={},l=e.split(".")[0],d=l+"-"+(e=e.split(".")[1]);return r||(r=i,i=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr[":"][d.toLowerCase()]=function(e){return!!t.data(e,d)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new o(t,e)},t.extend(o,n,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(r,(function(e,r){return t.isFunction(r)?void(s[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=r.apply(this,arguments),this._super=i,this._superApply=o,e}}()):void(s[e]=r)})),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},s,{constructor:o,namespace:l,widgetName:e,widgetFullName:d}),n?(t.each(n._childConstructors,(function(e,i){var r=i.prototype;t.widget(r.namespace+"."+r.widgetName,o,i._proto)})),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,r,n=s.call(arguments,1),o=0,a=n.length;a>o;o++)for(i in n[o])r=n[o][i],n[o].hasOwnProperty(i)&&void 0!==r&&(e[i]=t.isPlainObject(r)?t.isPlainObject(e[i])?t.widget.extend({},e[i],r):t.widget.extend({},r):r);return e},t.widget.bridge=function(e,i){var r=i.prototype.widgetFullName||e;t.fn[e]=function(n){var o="string"==typeof n,a=s.call(arguments,1),l=this;return o?this.length||"instance"!==n?this.each((function(){var i,o=t.data(this,r);return"instance"===n?(l=o,!1):o?t.isFunction(o[n])&&"_"!==n.charAt(0)?(i=o[n].apply(o,a))!==o&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+n+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+n+"'")})):l=void 0:(a.length&&(n=t.widget.extend.apply(null,[n].concat(a))),this.each((function(){var e=t.data(this,r);e?(e.option(n||{}),e._init&&e._init()):t.data(this,r,new i(n,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=a++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),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,i){e._removeClass(i,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,i){var r,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},r=e.split("."),e=r.shift(),r.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;r.length-1>o;o++)n[r[o]]=n[r[o]]||{},n=n[r[o]];if(e=r.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),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 i,r,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(r=t(n.get()),this._removeClass(n,i),r.addClass(this._classes({element:r,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,s;for(s=0;i.length>s;s++)a=n.classesElementLookup[i[s]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[s]]=a,r.push(i[s]),o&&e.classes[i[s]]&&r.push(e.classes[i[s]])}var r=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(r,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[r]=t(n.not(e.target).get()))}))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,r){r="boolean"==typeof r?r:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(e,i,r){var n,o=this;"boolean"!=typeof e&&(r=i,i=e,e=!1),r?(i=n=t(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,n=this.widget()),t.each(r,(function(r,a){function s(){return e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var l=r.match(/^([\w:-]*)\s*(.*)$/),d=l[1]+o.eventNamespace,c=l[2];c?n.on(d,c,s):i.on(d,s)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),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){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,r){var n,o,a=this.options[e];if(r=r||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,r),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(r))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(r,n,o){"string"==typeof n&&(n={effect:n});var a,s=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&r.delay(n.delay),a&&t.effects&&t.effects.effect[s]?r[e](n):s!==e&&r[s]?r[s](n.duration,n.easing,o):r.queue((function(i){t(this)[e](),o&&o.call(r[0]),i()}))}})),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function r(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,s=/left|center|right/,l=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,h=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,r=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=r.children()[0];return t("body").append(r),e=o.offsetWidth,r.css("overflow","scroll"),e===(i=o.offsetWidth)&&(i=r[0].clientWidth),r.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),r=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===r||"auto"===r&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),r=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:r,isDocument:n,offset:r||n?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return h.apply(this,arguments);n=t.extend({},n);var u,p,f,g,m,v,b=t(n.of),w=t.position.getWithinInfo(n.within),y=t.position.getScrollInfo(w),x=(n.collision||"flip").split(" "),_={};return v=r(b),b[0].preventDefault&&(n.at="left top"),p=v.width,f=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],(function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=s.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=s.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=d.exec(i[0]),e=d.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]})),1===x.length&&(x[1]=x[0]),"right"===n.at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"center"===n.at[1]&&(m.top+=f/2),u=e(_.at,p,f),m.left+=u[0],m.top+=u[1],this.each((function(){var r,s,l=t(this),d=l.outerWidth(),c=l.outerHeight(),h=i(this,"marginLeft"),v=i(this,"marginTop"),C=d+h+i(this,"marginRight")+y.width,A=c+v+i(this,"marginBottom")+y.height,j=t.extend({},m),k=e(_.my,l.outerWidth(),l.outerHeight());"right"===n.my[0]?j.left-=d:"center"===n.my[0]&&(j.left-=d/2),"bottom"===n.my[1]?j.top-=c:"center"===n.my[1]&&(j.top-=c/2),j.left+=k[0],j.top+=k[1],r={marginLeft:h,marginTop:v},t.each(["left","top"],(function(e,i){t.ui.position[x[e]]&&t.ui.position[x[e]][i](j,{targetWidth:p,targetHeight:f,elemWidth:d,elemHeight:c,collisionPosition:r,collisionWidth:C,collisionHeight:A,offset:[u[0]+k[0],u[1]+k[1]],my:n.my,at:n.at,within:w,elem:l})})),n.using&&(s=function(t){var e=g.left-j.left,i=e+p-d,r=g.top-j.top,s=r+f-c,u={target:{element:b,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:j.left,top:j.top,width:d,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>s?"top":r>0?"bottom":"middle"};d>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(r+s)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(r),a(s))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(j,{using:s}))}))},t.ui.position={fit:{left:function(t,e){var i,r=e.within,n=r.isWindow?r.scrollLeft:r.offset.left,a=r.width,s=t.left-e.collisionPosition.marginLeft,l=n-s,d=s+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=d?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=d>0&&0>=l?n:l>d?n+a-e.collisionWidth:n:l>0?t.left+=l:d>0?t.left-=d:t.left=o(t.left-s,t.left)},top:function(t,e){var i,r=e.within,n=r.isWindow?r.scrollTop:r.offset.top,a=e.within.height,s=t.top-e.collisionPosition.marginTop,l=n-s,d=s+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=d?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=d>0&&0>=l?n:l>d?n+a-e.collisionHeight:n:l>0?t.top+=l:d>0?t.top-=d:t.top=o(t.top-s,t.top)}},flip:{left:function(t,e){var i,r,n=e.within,o=n.offset.left+n.scrollLeft,s=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,d=t.left-e.collisionPosition.marginLeft,c=d-l,u=d+e.collisionWidth-s-l,h="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,f=-2*e.offset[0];0>c?(0>(i=t.left+h+p+f+e.collisionWidth-s-o)||a(c)>i)&&(t.left+=h+p+f):u>0&&((r=t.left-e.collisionPosition.marginLeft+h+p+f-l)>0||u>a(r))&&(t.left+=h+p+f)},top:function(t,e){var i,r,n=e.within,o=n.offset.top+n.scrollTop,s=n.height,l=n.isWindow?n.scrollTop:n.offset.top,d=t.top-e.collisionPosition.marginTop,c=d-l,u=d+e.collisionHeight-s-l,h="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,f=-2*e.offset[1];0>c?(0>(r=t.top+h+p+f+e.collisionHeight-s-o)||a(c)>r)&&(t.top+=h+p+f):u>0&&((i=t.top-e.collisionPosition.marginTop+h+p+f-l)>0||u>a(i))&&(t.top+=h+p+f)}},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(i){return!!t.data(i,e)}})):function(e,i,r){return!!t.data(e,r[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",(function(t){t.preventDefault()}))}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});var l="ui-effects-",d="ui-effects-style",c="ui-effects-animated",u=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var r=c[e.type]||{};return null==t?i||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:0>t?0:t>r.max?r.max:t)}function r(i){var r=l(),n=r._rgba=[];return i=i.toLowerCase(),p(s,(function(t,o){var a,s=o.re.exec(i),l=s&&o.parse(s),c=o.space||"rgba";return l?(a=r[c](l),r[d[c].cache]=a[d[c].cache],n=r._rgba=a._rgba,!1):e})),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),r):o[i]}function n(t,e,i){return 1>6*(i=(i+1)%1)?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a=/^([\-+])=\s*(\d+\.?\d*)/,s=[{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]]}}],l=t.Color=function(e,i,r,n){return new t.Color.fn.parse(e,i,r,n)},d={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"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=l.support={},h=t("<p>")[0],p=t.each;h.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=h.style.backgroundColor.indexOf("rgba")>-1,p(d,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),l.fn=t.extend(l.prototype,{parse:function(n,a,s,c){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,h=t.type(n),f=this._rgba=[];return a!==e&&(n=[n,a,s,c],h="array"),"string"===h?this.parse(r(n)||o._default):"array"===h?(p(d.rgba.props,(function(t,e){f[e.idx]=i(n[e.idx],e)})),this):"object"===h?(p(d,n instanceof l?function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}:function(e,r){var o=r.cache;p(r.props,(function(t,e){if(!u[o]&&r.to){if("alpha"===t||null==n[t])return;u[o]=r.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)})),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,r.from&&(u._rgba=r.from(u[o])))}),this):e},is:function(t){var i=l(t),r=!0,n=this;return p(d,(function(t,o){var a,s=i[o.cache];return s&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],p(o.props,(function(t,i){return null!=s[i.idx]?r=s[i.idx]===a[i.idx]:e}))),r})),r},_space:function(){var t=[],e=this;return p(d,(function(i,r){e[r.cache]&&t.push(i)})),t.pop()},transition:function(t,e){var r=l(t),n=r._space(),o=d[n],a=0===this.alpha()?l("transparent"):this,s=a[o.cache]||o.to(a._rgba),u=s.slice();return r=r[o.cache],p(o.props,(function(t,n){var o=n.idx,a=s[o],l=r[o],d=c[n.type]||{};null!==l&&(null===a?u[o]=l:(d.mod&&(l-a>d.mod/2?a+=d.mod:a-l>d.mod/2&&(a-=d.mod)),u[o]=i((l-a)*e+a,n)))})),this[n](u)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),r=i.pop(),n=l(e)._rgba;return l(t.map(i,(function(t,e){return(1-r)*n[e]+r*t})))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=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===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),r=i.pop();return e&&i.push(~~(255*r)),"#"+t.map(i,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,d.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,r=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],s=Math.max(r,n,o),l=Math.min(r,n,o),d=s-l,c=s+l,u=.5*c;return e=l===s?0:r===s?60*(n-o)/d+360:n===s?60*(o-r)/d+120:60*(r-n)/d+240,i=0===d?0:.5>=u?d/c:d/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},d.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,i=t[1],r=t[2],o=t[3],a=.5>=r?r*(1+i):r+i-r*i,s=2*r-a;return[Math.round(255*n(s,a,e+1/3)),Math.round(255*n(s,a,e)),Math.round(255*n(s,a,e-1/3)),o]},p(d,(function(r,n){var o=n.props,s=n.cache,d=n.to,c=n.from;l.fn[r]=function(r){if(d&&!this[s]&&(this[s]=d(this._rgba)),r===e)return this[s].slice();var n,a=t.type(r),u="array"===a||"object"===a?r:arguments,h=this[s].slice();return p(o,(function(t,e){var r=u["object"===a?t:e.idx];null==r&&(r=h[e.idx]),h[e.idx]=i(r,e)})),c?((n=l(c(h)))[s]=h,n):l(h)},p(o,(function(e,i){l.fn[e]||(l.fn[e]=function(n){var o,s=t.type(n),l="alpha"===e?this._hsla?"hsla":"rgba":r,d=this[l](),c=d[i.idx];return"undefined"===s?c:("function"===s&&(n=n.call(this,c),s=t.type(n)),null==n&&i.empty?this:("string"===s&&(o=a.exec(n))&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1)),d[i.idx]=n,this[l](d)))})}))})),l.hook=function(e){var i=e.split(" ");p(i,(function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,s="";if("transparent"!==n&&("string"!==t.type(n)||(o=r(n)))){if(n=l(o||n),!u.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===s||"transparent"===s)&&a&&a.style;)try{s=t.css(a,"backgroundColor"),a=a.parentNode}catch(t){}n=n.blend(s&&"transparent"!==s?s:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}}))},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return p(["Top","Right","Bottom","Left"],(function(i,r){e["border"+r+"Color"]=t})),e}},o=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"}}(u),function(){function e(e){var i,r,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(r=n.length;r--;)"string"==typeof n[i=n[r]]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,i){var r,o,a={};for(r in i)o=i[r],e[r]!==o&&(n[r]||(t.fx.step[r]||!isNaN(parseFloat(o)))&&(a[r]=o));return a}var r=["add","remove","toggle"],n={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,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(u.style(t.elem,i,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(n,o,a,s){var l=t.speed(o,a,s);return this.queue((function(){var o,a=t(this),s=a.attr("class")||"",d=l.children?a.find("*").addBack():a;d=d.map((function(){return{el:t(this),start:e(this)}})),o=function(){t.each(r,(function(t,e){n[e]&&a[e+"Class"](n[e])}))},o(),d=d.map((function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this})),a.attr("class",s),d=d.map((function(){var e=this,i=t.Deferred(),r=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,r),i.promise()})),t.when.apply(t,d.get()).done((function(){o(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),l.complete.call(a[0])}))}))},t.fn.extend({addClass:function(e){return function(i,r,n,o){return r?t.effects.animateClass.call(this,{add:i},r,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,r,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},r,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,r,n,o,a){return"boolean"==typeof r||void 0===r?n?t.effects.animateClass.call(this,r?{add:i}:{remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},r,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,r,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},r,n,o)}})}(),function(){function e(e,i,r,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,r=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=r,r=i,i={}),t.isFunction(r)&&(n=r,r=null),i&&t.extend(e,i),r=r||i.duration,e.duration=t.fx.off?0:"number"==typeof r?r:r in t.fx.speeds?t.fx.speeds[r]:t.fx.speeds._default,e.complete=n||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==typeof e&&!e.effect}function r(t,e){var i=e.outerWidth(),r=e.outerHeight(),n=/^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,i,r,0];return{top:parseFloat(n[1])||0,right:"auto"===n[2]?i:parseFloat(n[2]),bottom:"auto"===n[3]?r:parseFloat(n[3]),left:parseFloat(n[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(c)||e(i)}}(t.expr.filters.animated)),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var i=0,r=e.length;r>i;i++)null!==e[i]&&t.data(l+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,r=0,n=e.length;n>r;r++)null!==e[r]&&(i=t.data(l+e[r]),t.css(e[r],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},r=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return e.wrap(r),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),r=e.parent(),"static"===e.css("position")?(r.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,r){i[r]=e.css(r),isNaN(parseInt(i[r],10))&&(i[r]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),r.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,r){return r||(r=i,i="effect"),t.effects.effect[e]=r,t.effects.effect[e].mode=i,r},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*r,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*r}},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,i){var r=t.queue();e>1&&r.splice.apply(r,[1,0].concat(r.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(d,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(d)||"",t.removeData(d)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,r;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=t[1]/e.width}return{x:r,y:i}},createPlaceholder:function(e){var i,r=e.css("position"),n=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(r)&&(r="absolute",i=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("ui-effects-placeholder"),e.data(l+"placeholder",i)),e.css({position:r,left:n.left,top:n.top}),i},removePlaceholder:function(t){var e=l+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,r,n){return n=n||{},t.each(i,(function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*r+o[1])})),n}}),t.fn.extend({effect:function(){function i(e){function i(){t.isFunction(l)&&l.call(a[0]),t.isFunction(e)&&e()}var a=t(this);r.mode=u.shift(),!1===t.uiBackCompat||o?"none"===r.mode?(a[d](),i()):n.call(a[0],r,(function(){a.removeData(c),t.effects.cleanUp(a),"hide"===r.mode&&a.hide(),i()})):(a.is(":hidden")?"hide"===d:"show"===d)?(a[d](),i()):n.call(a[0],r,i)}var r=e.apply(this,arguments),n=t.effects.effect[r.effect],o=n.mode,a=r.queue,s=a||"fx",l=r.complete,d=r.mode,u=[],h=function(e){var i=t(this),r=t.effects.mode(i,d)||o;i.data(c,!0),u.push(r),o&&("show"===r||r===o&&"hide"===r)&&i.show(),o&&"none"===r||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!n?d?this[d](r.duration,l):this.each((function(){l&&l.call(this)})):!1===a?this.each(h).each(i):this.queue(s,h).queue(s,i)},show:function(t){return function(r){if(i(r))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(t.fn.show),hide:function(t){return function(r){if(i(r))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(r){if(i(r)||"boolean"==typeof r)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),r=[];return t.each(["em","px","%","pt"],(function(t,e){i.indexOf(e)>0&&(r=[parseFloat(i),e])})),r},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):r(this.css("clip"),this)},transfer:function(e,i){var r=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),s=o?a.scrollTop():0,l=o?a.scrollLeft():0,d=n.offset(),c={top:d.top-s,left:d.left-l,height:n.innerHeight(),width:n.innerWidth()},u=r.offset(),h=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-s,left:u.left-l,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,(function(){h.remove(),t.isFunction(i)&&i()}))}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=r(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,i){e[i]=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,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,(function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}}))}(),t.effects,t.effects.define("blind","hide",(function(e,i){var r={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=t(this),o=e.direction||"up",a=n.cssClip(),s={clip:t.extend({},a)},l=t.effects.createPlaceholder(n);s.clip[r[o][0]]=s.clip[r[o][1]],"show"===e.mode&&(n.cssClip(s.clip),l&&l.css(t.effects.clipToBox(s)),s.clip=a),l&&l.animate(t.effects.clipToBox(s),e.duration,e.easing),n.animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("bounce",(function(e,i){var r,n,o,a=t(this),s=e.mode,l="hide"===s,d="show"===s,c=e.direction||"up",u=e.distance,h=e.times||5,p=2*h+(d||l?1:0),f=e.duration/p,g=e.easing,m="up"===c||"down"===c?"top":"left",v="up"===c||"left"===c,b=0,w=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(m),u||(u=a["top"===m?"outerHeight":"outerWidth"]()/3),d&&((n={opacity:1})[m]=o,a.css("opacity",0).css(m,v?2*-u:2*u).animate(n,f,g)),l&&(u/=Math.pow(2,h-1)),(n={})[m]=o;h>b;b++)(r={})[m]=(v?"-=":"+=")+u,a.animate(r,f,g).animate(n,f,g),u=l?2*u:u/2;l&&((r={opacity:0})[m]=(v?"-=":"+=")+u,a.animate(r,f,g)),a.queue(i),t.effects.unshift(a,w,p+1)})),t.effects.define("clip","hide",(function(e,i){var r,n={},o=t(this),a=e.direction||"vertical",s="both"===a,l=s||"horizontal"===a,d=s||"vertical"===a;r=o.cssClip(),n.clip={top:d?(r.bottom-r.top)/2:r.top,right:l?(r.right-r.left)/2:r.right,bottom:d?(r.bottom-r.top)/2:r.bottom,left:l?(r.right-r.left)/2:r.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(n.clip),n.clip=r),o.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("drop","hide",(function(e,i){var r,n=t(this),o="show"===e.mode,a=e.direction||"left",s="up"===a||"down"===a?"top":"left",l="up"===a||"left"===a?"-=":"+=",d="+="===l?"-=":"+=",c={opacity:0};t.effects.createPlaceholder(n),r=e.distance||n["top"===s?"outerHeight":"outerWidth"](!0)/2,c[s]=l+r,o&&(n.css(c),c[s]=d+r,c.opacity=1),n.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("explode","hide",(function(e,i){function r(){v.push(this),v.length===c*u&&(h.css({visibility:"visible"}),t(v).remove(),i())}var n,o,a,s,l,d,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=c,h=t(this),p="show"===e.mode,f=h.show().css("visibility","hidden").offset(),g=Math.ceil(h.outerWidth()/u),m=Math.ceil(h.outerHeight()/c),v=[];for(n=0;c>n;n++)for(s=f.top+n*m,d=n-(c-1)/2,o=0;u>o;o++)a=f.left+o*g,l=o-(u-1)/2,h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*g,top:-n*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:m,left:a+(p?l*g:0),top:s+(p?d*m:0),opacity:p?0:1}).animate({left:a+(p?0:l*g),top:s+(p?0:d*m),opacity:p?1:0},e.duration||500,e.easing,r)})),t.effects.define("fade","toggle",(function(e,i){var r="show"===e.mode;t(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("fold","hide",(function(e,i){var r=t(this),n=e.mode,o="show"===n,a="hide"===n,s=e.size||15,l=/([0-9]+)%/.exec(s),d=e.horizFirst?["right","bottom"]:["bottom","right"],c=e.duration/2,u=t.effects.createPlaceholder(r),h=r.cssClip(),p={clip:t.extend({},h)},f={clip:t.extend({},h)},g=[h[d[0]],h[d[1]]],m=r.queue().length;l&&(s=parseInt(l[1],10)/100*g[a?0:1]),p.clip[d[0]]=s,f.clip[d[0]]=s,f.clip[d[1]]=0,o&&(r.cssClip(f.clip),u&&u.css(t.effects.clipToBox(f)),f.clip=h),r.queue((function(i){u&&u.animate(t.effects.clipToBox(p),c,e.easing).animate(t.effects.clipToBox(f),c,e.easing),i()})).animate(p,c,e.easing).animate(f,c,e.easing).queue(i),t.effects.unshift(r,m,4)})),t.effects.define("highlight","show",(function(e,i){var r=t(this),n={backgroundColor:r.css("backgroundColor")};"hide"===e.mode&&(n.opacity=0),t.effects.saveStyle(r),r.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("size",(function(e,i){var r,n,o,a=t(this),s=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.mode,u="effect"!==c,h=e.scale||"both",p=e.origin||["middle","center"],f=a.css("position"),g=a.position(),m=t.effects.scaledDimensions(a),v=e.from||m,b=e.to||t.effects.scaledDimensions(a,0);t.effects.createPlaceholder(a),"show"===c&&(o=v,v=b,b=o),n={from:{y:v.height/m.height,x:v.width/m.width},to:{y:b.height/m.height,x:b.width/m.width}},("box"===h||"both"===h)&&(n.from.y!==n.to.y&&(v=t.effects.setTransition(a,l,n.from.y,v),b=t.effects.setTransition(a,l,n.to.y,b)),n.from.x!==n.to.x&&(v=t.effects.setTransition(a,d,n.from.x,v),b=t.effects.setTransition(a,d,n.to.x,b))),("content"===h||"both"===h)&&n.from.y!==n.to.y&&(v=t.effects.setTransition(a,s,n.from.y,v),b=t.effects.setTransition(a,s,n.to.y,b)),p&&(r=t.effects.getBaseline(p,m),v.top=(m.outerHeight-v.outerHeight)*r.y+g.top,v.left=(m.outerWidth-v.outerWidth)*r.x+g.left,b.top=(m.outerHeight-b.outerHeight)*r.y+g.top,b.left=(m.outerWidth-b.outerWidth)*r.x+g.left),a.css(v),("content"===h||"both"===h)&&(l=l.concat(["marginTop","marginBottom"]).concat(s),d=d.concat(["marginLeft","marginRight"]),a.find("*[width]").each((function(){var i=t(this),r=t.effects.scaledDimensions(i),o={height:r.height*n.from.y,width:r.width*n.from.x,outerHeight:r.outerHeight*n.from.y,outerWidth:r.outerWidth*n.from.x},a={height:r.height*n.to.y,width:r.width*n.to.x,outerHeight:r.height*n.to.y,outerWidth:r.width*n.to.x};n.from.y!==n.to.y&&(o=t.effects.setTransition(i,l,n.from.y,o),a=t.effects.setTransition(i,l,n.to.y,a)),n.from.x!==n.to.x&&(o=t.effects.setTransition(i,d,n.from.x,o),a=t.effects.setTransition(i,d,n.to.x,a)),u&&t.effects.saveStyle(i),i.css(o),i.animate(a,e.duration,e.easing,(function(){u&&t.effects.restoreStyle(i)}))}))),a.animate(b,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=a.offset();0===b.opacity&&a.css("opacity",v.opacity),u||(a.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(a)),i()}})})),t.effects.define("scale",(function(e,i){var r=t(this),n=e.mode,o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==n?0:100),a=t.extend(!0,{from:t.effects.scaledDimensions(r),to:t.effects.scaledDimensions(r,o,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.opacity=0),t.effects.effect.size.call(this,a,i)})),t.effects.define("puff","hide",(function(e,i){var r=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,r,i)})),t.effects.define("pulsate","show",(function(e,i){var r=t(this),n=e.mode,o="show"===n,a=o||"hide"===n,s=2*(e.times||5)+(a?1:0),l=e.duration/s,d=0,c=1,u=r.queue().length;for((o||!r.is(":visible"))&&(r.css("opacity",0).show(),d=1);s>c;c++)r.animate({opacity:d},l,e.easing),d=1-d;r.animate({opacity:d},l,e.easing),r.queue(i),t.effects.unshift(r,u,s+1)})),t.effects.define("shake",(function(e,i){var r=1,n=t(this),o=e.direction||"left",a=e.distance||20,s=e.times||3,l=2*s+1,d=Math.round(e.duration/l),c="up"===o||"down"===o?"top":"left",u="up"===o||"left"===o,h={},p={},f={},g=n.queue().length;for(t.effects.createPlaceholder(n),h[c]=(u?"-=":"+=")+a,p[c]=(u?"+=":"-=")+2*a,f[c]=(u?"-=":"+=")+2*a,n.animate(h,d,e.easing);s>r;r++)n.animate(p,d,e.easing).animate(f,d,e.easing);n.animate(p,d,e.easing).animate(h,d/2,e.easing).queue(i),t.effects.unshift(n,g,l+1)})),t.effects.define("slide","show",(function(e,i){var r,n,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,l=e.direction||"left",d="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,u=e.distance||o["top"===d?"outerHeight":"outerWidth"](!0),h={};t.effects.createPlaceholder(o),r=o.cssClip(),n=o.position()[d],h[d]=(c?-1:1)*u+n,h.clip=o.cssClip(),h.clip[a[l][1]]=h.clip[a[l][0]],"show"===s&&(o.cssClip(h.clip),o.css(d,h[d]),h.clip=r,h[d]=n),o.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),!1!==t.uiBackCompat&&t.effects.define("transfer",(function(e,i){t(this).transfer(e,i)})),t.ui.focusable=function(e,i){var r,n,o,a,s,l=e.nodeName.toLowerCase();return"area"===l?(n=(r=e.parentNode).name,!(!e.href||!n||"map"!==r.nodeName.toLowerCase())&&(o=t("img[usemap='#"+n+"']")).length>0&&o.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(a=!e.disabled)&&(s=t(e).closest("fieldset")[0])&&(a=!s.disabled):a="a"===l&&e.href||i,a&&t(e).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}(t(e)))},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 i=e.data("ui-form-reset-instances");t.each(i,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],(function(e,i){function r(e,i,r,o){return t.each(n,(function(){i-=parseFloat(t.css(e,"padding"+this))||0,r&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)})),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each((function(){t(this).css(o,r(this,e)+"px")}))},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each((function(){t(this).css(o,r(this,e,!0,n)+"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,i,r,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),(r=this.attr("id"))&&(o=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(r)+"']",n=n.add(o.find(i).addBack(i))),this.pushStack(n))},t.fn.scrollParent=function(e){var i=this.css("position"),r="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!r||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),r=null!=i;return(!r||i>=0)&&t.ui.focusable(e,r)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++t)}))}}(),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"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("ui-accordion","ui-widget 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,i,r=this.options.icons;r&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+r.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,r.header)._addClass(i,null,r.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".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,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,r=this.headers.length,n=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%r];break;case i.LEFT:case i.UP:o=this.headers[(n-1+r)%r];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[r-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).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(".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,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,r=i.heightStyle,n=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each((function(){var e=t(this),i=e.uniqueId().attr("id"),r=e.next(),n=r.uniqueId().attr("id");e.attr("aria-controls",n),r.attr("aria-labelledby",i)})).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(i.event),"fill"===r?(e=n.height(),this.element.siblings(":visible").each((function(){var i=t(this),r=i.css("position");"absolute"!==r&&"fixed"!==r&&(e-=i.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"===r&&(e=0,this.headers.next().each((function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()})).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,r,n=this.options,o=this.active,a=t(e.currentTarget),s=a[0]===o[0],l=s&&n.collapsible,d=l?t():a.next(),c=o.next(),u={oldHeader:o,oldPanel:c,newHeader:l?t():a,newPanel:d};e.preventDefault(),s&&!n.collapsible||!1===this._trigger("beforeActivate",e,u)||(n.active=!l&&this.headers.index(a),this.active=s?t():a,this._toggle(u),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,n.icons.activeHeader)._addClass(i,null,n.icons.header)),s||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),n.icons&&(r=a.children(".ui-accordion-header-icon"),this._removeClass(r,null,n.icons.header)._addClass(r,null,n.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,r=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=r,this.options.animate?this._animate(i,r,e):(r.hide(),i.show(),this._toggleComplete(e)),r.attr({"aria-hidden":"true"}),r.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&r.length?r.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter((function(){return 0===parseInt(t(this).attr("tabIndex"),10)})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var r,n,o,a=this,s=0,l=t.css("box-sizing"),d=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},u=d&&c.down||c,h=function(){a._toggleComplete(i)};return"number"==typeof u&&(o=u),"string"==typeof u&&(n=u),n=n||u.easing||c.easing,o=o||u.duration||c.duration,e.length?t.length?(r=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:n,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:n,complete:h,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===l&&(s+=i.now):"content"!==a.options.heightStyle&&(i.now=Math.round(r-e.outerHeight()-s),s=0)}})):e.animate(this.hideProps,o,n,h):t.animate(this.showProps,o,n,h)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"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("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),r=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),r=t(e.currentTarget);i[0]===r[0]&&(this._removeClass(r.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,r))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},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(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".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("ui-menu-submenu-caret")&&e.remove()}))},_keydown:function(e){var i,r,n,o,a=!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(".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:a=!1,r=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===r?o=!0:n=r+n,i=this._filterMenuItems(n),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,r,n,o=this,a=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),i=e.prev(),r=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(r,"ui-menu-icon","ui-icon "+a),i.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(e=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")})),n=(r=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(r,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),e.filter(".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 i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,r,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),r=this.active.children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,r,n,o,a,s;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-r,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+s>a&&this.activeMenu.scrollTop(o+n-a+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"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 i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay((function(){var r=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(e),this._removeClass(r.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=r}),this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".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(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var r;this.active&&(r="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),r&&r.length&&this.active||(r=this.activeMenu.find(this.options.items)[e]()),this.focus(i,r)},nextPage:function(e){var i,r,n;return this.active?void(this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return 0>(i=t(this)).offset().top-r-n})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,r,n;return this.active?void(this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-r+n>0})),this.focus(e,i)):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(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return r.test(t.trim(t(this).children(".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,i,r,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,r=!0,void(i=!0);e=!1,r=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(r){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault());if(!i){var n=t.ui.keyCode;switch(r.keyCode){case n.PAGE_UP:this._move("previousPage",r);break;case n.PAGE_DOWN:this._move("nextPage",r);break;case n.UP:this._keyEvent("previous",r);break;case n.DOWN:this._keyEvent("next",r)}}},input:function(t){return r?(r=!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,"ui-autocomplete","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,i){var r,n;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)}))):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),void((r=i.item.attr("aria-label")||n.value)&&t.trim(r).length&&(this.liveRegion.children().hide(),t("<div>").text(r).appendTo(this.liveRegion))))},menuselect:function(e,i){var r=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay((function(){this.previous=n,this.selectedItem=r}))),!1!==this._trigger("select",e,{item:r})&&this._value(r.value),this.term=this._value(),this.close(e),this.selectedItem=r}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"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 i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,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(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,r=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,r){r(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){r.xhr&&r.xhr.abort(),r.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!r)&&(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("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("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 i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.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,i){var r=this;t.each(i,(function(t,i){r._renderItemData(e,i)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.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,i){var r=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,(function(t){return r.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 i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var h,p=/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:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,(function(r,n){var o,a={};return n?"controlgroupLabel"===r?((o=e.element.find(n)).each((function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(o.get()))):void(t.fn[r]&&(a=e["_"+r+"Options"]?e["_"+r+"Options"]("middle"):{classes:{}},e.element.find(n).each((function(){var n=t(this),o=n[r]("instance"),s=t.widget.extend({},a);if("button"!==r||!n.parent(".ui-spinner").length){o||(o=n[r]()[r]("instance")),o&&(s.classes=e._resolveClassesValues(s.classes,o)),n[r](s);var l=n[r]("widget");t.data(l[0],"ui-controlgroup-data",o||n[r]("instance")),i.push(l[0])}})))):void 0})),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()}))},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,r={classes:{}};return r.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],r},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var r={};return t.each(e,(function(n){var o=i.options.classes[n]||"";o=t.trim(o.replace(p,"")),r[n]=(o+" "+e[n]).replace(/\s+/g," ")})),r},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],(function(t,r){var n=e[r]().data("ui-controlgroup-data");if(n&&i["_"+n.widgetName+"Options"]){var o=i["_"+n.widgetName+"Options"](1===e.length?"only":r);o.classes=i._resolveClassesValues(o.classes,n),n.element[n.widgetName](o)}else i._updateCornerClass(e[r](),r)})),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,r=this,n=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each((function(){r.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML})),this.originalLabel&&(n.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(n.disabled=e),n},_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("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"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,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus 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,i="input[name='"+t.ui.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(i):t(i).filter((function(){return 0===t(this).form().length}))).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each((function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","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,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check 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,"ui-checkboxradio-checked","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:{"ui-button":"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("ui-button","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,i){var r="iconPosition"!==e,n=r?this.options.iconPosition:i,o="top"===n||"bottom"===n;this.icon?r&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),r&&this._addClass(this.icon,null,i),this._attachIcon(n),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_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,i=void 0===t.icon?this.options.icon:t.icon;e||i||(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("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,"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("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"==typeof 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(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return n(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var r,n,o;n="div"===(r=e.nodeName.toLowerCase())||"span"===r,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(o=this._newInst(t(e),n)).settings=t.extend({},i||{}),"input"===r?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_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?i(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var r=t(e);i.append=t([]),i.trigger=t([]),r.hasClass(this.markerClassName)||(this._attachments(r,i),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var r,n,o,a=this._get(i,"appendText"),s=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[s?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(r=this._get(i,"showOn"))||"both"===r)&&e.on("focus",this._showDatepicker),("button"===r||"both"===r)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:n,title:n}):n)),e[s?"before":"after"](i.trigger),i.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,i,r,n,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,r=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,r=n);return r},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var r=t(e);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,r,o,a){var s,l,d,c,u,h=this._dialogInst;return h||(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),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",h)),n(h.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,d=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,d/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=r,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",h),this},_destroyDatepicker:function(e){var i,r=t(e),n=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&r.removeClass(this.markerClassName).empty(),h===n&&(h=null))},_enableDatepicker:function(e){var i,r,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,o.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&((r=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,r,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,o.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&((r=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.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,i,r){var o,a,s,l,d=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):d?"all"===i?t.extend({},d.settings):this._get(d,i):null:(o=i||{},"string"==typeof i&&((o={})[i]=r),void(d&&(this._curInst===d&&this._hideDatepicker(),a=this._getDateDatepicker(e,!0),s=this._getMinMaxDate(d,"min"),l=this._getMinMaxDate(d,"max"),n(d.settings,o),null!==s&&void 0!==o.dateFormat&&void 0===o.minDate&&(d.settings.minDate=this._formatDate(d,s)),null!==l&&void 0!==o.dateFormat&&void 0===o.maxDate&&(d.settings.maxDate=this._formatDate(d,l)),"disabled"in o&&(o.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),d),this._autoSize(d),this._setDate(d,a),this._updateAlternate(d),this._updateDatepicker(d))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,r,n,o=t.datepicker._getInst(e.target),a=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return(n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv))[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,n[0]),(i=t.datepicker._get(o,"onSelect"))?(r=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[r,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,r,n=t.datepicker._getInst(e.target);return t.datepicker._get(n,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(n,"dateFormat")),r=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">r||!i||i.indexOf(r)>-1):void 0},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,r,o,a,s,l,d;"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!==(o=(r=t.datepicker._get(i,"beforeShow"))?r.apply(e,[e,i]):{})&&(n(i.settings,o),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),a=!1,t(e).parents().each((function(){return!(a|="fixed"===t(this).css("position"))})),s={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),s=t.datepicker._checkOffset(i,s,a),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":a?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),d=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),d):i.dpDiv[l||"show"](l?d:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,h=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),o=n[1],a=e.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&r.apply(a.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&e.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout((function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=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,i,r){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(r?0:t(document).scrollLeft()),d=document.documentElement.clientHeight+(r?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-a:0,i.left-=r&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=r&&i.top===e.input.offset().top+s?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>l&&l>n?Math.abs(i.left+n-l):0),i.top-=Math.min(i.top,i.top+o>d&&d>o?Math.abs(o+s):0),i},_findPos:function(e){for(var i,r=this._getInst(e),n=this._get(r,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,r,n,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),r=this._get(a,"duration"),n=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),r,n):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?r:null,n),i||n(),this._datepickerShowing=!1,(o=this._get(a,"onClose"))&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),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(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),r=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==r)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,r){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,i+("M"===r?this._get(o,"showCurrentAtPos"):0),r),this._updateDatepicker(o))},_gotoToday:function(e){var i,r=t(e),n=this._getInst(r[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(r)},_selectMonthYear:function(e,i,r){var n=t(e),o=this._getInst(n[0]);o["selected"+("M"===r?"Month":"Year")]=o["draw"+("M"===r?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,i,r,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((o=this._getInst(a[0])).selectedDay=o.currentDay=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=r,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var r,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),(r=this._get(o,"onSelect"))?r.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,r,n,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),r=this._getDate(e),n=this.formatDate(i,r,this._getFormatConfig(e)),t(o).val(n))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,r){if(null==e||null==i)throw"Invalid arguments";if(""==(i="object"==typeof i?""+i:i+""))return null;var n,o,a,s,l=0,d=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof d?d:(new Date).getFullYear()%100+parseInt(d,10),u=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,h=(r?r.dayNames:null)||this._defaults.dayNames,p=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,f=(r?r.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,b=-1,w=!1,y=function(t){var i=e.length>n+1&&e.charAt(n+1)===t;return i&&n++,i},x=function(t){var e=y(t),r="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n=RegExp("^\\d{"+("y"===t?r:1)+","+r+"}"),o=i.substring(l).match(n);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},_=function(e,r,n){var o=-1,a=t.map(y(e)?n:r,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(a,(function(t,e){var r=e[1];return i.substr(l,r.length).toLowerCase()===r.toLowerCase()?(o=e[0],l+=r.length,!1):void 0})),-1!==o)return o+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==e.charAt(n))throw"Unexpected literal at position "+l;l++};for(n=0;e.length>n;n++)if(w)"'"!==e.charAt(n)||y("'")?C():w=!1;else switch(e.charAt(n)){case"d":v=x("d");break;case"D":_("D",u,h);break;case"o":b=x("o");break;case"m":m=x("m");break;case"M":m=_("M",p,f);break;case"y":g=x("y");break;case"@":g=(s=new Date(x("@"))).getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"!":g=(s=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"'":y("'")?C():w=!0;break;default:C()}if(i.length>l&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),b>-1)for(m=1,v=b;!((o=this._getDaysInMonth(g,m-1))>=v);)m++,v-=o;if((s=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||s.getMonth()+1!==m||s.getDate()!==v)throw"Invalid date";return s},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,i){if(!e)return"";var r,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,s=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=t.length>r+1&&t.charAt(r+1)===e;return i&&r++,i},d=function(t,e,i){var r=""+e;if(l(t))for(;i>r.length;)r="0"+r;return r},c=function(t,e,i,r){return l(t)?r[e]:i[e]},u="",h=!1;if(e)for(r=0;t.length>r;r++)if(h)"'"!==t.charAt(r)||l("'")?u+=t.charAt(r):h=!1;else switch(t.charAt(r)){case"d":u+=d("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,o);break;case"o":u+=d("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=d("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),a,s);break;case"y":u+=l("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":h=!0;break;default:u+=t.charAt(r)}return u},_possibleChars:function(t){var e,i="",r=!1,n=function(i){var r=t.length>e+1&&t.charAt(e+1)===i;return r&&e++,r};for(e=0;t.length>e;e++)if(r)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):r=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":r=!0;break;default:i+=t.charAt(e)}return i},_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 i=this._get(t,"dateFormat"),r=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,r,a)||n}catch(t){r=e?"":r}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=r?o.getDate():0,t.currentMonth=r?o.getMonth():0,t.currentYear=r?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,r){var n=null==i||""===i?r:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var r=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,n=r.getFullYear(),o=r.getMonth(),a=r.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(n,o));break;case"y":case"Y":n+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(n,o))}l=s.exec(i)}return new Date(n,o,a)}(i):"number"==typeof i?isNaN(i)?r:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(i):new Date(i.getTime());return(n=n&&"Invalid Date"==""+n?r:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var r=!e,n=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(r?"":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 i=this._get(e,"stepMonths"),r="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(r,-i,"M")},next:function(){t.datepicker._adjustDate(r,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(r)},selectDay:function(){return t.datepicker._selectDay(r,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(r,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(r,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var e,i,r,n,o,a,s,l,d,c,u,h,p,f,g,m,v,b,w,y,x,_,C,A,j,k,D,q,I,S,$,F,O,R,E,N,T,M,z,P=new Date,B=this._daylightSavingAdjust(new Date(P.getFullYear(),P.getMonth(),P.getDate())),G=this._get(t,"isRTL"),H=this._get(t,"showButtonPanel"),L=this._get(t,"hideIfNoPrevNext"),W=this._get(t,"navigationAsDateFormat"),V=this._getNumberOfMonths(t),Y=this._get(t,"showCurrentAtPos"),U=this._get(t,"stepMonths"),Q=1!==V[0]||1!==V[1],X=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),K=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Z=t.drawMonth-Y,tt=t.drawYear;if(0>Z&&(Z+=12,tt--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-V[0]*V[1]+1,J.getDate())),e=K&&K>e?K:e;this._daylightSavingAdjust(new Date(tt,Z,1))>e;)0>--Z&&(Z=11,tt--);for(t.drawMonth=Z,t.drawYear=tt,i=this._get(t,"prevText"),i=W?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Z-U,1)),this._getFormatConfig(t)):i,r=this._canAdjustMonth(t,-1,tt,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(G?"e":"w")+"'>"+i+"</span></a>":L?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(G?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=W?this.formatDate(n,this._daylightSavingAdjust(new Date(tt,Z+U,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,tt,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(G?"w":"e")+"'>"+n+"</span></a>":L?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(G?"w":"e")+"'>"+n+"</span></a>",a=this._get(t,"currentText"),s=this._get(t,"gotoCurrent")&&t.currentDay?X:B,a=W?this.formatDate(a,s,this._getFormatConfig(t)):a,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",d=H?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(G?l:"")+(this._isInRange(t,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(G?"":l)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),h=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),b=this._get(t,"selectOtherMonths"),w=this._getDefaultDate(t),y="",_=0;V[0]>_;_++){for(C="",this.maxRows=4,A=0;V[1]>A;A++){if(j=this._daylightSavingAdjust(new Date(tt,Z,t.selectedDay)),k=" ui-corner-all",D="",Q){if(D+="<div class='ui-datepicker-group",V[1]>1)switch(A){case 0:D+=" ui-datepicker-group-first",k=" ui-corner-"+(G?"right":"left");break;case V[1]-1:D+=" ui-datepicker-group-last",k=" ui-corner-"+(G?"left":"right");break;default:D+=" ui-datepicker-group-middle",k=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+k+"'>"+(/all|left/.test(k)&&0===_?G?o:r:"")+(/all|right/.test(k)&&0===_?G?r:o:"")+this._generateMonthYearHeader(t,Z,tt,K,J,_>0||A>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",q=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;7>x;x++)q+="<th scope='col'"+((x+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[I=(x+c)%7]+"'>"+p[I]+"</span></th>";for(D+=q+"</tr></thead><tbody>",S=this._getDaysInMonth(tt,Z),tt===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,S)),$=(this._getFirstDayOfMonth(tt,Z)-c+7)%7,F=Math.ceil(($+S)/7),O=Q&&this.maxRows>F?this.maxRows:F,this.maxRows=O,R=this._daylightSavingAdjust(new Date(tt,Z,1-$)),E=0;O>E;E++){for(D+="<tr>",N=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(R)+"</td>":"",x=0;7>x;x++)T=m?m.apply(t.input?t.input[0]:null,[R]):[!0,""],z=(M=R.getMonth()!==Z)&&!b||!T[0]||K&&K>R||J&&R>J,N+="<td class='"+((x+c+6)%7>=5?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(R.getTime()===j.getTime()&&Z===t.selectedMonth&&t._keyEvent||w.getTime()===R.getTime()&&w.getTime()===j.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!v?"":" "+T[1]+(R.getTime()===X.getTime()?" "+this._currentClass:"")+(R.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!v||!T[2]?"":" title='"+T[2].replace(/'/g,"'")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+">"+(M&&!v?" ":z?"<span class='ui-state-default'>"+R.getDate()+"</span>":"<a class='ui-state-default"+(R.getTime()===B.getTime()?" ui-state-highlight":"")+(R.getTime()===X.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#'>"+R.getDate()+"</a>")+"</td>",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);D+=N+"</tr>"}++Z>11&&(Z=0,tt++),C+=D+="</tbody></table>"+(Q?"</div>"+(V[0]>0&&A===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}y+=C}return y+=d,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,r,n,o,a,s){var l,d,c,u,h,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),w="<div class='ui-datepicker-title'>",y="";if(o||!m)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=r&&r.getFullYear()===i,d=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!l||c>=r.getMonth())&&(!d||n.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+s[c]+"</option>");y+="</select>"}if(b||(w+=y+(!o&&m&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!v)w+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e},f=p(u[0]),g=Math.max(f,p(u[1]||"")),f=r?Math.max(f,r.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",w+=t.yearshtml,t.yearshtml=null}return w+=this._get(t,"yearSuffix"),b&&(w+=(!o&&m&&v?"":" ")+y),w+"</div>"},_adjustInstDate:function(t,e,i){var r=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(r,n))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(r,n,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),n=i&&i>e?i:e;return r&&n>r?r:n},_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,i,r){var n=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,r+(0>e?e:n[0]*n[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,r,n=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,s=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),r=(new Date).getFullYear(),a=parseInt(i[0],10),s=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=r),i[1].match(/[+\-].*/)&&(s+=r)),(!n||e.getTime()>=n.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!s||s>=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,i,r){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(r,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,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 i=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(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new e,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var f=!1;t(document).on("mouseup",(function(){f=!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(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.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(!f){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,r=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(r&&!n&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.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 i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),f=!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,f=!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,i,r){var n,o=t.ui[e].prototype;for(n in r)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,r[n]])},call:function(t,e,i,r){var n,o=t.plugins[e];if(o&&(r||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},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("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(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.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 i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"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,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.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,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(!1===this._trigger("drag",e,r))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=r.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 i=this,r=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(r=t.ui.ddmanager.drop(this,e)),this.dropped&&(r=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!r||"valid"===this.options.revert&&r||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,r)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._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(".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,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,r=t.isFunction(i.helper),n=r?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),r&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_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(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&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,i,r,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.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()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((r=(i=t(n.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,r,n,o,a=this.options,s=this._isRootNode(this.scrollParent[0]),l=t.pageX,d=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(r=this.relativeContainer.offset(),i=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(d=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(d=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((d-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,d=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(d=this.originalPageY)),{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?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:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"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,i,r){return r=r||this._uiHash(),t.ui.plugin.call(this,e,[i,r,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,r)},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,i,r){var n=t.extend({},i,{item:r.element});r.sortables=[],t(r.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))}))},stop:function(e,i,r){var n=t.extend({},i,{item:r.element});r.cancelHelperRemoval=!1,t.each(r.sortables,(function(){var t=this;t.isOver?(t.isOver=0,r.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,n))}))},drag:function(e,i,r){t.each(r.sortables,(function(){var n=!1,o=this;o.positionAbs=r.positionAbs,o.helperProportions=r.helperProportions,o.offset.click=r.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,t.each(r.sortables,(function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n}))),n?(o.isOver||(o.isOver=1,r._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=r.offset.click.top,o.offset.click.left=r.offset.click.left,o.offset.parent.left-=r.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=r.offset.parent.top-o.offset.parent.top,r._trigger("toSortable",e),r.dropped=o.element,t.each(r.sortables,(function(){this.refreshPositions()})),r.currentItem=r.element,o.fromOutside=r),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(r._parent),r._refreshOffsets(e),i.position=r._generatePosition(e,!0),r._trigger("fromSortable",e),r.dropped=!1,t.each(r.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,r){var n=t("body"),o=r.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,r){var n=r.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,r){var n=t(i.helper),o=r.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,r){var n=r.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,r){var n=r.options,o=!1,a=r.scrollParentNotHidden[0],s=r.document[0];a!==s&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(r.overflowOffset.top+a.offsetHeight-e.pageY<n.scrollSensitivity?a.scrollTop=o=a.scrollTop+n.scrollSpeed:e.pageY-r.overflowOffset.top<n.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(r.overflowOffset.left+a.offsetWidth-e.pageX<n.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+n.scrollSpeed:e.pageX-r.overflowOffset.left<n.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t(s).scrollTop()<n.scrollSensitivity?o=t(s).scrollTop(t(s).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(s).scrollTop())<n.scrollSensitivity&&(o=t(s).scrollTop(t(s).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(s).scrollLeft()<n.scrollSensitivity?o=t(s).scrollLeft(t(s).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(s).scrollLeft())<n.scrollSensitivity&&(o=t(s).scrollLeft(t(s).scrollLeft()+n.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(r,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,r){var n=r.options;r.snapElements=[],t(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each((function(){var e=t(this),i=e.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,r){var n,o,a,s,l,d,c,u,h,p,f=r.options,g=f.snapTolerance,m=i.offset.left,v=m+r.helperProportions.width,b=i.offset.top,w=b+r.helperProportions.height;for(h=r.snapElements.length-1;h>=0;h--)d=(l=r.snapElements[h].left-r.margins.left)+r.snapElements[h].width,u=(c=r.snapElements[h].top-r.margins.top)+r.snapElements[h].height,l-g>v||m>d+g||c-g>w||b>u+g||!t.contains(r.snapElements[h].item.ownerDocument,r.snapElements[h].item)?(r.snapElements[h].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[h].item})),r.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(n=g>=Math.abs(c-w),o=g>=Math.abs(u-b),a=g>=Math.abs(l-v),s=g>=Math.abs(d-m),n&&(i.position.top=r._convertPositionTo("relative",{top:c-r.helperProportions.height,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.left=r._convertPositionTo("relative",{top:0,left:l-r.helperProportions.width}).left),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:d}).left)),p=n||o||a||s,"outer"!==f.snapMode&&(n=g>=Math.abs(c-b),o=g>=Math.abs(u-w),a=g>=Math.abs(l-m),s=g>=Math.abs(d-v),n&&(i.position.top=r._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=r._convertPositionTo("relative",{top:u-r.helperProportions.height,left:0}).top),a&&(i.position.left=r._convertPositionTo("relative",{top:0,left:l}).left),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:d-r.helperProportions.width}).left)),!r.snapElements[h].snapping&&(n||o||a||s||p)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[h].item})),r.snapElements[h].snapping=n||o||a||s||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,r){var n,o=r.options,a=t.makeArray(t(o.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));a.length&&(n=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each((function(e){t(this).css("zIndex",n+e)})),this.css("zIndex",n+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,r){var n=t(i.helper),o=r.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i,r){var n=r.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,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:{"ui-resizable-se":"ui-icon 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,i){if("hidden"===t(e).css("overflow"))return!1;var r=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[r]>0||(e[r]=1,n=e[r]>0,e[r]=0,n)},_create:function(){var e,i=this.options,r=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='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("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(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(r._removeClass("ui-resizable-autohide"),r._handles.show())})).on("mouseleave",(function(){i.disabled||r.resizing||(r._addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(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),i(this.originalElement),this},_setOption:function(t,e){"handles"===(this._super(t,e),t)&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var e,i,r,n,o,a=this.options,s=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".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"),r=this.handles.split(","),this.handles={},i=0;r.length>i;i++)n="ui-resizable-"+(e=t.trim(r[i])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var i,r,n,o;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")})),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,r,n=!1;for(i in this.handles)((r=t(this.handles[i])[0])===e.target||t.contains(r,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i,r,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),r=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,r+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:r},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:r},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,r,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,s=e.pageY-n.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,a,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,r,n,o,a,s,l,d=this.options,c=this;return this._helper&&(n=(r=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=r?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},s=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,l=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,d.animate||this.element.css(t.extend(a,{top:l,left:s})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!d.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("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,i,r,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,r=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),r>o.minHeight&&(o.minHeight=r),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_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,i=this.size,r=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===r&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===r&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,r=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,s=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,d=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),r&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&d&&(t.left=s-e.minWidth),r&&d&&(t.left=s-e.maxWidth),a&&c&&(t.top=l-e.minHeight),n&&c&&(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,i=[],r=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(r[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=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:++i.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 i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var r=this.originalSize;return{top:this.originalPosition.top+i,height:r.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,r){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,r]))},sw:function(e,i,r){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,r]))},ne:function(e,i,r){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,r]))},nw:function(e,i,r){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,r]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,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 i=t(this).resizable("instance"),r=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,s=o?0:i.sizeDiff.width,l={width:i.size.width-s,height:i.size.height-a},d=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&d?{top:c,left:d}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var r={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:r.width,height:r.height}),i._updateCache(r),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,r,n,o,a,s,l=t(this).resizable("instance"),d=l.options,c=l.element,u=d.containment,h=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;h&&(l.containerElement=t(h),/document/.test(u)||u===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(h),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,r){i[t]=l._num(e.css("padding"+r))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},r=l.containerOffset,n=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(h,"left")?h.scrollWidth:o,s=l._hasScroll(h)?h.scrollHeight:n,l.parentData={element:h,left:r.left,top:r.top,width:a,height:s}))},resize:function(e){var i,r,n,o,a=t(this).resizable("instance"),s=a.options,l=a.containerOffset,d=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},h=a.containerElement,p=!0;h[0]!==document&&/static/.test(h.css("position"))&&(u=l),d.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=s.helper?l.left:0),d.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?l.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-l.left)),r=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),r+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-r,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,r=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),s=a.offset(),l=a.outerWidth()-e.sizeDiff.width,d=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:s.left-n.left-r.left,width:l,height:d}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:s.left-n.left-r.left,width:l,height:d})}}),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("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,i){var r=t(this).resizable("instance"),n=r.options,o=r.originalSize,a=r.originalPosition,s={height:r.size.height-o.height||0,width:r.size.width-o.width||0,top:r.position.top-a.top||0,left:r.position.left-a.left||0};t(n.alsoResize).each((function(){var e=t(this),r=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var i=(r[e]||0)+(s[e]||0);i&&i>=0&&(n[e]=i||null)})),e.css(n)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"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,i=t(this).resizable("instance"),r=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,s=i.axis,l="number"==typeof r.grid?[r.grid,r.grid]:r.grid,d=l[0]||1,c=l[1]||1,u=Math.round((n.width-o.width)/d)*d,h=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+h,g=r.maxWidth&&p>r.maxWidth,m=r.maxHeight&&f>r.maxHeight,v=r.minWidth&&r.minWidth>p,b=r.minHeight&&r.minHeight>f;r.grid=l,v&&(p+=d),b&&(f+=c),g&&(p-=d),m&&(f-=c),/^(se|s|e)$/.test(s)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(s)?(i.size.width=p,i.size.height=f,i.position.top=a.top-h):/^(sw)$/.test(s)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-d)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-h):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-d>0?(i.size.width=p,i.position.left=a.left-u):(p=d-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"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 i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},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("ui-dialog-content","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 i=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(){i._trigger("close",e)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var r=!1,n=this.uiDialog.siblings(".ui-front:visible").map((function(){return+t(this).css("z-index")})).get(),o=Math.max.apply(null,n);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),r=!0),r&&!i&&this._trigger("focus",e),r},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 i(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content 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 i=this.uiDialog.find(":tabbable"),r=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==r[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay((function(){n.trigger("focus")})),e.preventDefault()):(this._delay((function(){r.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,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".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:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"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,"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(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(i,(function(i,r){var n,o;r=t.isFunction(r)?{click:r,text:i}:r,r=t.extend({type:"button"},r),n=r.click,o={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text},delete r.click,delete r.icon,delete r.iconPosition,delete r.showLabel,delete r.icons,"boolean"==typeof r.text&&delete r.text,t("<button></button>",r).button(o).appendTo(e.uiButtonSet).on("click",(function(){n.apply(e.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,n){i._addClass(t(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",r,e(n))},drag:function(t,r){i._trigger("drag",t,e(r))},stop:function(n,o){var a=o.offset.left-i.document.scrollLeft(),s=o.offset.top-i.document.scrollTop();r.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(s>=0?"+":"")+s,of:i.window},i._removeClass(t(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,r=this.options,n=r.resizable,o=this.uiDialog.css("position"),a="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:r.maxWidth,maxHeight:r.maxHeight,minWidth:r.minWidth,minHeight:this._minHeight(),handles:a,start:function(r,n){i._addClass(t(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",r,e(n))},resize:function(t,r){i._trigger("resize",t,e(r))},stop:function(n,o){var a=i.uiDialog.offset(),s=a.left-i.document.scrollLeft(),l=a.top-i.document.scrollTop();r.height=i.uiDialog.height(),r.width=i.uiDialog.width(),r.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(l>=0?"+":"")+l,of:i.window},i._removeClass(t(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,e(o))}}).css("position",o)},_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(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("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 i=this,r=!1,n={};t.each(e,(function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(r=!0),t in i.resizableRelatedOptions&&(n[t]=e)})),r&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(e,i){var r,n,o=this.uiDialog;"disabled"!==e&&(this._super(e,i),"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&&((r=o.is(":data(ui-draggable)"))&&!i&&o.draggable("destroy"),!r&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((n=o.is(":data(ui-resizable)"))&&!i&&o.resizable("destroy"),n&&"string"==typeof i&&o.resizable("option","handles",i),n||!1===i||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,r=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),r.minWidth>r.width&&(r.width=r.minWidth),t=this.uiDialog.css({height:"auto",width:r.width}).outerHeight(),e=Math.max(0,r.minHeight-t),i="number"==typeof r.maxHeight?Math.max(0,r.maxHeight-t):"none","auto"===r.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,r.height-t)),this.uiDialog.is(":data(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(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay((function(){e=!1})),this.document.data("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,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("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.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,i=this.options,r=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(r)?r:function(t){return t.is(r)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(i.scope),i.addClasses&&this._addClass("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,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var r=t.ui.ddmanager.droppables[this.options.scope];this._splice(r),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var r=i||t.ui.ddmanager.current,n=!1;return!(!r||(r.currentItem||r.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&g(r,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(n=!0,!1):void 0})),!n&&!!this.accept.call(this.element[0],r.currentItem||r.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(r)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var g=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,r,n){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,s=o+e.helperProportions.width,l=a+e.helperProportions.height,d=i.offset.left,c=i.offset.top,u=d+i.proportions().width,h=c+i.proportions().height;switch(r){case"fit":return o>=d&&u>=s&&a>=c&&h>=l;case"intersect":return o+e.helperProportions.width/2>d&&u>s-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&h>l-e.helperProportions.height/2;case"pointer":return t(n.pageY,c,i.proportions().height)&&t(n.pageX,d,i.proportions().width);case"touch":return(a>=c&&h>=a||l>=c&&h>=l||c>a&&l>h)&&(o>=d&&u>=o||s>=d&&u>=s||d>o&&s>u);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var r,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(r=0;o.length>r;r++)if(!(o[r].options.disabled||e&&!o[r].accept.call(o[r].element[0],e.currentItem||e.element))){for(n=0;s.length>n;n++)if(s[n]===o[r].element[0]){o[r].proportions().height=0;continue t}o[r].visible="none"!==o[r].element.css("display"),o[r].visible&&("mousedown"===a&&o[r]._activate.call(o[r],i),o[r].offset=o[r].element.offset(),o[r].proportions({width:o[r].element[0].offsetWidth,height:o[r].element[0].offsetHeight}))}},drop:function(e,i){var r=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&g(e,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!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,i)))})),r},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,n,o,a=g(e,this,this.options.tolerance,i),s=!a&&this.isover?"isout":a&&!this.isover?"isover":null;s&&(this.options.greedy&&(n=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===n}))).length&&((r=t(o[0]).droppable("instance")).greedyChild="isover"===s)),r&&"isover"===s&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,i),r&&"isout"===s&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}}))},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},!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.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"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("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","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,"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,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("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,"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.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("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,"ui-selectee"),e.selectees.each((function(){var i=t(this),r=i.offset(),n={left:r.left-e.elementPos.left,top:r.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bottom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,r=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(r.filter,this.element[0]),this._trigger("start",e),t(r.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var r=t.data(this,"selectable-item");r.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(r.$element,"ui-selected"),r.selected=!1,i._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",e,{unselecting:r.element}))})),t(e.target).parents().addBack().each((function(){var r,n=t.data(this,"selectable-item");return n?(r=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected"),i._removeClass(n.$element,r?"ui-unselecting":"ui-selected")._addClass(n.$element,r?"ui-selecting":"ui-unselecting"),n.unselecting=!r,n.selecting=r,n.selected=r,r?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):void 0})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,r=this,n=this.options,o=this.opos[0],a=this.opos[1],s=e.pageX,l=e.pageY;return o>s&&(i=s,s=o,o=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:o,top:a,width:s-o,height:l-a}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),d=!1,c={};i&&i.element!==r.element[0]&&(c.left=i.left+r.elementPos.left,c.right=i.right+r.elementPos.left,c.top=i.top+r.elementPos.top,c.bottom=i.bottom+r.elementPos.top,"touch"===n.tolerance?d=!(c.left>s||o>c.right||c.top>l||a>c.bottom):"fit"===n.tolerance&&(d=c.left>o&&s>c.right&&c.top>a&&l>c.bottom),d?(i.selected&&(r._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(r._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(r._addClass(i.$element,"ui-selecting"),i.selecting=!0,r._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(r._removeClass(i.$element,"ui-selecting"),i.selecting=!1,r._addClass(i.$element,"ui-selected"),i.selected=!0):(r._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(r._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),r._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(r._removeClass(i.$element,"ui-selected"),i.selected=!1,r._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,r._trigger("unselecting",e,{unselecting:i.element})))))})),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each((function(){var r=t.data(this,"selectable-item");i._removeClass(r.$element,"ui-unselecting"),r.unselecting=!1,r.startselected=!1,i._trigger("unselected",e,{unselected:r.element})})),t(".ui-selecting",this.element[0]).each((function(){var r=t.data(this,"selectable-item");i._removeClass(r.$element,"ui-selecting")._addClass(r.$element,"ui-selected"),r.selecting=!1,r.selected=!0,r.startselected=!0,i._trigger("selected",e,{selected:r.element})})),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"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,i=this,r=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,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(r).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){i._rendered||i._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,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var r=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&r.index!==e.focusIndex&&(e._trigger("focus",t,{item:r}),e.isOpen||e._select(r,t)),e.focusIndex=r.index,e.button.attr("aria-activedescendant",e.menuItems.eq(r.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("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(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"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 i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var r=this,n="";t.each(i,(function(i,o){var a;o.optgroup!==n&&(a=t("<li>",{text:o.optgroup}),r._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(e),n=o.optgroup),r._renderItemData(e,o)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var r=t("<li>"),n=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(r,null,"ui-state-disabled"),this._setText(n,i.label),r.append(n).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,r,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),(r="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0)).length&&this.menuInstance.focus(e,r)},_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(".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 i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!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),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=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!==i&&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 i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,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,"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(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"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 i=this,r=[];e.each((function(e,n){r.push(i._parseOption(t(n),e))})),this.items=r},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.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:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all 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("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,r=this.options,n=this.element.find(".ui-slider-handle"),o=[];for(i=r.values&&r.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)o.push("<span tabindex='0'></span>");this.handles=n.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("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,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"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 i,r,n,o,a,s,l,d=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var i=Math.abs(r-d.values(e));(n>i||n===i&&(e===d._lastChangedValue||d.values(e)===c.min))&&(n=i,o=t(this),a=e)})),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"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,i,r,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=i/e)>1&&(r=1),0>r&&(r=0),"vertical"===this.orientation&&(r=1-r),n=this._valueMax()-this._valueMin(),o=this._valueMin()+r*n,this._trimAlignValue(o)},_uiHash:function(t,e,i){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=i||this.values()),r},_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,i){var r,n=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(r,i):Math.max(r,i)),o[e]=i),i!==n&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_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,i){var r,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),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(r=this.options.values,n=arguments[0],o=0;r.length>o;o+=1)r[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var r,n=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"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(),r=n-1;r>=0;r--)this._change(null,r);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,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,r;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),r=0;i.length>r;r+=1)i[r]=this._trimAlignValue(i[r]);return i}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,i=(t-this._valueMin())%e,r=t-i;return 2*Math.abs(i)>=e&&(r+=i>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),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,i=e.indexOf(".");return-1===i?0:e.length-i-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,i,r,n,o,a=this.options.range,s=this.options,l=this,d=!this._animateOff&&s.animate,c={};this._hasMultipleValues()?this.handles.each((function(r){i=(l.values(r)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[d?"animate":"css"](c,s.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===r&&l.range.stop(1,1)[d?"animate":"css"]({left:i+"%"},s.animate),1===r&&l.range[d?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:s.animate})):(0===r&&l.range.stop(1,1)[d?"animate":"css"]({bottom:i+"%"},s.animate),1===r&&l.range[d?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:s.animate}))),e=i})):(r=this.value(),n=this._valueMin(),o=this._valueMax(),i=o!==n?(r-n)/(o-n)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[d?"animate":"css"](c,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[d?"animate":"css"]({width:i+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[d?"animate":"css"]({width:100-i+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[d?"animate":"css"]({height:i+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[d?"animate":"css"]({height:100-i+"%"},s.animate))},_handleEvents:{keydown:function(e){var i,r,n,o=t(e.target).data("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,"ui-state-active"),!1===this._start(e,o)))return}switch(n=this.options.step,i=r=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;r=this._trimAlignValue(i+n);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;r=this._trimAlignValue(i-n)}this._slide(e,o,r)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),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,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("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(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"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,i){var r=null,n=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){return t.data(this,o.widgetName+"-item")===o?(r=t(this),!1):void 0})),t.data(e.target,o.widgetName+"-item")===o&&(r=t(e.target)),!r||this.options.handle&&!i&&(t(this.options.handle,r).find("*").addBack().each((function(){this===e.target&&(n=!0)})),!n)||(this.currentItem=r,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,r){var n,o,a=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,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.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(),!r)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,r,n,o,a=this.options,s=!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<a.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==s&&t.ui.ddmanager&&!a.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"),i=this.items.length-1;i>=0;i--)if(n=(r=this.items[i]).item[0],(o=this._intersectsWithPointer(r))&&r.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],n))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(e,r),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,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var r=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.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(a,parseInt(this.options.revert,10)||500,(function(){r._clear(e)}))}else this._clear(e,i);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,"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 i=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&r.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!r.length&&e.key&&r.push(e.key+"="),r.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},i.each((function(){r.push(t(e.item||this).attr(e.attribute||"id")||"")})),r},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,r=this.positionAbs.top,n=r+this.helperProportions.height,o=t.left,a=o+t.width,s=t.top,l=s+t.height,d=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||r+d>s&&l>r+d,h="y"===this.options.axis||e+c>o&&a>e+c,p=u&&h;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>o&&a>i-this.helperProportions.width/2&&r+this.helperProportions.height/2>s&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,r="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!r||!n)&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"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),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:r&&("down"===r&&e||"up"===r&&!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 i(){s.push(this)}var r,n,o,a,s=[],l=[],d=this._connectWith();if(d&&e)for(r=d.length-1;r>=0;r--)for(n=(o=t(d[r],this.document[0])).length-1;n>=0;n--)(a=t.data(o[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&l.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);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(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=l.length-1;r>=0;r--)l[r][0].each(i);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,r,n,o,a,s,l,d,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(r=(n=t(h[i],this.document[0])).length-1;r>=0;r--)(o=t.data(n[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],r=0,d=(s=u[i][0]).length;d>r;r++)(l=t(s[r])).data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,r,n,o;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()),i=this.items.length-1;i>=0;i--)(r=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,r.item):r.item,e||(r.width=n.outerWidth(),r.height=n.outerHeight()),o=n.offset(),r.left=o.left,r.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(i=r.placeholder,r.placeholder={element:function(){var r=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+r+">",e.document[0]);return e._addClass(n,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),"tbody"===r?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(n)):"tr"===r?e._createTrPlaceholder(e.currentItem,n):"img"===r&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||r.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var r=this;e.children().each((function(){t("<td> </td>",r.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,r,n,o,a,s,l,d,c,u,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)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(n=1e4,o=null,a=(c=h.floating||this._isFloating(this.currentItem))?"left":"top",s=c?"width":"height",u=c?"pageX":"pageY",r=this.items.length-1;r>=0;r--)t.contains(this.containers[p].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(l=this.items[r].item.offset()[a],d=!1,e[u]-l>this.items[r][s]/2&&(d=!0),n>Math.abs(e[u]-l)&&(n=Math.abs(e[u]-l),o=this.items[r],this.direction=d?"up":"down"));if(!o&&!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));o?this._rearrange(e,o,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 i=this.options,r=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return r.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(r[0]),r[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")}),(!r[0].style.width||i.forceHelperSize)&&r.width(this.currentItem.width()),(!r[0].style.height||i.forceHelperSize)&&r.height(this.currentItem.height()),r},_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,i,r,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.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(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),r="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(r?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,i.top+(r?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,i){i||(i=this.position);var r="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*r}},_generatePosition:function(e){var i,r,n=this.options,o=e.pageX,a=e.pageY,s="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(s[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]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,r=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-n.grid[0]:r+n.grid[0]:r)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(t,e,i,r){i?i[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 n=this.counter;this._delay((function(){n===this.counter&&this.refreshPositions(!r)}))},_clear:function(t,e){function i(t,e,i){return function(r){i._trigger(t,r,e._uiHash(e))}}this.reverting=!1;var r,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(r in this._storedCSS)("auto"===this._storedCSS[r]||"static"===this._storedCSS[r])&&(this._storedCSS[r]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),r=this.containers.length-1;r>=0;r--)e||n.push(i("deactivate",this,this.containers[r])),this.containers[r].containerCache.over&&(n.push(i("out",this,this.containers[r])),this.containers[r].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(r=0;n.length>r;r++)n[r].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 i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"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(),i=this.element;return t.each(["min","max","step"],(function(t,r){var n=i.attr(r);null!=n&&n.length&&(e[r]=n)})),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 .ui-spinner-button":function(e){function i(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=r,this._delay((function(){this.previous=r})))}var r;r=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,i.call(this)})),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .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,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button 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 i=this.options,r=t.ui.keyCode;switch(e.keyCode){case r.UP:return this._repeat(null,1,e),!0;case r.DOWN:return this._repeat(null,-1,e),!0;case r.PAGE_UP:return this._repeat(null,i.page,e),!0;case r.PAGE_DOWN:return this._repeat(null,-i.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,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,e,i)}),t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(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,i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,r=this.options;return i=t-(e=null!==r.min?r.min:0),t=e+(i=Math.round(i/r.step)*r.step),t=parseFloat(t.toFixed(this._precision())),null!==r.max&&t>r.max?r.max:null!==r.min&&r.min>t?r.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 i,r,n;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i))):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(r=this.buttons.first().find(".ui-icon"),this._removeClass(r,null,this.options.icons.up),this._addClass(r,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:o((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 i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),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:o((function(t){this._stepUp(t)})),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:o((function(t){this._stepDown(t)})),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:o((function(t){this._stepUp((t||1)*this.options.page)})),pageDown:o((function(t){this._stepDown((t||1)*this.options.page)})),value:function(t){return arguments.length?void o(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:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"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 i,r;i=e.href.replace(t,""),r=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(t){}try{r=decodeURIComponent(r)}catch(t){}return e.hash.length>1&&i===r}}(),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),(function(t){return e.tabs.index(t)})))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return null===e&&(r&&this.tabs.each((function(i,n){return t(n).attr("aria-controls")===r?(e=i,!1):void 0})),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!i&&0),!i&&!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 i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),r=this.tabs.index(i),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:r++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:n=!1,r--;break;case t.ui.keyCode.END:r=this.anchors.length-1;break;case t.ui.keyCode.HOME:r=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(r);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(r!==this.options.active&&r);default:return}e.preventDefault(),clearTimeout(this.activating),r=this._focusNextTab(r,n),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",r)}),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,i){for(var r=this.tabs.length-1;-1!==t.inArray((e>r&&(e=0),0>e&&(e=r),e),this.options.disabled);)e=i?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("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,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),(function(t){return i.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,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,r=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",(function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()})).on("focus"+this.eventNamespace,".ui-tabs-anchor",(function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map((function(){return t("a",this)[0]})).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each((function(i,r){var n,o,a,s=t(r).uniqueId().attr("id"),l=t(r).closest("li"),d=l.attr("aria-controls");e._isLocal(r)?(a=(n=r.hash).substring(1),o=e.element.find(e._sanitizeSelector(n))):(n="#"+(a=l.attr("aria-controls")||t({}).uniqueId()[0].id),(o=e.element.find(n)).length||(o=e._createPanel(a)).insertAfter(e.panels[i-1]||e.tablist),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),d&&l.data("ui-tabs-aria-controls",d),l.attr({"aria-controls":a,"aria-labelledby":s}),o.attr("aria-labelledby",s)})),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(r.not(this.anchors)),this._off(n.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("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,r,n;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;r=this.tabs[n];n++)i=t(r),!0===e||-1!==t.inArray(n,e)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),(function(t,e){i[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,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,r=this.element.parent();"fill"===e?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var e=t(this),r=e.css("position");"absolute"!==r&&"fixed"!==r&&(i-=e.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){i-=t(this).outerHeight(!0)})),this.panels.each((function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each((function(){i=Math.max(i,t(this).height("").height())})).height(i))},_eventHandler:function(e){var i=this.options,r=this.active,n=t(e.currentTarget).closest("li"),o=n[0]===r[0],a=o&&i.collapsible,s=a?t():this._getPanelForTab(n),l=r.length?this._getPanelForTab(r):t(),d={oldTab:r,oldPanel:l,newTab:a?t():n,newPanel:s};e.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||!1===this._trigger("beforeActivate",e,d)||(i.active=!a&&this.tabs.index(n),this.active=o?t():n,this.xhr&&this.xhr.abort(),l.length||s.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),s.length&&this.load(this.tabs.index(n),e),this._toggle(e,d))},_toggle:function(e,i){function r(){o.running=!1,o._trigger("activate",e,i)}function n(){o._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,r):(a.show(),r())}var o=this,a=i.newPanel,s=i.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,(function(){o._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n()})):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),n()),s.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter((function(){return 0===t(this).attr("tabIndex")})).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,r=this._findActive(e);r[0]!==this.active[0]&&(r.length||(r=this.active),i=r.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,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,"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),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;!1!==i&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,(function(t){return t!==e?t:null})):t.map(this.tabs,(function(t,i){return i!==e?i:null}))),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(!0!==i){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var r=this,n=this.tabs.eq(e),o=n.find(".ui-tabs-anchor"),a=this._getPanelForTab(n),s={tab:n,panel:a},l=function(t,e){"abort"===e&&r.panels.stop(!1,!0),r._removeClass(n,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===r.xhr&&delete r.xhr};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done((function(t,e,n){setTimeout((function(){a.html(t),r._trigger("load",i,s),l(n,e)}),1)})).fail((function(t,e){setTimeout((function(){l(t,e)}),1)}))))},_ajaxSettings:function(e,i,r){var n=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,o){return n._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},r))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==t.uiBackCompat&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all 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,i){var r=(e.attr("aria-describedby")||"").split(/\s+/);r.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(r.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),r=(e.attr("aria-describedby")||"").split(/\s+/),n=t.inArray(i,r);-1!==n&&r.splice(n,1),e.removeData("ui-tooltip-id"),(r=t.trim(r.join(" ")))?e.attr("aria-describedby",r):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,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var r=this;this._super(e,i),"content"===e&&t.each(this.tooltips,(function(t,e){r._updateContent(e.element)}))},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,(function(i,r){var n=t.Event("blur");n.target=n.currentTarget=r.element[0],e.close(n,!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("ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0})))},_enable:function(){this.disabledTitles.each((function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})),this.disabledTitles=t([])},open:function(e){var i=this,r=t(e?e.target:this.element).closest(this.options.items);r.length&&!r.data("ui-tooltip-id")&&(r.attr("title")&&r.data("ui-tooltip-title",r.attr("title")),r.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&r.parents().each((function(){var e,r=t(this);r.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),r.attr("title")&&(r.uniqueId(),i.parents[this.id]={element:this,title:r.attr("title")},r.attr("title",""))})),this._registerCloseHandlers(e,r),this._updateContent(r,e))},_updateContent:function(t,e){var i,r=this.options.content,n=this,o=e?e.type:null;return"string"==typeof r||r.nodeType||r.jquery?this._open(e,t,r):void((i=r.call(t[0],(function(i){n._delay((function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,i))}))})))&&this._open(e,t,i))},_open:function(e,i,r){function n(t){d.of=t,a.is(":hidden")||a.position(d)}var o,a,s,l,d=t.extend({},this.options.position);if(r){if(o=this._find(i))return void o.tooltip.find(".ui-tooltip-content").html(r);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),a=o.tooltip,this._addDescribedBy(i,a.attr("id")),a.find(".ui-tooltip-content").html(r),this.liveRegion.children().hide(),(l=t("<div>").html(a.find(".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:n}),n(e)):a.position(t.extend({of:i},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval((function(){a.is(":visible")&&(n(d.of),clearInterval(s))}),t.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerCloseHandlers:function(e,i){var r={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var r=t.Event(e);r.currentTarget=i[0],this.close(r,!0)}}};i[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(r.mouseleave="close"),e&&"focusin"!==e.type||(r.focusout="close"),this._on(!0,i,r)},close:function(e){var i,r=this,n=t(e?e.currentTarget:this.element),o=this._find(n);return o?(i=o.tooltip,void(o.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,(function(){r._removeTooltip(t(this))})),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,(function(e,i){t(i.element).attr("title",i.title),delete r.parents[e]})),o.closing=!0,this._trigger("close",e,{tooltip:i}),o.hiding||(o.closing=!1)))):void n.removeData("ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),r=t("<div>").appendTo(i),n=i.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[n]={element:e,tooltip:i}},_find:function(t){var e=t.data("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(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,(function(i,r){var n=t.Event("blur"),o=r.element;n.target=n.currentTarget=o[0],e.close(n,!0),t("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("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})?r.apply(e,n):r)||(t.exports=o)},514:function(t,e,i){var r;(function(){var n,o,a,s,l,d,c,u,h,p,f,g,m,v,b,w,y,x,_,C,A,j,k,D,q,I,S,$,F,O,R,E,N,T,M,z,P,B,G,H,L,W,V,Y,U,Q,X,K,J,Z=[].slice,tt={}.hasOwnProperty,et=function(t,e){for(var i in e)tt.call(e,i)&&(t[i]=e[i]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},it=[].indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1},rt=function(t,e){return function(){return t.apply(e,arguments)}};for(j={className:"",catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},O=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},E=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,A=window.cancelAnimationFrame||window.mozCancelAnimationFrame,w=function(t,e,i){return"function"==typeof t.addEventListener?t.addEventListener(e,i,!1):function(){if("function"!=typeof t["on"+e]||"object"!=typeof t["on"+e].eventListeners){var r=new u;"function"==typeof t["on"+e]&&r.on(e,t["on"+e]),t["on"+e]=function(t){return r.trigger(e,t)},t["on"+e].eventListeners=r}else r=t["on"+e].eventListeners;r.on(e,i)}()},null==E&&(E=function(t){return setTimeout(t,50)},A=function(t){return clearTimeout(t)}),T=function(t){var e,i;return e=O(),(i=function(){var r;return(r=O()-e)>=33?(e=O(),t(r,(function(){return E(i)}))):setTimeout(i,33-r)})()},N=function(){var t,e,i;return i=arguments[0],e=arguments[1],t=3<=arguments.length?Z.call(arguments,2):[],"function"==typeof i[e]?i[e].apply(i,t):i[e]},k=function(){var t,e,i,r,n,o,a;for(e=arguments[0],o=0,a=(r=2<=arguments.length?Z.call(arguments,1):[]).length;o<a;o++)if(i=r[o])for(t in i)tt.call(i,t)&&(n=i[t],null!=e[t]&&"object"==typeof e[t]&&null!=n&&"object"==typeof n?k(e[t],n):e[t]=n);return e},x=function(t){var e,i,r,n,o;for(i=e=0,n=0,o=t.length;n<o;n++)r=t[n],i+=Math.abs(r),e++;return i/e},q=function(t,e){var i,r,n;if(null==t&&(t="options"),null==e&&(e=!0),n=document.querySelector("[data-pace-"+t+"]")){if(i=n.getAttribute("data-pace-"+t),!e)return i;try{return JSON.parse(i)}catch(t){return r=t,"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",r):void 0}}},c=function(){function t(){}return t.prototype.on=function(t,e,i,r){var n;return null==r&&(r=!1),null==this.bindings&&(this.bindings={}),null==(n=this.bindings)[t]&&(n[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:r})},t.prototype.once=function(t,e,i){return this.on(t,e,i,!0)},t.prototype.off=function(t,e){var i,r,n;if(null!=(null!=(r=this.bindings)?r[t]:void 0)){if(null==e)return delete this.bindings[t];for(i=0,n=[];i<this.bindings[t].length;)this.bindings[t][i].handler===e?n.push(this.bindings[t].splice(i,1)):n.push(i++);return n}},t.prototype.trigger=function(){var t,e,i,r,n,o,a,s,l;if(i=arguments[0],t=2<=arguments.length?Z.call(arguments,1):[],null!=(a=this.bindings)?a[i]:void 0){for(n=0,l=[];n<this.bindings[i].length;)r=(s=this.bindings[i][n]).handler,e=s.ctx,o=s.once,r.apply(null!=e?e:this,t),o?l.push(this.bindings[i].splice(n,1)):l.push(n++);return l}},t}(),p=window.Pace||{},window.Pace=p,k(p,c.prototype),R=p.options=k({},j,window.paceOptions,q()),Y=0,Q=(K=["ajax","document","eventLag","elements"]).length;Y<Q;Y++)!0===R[B=K[Y]]&&(R[B]=j[B]);h=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return et(e,t),e}(Error),o=function(){function t(){this.progress=0}return t.prototype.getElement=function(){var t;if(null==this.el){if(!(t=document.querySelector(R.target)))throw new h;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/(pace-done )|/,"pace-running ");var e=""!==R.className?" "+R.className:"";this.el.innerHTML='<div class="pace-progress'+e+'">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=t.firstChild?t.insertBefore(this.el,t.firstChild):t.appendChild(this.el)}return this.el},t.prototype.finish=function(){var t;return(t=this.getElement()).className=t.className.replace("pace-active","pace-inactive"),document.body.className=document.body.className.replace("pace-running ","pace-done ")},t.prototype.update=function(t){return this.progress=t,p.trigger("progress",t),this.render()},t.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(t){h=t}return this.el=void 0},t.prototype.render=function(){var t,e,i,r,n,o,a;if(null==document.querySelector(R.target))return!1;for(t=this.getElement(),r="translate3d("+this.progress+"%, 0, 0)",n=0,o=(a=["webkitTransform","msTransform","transform"]).length;n<o;n++)e=a[n],t.children[0].style[e]=r;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(t.children[0].setAttribute("data-progress-text",(0|this.progress)+"%"),this.progress>=100?i="99":(i=this.progress<10?"0":"",i+=0|this.progress),t.children[0].setAttribute("data-progress",""+i)),p.trigger("change",this.progress),this.lastRenderedProgress=this.progress},t.prototype.done=function(){return this.progress>=100},t}(),u=function(){function t(){this.bindings={}}return t.prototype.trigger=function(t,e){var i,r,n,o,a;if(null!=this.bindings[t]){for(a=[],r=0,n=(o=this.bindings[t]).length;r<n;r++)i=o[r],a.push(i.call(this,e));return a}},t.prototype.on=function(t,e){var i;return null==(i=this.bindings)[t]&&(i[t]=[]),this.bindings[t].push(e)},t}(),V=window.XMLHttpRequest,W=window.XDomainRequest,L=window.WebSocket,D=function(t,e){var i,r;for(i in r=[],e.prototype)try{null==t[i]&&"function"!=typeof e[i]?"function"==typeof Object.defineProperty?r.push(Object.defineProperty(t,i,{get:function(t){return function(){return e.prototype[t]}}(i),configurable:!0,enumerable:!0})):r.push(t[i]=e.prototype[i]):r.push(void 0)}catch(t){}return r},$=[],p.ignore=function(){var t,e,i;return e=arguments[0],t=2<=arguments.length?Z.call(arguments,1):[],$.unshift("ignore"),i=e.apply(null,t),$.shift(),i},p.track=function(){var t,e,i;return e=arguments[0],t=2<=arguments.length?Z.call(arguments,1):[],$.unshift("track"),i=e.apply(null,t),$.shift(),i},P=function(t){var e;if(null==t&&(t="GET"),"track"===$[0])return"force";if(!$.length&&R.ajax){if("socket"===t&&R.ajax.trackWebSockets)return!0;if(e=t.toUpperCase(),it.call(R.ajax.trackMethods,e)>=0)return!0}return!1},f=function(t){function e(){var t,i=this;e.__super__.constructor.apply(this,arguments),t=function(t){var e;return e=t.open,t.open=function(r,n,o){return P(r)&&i.trigger("request",{type:r,url:n,request:t}),e.apply(t,arguments)}},window.XMLHttpRequest=function(e){var i;return i=new V(e),t(i),i};try{D(window.XMLHttpRequest,V)}catch(t){}if(null!=W){window.XDomainRequest=function(){var e;return e=new W,t(e),e};try{D(window.XDomainRequest,W)}catch(t){}}if(null!=L&&R.ajax.trackWebSockets){window.WebSocket=function(t,e){var r;return r=null!=e?new L(t,e):new L(t),P("socket")&&i.trigger("request",{type:"socket",url:t,protocols:e,request:r}),r};try{D(window.WebSocket,L)}catch(t){}}}return et(e,t),e}(u),U=null,z=function(t){var e,i,r,n;for(i=0,r=(n=R.ajax.ignoreURLs).length;i<r;i++)if("string"==typeof(e=n[i])){if(-1!==t.indexOf(e))return!0}else if(e.test(t))return!0;return!1},(I=function(){return null==U&&(U=new f),U})().on("request",(function(t){var e,i,r,o,a;if(o=t.type,r=t.request,a=t.url,!z(a))return p.running||!1===R.restartOnRequestAfter&&"force"!==P(o)?void 0:(i=arguments,"boolean"==typeof(e=R.restartOnRequestAfter||0)&&(e=0),setTimeout((function(){var t,e,a,s,l;if("socket"===o?r.readyState<1:0<(a=r.readyState)&&a<4){for(p.restart(),l=[],t=0,e=(s=p.sources).length;t<e;t++){if((B=s[t])instanceof n){B.watch.apply(B,i);break}l.push(void 0)}return l}}),e))})),n=function(){function t(){this.complete=rt(this.complete,this);var t=this;this.elements=[],I().on("request",(function(){return t.watch.apply(t,arguments)}))}return t.prototype.watch=function(t){var e,i,r,n;if(r=t.type,e=t.request,n=t.url,!z(n))return i="socket"===r?new v(e,this.complete):new b(e,this.complete),this.elements.push(i)},t.prototype.complete=function(t){return this.elements=this.elements.filter((function(e){return e!==t}))},t}(),b=function(t,e){var i,r,n,o,a=this;if(this.progress=0,null!=window.ProgressEvent)for(w(t,"progress",(function(t){return t.lengthComputable?a.progress=100*t.loaded/t.total:a.progress=a.progress+(100-a.progress)/2})),i=0,r=(o=["load","abort","timeout","error"]).length;i<r;i++)w(t,o[i],(function(){return e(a),a.progress=100}));else n=t.onreadystatechange,t.onreadystatechange=function(){var i;return 0===(i=t.readyState)||4===i?(e(a),a.progress=100):3===t.readyState&&(a.progress=50),"function"==typeof n?n.apply(null,arguments):void 0}},v=function(t,e){var i,r,n,o=this;for(this.progress=0,i=0,r=(n=["error","open"]).length;i<r;i++)w(t,n[i],(function(){return e(o),o.progress=100}))},s=function(){function t(t){var e,i,r,n;for(null==t&&(t={}),this.complete=rt(this.complete,this),this.elements=[],null==t.selectors&&(t.selectors=[]),i=0,r=(n=t.selectors).length;i<r;i++)e=n[i],this.elements.push(new l(e,this.complete))}return t.prototype.complete=function(t){return this.elements=this.elements.filter((function(e){return e!==t}))},t}(),l=function(){function t(t,e){this.selector=t,this.completeCallback=e,this.progress=0,this.check()}return t.prototype.check=function(){var t=this;return document.querySelector(this.selector)?this.done():setTimeout((function(){return t.check()}),R.elements.checkInterval)},t.prototype.done=function(){return this.completeCallback(this),this.completeCallback=null,this.progress=100},t}(),a=function(){function t(){var t,e,i=this;this.progress=null!=(e=this.states[document.readyState])?e:100,t=document.onreadystatechange,document.onreadystatechange=function(){return null!=i.states[document.readyState]&&(i.progress=i.states[document.readyState]),"function"==typeof t?t.apply(null,arguments):void 0}}return t.prototype.states={loading:0,interactive:50,complete:100},t}(),d=function(){var t,e,i,r,n,o=this;this.progress=0,t=0,n=[],r=0,i=O(),e=setInterval((function(){var a;return a=O()-i-50,i=O(),n.push(a),n.length>R.eventLag.sampleCount&&n.shift(),t=x(n),++r>=R.eventLag.minSamples&&t<R.eventLag.lagThreshold?(o.progress=100,clearInterval(e)):o.progress=3/(t+3)*100}),50)},m=function(){function t(t){this.source=t,this.last=this.sinceLastUpdate=0,this.rate=R.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=N(this.source,"progress"))}return t.prototype.tick=function(t,e){var i;return null==e&&(e=N(this.source,"progress")),e>=100&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/R.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),i=1-Math.pow(this.progress/100,R.easeFactor),this.progress+=i*this.rate*t,this.progress=Math.min(this.lastProgress+R.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},t}(),G=null,M=null,_=null,H=null,y=null,C=null,p.running=!1,S=function(){if(R.restartOnPushState)return p.restart()},null!=window.history.pushState&&(X=window.history.pushState,window.history.pushState=function(){return S(),X.apply(window.history,arguments)}),null!=window.history.replaceState&&(J=window.history.replaceState,window.history.replaceState=function(){return S(),J.apply(window.history,arguments)}),g={ajax:n,elements:s,document:a,eventLag:d},(F=function(){var t,e,i,r,n,a,s,l;for(p.sources=G=[],e=0,r=(a=["ajax","elements","document","eventLag"]).length;e<r;e++)!1!==R[t=a[e]]&&G.push(new g[t](R[t]));for(i=0,n=(l=null!=(s=R.extraSources)?s:[]).length;i<n;i++)B=l[i],G.push(new B(R));return p.bar=_=new o,M=[],H=new m})(),p.stop=function(){return p.trigger("stop"),p.running=!1,_.destroy(),C=!0,null!=y&&("function"==typeof A&&A(y),y=null),F()},p.restart=function(){return p.trigger("restart"),p.stop(),p.start()},p.go=function(){var t;return p.running=!0,_.render(),t=O(),C=!1,y=T((function(e,i){var r,n,o,a,s,l,d,c,u,h,f,g,v,b,w;for(_.progress,n=h=0,o=!0,l=f=0,v=G.length;f<v;l=++f)for(B=G[l],u=null!=M[l]?M[l]:M[l]=[],d=g=0,b=(s=null!=(w=B.elements)?w:[B]).length;g<b;d=++g)a=s[d],o&=(c=null!=u[d]?u[d]:u[d]=new m(a)).done,c.done||(n++,h+=c.tick(e));return r=h/n,_.update(H.tick(e,r)),_.done()||o||C?(_.update(100),p.trigger("done"),setTimeout((function(){return _.finish(),p.running=!1,p.trigger("hide")}),Math.max(R.ghostTime,Math.max(R.minTime-(O()-t),0)))):i()}))},p.start=function(t){k(R,t),p.running=!0;try{_.render()}catch(t){h=t}return document.querySelector(".pace")?(p.trigger("start"),p.go()):setTimeout(p.start,50)},void 0===(r=function(){return p}.call(e,i,e,t))||(t.exports=r)}).call(this)},547:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var r=i(39),n=i.n(r),o=i(499),a=i.n(o)()(n());a.push([t.id,'/*!\r\n * jqGrid 4.15.5-pre - free jqGrid: https://github.com/free-jqgrid/jqGrid\r\n * Date: 2018-08-12\r\n */\r\n\r\n/* Grid */\r\n.ui-jqgrid {\r\n\tposition: relative;\r\n\t-moz-box-sizing: content-box;\r\n\t-webkit-box-sizing: content-box;\r\n\tbox-sizing: content-box;\r\n\t-ms-touch-action: none;\r\n\ttouch-action: manipulation;\r\n}\r\n\r\n.ui-jqgrid div {\r\n\tline-height: normal;\r\n}\r\n\r\n.ui-jqgrid table {\r\n\tborder-collapse: separate;\r\n\tborder-spacing: 0;\r\n\tborder-width: 0;\r\n\tborder-style: none;\r\n}\r\n\r\n.ui-jqgrid table td {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-jqgrid > .ui-jqgrid-view {\r\n\tposition: relative;\r\n\t-moz-box-sizing: border-box;\r\n\t-webkit-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tpadding: 0;\r\n\tfont-size: 11px;\r\n}\r\n\r\n.ui-jqgrid > .ui-jqgrid-view *,\r\n.ui-jqgrid > .ui-jqgrid-view *::before,\r\n.ui-jqgrid > .ui-jqgrid-view *::after {\r\n\t-webkit-box-sizing: inherit;\r\n\t-moz-box-sizing: inherit;\r\n\tbox-sizing: inherit;\r\n}\r\n\r\n/* Caption of grid and title of ui-jqdialog */\r\n.ui-jqgrid .ui-jqgrid-titlebar,\r\n.ui-jqgrid .ui-jqgrid-errorbar,\r\n.ui-jqdialog .ui-jqdialog-titlebar {\r\n\tpadding: 0.3em 0.3em 0.3em 0.3em;\r\n\tposition: relative;\r\n\tfont-size: 12px;\r\n\tborder-left: 0 none;\r\n\tborder-right: 0 none;\r\n\tborder-top: 0 none;\r\n}\r\n\r\n.ui-jqgrid-errorbar {\r\n\tmax-height: 100px;\r\n\tmargin-bottom: 0;\r\n\toverflow: auto;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-caption,\r\n.ui-jqgrid .ui-jqgrid-errorbar-ltr {\r\n\ttext-align: left;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-caption-rtl,\r\n.ui-jqgrid .ui-jqgrid-errorbar-rtl {\r\n\ttext-align: right;\r\n}\r\n\r\n/* Close/Hide button */\r\n.ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close,\r\n.ui-jqdialog-titlebar > .ui-jqdialog-titlebar-close {\r\n\tvertical-align: middle;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tposition: absolute;\r\n\ttop: 50%;\r\n\twidth: 1.4em;\r\n\tline-height: 1.5em;\r\n\tfont-size: 12px;\r\n\tmargin: -0.7em 0 0 0;\r\n\tpadding: 0.2em;\r\n\tborder: 1px solid transparent;\r\n\theight: 1.4em;\r\n\tcursor: pointer;\r\n\t-webkit-box-sizing: border-box;\r\n\t-moz-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n\t-ms-touch-action: manipulation;\r\n\ttouch-action: manipulation;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui .ui-jqdialog-titlebar > .ui-jqdialog-titlebar-close {\r\n\tmargin: -8px 0 0 0;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-caption .ui-jqgrid-titlebar-close {\r\n\tright: 0.1em;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-caption-rtl .ui-jqgrid-titlebar-close {\r\n\tleft: 0.1em;\r\n}\r\n\r\n.ui-jqdialog .ui-jqdialog-titlebar-ltr .ui-jqdialog-titlebar-close {\r\n\tright: 0.3em;\r\n}\r\n\r\n.ui-jqdialog .ui-jqdialog-titlebar-rtl .ui-jqdialog-titlebar-close {\r\n\tleft: 0.3em;\r\n}\r\n\r\n.ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close,\r\n.ui-jqdialog-titlebar > .ui-jqdialog-titlebar-close {\r\n\t-ms-border-radius: 0.5em;\r\n\tborder-radius: 0.5em;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-caption .ui-jqgrid-title,\r\n.ui-jqgrid .ui-jqgrid-errorbar-ltr .ui-jqgrid-error,\r\n.ui-jqdialog .ui-jqdialog-titlebar-ltr .ui-jqdialog-title {\r\n\tposition: relative;\r\n\tleft: 0.1em;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-caption-rtl .ui-jqgrid-title,\r\n.ui-jqgrid .ui-jqgrid-errorbar-rtl .ui-jqgrid-error,\r\n.ui-jqdialog .ui-jqdialog-titlebar-rtl .ui-jqdialog-title {\r\n\tposition: relative;\r\n\tright: 0.1em;\r\n}\r\n\r\n.ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close span {\r\n\tmargin-top: 0;\r\n\tmargin-left: 0;\r\n}\r\n\r\n.ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close span,\r\n.ui-jqdialog-titlebar > .ui-jqdialog-titlebar-close span {\r\n\tdisplay: block;\r\n}\r\n\r\n.ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close span.ui-icon,\r\n.ui-jqdialog-titlebar > .ui-jqdialog-titlebar-close span.ui-icon {\r\n\tposition: relative;\r\n\ttop: -2px;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-caption .ui-jqgrid-titlebar-close span.ui-icon,\r\n.ui-jqdialog-titlebar-ltr .ui-jqdialog-titlebar-close span.ui-icon {\r\n\tright: 3.5px;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close > span.ui-icon {\r\n\tmargin-top: -1px;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close > span.fa,\r\n.ui-jqgrid .ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close > span.fa,\r\n.ui-jqgrid .ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close > span.glyphicon {\r\n\t/* the values below are based on the difference between the\r\n\t\tfont-size of fa-icon and the font size of the parent element */\r\n\tfont-size: 14px;\r\n\tmargin-top: -2px;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close > .svg-inline--fa {\r\n\tfont-size: 14px;\r\n\tdisplay: block;\r\n\tmargin-top: -0.125em;\r\n\tmargin-left: -0.125em;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close > span.fa {\r\n\tmargin-left: -1px;\r\n}\r\n\r\n.ui-jqdialog-titlebar-close > .svg-inline--fa {\r\n\tdisplay: block;\r\n\tmargin-left: 0.0625em;\r\n\tmargin-top: -0.0625em;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close > span.glyphicon {\r\n\tmargin-left: -2px;\r\n}\r\n\r\n.ui-jqdialog-titlebar .ui-jqdialog-titlebar-close > span {\r\n\tmargin-top: -1px;\r\n}\r\n\r\n.ui-jqdialog-titlebar .ui-jqdialog-titlebar-close > span.glyphicon {\r\n\tmargin-top: -0.05em;\r\n\tmargin-left: -0.05em;\r\n}\r\n\r\n/* Resizer */\r\n\r\n/* .ui-jqdialog .ui-resizable-handle {\r\n\tright: -3px;\r\n\tbottom: -3px;\r\n} */\r\n.ui-jqdialog .ui-resizable-handle > .ui-icon {\r\n\tright: -1px;\r\n\tbottom: -1px;\r\n}\r\n\r\n.ui-jqdialog .ui-resizable-handle > .fa {\r\n\tfont-size: 12px;\r\n\tright: -2px;\r\n\tposition: relative;\r\n}\r\n\r\n.ui-jqdialog .ui-resizable-handle > .svg-inline--fa {\r\n\tfont-size: 12px;\r\n\tright: -1px;\r\n\r\n\t/* right: -2px;\r\n bottom: -1px; */\r\n\tposition: relative;\r\n}\r\n\r\n.ui-jqdialog .ui-resizable-handle > .glyphicon {\r\n\tfont-size: 12px;\r\n\tright: -1px;\r\n\tbottom: -2.8px;\r\n}\r\n\r\n/* Header */\r\n.ui-jqgrid > .ui-jqgrid-view > .ui-jqgrid-hdiv {\r\n\tposition: relative;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\toverflow: hidden;\r\n\tborder-left: 0 none;\r\n\tborder-top: 0 none;\r\n\tborder-right: 0 none;\r\n\theight: auto;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-hbox {\r\n\tfloat: left;\r\n\tpadding-right: 20px;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-htable {\r\n\ttable-layout: fixed;\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-htable th {\r\n\theight: auto;\r\n\tpadding: 0 2px 0 2px;\r\n}\r\n\r\n.ui-jqgrid-htable > thead > .jqg-first-row-header > th {\r\n\tpadding-top: 0;\r\n\tpadding-bottom: 0;\r\n\tborder-bottom: 0 none;\r\n\tborder-top: 0 none;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-htable th.jqgh_cbox {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-htable .ui-jqgrid-labels th div {\r\n\toverflow: hidden;\r\n\tposition: relative;\r\n\theight: auto;\r\n\tmargin: 2px 2px;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-htable .ui-jqgrid-labels > th.jqgh_cbox {\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-htable .ui-jqgrid-labels .jqgh_cbox > div {\r\n\ttext-align: center;\r\n\tvertical-align: baseline;\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqgrid-labels .ui-th-column-header,\r\n.ui-jqgrid .ui-jqgrid-labels th.ui-th-column,\r\n.ui-jqgrid .ui-jqgrid-legacy-subgrid .ui-th-subgrid {\r\n\toverflow: hidden;\r\n\twhite-space: nowrap;\r\n\ttext-align: center;\r\n}\r\n\r\n.ui-jqgrid-labels .ui-th-column-header {\r\n\tvertical-align: middle;\r\n\theight: auto;\r\n\tvertical-align: middle;\r\n\tborder-top: 0 none;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-labels th.ui-th-column {\r\n\tposition: relative;\r\n\tvertical-align: middle;\r\n\tborder-top: 0 none;\r\n\tborder-bottom: 0 none;\r\n}\r\n\r\n.ui-th-ltr,\r\n.ui-jqgrid .ui-jqgrid-htable th.ui-th-ltr {\r\n\tborder-left: 0 none;\r\n}\r\n\r\n.ui-th-rtl,\r\n.ui-jqgrid .ui-jqgrid-htable th.ui-th-rtl {\r\n\tborder-right: 0 none;\r\n}\r\n\r\n.ui-first-th-ltr {\r\n\tborder-right: 1px solid;\r\n}\r\n\r\n.ui-first-th-rtl {\r\n\tborder-left: 1px solid;\r\n}\r\n\r\n.ui-jqgrid .ui-th-div-ie {\r\n\twhite-space: nowrap;\r\n\tzoom: 1;\r\n\theight: 17px;\r\n}\r\n\r\n.ui-jqgrid .ui-th-column > .jqgh_cbox {\r\n\tmargin: 3px 0;\r\n}\r\n\r\n.ui-jqgrid .ui-th-column .cbox {\r\n\tmargin: 0.1em;\r\n\tcursor: pointer;\r\n\ttext-align: center;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-th-column .cbox {\r\n\theight: 18px;\r\n\twidth: 18px;\r\n}\r\n\r\n.ui-jqgrid .ui-th-column .ui-th-div-ie > .cbox {\r\n\tmargin-left: -1px;\r\n\tmargin-right: -1px;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-labels > .ui-th-column > .ui-jqgrid-resize {\r\n\ttop: 0;\r\n\theight: 100%;\r\n\twidth: 0.3em;\r\n\tposition: absolute;\r\n\tcursor: col-resize;\r\n\t-webkit-touch-callout: none;\r\n\t-ms-user-select: none;\r\n\t-moz-user-select: -moz-none;\r\n\t-webkit-user-select: none;\r\n\tuser-select: none;\r\n\tdisplay: inline;\r\n\toverflow: hidden;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-htable .ui-jqgrid-labels th div.ui-jqgrid-rotate {\r\n\t-webkit-transform: translateX(-50%) translateY(0) rotate(-90deg);\r\n\t-moz-transform: translateX(-50%) translateY(0) (-90deg);\r\n\t-o-transform: translateX(-50%) translateY(0) rotate(-90deg);\r\n\t-ms-transform: translateX(-50%) translateY(0) rotate(-90deg);\r\n\ttransform: translateX(-50%) translateY(0) rotate(-90deg);\r\n\ttransform-origin: center center;\r\n\tmargin: 0;\r\n\tleft: 50%;\r\n}\r\n\r\n.ui-jqgrid .ui-grid-ico-sort {\r\n\toverflow: hidden;\r\n\tposition: absolute;\r\n\tdisplay: inline;\r\n}\r\n\r\n.ui-grid-ico-sort {\r\n\t/* use pointer cursor over all visible icons. It can be important if\r\n\t\tviewsortcols: [true, "vertical", false] or viewsortcols: [true, "horizontal", false]\r\n\t\tmode are used. The viewsortcols[2] element means that sorting are made only on clicking\r\n\t\ton the sorting icon. So the class ui-jqgrid-sortable will be not added to the div of\r\n\t\tthe column header. It informs the user that clicking on the text of the column header\r\n\t\twill do nothing. One still need to have the cursor over the icon which inform about sorting.\r\n\t*/\r\n\tcursor: pointer;\r\n}\r\n\r\n.ui-state-disabled.ui-grid-ico-sort {\r\n\tcursor: pointer !important; /* to overwrite .ui-state-disabled { cursor: default !important; } from jQuery UI */\r\n}\r\n\r\n.ui-jqgrid .s-ico {\r\n\tposition: relative;\r\n\twidth: 0.87em;\r\n\theight: 1.125em;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tmargin: 0 0.1em;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-grid-ico-sort {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-grid-ico-sort.ui-icon {\r\n\twidth: 12px;\r\n\tmargin-top: 0;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-asc.ui-icon {\r\n\ttop: -6px;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-desc.ui-icon {\r\n\ttop: -16px;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-triangle-1-s {\r\n\tbackground-position: -65px -16px;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon.ui-sort-ltr {\r\n\tmargin-left: -3px;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon.ui-sort-rtl {\r\n\tmargin-right: 0;\r\n}\r\n\r\n.ui-jqgrid-sortable > .ui-jqgrid-sort-order {\r\n\tposition: relative;\r\n\tleft: -0.1em;\r\n\ttop: 0;\r\n\tfont-size: 75%;\r\n\tvertical-align: super;\r\n}\r\n\r\n.ui-jqgrid .ui-th-column > div {\r\n\tcursor: default;\r\n}\r\n\r\n.ui-jqgrid .ui-th-column > div.ui-jqgrid-sortable {\r\n\tcursor: pointer;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-hdiv .ui-search-toolbar {\r\n\tborder-top-width: 1px;\r\n\tborder-top-style: solid;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-hdiv .ui-search-toolbar .ui-th-column {\r\n\tborder-top-width: 1px;\r\n\tborder-top-style: solid;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-hdiv .ui-search-toolbar input {\r\n\tmargin: 1px 0 0 0;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-hdiv .ui-search-toolbar select {\r\n\tmargin: 1px 0 0 0;\r\n}\r\n\r\n/* Grig body */\r\n.ui-jqgrid .ui-jqgrid-bdiv {\r\n\tmin-height: 1px;\r\n\tposition: relative;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\toverflow: auto;\r\n\ttext-align: left;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-btable {\r\n\ttable-layout: fixed;\r\n\tmargin: 0;\r\n\toutline-style: none;\r\n\theight: 1px;\r\n}\r\n\r\n.ui-jqgrid tr.jqgrow,\r\n.ui-jqgrid tr.jqgroup {\r\n\toutline-style: none;\r\n}\r\n\r\n.ui-jqgrid tr.jqgrow > td,\r\n.ui-jqgrid tr.jqgroup > td,\r\n.ui-jqgrid tr.jqfoot > td,\r\n.ui-jqgrid tr.ui-subgrid > td,\r\n.ui-jqgrid tr.ui-subtblcell > td {\r\n\toverflow: hidden;\r\n\twhite-space: pre;\r\n\tvertical-align: middle;\r\n\ttext-align: center;\r\n\theight: 22px;\r\n\tborder-top: 0 none;\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-style: solid;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid tr.jqgrow > td,\r\n.ui-jqgrid-jquery-ui.ui-jqgrid tr.jqgroup > td,\r\n.ui-jqgrid-jquery-ui.ui-jqgrid tr.jqfoot > td,\r\n.ui-jqgrid-jquery-ui.ui-jqgrid tr.ui-subgrid > td {\r\n\tborder-bottom-color: inherit;\r\n}\r\n\r\n.ui-jqgrid tr.jqgrow > td,\r\n.ui-jqgrid tr.jqgroup > td,\r\n.ui-jqgrid tr.jqfoot > td {\r\n\tpadding: 0 2px 0 2px;\r\n}\r\n\r\n.ui-jqgrid tr.ui-subgrid > td {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-jqgrid tr.jqgfirstrow > td {\r\n\tpadding: 0 2px 0 2px;\r\n\tborder-top: 0 none;\r\n\tborder-left: 0 none;\r\n\theight: 0;\r\n\tborder-right-width: 1px;\r\n\tborder-right-style: solid;\r\n\tborder-bottom: 0 none;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid tr.jqgfirstrow > td {\r\n\tborder-right-color: inherit;\r\n}\r\n\r\n.ui-jqgrid tr.jqgfirstrow > td.td_cbox {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-jqgrid tr.jqgrow > td,\r\n.ui-jqgrid tr.jqgroup > td,\r\n.ui-jqgrid tr.jqfoot > td {\r\n\tfont-weight: normal;\r\n}\r\n\r\n.ui-jqgrid tr.jqfoot > td {\r\n\tfont-weight: bold;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-bdiv tr.ui-row-ltr > td {\r\n\ttext-align: left;\r\n\tborder-left-width: 0;\r\n\tborder-left-style: none;\r\n\tborder-right-width: 1px;\r\n\tborder-right-style: solid;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid .ui-jqgrid-bdiv tr.ui-row-ltr > td {\r\n\tborder-color: inherit;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-bdiv tr.ui-row-rtl > td {\r\n\ttext-align: right;\r\n\tborder-right-width: 0;\r\n\tborder-right-style: none;\r\n\tborder-left-width: 1px;\r\n\tborder-left-style: solid;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid .ui-jqgrid-bdiv tr.ui-row-rtl > td {\r\n\tborder-color: inherit;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-btable td.jqgrid-rownum {\r\n\tpadding: 0 2px 0 2px;\r\n\tmargin: 0;\r\n\tborder-width: 0;\r\n\tborder-style: none;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-btable td.jqgrid-rownum {\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-style: solid;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid .ui-jqgrid-btable td.jqgrid-rownum {\r\n\tborder-bottom-color: inherit;\r\n}\r\n\r\n.ui-jqgrid .jqgrow > td.td_cbox {\r\n\tpadding: 0;\r\n\ttext-align: center;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid .jqgrow > td.ui-sgcollapsed {\r\n\ttext-align: center;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid tr.jqgrow > td.td_cbox {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-jqgrid .jqgrow > td > .cbox {\r\n\theight: 14px;\r\n\twidth: 14px;\r\n\tcursor: pointer;\r\n\ttext-align: center;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid > .ui-jqgrid-resize-mark,\r\nbody > .ui-jqgrid-resize-mark {\r\n\twidth: 0;\r\n\tleft: 0;\r\n\tcursor: col-resize;\r\n\t-webkit-touch-callout: none;\r\n\t-ms-user-select: none;\r\n\t-moz-user-select: -moz-none;\r\n\t-webkit-user-select: none;\r\n\tuser-select: none;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\toverflow: hidden;\r\n\tdisplay: none;\r\n\tborder-left-width: 1px;\r\n\tborder-right-width: 1px;\r\n\tz-index: 99999;\r\n}\r\n\r\nspan.ui-jqgrid-cell-wrapper {\r\n\tmargin: 0 !important;\r\n\tpadding: 0 !important;\r\n}\r\n\r\n/* Footer */\r\n.ui-jqgrid > .ui-jqgrid-view > .ui-jqgrid-sdiv {\r\n\tposition: relative;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\toverflow: hidden;\r\n\tborder-left: 0 none;\r\n\tborder-top: 0 none;\r\n\tborder-right: 0 none;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-ftable {\r\n\ttable-layout: fixed;\r\n\tmargin-bottom: 0;\r\n}\r\n\r\n.ui-jqgrid tr.footrow td {\r\n\tfont-weight: bold;\r\n\toverflow: hidden;\r\n\twhite-space: nowrap;\r\n\theight: 21px;\r\n\tpadding: 0 2px 0 2px;\r\n\tborder-top-width: 1px;\r\n\tborder-top-style: solid;\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-style: solid;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid tr.footrow td {\r\n\tborder-top-color: inherit;\r\n\tborder-bottom-color: inherit;\r\n}\r\n\r\n.ui-jqgrid tr.footrow-ltr td {\r\n\ttext-align: left;\r\n\tborder-left-width: 0;\r\n\tborder-left-style: none;\r\n\tborder-right-width: 1px;\r\n\tborder-right-style: solid;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid tr.footrow-ltr td {\r\n\tborder-color: inherit;\r\n}\r\n\r\n.ui-jqgrid tr.footrow-rtl td {\r\n\ttext-align: right;\r\n\tborder-left-width: 1px;\r\n\tborder-left-style: solid;\r\n\tborder-right-width: 0;\r\n\tborder-right-style: none;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid tr.footrow-rtl td {\r\n\tborder-color: inherit;\r\n}\r\n\r\n/* Pager */\r\n.ui-jqgrid > .ui-jqgrid-pager {\r\n\tborder: 0 none;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tposition: relative;\r\n\t-moz-box-sizing: border-box;\r\n\t-webkit-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n\theight: auto;\r\n\tmin-height: 22px;\r\n\toverflow: hidden;\r\n\tfont-size: 11px;\r\n}\r\n\r\n.ui-jqgrid > .ui-jqgrid-pager *,\r\n.ui-jqgrid > .ui-jqgrid-pager *::before,\r\n.ui-jqgrid > .ui-jqgrid-pager *::after {\r\n\t-webkit-box-sizing: inherit;\r\n\t-moz-box-sizing: inherit;\r\n\tbox-sizing: inherit;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-toppager .ui-pager-control,\r\n.ui-jqgrid .ui-jqgrid-pager .ui-pager-control {\r\n\tposition: relative;\r\n\tborder-left: 0;\r\n\tborder-bottom: 0;\r\n\tborder-top: 0;\r\n}\r\n\r\n.ui-pager-control .ui-jqgrid-pg-left {\r\n\ttext-align: left;\r\n}\r\n\r\n.ui-pager-control .ui-jqgrid-pg-center {\r\n\ttext-align: center;\r\n\twhite-space: pre;\r\n}\r\n\r\n.ui-pager-control .ui-jqgrid-pg-right {\r\n\ttext-align: right;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-table {\r\n\tposition: relative;\r\n\tpadding: 0;\r\n\twidth: auto;\r\n\tmargin: 0;\r\n}\r\n\r\n.jqgrow .ui-jqgrid-actions {\r\n\tbackground: inherit;\r\n\tborder-style: none;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-button:not(.ui-state-hover),\r\n.ui-jqgrid-jquery-ui .jqgrow .ui-jqgrid-actions .ui-pg-div:not(.ui-state-hover) {\r\n\tborder: 1px solid transparent;\r\n}\r\n\r\n.ui-pager-control .ui-pg-table {\r\n\tborder-color: inherit;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-button:hover,\r\n.ui-jqgrid .ui-pg-button.ui-state-hover,\r\n.ui-jqgrid .ui-pg-button:focus,\r\n.jqgrow .ui-jqgrid-actions .ui-pg-div:hover,\r\n.jqgrow .ui-jqgrid-actions .ui-pg-div.ui-state-hover,\r\n.jqgrow .ui-jqgrid-actions .ui-pg-div:focus {\r\n\tborder-style: solid;\r\n\tborder-color: inherit;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-table td {\r\n\tfont-weight: normal;\r\n\tvertical-align: middle;\r\n\tpadding: 1px;\r\n}\r\n\r\n.ui-jqgrid .ui-pager-control .ui-pg-button {\r\n\tdisplay: inline-block;\r\n\theight: auto;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-button span {\r\n\tdisplay: block;\r\n\tmargin: 1px;\r\n\tfloat: left;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-table .ui-pg-input,\r\n.ui-jqgrid .ui-pg-table .ui-pg-selbox {\r\n\theight: auto;\r\n\twidth: auto;\r\n\tmargin: 0;\r\n\tline-height: inherit;\r\n}\r\n\r\nselect.form-control.ui-pg-selbox:not([size]):not([multiple]) {\r\n\theight: auto;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-table .ui-pg-selbox {\r\n\tdisplay: block;\r\n\tpadding: 1px;\r\n}\r\n\r\n.ui-jqgrid .ui-separator {\r\n\theight: 12px;\r\n\tborder-left: 1px solid #ccc;\r\n\tborder-right: 1px solid #ccc;\r\n\tmargin: -1px;\r\n\tfloat: right;\r\n}\r\n\r\n.ui-jqgrid .ui-paging-info {\r\n\tfont-weight: normal;\r\n\theight: auto;\r\n\tmargin: 0 0.2em 0 0.2em;\r\n\tdisplay: inline;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-pager .ui-pg-div {\r\n\tpadding: 1px 0;\r\n\tfloat: left;\r\n\tposition: relative;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-pager .ui-pg-button {\r\n\tcursor: pointer;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-pager .ui-pg-div span.ui-icon {\r\n\tfloat: left;\r\n\tmargin: 0 2px;\r\n}\r\n\r\n.ui-jqgrid td input,\r\n.ui-jqgrid td select,\r\n.ui-jqgrid td textarea {\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqgrid td textarea {\r\n\twidth: auto;\r\n\theight: auto;\r\n}\r\n\r\n.ui-jqgrid > .ui-jqgrid-view > .ui-jqgrid-toppager {\r\n\tborder-left: 0 none;\r\n\tborder-right: 0 none;\r\n\tborder-top: 0 none;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tposition: relative;\r\n\theight: auto;\r\n\tmin-height: 22px;\r\n\toverflow: hidden;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-toppager .ui-pg-div {\r\n\tpadding: 1px 0;\r\n\tfloat: left;\r\n\tposition: relative;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-toppager .ui-pg-button {\r\n\tcursor: pointer;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-toppager .ui-pg-div span.ui-icon {\r\n\tfloat: left;\r\n\tmargin: 0 2px;\r\n}\r\n\r\n/* Navigator buttons */\r\n.ui-jqgrid .ui-pg-table .ui-pg-button {\r\n\tmargin: 2px;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid .navtable .ui-pg-div span.ui-pg-button-text {\r\n\tpadding-left: 0.2em;\r\n\tpadding-right: 0.2em;\r\n}\r\n\r\n.ui-pg-button:hover > .ui-pg-div > .ui-pg-button-text,\r\n.ui-pg-button.ui-state-hover > .ui-pg-div > .ui-pg-button-text {\r\n\tfont-weight: normal;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-div {\r\n\ttext-align: center;\r\n\tvertical-align: middle;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.ui-jqgrid .navtable .ui-pg-div > span.ui-pg-button-icon-over-text {\r\n\tmargin-left: auto;\r\n\tmargin-right: auto;\r\n\tfloat: none;\r\n}\r\n\r\n/* Subgrid */\r\n.subgrid-data > .tablediv > .ui-jqgrid {\r\n\t-moz-box-sizing: content-box;\r\n\t-webkit-box-sizing: content-box;\r\n\tbox-sizing: content-box;\r\n}\r\n\r\n.subgrid-data > .tablediv > .ui-jqgrid > .ui-jqgrid-view {\r\n\t-moz-box-sizing: border-box;\r\n\t-webkit-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-btable .jqgrow > .ui-sgcollapsed {\r\n\ttext-align: center;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-btable .ui-sgcollapsed span {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.ui-jqgrid .ui-subgrid {\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\twidth: 100%;\r\n}\r\n\r\n.sgbutton {\r\n\tcursor: pointer;\r\n}\r\n\r\n.ui-jqgrid .ui-subgrid table {\r\n\ttable-layout: fixed;\r\n}\r\n\r\n.ui-jqgrid .ui-subgrid tr.ui-subtblcell td {\r\n\theight: 18px;\r\n\tborder-top: 0 none;\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-style: solid;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqgrid .ui-subgrid tr.ui-subtblcell td {\r\n\tborder-bottom-color: inherit;\r\n}\r\n\r\n.ui-jqgrid .ui-th-subgrid {\r\n\theight: 20px;\r\n}\r\n\r\n.ui-jqgrid .ui-row-ltr.ui-subgrid > .subgrid-cell > span {\r\n\tfloat: right;\r\n}\r\n\r\n.ui-jqgrid .ui-row-rtl.ui-subgrid > .subgrid-cell > span {\r\n\tfloat: left;\r\n}\r\n\r\n/* Loading */\r\n.ui-jqgrid > .loading {\r\n\tposition: absolute;\r\n\ttop: 45%;\r\n\tleft: 45%;\r\n\twidth: auto;\r\n\tz-index: 101;\r\n\tpadding: 6px;\r\n\tmargin: 5px;\r\n\ttext-align: center;\r\n\tfont-weight: bold;\r\n\tdisplay: none;\r\n\tborder-width: 2px;\r\n\tfont-size: 11px;\r\n}\r\n\r\n.ui-jqgrid .jqgrid-overlay {\r\n\tdisplay: none;\r\n\tz-index: 100;\r\n}\r\n\r\n* .jqgrid-overlay iframe {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tz-index: -1;\r\n}\r\n\r\n/* Toolbar */\r\n.ui-jqgrid > .ui-jqgrid-view > .ui-userdata {\r\n\tborder-left: 0 none;\r\n\tborder-right: 0 none;\r\n\theight: 21px;\r\n\toverflow: hidden;\r\n}\r\n\r\n/* Modal Window */\r\n.ui-jqgrid .ui-jqdialog {\r\n\tfont-size: 11px;\r\n}\r\n\r\n.ui-jqdialog {\r\n\tdisplay: none;\r\n\twidth: 300px;\r\n\tposition: absolute;\r\n\tfont-size: 11px;\r\n\toverflow: visible;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-jquery-ui {\r\n\tpadding: 0.2em;\r\n}\r\n\r\n.ui-jqgrid-bootstrap.modal {\r\n\tright: auto;\r\n\tleft: auto;\r\n}\r\n\r\n.ui-jqgrid-bootstrap.modal > .modal-dialog {\r\n\tmax-width: none;\r\n}\r\n\r\n.ui-jqdialog-content,\r\n.ui-jqdialog .ui-jqdialog-content {\r\n\tborder: 0;\r\n\tpadding: 0.3em 0.2em;\r\n\tbackground: none;\r\n\theight: auto;\r\n}\r\n\r\n.ui-jqdialog .ui-jqconfirm {\r\n\tpadding: 0.4em 1em;\r\n\tborder-width: 3px;\r\n\tposition: absolute;\r\n\tbottom: 10px;\r\n\tright: 10px;\r\n\toverflow: visible;\r\n\tdisplay: none;\r\n\theight: 80px;\r\n\twidth: 220px;\r\n\ttext-align: center;\r\n}\r\n\r\n.ui-jqgrid > .ui-resizable-se,\r\n.ui-jqdialog > .ui-resizable-se {\r\n\tbottom: -3px;\r\n\tright: -3px;\r\n}\r\n\r\n/* Form edit */\r\n.ui-jqdialog-content .FormGrid {\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqdialog-content .EditTable {\r\n\twidth: 100%;\r\n\tmargin-bottom: 0;\r\n}\r\n\r\n.ui-jqdialog-content .DelTable {\r\n\twidth: 100%;\r\n\tmargin-bottom: 0;\r\n}\r\n\r\n.EditTable td input,\r\n.EditTable td select,\r\n.EditTable td textarea {\r\n\tmargin: 0;\r\n}\r\n\r\n.EditTable td textarea {\r\n\twidth: auto;\r\n\theight: auto;\r\n}\r\n\r\n.ui-jqdialog-content td.EditButton {\r\n\tborder-top: 0 none;\r\n\tborder-left: 0 none;\r\n\tborder-right: 0 none;\r\n\tpadding: 5px 0;\r\n}\r\n\r\n.ui-jqdialog-content td.EditButton-ltr {\r\n\ttext-align: right;\r\n}\r\n\r\n.ui-jqdialog-content td.EditButton-rtl {\r\n\ttext-align: left;\r\n}\r\n\r\n.ui-jqdialog-content td.navButton {\r\n\ttext-align: left;\r\n\tborder-left: 0 none;\r\n\tborder-top: 0 none;\r\n\tborder-right: 0 none;\r\n\tpadding: 5px 0;\r\n}\r\n\r\n.ui-jqdialog-content td.navButton-ltr {\r\n\ttext-align: left;\r\n}\r\n\r\n.ui-jqdialog-content td.navButton-ltr > .fm-button {\r\n\tfloat: left;\r\n}\r\n\r\n.ui-jqdialog-content td.navButton-rtl {\r\n\ttext-align: right;\r\n}\r\n\r\n.ui-jqdialog-content td.navButton-rtl > .fm-button {\r\n\tfloat: right;\r\n}\r\n\r\n.ui-jqdialog-content .FormElement {\r\n\twidth: 100%;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.ui-jqdialog-content input.FormElement,\r\n.ui-jqdialog-content select.FormElement {\r\n\tpadding: 0.3em;\r\n}\r\n\r\n.ui-jqdialog-content .data-line {\r\n\tpadding-top: 0.1em;\r\n\tborder: 0 none;\r\n}\r\n\r\n.ui-jqdialog-content .CaptionTD {\r\n\tvertical-align: middle;\r\n\tborder: 0 none;\r\n\tpadding: 2px;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.ui-jqdialog-content .DataTD {\r\n\tpadding: 2px;\r\n\tborder-width: 0;\r\n\tborder-style: none;\r\n\tvertical-align: top;\r\n}\r\n\r\n/* .ui-jqdialog-content .form-view-data {\r\n\twhite-space: pre;\r\n} */\r\n.ui-jqgrid-jquery-ui.ui-jqdialog .form-view-data > span {\r\n\tborder-width: 1px;\r\n\tborder-style: solid;\r\n\tborder-color: inherit;\r\n\tborder-radius: 3px;\r\n\tdisplay: block;\r\n\tpadding: 0.2em;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui.ui-jqdialog .form-view-label > label {\r\n\tfont-weight: bold;\r\n}\r\n\r\n.ui-jqgrid-bootstrap.ui-jqdialog .ui-jqdialog-content .form-view-data > span {\r\n\theight: 100%;\r\n\twidth: auto;\r\n}\r\n\r\n.ui-jqdialog .fm-button {\r\n\tdisplay: inline-block;\r\n\tpadding: 0.4em 0.5em;\r\n\ttext-decoration: none;\r\n\tcursor: pointer;\r\n\tposition: relative;\r\n\ttext-align: center;\r\n\tzoom: 1;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .navButton .fm-button {\r\n\tpadding: 0.375em 0.75em;\r\n\tmargin-left: 0.125em;\r\n}\r\n\r\n.ui-jqdialog .fm-button > span {\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqdialog .fm-button .fm-button-text {\r\n\tpadding: 0 0.2em;\r\n}\r\n\r\n.ui-jqdialog .EditButton-ltr .fm-button-icon-left .fm-button-icon {\r\n\tmargin-right: 0.2em;\r\n}\r\n\r\n.ui-jqdialog .EditButton-ltr .fm-button-icon-right .fm-button-icon {\r\n\tmargin-left: 0.2em;\r\n}\r\n\r\n.ui-jqdialog .EditButton-rtl .fm-button-icon-right .fm-button-icon {\r\n\tmargin-right: 0.2em;\r\n}\r\n\r\n.ui-jqdialog .EditButton-rtl .fm-button-icon-left .fm-button-icon {\r\n\tmargin-left: 0.2em;\r\n}\r\n\r\n.delmsg {\r\n\tpadding: 0.5em;\r\n}\r\n\r\n.ui-jqgrid .selected-row,\r\n.ui-jqgrid .selected-row td {\r\n\tfont-style: normal;\r\n\tborder-left: 0 none;\r\n}\r\n\r\n/* Inline edit actions button */\r\n.ui-jqgrid .jqgrow .ui-jqgrid-actions {\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tmargin: 0;\r\n}\r\n\r\n.jqgrow .ui-jqgrid-actions .ui-pg-div {\r\n\tcursor: pointer;\r\n\tfloat: left;\r\n\tmargin: 0 1px;\r\n}\r\n\r\n/* Tree Grid */\r\n.ui-jqgrid .tree-wrap {\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\twhite-space: nowrap;\r\n\toverflow: hidden;\r\n}\r\n\r\n.ui-jqgrid .treeclick {\r\n\tcursor: pointer;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\twidth: 18px;\r\n\toverflow: hidden;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-bdiv .jqgroup .tree-wrap {\r\n\ttext-align: center;\r\n\tpadding-left: 0.1em;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-bdiv .jqgroup .tree-wrap.glyphicon {\r\n\tmargin-top: -0.18em;\r\n}\r\n\r\n/* Modal dialog */\r\n* iframe.jqm {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tz-index: -1;\r\n}\r\n\r\n.ui-jqgrid-dnd tr td {\r\n\tborder-right-width: 1px;\r\n\tborder-right-color: inherit;\r\n\tborder-right-style: solid;\r\n\theight: 20px;\r\n}\r\n\r\n/* RTL Support */\r\n.ui-jqgrid .ui-jqgrid-caption-rtl {\r\n\ttext-align: right;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-hbox-rtl {\r\n\tfloat: right;\r\n\tpadding-left: 20px;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-resize-ltr {\r\n\tright: 0;\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-resize-rtl {\r\n\tleft: 0;\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqgrid .ui-sort-rtl {\r\n\tleft: 0;\r\n}\r\n\r\n.ui-jqgrid .cell-wrapperleaf,\r\n.ui-jqgrid .cell-wrapper {\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid .ui-ellipsis {\r\n\t-moz-text-overflow: ellipsis;\r\n\ttext-overflow: ellipsis;\r\n}\r\n\r\n/* Toolbar Search Menu */\r\n.ui-search-menu {\r\n\tposition: absolute;\r\n\tpadding: 0.2em;\r\n}\r\n\r\n.ui-search-menu.ui-menu .ui-jqgrid-menu-item {\r\n\tlist-style-image: none;\r\n\tpadding-right: 0;\r\n\tpadding-left: 0;\r\n}\r\n\r\n.ui-search-menu.ui-menu .ui-jqgrid-menu-item a {\r\n\ttext-decoration: none;\r\n\tdisplay: block;\r\n}\r\n\r\n.ui-search-toolbar > .ui-th-column > div {\r\n\tposition: relative;\r\n\theight: auto;\r\n\toverflow: hidden;\r\n}\r\n\r\n.ui-search-toolbar .ui-search-table {\r\n\tpadding: 0;\r\n\tborder: 0 none;\r\n\theight: 20px;\r\n\twidth: 100%;\r\n}\r\n\r\n.table-hover .ui-search-table tbody tr:hover {\r\n\tbackground-color: inherit;\r\n}\r\n\r\n.ui-jqgrid .ui-jqgrid-htable .ui-search-toolbar th {\r\n\tpadding: 0 0.1em;\r\n}\r\n\r\n.ui-search-toolbar .ui-search-table .ui-search-oper {\r\n\twidth: 20px;\r\n\ttext-align: center;\r\n}\r\n\r\n.ui-search-toolbar .ui-th-column .ui-search-table .ui-search-input {\r\n\tpadding: 0 0.1em;\r\n}\r\n\r\n.ui-search-input input[type="text"] {\r\n\twidth: 100%;\r\n}\r\n\r\na.g-menu-item,\r\na.soptclass,\r\na.clearsearchclass {\r\n\ttext-decoration: none;\r\n\tcursor: pointer;\r\n}\r\n\r\n.ui-search-menu .ui-jqgrid-menu-item .g-menu-item {\r\n\tpadding: 0.2em;\r\n}\r\n\r\n.ui-menu-jqueryui .ui-jqgrid-menu-item .g-menu-item:not(.ui-state-hover) {\r\n\tborder: 1px solid transparent;\r\n}\r\n\r\n.ui-menu-jqueryui .ui-jqgrid-menu-item .g-menu-item:hover {\r\n\tfont-weight: normal;\r\n}\r\n\r\n.ui-search-oper {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-search-clear {\r\n\ttext-align: center;\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-search-oper .soptclass,\r\n.ui-search-clear .clearsearchclass {\r\n\tpadding: 0.1em;\r\n\tline-height: 1em;\r\n}\r\n\r\n.ui-jqgrid-jquery-ui .ui-search-oper .soptclass:not(.ui-state-hover),\r\n.ui-jqgrid-jquery-ui .ui-search-clear .clearsearchclass:not(.ui-state-hover) {\r\n\tborder: 1px solid transparent;\r\n}\r\n\r\n.ui-search-clear .clearsearchclass span {\r\n\tposition: relative;\r\n}\r\n\r\n.ui-search-input {\r\n\ttext-align: center;\r\n}\r\n\r\n.ui-jqgrid .ui-search-table .ui-search-input > input[type="text"],\r\n.ui-jqgrid .ui-search-table .ui-search-input > select {\r\n\tdisplay: block;\r\n\t-moz-box-sizing: border-box;\r\n\t-webkit-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.ui-jqgrid > .ui-jqgrid-view input,\r\n.ui-jqgrid > .ui-jqgrid-view select,\r\n.ui-jqgrid > .ui-jqgrid-view textarea,\r\n.ui-jqgrid > .ui-jqgrid-view button {\r\n\tfont-size: inherit;\r\n\ttext-align: inherit;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-grid-ico-sort.glyphicon {\r\n\tfont-size: 10px;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-asc.glyphicon {\r\n\tmargin-top: -0.23em;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-desc.glyphicon {\r\n\tmargin-top: -0.34em;\r\n}\r\n\r\n/* Support of Font Awesome */\r\n.ui-jqgrid .s-ico > .ui-grid-ico-sort.fa {\r\n\twidth: 0.63em;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-asc.fa {\r\n\tline-height: 0.81em;\r\n\ttop: 0.07em;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-desc.fa {\r\n\tline-height: 0.81em;\r\n\ttop: -0.81em;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-asc.fa.ui-sort-ltr,\r\n.ui-jqgrid .s-ico > .ui-icon-desc.fa.ui-sort-ltr {\r\n\tleft: 0;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-icon-asc.fa.ui-sort-rtl,\r\n.ui-jqgrid .s-ico > .ui-icon-desc.fa.ui-sort-rtl {\r\n\tright: 0;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .ui-state-disabled.fa {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-jqgrid .s-ico > .svg-inline--fa.fa-sort-down {\r\n\tmargin-top: -1.05em;\r\n}\r\n\r\n.jqgrow .ui-pg-div > span.fa {\r\n\tfont-weight: normal;\r\n\tfont-size: 12px;\r\n\tvertical-align: baseline;\r\n\tbackground: none;\r\n\tborder: 0 none;\r\n}\r\n\r\n.ui-subgrid > .subgrid-cell span.fa {\r\n\tfont-weight: normal;\r\n\tfont-size: 12px;\r\n\ttext-indent: 0;\r\n\tbackground: none;\r\n\tborder: 0 none;\r\n\tmargin-bottom: 4px;\r\n}\r\n\r\n.jqgrow > .ui-sgcollapsed span.fa {\r\n\tfont-weight: normal;\r\n\tfont-size: 12px;\r\n\ttext-indent: 0;\r\n\tbackground: none;\r\n\tborder: 0 none;\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqgrid .ui-resizable-se.fa {\r\n\t-webkit-filter: alpha(opacity=40);\r\n\t-moz-filter: alpha(opacity=40);\r\n\t-o-filter: alpha(opacity=40);\r\n\tfilter: alpha(opacity=40);\r\n\t-ms-opacity: 0.4;\r\n\topacity: 0.4;\r\n\tbackground: none;\r\n\tborder-style: none;\r\n\tright: -3px;\r\n\tfont-weight: normal;\r\n}\r\n\r\n.ui-jqgrid-ltr .ui-resizable-se.fa {\r\n\tright: -3px;\r\n\tbottom: 0;\r\n}\r\n\r\n.ui-jqgrid-rtl .ui-resizable-se.fa {\r\n\tleft: 0;\r\n\tbottom: 1px;\r\n}\r\n\r\n/* Classes for jquery.contextmenu-ui.js plugin we included here */\r\n.jqContextMenu .ui-menu .ui-jqgrid-menu-item a.ui-state-hover {\r\n\tfont-weight: normal;\r\n\tmargin: -1px;\r\n}\r\n\r\n.jqContextMenu .ui-menu .ui-jqgrid-menu-item.ui-state-hover {\r\n\tfont-weight: normal;\r\n\tmargin: -1px;\r\n}\r\n\r\n.jqContextMenu .ui-menu-icons > .ui-jqgrid-menu-item {\r\n\tfont-size: 11px;\r\n}\r\n\r\n/* Classes for jQuery.jqGrid.showHideColumnMenu.js plugin */\r\n.ui-jqgrid-showHideColumnMenu .ui-jqgrid-menu-item:hover {\r\n\tfont-weight: normal;\r\n}\r\n\r\n.ui-jqgrid-disablePointerEvents {\r\n\tpointer-events: none;\r\n}\r\n\r\n/* Bootstrap style support */\r\n.ui-jqgrid.ui-jqgrid-bootstrap {\r\n\tborder: 1px solid #ddd;\r\n\t-ms-border-radius: 6px;\r\n\tborder-radius: 6px;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-view > .ui-jqgrid-toppager {\r\n\tborder-bottom-left-radius: 0;\r\n\tborder-bottom-right-radius: 0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-view > .ui-userdata {\r\n\tbackground-color: #f0f0f0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-hdiv,\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-legacy-subgrid > thead {\r\n\tbackground-color: #e5e5e5;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-view > .ui-jqgrid-sdiv td {\r\n\tbackground-color: #f9f9f9;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap > .modal-dialog {\r\n\tmargin-top: 0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-titlebar .ui-jqgrid-title,\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-errorbar .ui-jqgrid-error,\r\n.ui-jqdialog.ui-jqgrid-bootstrap .ui-jqdialog-titlebar .ui-jqdialog-title {\r\n\tfont-size: 16px;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-view {\r\n\tfont-size: 12px;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-view .btn,\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-pager .btn {\r\n\tfont-size: 12px;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-view .fa,\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-pager .fa {\r\n\tfont-size: 14px;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap {\r\n\tfont-size: 14px;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .ui-jqdialog-content .CaptionTD {\r\n\tpadding: 0.5em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .frozen-bdiv.ui-jqgrid-bdiv .ui-jqgrid-btable {\r\n\tbackground-color: white;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap tr.jqgfirstrow > td,\r\n.ui-jqgrid.ui-jqgrid-bootstrap tr.jqgrow > td,\r\n.ui-jqgrid.ui-jqgrid-bootstrap tr.jqgroup > td,\r\n.ui-jqgrid.ui-jqgrid-bootstrap tr.jqfoot > td {\r\n\tpadding: 0.2em 0.3em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap tr.jqgfirstrow > td {\r\n\tpadding: 0 0.3em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap tr.jqgfirstrow > td.td_cbox,\r\n.ui-jqgrid.ui-jqgrid-bootstrap tr.jqgrow > td.td_cbox {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .jqgrow > td > .cbox {\r\n\theight: 18px;\r\n\twidth: 18px;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\ttext-align: center;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-btable td.jqgrid-rownum {\r\n\tpadding: 0.2em 0.3em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-caption,\r\n.ui-jqdialog.ui-jqgrid-bootstrap .ui-jqdialog-titlebar {\r\n\tbackground-color: #cacaca;\r\n\t-ms-border-top-left-radius: 6px;\r\n\tborder-top-left-radius: 6px;\r\n\t-ms-border-top-right-radius: 6px;\r\n\tborder-top-right-radius: 6px;\r\n}\r\n\r\n.modal-backdrop.jqgrid-overlay {\r\n\t-ms-opacity: 0.35;\r\n\topacity: 0.35;\r\n\t-webkit-filter: alpha(opacity=35);\r\n\t-moz-filter: alpha(opacity=35);\r\n\t-o-filter: alpha(opacity=35);\r\n\tfilter: alpha(opacity=35);\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .ui-jqdialog-content {\r\n\tborder: 0;\r\n\tpadding: 0.3em 0.2em;\r\n\tbackground: white;\r\n\theight: auto;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .modal-dialog {\r\n\twidth: auto;\r\n}\r\n\r\n.ui-jqdialog.ui-widget {\r\n\toverflow: hidden;\r\n}\r\n\r\n.ui-jqdialog .ui-resizable-handle {\r\n\tcursor: se-resize;\r\n\tposition: absolute;\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .modal-content {\r\n\toverflow: hidden;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .modal-content > .ui-resizable-handle.fa {\r\n\tbottom: 1px;\r\n\tright: 1px;\r\n\theight: 12px;\r\n\twidth: 12px;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .modal-content > .ui-resizable-handle.glyphicon {\r\n\tright: -0.4em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .disabled {\r\n\topacity: 0.35;\r\n\tfilter: alpha(opacity=35);\r\n}\r\n\r\n.ui-jqgrid-bootstrap.ui-jqgrid-resize-mark {\r\n\tborder: 1px solid #aaa;\r\n\tbackground-color: #ccc;\r\n\tcolor: #222;\r\n\tfont-weight: bold;\r\n}\r\n\r\n.ui-jqgrid .jqgfirstrow {\r\n\tborder-bottom: 0 none;\r\n\tborder-top: 0 none;\r\n\theight: 0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .jqgfirstrow td {\r\n\tborder-bottom: 0 none;\r\n\tborder-top: 0 none;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-pg-table .ui-pg-button.ui-state-disabled:hover {\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .navtable .ui-pg-button.ui-state-disabled:hover {\r\n\tmargin: 0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-pg-table .ui-pg-button {\r\n\tmargin: 0.2em 0;\r\n\tpadding: 0.2em 0;\r\n\tborder-radius: 0.4em;\r\n}\r\n\r\n.ui-search-input .form-control:not([size]):not([multiple]) {\r\n\theight: auto;\r\n\tmin-height: 18px;\r\n}\r\n\r\n.ui-search-input input[type="text"] {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-search-input input[type="text"].form-control {\r\n\tpadding: 0 0.3em;\r\n}\r\n\r\n.ui-search-input select.form-control {\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-search-input input[type="checkbox"].form-control {\r\n\twidth: auto;\r\n\tmargin-left: auto;\r\n\tmargin-right: auto;\r\n\tborder-radius: 0;\r\n\tbackground: 0 transparent;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-actions .ui-pg-div.btn {\r\n\tpadding: 0;\r\n\tmargin: 0;\r\n\tbox-shadow: none;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-actions .ui-pg-div.btn:not(:first-child) {\r\n\tmargin-left: 0.125em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-actions .ui-pg-div.btn.ui-inline-save {\r\n\tmargin-left: 0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap tr.jqgrow .sgbutton-div .sgbutton.btn {\r\n\tpadding: 0;\r\n\tcursor: pointer;\r\n\tborder: 1px solid transparent;\r\n\tmargin: -0.3em -0.3em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .sgbutton-div .sgbutton.btn:focus,\r\n.ui-jqgrid.ui-jqgrid-bootstrap .sgbutton-div .sgbutton.btn:hover {\r\n\tborder: 1px solid #333;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .ui-jqdialog-content {\r\n\tborder-top-left-radius: 0;\r\n\tborder-top-right-radius: 0;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-pager-control .ui-pg-input {\r\n\tdisplay: inline-block;\r\n\tfont-size: 12px;\r\n\tpadding: 0.3em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap > .ui-jqgrid-pager {\r\n\tfont-size: 12px;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-bootstrap-corner-top {\r\n\tborder-top-left-radius: 6px;\r\n\tborder-top-right-radius: 6px;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-bootstrap-corner-bottom {\r\n\tborder-bottom-left-radius: 6px;\r\n\tborder-bottom-right-radius: 6px;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-pager-control .ui-pg-selbox {\r\n\tfont-size: 12px;\r\n\tpadding: 0;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .FormData .CaptionTD {\r\n\tfont-size: 14px;\r\n}\r\n\r\n.FormData .DataTD {\r\n\tvertical-align: middle;\r\n}\r\n\r\n.FormData .DataTD input[type="checkbox"] {\r\n\twidth: auto;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .FormData .DataTD input.form-control[type="checkbox"] {\r\n\twidth: 2.193em;\r\n\theight: 2.193em;\r\n}\r\n\r\n.DelTable .delmsg {\r\n\tpadding: 0.2em;\r\n}\r\n\r\n.queryresult {\r\n\tmargin-bottom: 0.5em;\r\n\tpadding: 0.25em;\r\n}\r\n\r\n.group.modal-content tr td {\r\n\tpadding: 0.2em 0.1em;\r\n}\r\n\r\n.searchFilter .form-control {\r\n\tpadding: 0.1em;\r\n}\r\n\r\n.searchFilter .form-control:not([size]):not([multiple]) {\r\n\theight: 2em;\r\n}\r\n\r\n.searchFilter .btn {\r\n\tmargin-left: 0.125em;\r\n\tpadding: 0.2em 0.375em;\r\n}\r\n\r\n.ui-jqgrid .searchFilter table.group td {\r\n\tpadding: 1px;\r\n}\r\n\r\n.ui-jqgrid .searchFilter table {\r\n\tborder-spacing: 2px;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .modal-header .close {\r\n\tmargin-top: -0.7em;\r\n}\r\n\r\n.ui-jqdialog .glyphicon,\r\n.ui-jqgrid .glyphicon {\r\n\tfont-size: 12px;\r\n\ttop: auto;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .glyphicon,\r\n.ui-jqgrid.ui-jqgrid-bootstrap .glyphicon {\r\n\tfont-size: 14px;\r\n\ttop: auto;\r\n\theight: 1em;\r\n\twidth: 1.28em;\r\n}\r\n\r\n.ui-jqgrid .ui-pg-button span.glyphicon {\r\n\tdisplay: inline-block;\r\n\ttext-align: center;\r\n\r\n\t/* margin-left: auto;\r\n\tmargin-right: auto;\r\n\tpadding: 0 .1em; */\r\n\tvertical-align: middle;\r\n}\r\n\r\n.ui-jqgrid-actions .glyphicon {\r\n\tpadding: 0.1em;\r\n}\r\n\r\n.ui-jqgrid.ui-jqgrid-bootstrap .ui-jqgrid-titlebar > .ui-jqgrid-titlebar-close > span.glyphicon {\r\n\tmargin-top: -0.125em;\r\n\tmargin-left: -0.275em;\r\n}\r\n\r\n.ui-jqdialog.ui-jqgrid-bootstrap .ui-jqdialog-titlebar > .ui-jqdialog-titlebar-close > span.glyphicon {\r\n\tmargin-top: -0.1em;\r\n\tmargin-left: -0.28em;\r\n}\r\n\r\n.tree-wrap > .treeclick {\r\n\tline-height: 1;\r\n}\r\n\r\n.tree-wrap > .treeclick.glyphicon {\r\n\tmargin-top: -0.2em;\r\n\tfont-size: 12px;\r\n}\r\n\r\n.subgrid-data .ui-jqgrid-bootstrap .ui-jqgrid-hdiv .ui-jqgrid-htable,\r\n.subgrid-data .ui-jqgrid-bootstrap .ui-jqgrid-bdiv .ui-jqgrid-btable {\r\n\tbackground-color: transparent;\r\n}\r\n\r\n.subgrid-data .ui-jqgrid-legacy-subgrid {\r\n\tmargin: 0;\r\n}\r\n',""]);const s=a},932:(t,e,i)=>{"use strict";i.d(e,{Z:()=>k});var r=i(39),n=i.n(r),o=i(499),a=i.n(o),s=i(888),l=i.n(s),d=new URL(i(811),i.b),c=new URL(i(373),i.b),u=new URL(i(920),i.b),h=new URL(i(647),i.b),p=new URL(i(364),i.b),f=new URL(i(397),i.b),g=new URL(i(28),i.b),m=new URL(i(222),i.b),v=a()(n()),b=l()(d),w=l()(c),y=l()(u),x=l()(h),_=l()(p),C=l()(f),A=l()(g),j=l()(m);v.push([t.id,'/*! jQuery UI - v1.12.1 - 2016-09-14\r\n* http://jqueryui.com\r\n* Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css\r\n* To view and modify this theme, visit http://jqueryui.com/themeroller/?bgShadowXPos=&bgOverlayXPos=&bgErrorXPos=&bgHighlightXPos=&bgContentXPos=&bgHeaderXPos=&bgActiveXPos=&bgHoverXPos=&bgDefaultXPos=&bgShadowYPos=&bgOverlayYPos=&bgErrorYPos=&bgHighlightYPos=&bgContentYPos=&bgHeaderYPos=&bgActiveYPos=&bgHoverYPos=&bgDefaultYPos=&bgShadowRepeat=&bgOverlayRepeat=&bgErrorRepeat=&bgHighlightRepeat=&bgContentRepeat=&bgHeaderRepeat=&bgActiveRepeat=&bgHoverRepeat=&bgDefaultRepeat=&iconsHover=url(%22images%2Fui-icons_555555_256x240.png%22)&iconsHighlight=url(%22images%2Fui-icons_777620_256x240.png%22)&iconsHeader=url(%22images%2Fui-icons_444444_256x240.png%22)&iconsError=url(%22images%2Fui-icons_cc0000_256x240.png%22)&iconsDefault=url(%22images%2Fui-icons_777777_256x240.png%22)&iconsContent=url(%22images%2Fui-icons_444444_256x240.png%22)&iconsActive=url(%22images%2Fui-icons_ffffff_256x240.png%22)&bgImgUrlShadow=&bgImgUrlOverlay=&bgImgUrlHover=&bgImgUrlHighlight=&bgImgUrlHeader=&bgImgUrlError=&bgImgUrlDefault=&bgImgUrlContent=&bgImgUrlActive=&opacityFilterShadow=Alpha(Opacity%3D30)&opacityFilterOverlay=Alpha(Opacity%3D30)&opacityShadowPerc=30&opacityOverlayPerc=30&iconColorHover=%23555555&iconColorHighlight=%23777620&iconColorHeader=%23444444&iconColorError=%23cc0000&iconColorDefault=%23777777&iconColorContent=%23444444&iconColorActive=%23ffffff&bgImgOpacityShadow=0&bgImgOpacityOverlay=0&bgImgOpacityError=95&bgImgOpacityHighlight=55&bgImgOpacityContent=75&bgImgOpacityHeader=75&bgImgOpacityActive=65&bgImgOpacityHover=75&bgImgOpacityDefault=75&bgTextureShadow=flat&bgTextureOverlay=flat&bgTextureError=flat&bgTextureHighlight=flat&bgTextureContent=flat&bgTextureHeader=flat&bgTextureActive=flat&bgTextureHover=flat&bgTextureDefault=flat&cornerRadius=3px&fwDefault=normal&ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&cornerRadiusShadow=8px&thicknessShadow=5px&offsetLeftShadow=0px&offsetTopShadow=0px&opacityShadow=.3&bgColorShadow=%23666666&opacityOverlay=.3&bgColorOverlay=%23aaaaaa&fcError=%235f3f3f&borderColorError=%23f1a899&bgColorError=%23fddfdf&fcHighlight=%23777620&borderColorHighlight=%23dad55e&bgColorHighlight=%23fffa90&fcContent=%23333333&borderColorContent=%23dddddd&bgColorContent=%23ffffff&fcHeader=%23333333&borderColorHeader=%23dddddd&bgColorHeader=%23e9e9e9&fcActive=%23ffffff&borderColorActive=%23003eff&bgColorActive=%23007fff&fcHover=%232b2b2b&borderColorHover=%23cccccc&bgColorHover=%23ededed&fcDefault=%23454545&borderColorDefault=%23c5c5c5&bgColorDefault=%23f6f6f6\r\n* Copyright jQuery Foundation and other contributors; Licensed MIT */\r\n\r\n/* Layout helpers\r\n----------------------------------*/\r\n.ui-helper-hidden {\r\n\tdisplay: none;\r\n}\r\n.ui-helper-hidden-accessible {\r\n\tborder: 0;\r\n\tclip: rect(0 0 0 0);\r\n\theight: 1px;\r\n\tmargin: -1px;\r\n\toverflow: hidden;\r\n\tpadding: 0;\r\n\tposition: absolute;\r\n\twidth: 1px;\r\n}\r\n.ui-helper-reset {\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tborder: 0;\r\n\toutline: 0;\r\n\tline-height: 1.3;\r\n\ttext-decoration: none;\r\n\tfont-size: 100%;\r\n\tlist-style: none;\r\n}\r\n.ui-helper-clearfix:before,\r\n.ui-helper-clearfix:after {\r\n\tcontent: "";\r\n\tdisplay: table;\r\n\tborder-collapse: collapse;\r\n}\r\n.ui-helper-clearfix:after {\r\n\tclear: both;\r\n}\r\n.ui-helper-zfix {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tposition: absolute;\r\n\topacity: 0;\r\n\tfilter: Alpha(Opacity=0); /* support: IE8 */\r\n}\r\n\r\n.ui-front {\r\n\tz-index: 100;\r\n}\r\n\r\n/* Interaction Cues\r\n----------------------------------*/\r\n.ui-state-disabled {\r\n\tcursor: default !important;\r\n\tpointer-events: none;\r\n}\r\n\r\n/* Icons\r\n----------------------------------*/\r\n.ui-icon {\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tmargin-top: -0.25em;\r\n\tposition: relative;\r\n\ttext-indent: -99999px;\r\n\toverflow: hidden;\r\n\tbackground-repeat: no-repeat;\r\n}\r\n\r\n.ui-widget-icon-block {\r\n\tleft: 50%;\r\n\tmargin-left: -8px;\r\n\tdisplay: block;\r\n}\r\n\r\n/* Misc visuals\r\n----------------------------------*/\r\n\r\n/* Overlays */\r\n.ui-widget-overlay {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n.ui-accordion .ui-accordion-header {\r\n\tdisplay: block;\r\n\tcursor: pointer;\r\n\tposition: relative;\r\n\tmargin: 2px 0 0 0;\r\n\tpadding: 0.5em 0.5em 0.5em 0.7em;\r\n\tfont-size: 100%;\r\n}\r\n.ui-accordion .ui-accordion-content {\r\n\tpadding: 1em 2.2em;\r\n\tborder-top: 0;\r\n\toverflow: auto;\r\n}\r\n.ui-autocomplete {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tcursor: default;\r\n}\r\n.ui-menu {\r\n\tlist-style: none;\r\n\tpadding: 0;\r\n\tmargin: 0;\r\n\tdisplay: block;\r\n\toutline: 0;\r\n}\r\n.ui-menu .ui-menu {\r\n\tposition: absolute;\r\n}\r\n.ui-menu .ui-menu-item {\r\n\tmargin: 0;\r\n\tcursor: pointer;\r\n\t/* support: IE10, see #8844 */\r\n\tlist-style-image: url('+b+");\r\n}\r\n.ui-menu .ui-menu-item-wrapper {\r\n\tposition: relative;\r\n\tpadding: 3px 1em 3px 0.4em;\r\n}\r\n.ui-menu .ui-menu-divider {\r\n\tmargin: 5px 0;\r\n\theight: 0;\r\n\tfont-size: 0;\r\n\tline-height: 0;\r\n\tborder-width: 1px 0 0 0;\r\n}\r\n.ui-menu .ui-state-focus,\r\n.ui-menu .ui-state-active {\r\n\tmargin: -1px;\r\n}\r\n\r\n/* icon support */\r\n.ui-menu-icons {\r\n\tposition: relative;\r\n}\r\n.ui-menu-icons .ui-menu-item-wrapper {\r\n\tpadding-left: 2em;\r\n}\r\n\r\n/* left-aligned */\r\n.ui-menu .ui-icon {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tbottom: 0;\r\n\tleft: 0.2em;\r\n\tmargin: auto 0;\r\n}\r\n\r\n/* right-aligned */\r\n.ui-menu .ui-menu-icon {\r\n\tleft: auto;\r\n\tright: 0;\r\n}\r\n.ui-button {\r\n\tpadding: 0.4em 1em;\r\n\tdisplay: inline-block;\r\n\tposition: relative;\r\n\tline-height: normal;\r\n\tmargin-right: 0.1em;\r\n\tcursor: pointer;\r\n\tvertical-align: middle;\r\n\ttext-align: center;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\r\n\t/* Support: IE <= 11 */\r\n\toverflow: visible;\r\n}\r\n\r\n.ui-button,\r\n.ui-button:link,\r\n.ui-button:visited,\r\n.ui-button:hover,\r\n.ui-button:active {\r\n\ttext-decoration: none;\r\n}\r\n\r\n/* to make room for the icon, a width needs to be set here */\r\n.ui-button-icon-only {\r\n\twidth: 2em;\r\n\tbox-sizing: border-box;\r\n\ttext-indent: -9999px;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n/* no icon support for input elements */\r\ninput.ui-button.ui-button-icon-only {\r\n\ttext-indent: 0;\r\n}\r\n\r\n/* button icon element(s) */\r\n.ui-button-icon-only .ui-icon {\r\n\tposition: absolute;\r\n\ttop: 50%;\r\n\tleft: 50%;\r\n\tmargin-top: -8px;\r\n\tmargin-left: -8px;\r\n}\r\n\r\n.ui-button.ui-icon-notext .ui-icon {\r\n\tpadding: 0;\r\n\twidth: 2.1em;\r\n\theight: 2.1em;\r\n\ttext-indent: -9999px;\r\n\twhite-space: nowrap;\r\n}\r\n\r\ninput.ui-button.ui-icon-notext .ui-icon {\r\n\twidth: auto;\r\n\theight: auto;\r\n\ttext-indent: 0;\r\n\twhite-space: normal;\r\n\tpadding: 0.4em 1em;\r\n}\r\n\r\n/* workarounds */\r\n/* Support: Firefox 5 - 40 */\r\ninput.ui-button::-moz-focus-inner,\r\nbutton.ui-button::-moz-focus-inner {\r\n\tborder: 0;\r\n\tpadding: 0;\r\n}\r\n.ui-controlgroup {\r\n\tvertical-align: middle;\r\n\tdisplay: inline-block;\r\n}\r\n.ui-controlgroup > .ui-controlgroup-item {\r\n\tfloat: left;\r\n\tmargin-left: 0;\r\n\tmargin-right: 0;\r\n}\r\n.ui-controlgroup > .ui-controlgroup-item:focus,\r\n.ui-controlgroup > .ui-controlgroup-item.ui-visual-focus {\r\n\tz-index: 9999;\r\n}\r\n.ui-controlgroup-vertical > .ui-controlgroup-item {\r\n\tdisplay: block;\r\n\tfloat: none;\r\n\twidth: 100%;\r\n\tmargin-top: 0;\r\n\tmargin-bottom: 0;\r\n\ttext-align: left;\r\n}\r\n.ui-controlgroup-vertical .ui-controlgroup-item {\r\n\tbox-sizing: border-box;\r\n}\r\n.ui-controlgroup .ui-controlgroup-label {\r\n\tpadding: 0.4em 1em;\r\n}\r\n.ui-controlgroup .ui-controlgroup-label span {\r\n\tfont-size: 80%;\r\n}\r\n.ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item {\r\n\tborder-left: none;\r\n}\r\n.ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item {\r\n\tborder-top: none;\r\n}\r\n.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content {\r\n\tborder-right: none;\r\n}\r\n.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content {\r\n\tborder-bottom: none;\r\n}\r\n\r\n/* Spinner specific style fixes */\r\n.ui-controlgroup-vertical .ui-spinner-input {\r\n\t/* Support: IE8 only, Android < 4.4 only */\r\n\twidth: 75%;\r\n\twidth: calc(100% - 2.4em);\r\n}\r\n.ui-controlgroup-vertical .ui-spinner .ui-spinner-up {\r\n\tborder-top-style: solid;\r\n}\r\n\r\n.ui-checkboxradio-label .ui-icon-background {\r\n\tbox-shadow: inset 1px 1px 1px #ccc;\r\n\tborder-radius: 0.12em;\r\n\tborder: none;\r\n}\r\n.ui-checkboxradio-radio-label .ui-icon-background {\r\n\twidth: 16px;\r\n\theight: 16px;\r\n\tborder-radius: 1em;\r\n\toverflow: visible;\r\n\tborder: none;\r\n}\r\n.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,\r\n.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon {\r\n\tbackground-image: none;\r\n\twidth: 8px;\r\n\theight: 8px;\r\n\tborder-width: 4px;\r\n\tborder-style: solid;\r\n}\r\n.ui-checkboxradio-disabled {\r\n\tpointer-events: none;\r\n}\r\n.ui-datepicker {\r\n\twidth: 17em;\r\n\tpadding: 0.2em 0.2em 0;\r\n\tdisplay: none;\r\n}\r\n.ui-datepicker .ui-datepicker-header {\r\n\tposition: relative;\r\n\tpadding: 0.2em 0;\r\n}\r\n.ui-datepicker .ui-datepicker-prev,\r\n.ui-datepicker .ui-datepicker-next {\r\n\tposition: absolute;\r\n\ttop: 2px;\r\n\twidth: 1.8em;\r\n\theight: 1.8em;\r\n}\r\n.ui-datepicker .ui-datepicker-prev-hover,\r\n.ui-datepicker .ui-datepicker-next-hover {\r\n\ttop: 1px;\r\n}\r\n.ui-datepicker .ui-datepicker-prev {\r\n\tleft: 2px;\r\n}\r\n.ui-datepicker .ui-datepicker-next {\r\n\tright: 2px;\r\n}\r\n.ui-datepicker .ui-datepicker-prev-hover {\r\n\tleft: 1px;\r\n}\r\n.ui-datepicker .ui-datepicker-next-hover {\r\n\tright: 1px;\r\n}\r\n.ui-datepicker .ui-datepicker-prev span,\r\n.ui-datepicker .ui-datepicker-next span {\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-left: -8px;\r\n\ttop: 50%;\r\n\tmargin-top: -8px;\r\n}\r\n.ui-datepicker .ui-datepicker-title {\r\n\tmargin: 0 2.3em;\r\n\tline-height: 1.8em;\r\n\ttext-align: center;\r\n}\r\n.ui-datepicker .ui-datepicker-title select {\r\n\tfont-size: 1em;\r\n\tmargin: 1px 0;\r\n}\r\n.ui-datepicker select.ui-datepicker-month,\r\n.ui-datepicker select.ui-datepicker-year {\r\n\twidth: 45%;\r\n}\r\n.ui-datepicker table {\r\n\twidth: 100%;\r\n\tfont-size: 0.9em;\r\n\tborder-collapse: collapse;\r\n\tmargin: 0 0 0.4em;\r\n}\r\n.ui-datepicker th {\r\n\tpadding: 0.7em 0.3em;\r\n\ttext-align: center;\r\n\tfont-weight: bold;\r\n\tborder: 0;\r\n}\r\n.ui-datepicker td {\r\n\tborder: 0;\r\n\tpadding: 1px;\r\n}\r\n.ui-datepicker td span,\r\n.ui-datepicker td a {\r\n\tdisplay: block;\r\n\tpadding: 0.2em;\r\n\ttext-align: right;\r\n\ttext-decoration: none;\r\n}\r\n.ui-datepicker .ui-datepicker-buttonpane {\r\n\tbackground-image: none;\r\n\tmargin: 0.7em 0 0 0;\r\n\tpadding: 0 0.2em;\r\n\tborder-left: 0;\r\n\tborder-right: 0;\r\n\tborder-bottom: 0;\r\n}\r\n.ui-datepicker .ui-datepicker-buttonpane button {\r\n\tfloat: right;\r\n\tmargin: 0.5em 0.2em 0.4em;\r\n\tcursor: pointer;\r\n\tpadding: 0.2em 0.6em 0.3em 0.6em;\r\n\twidth: auto;\r\n\toverflow: visible;\r\n}\r\n.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {\r\n\tfloat: left;\r\n}\r\n\r\n/* with multiple calendars */\r\n.ui-datepicker.ui-datepicker-multi {\r\n\twidth: auto;\r\n}\r\n.ui-datepicker-multi .ui-datepicker-group {\r\n\tfloat: left;\r\n}\r\n.ui-datepicker-multi .ui-datepicker-group table {\r\n\twidth: 95%;\r\n\tmargin: 0 auto 0.4em;\r\n}\r\n.ui-datepicker-multi-2 .ui-datepicker-group {\r\n\twidth: 50%;\r\n}\r\n.ui-datepicker-multi-3 .ui-datepicker-group {\r\n\twidth: 33.3%;\r\n}\r\n.ui-datepicker-multi-4 .ui-datepicker-group {\r\n\twidth: 25%;\r\n}\r\n.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,\r\n.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {\r\n\tborder-left-width: 0;\r\n}\r\n.ui-datepicker-multi .ui-datepicker-buttonpane {\r\n\tclear: left;\r\n}\r\n.ui-datepicker-row-break {\r\n\tclear: both;\r\n\twidth: 100%;\r\n\tfont-size: 0;\r\n}\r\n\r\n/* RTL support */\r\n.ui-datepicker-rtl {\r\n\tdirection: rtl;\r\n}\r\n.ui-datepicker-rtl .ui-datepicker-prev {\r\n\tright: 2px;\r\n\tleft: auto;\r\n}\r\n.ui-datepicker-rtl .ui-datepicker-next {\r\n\tleft: 2px;\r\n\tright: auto;\r\n}\r\n.ui-datepicker-rtl .ui-datepicker-prev:hover {\r\n\tright: 1px;\r\n\tleft: auto;\r\n}\r\n.ui-datepicker-rtl .ui-datepicker-next:hover {\r\n\tleft: 1px;\r\n\tright: auto;\r\n}\r\n.ui-datepicker-rtl .ui-datepicker-buttonpane {\r\n\tclear: right;\r\n}\r\n.ui-datepicker-rtl .ui-datepicker-buttonpane button {\r\n\tfloat: left;\r\n}\r\n.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,\r\n.ui-datepicker-rtl .ui-datepicker-group {\r\n\tfloat: right;\r\n}\r\n.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,\r\n.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {\r\n\tborder-right-width: 0;\r\n\tborder-left-width: 1px;\r\n}\r\n\r\n/* Icons */\r\n.ui-datepicker .ui-icon {\r\n\tdisplay: block;\r\n\ttext-indent: -99999px;\r\n\toverflow: hidden;\r\n\tbackground-repeat: no-repeat;\r\n\tleft: 0.5em;\r\n\ttop: 0.3em;\r\n}\r\n.ui-dialog {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tpadding: 0.2em;\r\n\toutline: 0;\r\n}\r\n.ui-dialog .ui-dialog-titlebar {\r\n\tpadding: 0.4em 1em;\r\n\tposition: relative;\r\n}\r\n.ui-dialog .ui-dialog-title {\r\n\tfloat: left;\r\n\tmargin: 0.1em 0;\r\n\twhite-space: nowrap;\r\n\twidth: 90%;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n}\r\n.ui-dialog .ui-dialog-titlebar-close {\r\n\tposition: absolute;\r\n\tright: 0.3em;\r\n\ttop: 50%;\r\n\twidth: 20px;\r\n\tmargin: -10px 0 0 0;\r\n\tpadding: 1px;\r\n\theight: 20px;\r\n}\r\n.ui-dialog .ui-dialog-content {\r\n\tposition: relative;\r\n\tborder: 0;\r\n\tpadding: 0.5em 1em;\r\n\tbackground: none;\r\n\toverflow: auto;\r\n}\r\n.ui-dialog .ui-dialog-buttonpane {\r\n\ttext-align: left;\r\n\tborder-width: 1px 0 0 0;\r\n\tbackground-image: none;\r\n\tmargin-top: 0.5em;\r\n\tpadding: 0.3em 1em 0.5em 0.4em;\r\n}\r\n.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {\r\n\tfloat: right;\r\n}\r\n.ui-dialog .ui-dialog-buttonpane button {\r\n\tmargin: 0.5em 0.4em 0.5em 0;\r\n\tcursor: pointer;\r\n}\r\n.ui-dialog .ui-resizable-n {\r\n\theight: 2px;\r\n\ttop: 0;\r\n}\r\n.ui-dialog .ui-resizable-e {\r\n\twidth: 2px;\r\n\tright: 0;\r\n}\r\n.ui-dialog .ui-resizable-s {\r\n\theight: 2px;\r\n\tbottom: 0;\r\n}\r\n.ui-dialog .ui-resizable-w {\r\n\twidth: 2px;\r\n\tleft: 0;\r\n}\r\n.ui-dialog .ui-resizable-se,\r\n.ui-dialog .ui-resizable-sw,\r\n.ui-dialog .ui-resizable-ne,\r\n.ui-dialog .ui-resizable-nw {\r\n\twidth: 7px;\r\n\theight: 7px;\r\n}\r\n.ui-dialog .ui-resizable-se {\r\n\tright: 0;\r\n\tbottom: 0;\r\n}\r\n.ui-dialog .ui-resizable-sw {\r\n\tleft: 0;\r\n\tbottom: 0;\r\n}\r\n.ui-dialog .ui-resizable-ne {\r\n\tright: 0;\r\n\ttop: 0;\r\n}\r\n.ui-dialog .ui-resizable-nw {\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n.ui-draggable .ui-dialog-titlebar {\r\n\tcursor: move;\r\n}\r\n.ui-draggable-handle {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.ui-resizable {\r\n\tposition: relative;\r\n}\r\n.ui-resizable-handle {\r\n\tposition: absolute;\r\n\tfont-size: 0.1px;\r\n\tdisplay: block;\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.ui-resizable-disabled .ui-resizable-handle,\r\n.ui-resizable-autohide .ui-resizable-handle {\r\n\tdisplay: none;\r\n}\r\n.ui-resizable-n {\r\n\tcursor: n-resize;\r\n\theight: 7px;\r\n\twidth: 100%;\r\n\ttop: -5px;\r\n\tleft: 0;\r\n}\r\n.ui-resizable-s {\r\n\tcursor: s-resize;\r\n\theight: 7px;\r\n\twidth: 100%;\r\n\tbottom: -5px;\r\n\tleft: 0;\r\n}\r\n.ui-resizable-e {\r\n\tcursor: e-resize;\r\n\twidth: 7px;\r\n\tright: -5px;\r\n\ttop: 0;\r\n\theight: 100%;\r\n}\r\n.ui-resizable-w {\r\n\tcursor: w-resize;\r\n\twidth: 7px;\r\n\tleft: -5px;\r\n\ttop: 0;\r\n\theight: 100%;\r\n}\r\n.ui-resizable-se {\r\n\tcursor: se-resize;\r\n\twidth: 12px;\r\n\theight: 12px;\r\n\tright: 1px;\r\n\tbottom: 1px;\r\n}\r\n.ui-resizable-sw {\r\n\tcursor: sw-resize;\r\n\twidth: 9px;\r\n\theight: 9px;\r\n\tleft: -5px;\r\n\tbottom: -5px;\r\n}\r\n.ui-resizable-nw {\r\n\tcursor: nw-resize;\r\n\twidth: 9px;\r\n\theight: 9px;\r\n\tleft: -5px;\r\n\ttop: -5px;\r\n}\r\n.ui-resizable-ne {\r\n\tcursor: ne-resize;\r\n\twidth: 9px;\r\n\theight: 9px;\r\n\tright: -5px;\r\n\ttop: -5px;\r\n}\r\n.ui-progressbar {\r\n\theight: 2em;\r\n\ttext-align: left;\r\n\toverflow: hidden;\r\n}\r\n.ui-progressbar .ui-progressbar-value {\r\n\tmargin: -1px;\r\n\theight: 100%;\r\n}\r\n.ui-progressbar .ui-progressbar-overlay {\r\n\tbackground: url("+w+');\r\n\theight: 100%;\r\n\tfilter: alpha(opacity=25); /* support: IE8 */\r\n\topacity: 0.25;\r\n}\r\n.ui-progressbar-indeterminate .ui-progressbar-value {\r\n\tbackground-image: none;\r\n}\r\n.ui-selectable {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.ui-selectable-helper {\r\n\tposition: absolute;\r\n\tz-index: 100;\r\n\tborder: 1px dotted black;\r\n}\r\n.ui-selectmenu-menu {\r\n\tpadding: 0;\r\n\tmargin: 0;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tdisplay: none;\r\n}\r\n.ui-selectmenu-menu .ui-menu {\r\n\toverflow: auto;\r\n\toverflow-x: hidden;\r\n\tpadding-bottom: 1px;\r\n}\r\n.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {\r\n\tfont-size: 1em;\r\n\tfont-weight: bold;\r\n\tline-height: 1.5;\r\n\tpadding: 2px 0.4em;\r\n\tmargin: 0.5em 0 0 0;\r\n\theight: auto;\r\n\tborder: 0;\r\n}\r\n.ui-selectmenu-open {\r\n\tdisplay: block;\r\n}\r\n.ui-selectmenu-text {\r\n\tdisplay: block;\r\n\tmargin-right: 20px;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n}\r\n.ui-selectmenu-button.ui-button {\r\n\ttext-align: left;\r\n\twhite-space: nowrap;\r\n\twidth: 14em;\r\n}\r\n.ui-selectmenu-icon.ui-icon {\r\n\tfloat: right;\r\n\tmargin-top: 0;\r\n}\r\n.ui-slider {\r\n\tposition: relative;\r\n\ttext-align: left;\r\n}\r\n.ui-slider .ui-slider-handle {\r\n\tposition: absolute;\r\n\tz-index: 2;\r\n\twidth: 1.2em;\r\n\theight: 1.2em;\r\n\tcursor: default;\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.ui-slider .ui-slider-range {\r\n\tposition: absolute;\r\n\tz-index: 1;\r\n\tfont-size: 0.7em;\r\n\tdisplay: block;\r\n\tborder: 0;\r\n\tbackground-position: 0 0;\r\n}\r\n\r\n/* support: IE8 - See #6727 */\r\n.ui-slider.ui-state-disabled .ui-slider-handle,\r\n.ui-slider.ui-state-disabled .ui-slider-range {\r\n\tfilter: inherit;\r\n}\r\n\r\n.ui-slider-horizontal {\r\n\theight: 0.8em;\r\n}\r\n.ui-slider-horizontal .ui-slider-handle {\r\n\ttop: -0.3em;\r\n\tmargin-left: -0.6em;\r\n}\r\n.ui-slider-horizontal .ui-slider-range {\r\n\ttop: 0;\r\n\theight: 100%;\r\n}\r\n.ui-slider-horizontal .ui-slider-range-min {\r\n\tleft: 0;\r\n}\r\n.ui-slider-horizontal .ui-slider-range-max {\r\n\tright: 0;\r\n}\r\n\r\n.ui-slider-vertical {\r\n\twidth: 0.8em;\r\n\theight: 100px;\r\n}\r\n.ui-slider-vertical .ui-slider-handle {\r\n\tleft: -0.3em;\r\n\tmargin-left: 0;\r\n\tmargin-bottom: -0.6em;\r\n}\r\n.ui-slider-vertical .ui-slider-range {\r\n\tleft: 0;\r\n\twidth: 100%;\r\n}\r\n.ui-slider-vertical .ui-slider-range-min {\r\n\tbottom: 0;\r\n}\r\n.ui-slider-vertical .ui-slider-range-max {\r\n\ttop: 0;\r\n}\r\n.ui-sortable-handle {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.ui-spinner {\r\n\tposition: relative;\r\n\tdisplay: inline-block;\r\n\toverflow: hidden;\r\n\tpadding: 0;\r\n\tvertical-align: middle;\r\n}\r\n.ui-spinner-input {\r\n\tborder: none;\r\n\tbackground: none;\r\n\tcolor: inherit;\r\n\tpadding: 0.222em 0;\r\n\tmargin: 0.2em 0;\r\n\tvertical-align: middle;\r\n\tmargin-left: 0.4em;\r\n\tmargin-right: 2em;\r\n}\r\n.ui-spinner-button {\r\n\twidth: 1.6em;\r\n\theight: 50%;\r\n\tfont-size: 0.5em;\r\n\tpadding: 0;\r\n\tmargin: 0;\r\n\ttext-align: center;\r\n\tposition: absolute;\r\n\tcursor: default;\r\n\tdisplay: block;\r\n\toverflow: hidden;\r\n\tright: 0;\r\n}\r\n/* more specificity required here to override default borders */\r\n.ui-spinner a.ui-spinner-button {\r\n\tborder-top-style: none;\r\n\tborder-bottom-style: none;\r\n\tborder-right-style: none;\r\n}\r\n.ui-spinner-up {\r\n\ttop: 0;\r\n}\r\n.ui-spinner-down {\r\n\tbottom: 0;\r\n}\r\n.ui-tabs {\r\n\tposition: relative; /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */\r\n\tpadding: 0.2em;\r\n}\r\n.ui-tabs .ui-tabs-nav {\r\n\tmargin: 0;\r\n\tpadding: 0.2em 0.2em 0;\r\n}\r\n.ui-tabs .ui-tabs-nav li {\r\n\tlist-style: none;\r\n\tfloat: left;\r\n\tposition: relative;\r\n\ttop: 0;\r\n\tmargin: 1px 0.2em 0 0;\r\n\tborder-bottom-width: 0;\r\n\tpadding: 0;\r\n\twhite-space: nowrap;\r\n}\r\n.ui-tabs .ui-tabs-nav .ui-tabs-anchor {\r\n\tfloat: left;\r\n\tpadding: 0.5em 1em;\r\n\ttext-decoration: none;\r\n}\r\n.ui-tabs .ui-tabs-nav li.ui-tabs-active {\r\n\tmargin-bottom: -1px;\r\n\tpadding-bottom: 1px;\r\n}\r\n.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,\r\n.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,\r\n.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {\r\n\tcursor: text;\r\n}\r\n.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {\r\n\tcursor: pointer;\r\n}\r\n.ui-tabs .ui-tabs-panel {\r\n\tdisplay: block;\r\n\tborder-width: 0;\r\n\tpadding: 1em 1.4em;\r\n\tbackground: none;\r\n}\r\n.ui-tooltip {\r\n\tpadding: 8px;\r\n\tposition: absolute;\r\n\tz-index: 9999;\r\n\tmax-width: 300px;\r\n}\r\nbody .ui-tooltip {\r\n\tborder-width: 2px;\r\n}\r\n\r\n/* Component containers\r\n----------------------------------*/\r\n.ui-widget {\r\n\tfont-family: Arial, Helvetica, sans-serif;\r\n\tfont-size: 1em;\r\n}\r\n.ui-widget .ui-widget {\r\n\tfont-size: 1em;\r\n}\r\n.ui-widget input,\r\n.ui-widget select,\r\n.ui-widget textarea,\r\n.ui-widget button {\r\n\tfont-family: Arial, Helvetica, sans-serif;\r\n\tfont-size: 1em;\r\n}\r\n.ui-widget.ui-widget-content {\r\n\tborder: 1px solid #c5c5c5;\r\n}\r\n.ui-widget-content {\r\n\tborder: 1px solid #dddddd;\r\n\tbackground: #ffffff;\r\n\tcolor: #333333;\r\n}\r\n.ui-widget-content a {\r\n\tcolor: #333333;\r\n}\r\n.ui-widget-header {\r\n\tborder: 1px solid #dddddd;\r\n\tbackground: #e9e9e9;\r\n\tcolor: #333333;\r\n\tfont-weight: bold;\r\n}\r\n.ui-widget-header a {\r\n\tcolor: #333333;\r\n}\r\n\r\n/* Interaction states\r\n----------------------------------*/\r\n.ui-state-default,\r\n.ui-widget-content .ui-state-default,\r\n.ui-widget-header .ui-state-default,\r\n.ui-button,\r\n\r\n/* We use html here because we need a greater specificity to make sure disabled\r\nworks properly when clicked or hovered */\r\nhtml .ui-button.ui-state-disabled:hover,\r\nhtml .ui-button.ui-state-disabled:active {\r\n\tborder: 1px solid #c5c5c5;\r\n\tbackground: #f6f6f6;\r\n\tfont-weight: normal;\r\n\tcolor: #454545;\r\n}\r\n.ui-state-default a,\r\n.ui-state-default a:link,\r\n.ui-state-default a:visited,\r\na.ui-button,\r\na:link.ui-button,\r\na:visited.ui-button,\r\n.ui-button {\r\n\tcolor: #454545;\r\n\ttext-decoration: none;\r\n}\r\n.ui-state-hover,\r\n.ui-widget-content .ui-state-hover,\r\n.ui-widget-header .ui-state-hover,\r\n.ui-state-focus,\r\n.ui-widget-content .ui-state-focus,\r\n.ui-widget-header .ui-state-focus,\r\n.ui-button:hover,\r\n.ui-button:focus {\r\n\tborder: 1px solid #cccccc;\r\n\tbackground: #ededed;\r\n\tfont-weight: normal;\r\n\tcolor: #2b2b2b;\r\n}\r\n.ui-state-hover a,\r\n.ui-state-hover a:hover,\r\n.ui-state-hover a:link,\r\n.ui-state-hover a:visited,\r\n.ui-state-focus a,\r\n.ui-state-focus a:hover,\r\n.ui-state-focus a:link,\r\n.ui-state-focus a:visited,\r\na.ui-button:hover,\r\na.ui-button:focus {\r\n\tcolor: #2b2b2b;\r\n\ttext-decoration: none;\r\n}\r\n\r\n.ui-visual-focus {\r\n\tbox-shadow: 0 0 3px 1px rgb(94, 158, 214);\r\n}\r\n.ui-state-active,\r\n.ui-widget-content .ui-state-active,\r\n.ui-widget-header .ui-state-active,\r\na.ui-button:active,\r\n.ui-button:active,\r\n.ui-button.ui-state-active:hover {\r\n\tborder: 1px solid #003eff;\r\n\tbackground: #007fff;\r\n\tfont-weight: normal;\r\n\tcolor: #ffffff;\r\n}\r\n.ui-icon-background,\r\n.ui-state-active .ui-icon-background {\r\n\tborder: #003eff;\r\n\tbackground-color: #ffffff;\r\n}\r\n.ui-state-active a,\r\n.ui-state-active a:link,\r\n.ui-state-active a:visited {\r\n\tcolor: #ffffff;\r\n\ttext-decoration: none;\r\n}\r\n\r\n/* Interaction Cues\r\n----------------------------------*/\r\n.ui-state-highlight,\r\n.ui-widget-content .ui-state-highlight,\r\n.ui-widget-header .ui-state-highlight {\r\n\tborder: 1px solid #dad55e;\r\n\tbackground: #fffa90;\r\n\tcolor: #777620;\r\n}\r\n.ui-state-checked {\r\n\tborder: 1px solid #dad55e;\r\n\tbackground: #fffa90;\r\n}\r\n.ui-state-highlight a,\r\n.ui-widget-content .ui-state-highlight a,\r\n.ui-widget-header .ui-state-highlight a {\r\n\tcolor: #777620;\r\n}\r\n.ui-state-error,\r\n.ui-widget-content .ui-state-error,\r\n.ui-widget-header .ui-state-error {\r\n\tborder: 1px solid #f1a899;\r\n\tbackground: #fddfdf;\r\n\tcolor: #5f3f3f;\r\n}\r\n.ui-state-error a,\r\n.ui-widget-content .ui-state-error a,\r\n.ui-widget-header .ui-state-error a {\r\n\tcolor: #5f3f3f;\r\n}\r\n.ui-state-error-text,\r\n.ui-widget-content .ui-state-error-text,\r\n.ui-widget-header .ui-state-error-text {\r\n\tcolor: #5f3f3f;\r\n}\r\n.ui-priority-primary,\r\n.ui-widget-content .ui-priority-primary,\r\n.ui-widget-header .ui-priority-primary {\r\n\tfont-weight: bold;\r\n}\r\n.ui-priority-secondary,\r\n.ui-widget-content .ui-priority-secondary,\r\n.ui-widget-header .ui-priority-secondary {\r\n\topacity: 0.7;\r\n\tfilter: Alpha(Opacity=70); /* support: IE8 */\r\n\tfont-weight: normal;\r\n}\r\n.ui-state-disabled,\r\n.ui-widget-content .ui-state-disabled,\r\n.ui-widget-header .ui-state-disabled {\r\n\topacity: 0.35;\r\n\tfilter: Alpha(Opacity=35); /* support: IE8 */\r\n\tbackground-image: none;\r\n}\r\n.ui-state-disabled .ui-icon {\r\n\tfilter: Alpha(Opacity=35); /* support: IE8 - See #6059 */\r\n}\r\n\r\n/* Icons\r\n----------------------------------*/\r\n\r\n/* states and images */\r\n.ui-icon {\r\n\twidth: 16px;\r\n\theight: 16px;\r\n}\r\n.ui-icon,\r\n.ui-widget-content .ui-icon {\r\n\tbackground-image: url('+y+");\r\n}\r\n.ui-widget-header .ui-icon {\r\n\tbackground-image: url("+y+");\r\n}\r\n.ui-state-hover .ui-icon,\r\n.ui-state-focus .ui-icon,\r\n.ui-button:hover .ui-icon,\r\n.ui-button:focus .ui-icon {\r\n\tbackground-image: url("+x+");\r\n}\r\n.ui-state-active .ui-icon,\r\n.ui-button:active .ui-icon {\r\n\tbackground-image: url("+_+");\r\n}\r\n.ui-state-highlight .ui-icon,\r\n.ui-button .ui-state-highlight.ui-icon {\r\n\tbackground-image: url("+C+");\r\n}\r\n.ui-state-error .ui-icon,\r\n.ui-state-error-text .ui-icon {\r\n\tbackground-image: url("+A+");\r\n}\r\n.ui-button .ui-icon {\r\n\tbackground-image: url("+j+");\r\n}\r\n\r\n/* positioning */\r\n.ui-icon-blank {\r\n\tbackground-position: 16px 16px;\r\n}\r\n.ui-icon-caret-1-n {\r\n\tbackground-position: 0 0;\r\n}\r\n.ui-icon-caret-1-ne {\r\n\tbackground-position: -16px 0;\r\n}\r\n.ui-icon-caret-1-e {\r\n\tbackground-position: -32px 0;\r\n}\r\n.ui-icon-caret-1-se {\r\n\tbackground-position: -48px 0;\r\n}\r\n.ui-icon-caret-1-s {\r\n\tbackground-position: -65px 0;\r\n}\r\n.ui-icon-caret-1-sw {\r\n\tbackground-position: -80px 0;\r\n}\r\n.ui-icon-caret-1-w {\r\n\tbackground-position: -96px 0;\r\n}\r\n.ui-icon-caret-1-nw {\r\n\tbackground-position: -112px 0;\r\n}\r\n.ui-icon-caret-2-n-s {\r\n\tbackground-position: -128px 0;\r\n}\r\n.ui-icon-caret-2-e-w {\r\n\tbackground-position: -144px 0;\r\n}\r\n.ui-icon-triangle-1-n {\r\n\tbackground-position: 0 -16px;\r\n}\r\n.ui-icon-triangle-1-ne {\r\n\tbackground-position: -16px -16px;\r\n}\r\n.ui-icon-triangle-1-e {\r\n\tbackground-position: -32px -16px;\r\n}\r\n.ui-icon-triangle-1-se {\r\n\tbackground-position: -48px -16px;\r\n}\r\n.ui-icon-triangle-1-s {\r\n\tbackground-position: -65px -16px;\r\n}\r\n.ui-icon-triangle-1-sw {\r\n\tbackground-position: -80px -16px;\r\n}\r\n.ui-icon-triangle-1-w {\r\n\tbackground-position: -96px -16px;\r\n}\r\n.ui-icon-triangle-1-nw {\r\n\tbackground-position: -112px -16px;\r\n}\r\n.ui-icon-triangle-2-n-s {\r\n\tbackground-position: -128px -16px;\r\n}\r\n.ui-icon-triangle-2-e-w {\r\n\tbackground-position: -144px -16px;\r\n}\r\n.ui-icon-arrow-1-n {\r\n\tbackground-position: 0 -32px;\r\n}\r\n.ui-icon-arrow-1-ne {\r\n\tbackground-position: -16px -32px;\r\n}\r\n.ui-icon-arrow-1-e {\r\n\tbackground-position: -32px -32px;\r\n}\r\n.ui-icon-arrow-1-se {\r\n\tbackground-position: -48px -32px;\r\n}\r\n.ui-icon-arrow-1-s {\r\n\tbackground-position: -65px -32px;\r\n}\r\n.ui-icon-arrow-1-sw {\r\n\tbackground-position: -80px -32px;\r\n}\r\n.ui-icon-arrow-1-w {\r\n\tbackground-position: -96px -32px;\r\n}\r\n.ui-icon-arrow-1-nw {\r\n\tbackground-position: -112px -32px;\r\n}\r\n.ui-icon-arrow-2-n-s {\r\n\tbackground-position: -128px -32px;\r\n}\r\n.ui-icon-arrow-2-ne-sw {\r\n\tbackground-position: -144px -32px;\r\n}\r\n.ui-icon-arrow-2-e-w {\r\n\tbackground-position: -160px -32px;\r\n}\r\n.ui-icon-arrow-2-se-nw {\r\n\tbackground-position: -176px -32px;\r\n}\r\n.ui-icon-arrowstop-1-n {\r\n\tbackground-position: -192px -32px;\r\n}\r\n.ui-icon-arrowstop-1-e {\r\n\tbackground-position: -208px -32px;\r\n}\r\n.ui-icon-arrowstop-1-s {\r\n\tbackground-position: -224px -32px;\r\n}\r\n.ui-icon-arrowstop-1-w {\r\n\tbackground-position: -240px -32px;\r\n}\r\n.ui-icon-arrowthick-1-n {\r\n\tbackground-position: 1px -48px;\r\n}\r\n.ui-icon-arrowthick-1-ne {\r\n\tbackground-position: -16px -48px;\r\n}\r\n.ui-icon-arrowthick-1-e {\r\n\tbackground-position: -32px -48px;\r\n}\r\n.ui-icon-arrowthick-1-se {\r\n\tbackground-position: -48px -48px;\r\n}\r\n.ui-icon-arrowthick-1-s {\r\n\tbackground-position: -64px -48px;\r\n}\r\n.ui-icon-arrowthick-1-sw {\r\n\tbackground-position: -80px -48px;\r\n}\r\n.ui-icon-arrowthick-1-w {\r\n\tbackground-position: -96px -48px;\r\n}\r\n.ui-icon-arrowthick-1-nw {\r\n\tbackground-position: -112px -48px;\r\n}\r\n.ui-icon-arrowthick-2-n-s {\r\n\tbackground-position: -128px -48px;\r\n}\r\n.ui-icon-arrowthick-2-ne-sw {\r\n\tbackground-position: -144px -48px;\r\n}\r\n.ui-icon-arrowthick-2-e-w {\r\n\tbackground-position: -160px -48px;\r\n}\r\n.ui-icon-arrowthick-2-se-nw {\r\n\tbackground-position: -176px -48px;\r\n}\r\n.ui-icon-arrowthickstop-1-n {\r\n\tbackground-position: -192px -48px;\r\n}\r\n.ui-icon-arrowthickstop-1-e {\r\n\tbackground-position: -208px -48px;\r\n}\r\n.ui-icon-arrowthickstop-1-s {\r\n\tbackground-position: -224px -48px;\r\n}\r\n.ui-icon-arrowthickstop-1-w {\r\n\tbackground-position: -240px -48px;\r\n}\r\n.ui-icon-arrowreturnthick-1-w {\r\n\tbackground-position: 0 -64px;\r\n}\r\n.ui-icon-arrowreturnthick-1-n {\r\n\tbackground-position: -16px -64px;\r\n}\r\n.ui-icon-arrowreturnthick-1-e {\r\n\tbackground-position: -32px -64px;\r\n}\r\n.ui-icon-arrowreturnthick-1-s {\r\n\tbackground-position: -48px -64px;\r\n}\r\n.ui-icon-arrowreturn-1-w {\r\n\tbackground-position: -64px -64px;\r\n}\r\n.ui-icon-arrowreturn-1-n {\r\n\tbackground-position: -80px -64px;\r\n}\r\n.ui-icon-arrowreturn-1-e {\r\n\tbackground-position: -96px -64px;\r\n}\r\n.ui-icon-arrowreturn-1-s {\r\n\tbackground-position: -112px -64px;\r\n}\r\n.ui-icon-arrowrefresh-1-w {\r\n\tbackground-position: -128px -64px;\r\n}\r\n.ui-icon-arrowrefresh-1-n {\r\n\tbackground-position: -144px -64px;\r\n}\r\n.ui-icon-arrowrefresh-1-e {\r\n\tbackground-position: -160px -64px;\r\n}\r\n.ui-icon-arrowrefresh-1-s {\r\n\tbackground-position: -176px -64px;\r\n}\r\n.ui-icon-arrow-4 {\r\n\tbackground-position: 0 -80px;\r\n}\r\n.ui-icon-arrow-4-diag {\r\n\tbackground-position: -16px -80px;\r\n}\r\n.ui-icon-extlink {\r\n\tbackground-position: -32px -80px;\r\n}\r\n.ui-icon-newwin {\r\n\tbackground-position: -48px -80px;\r\n}\r\n.ui-icon-refresh {\r\n\tbackground-position: -64px -80px;\r\n}\r\n.ui-icon-shuffle {\r\n\tbackground-position: -80px -80px;\r\n}\r\n.ui-icon-transfer-e-w {\r\n\tbackground-position: -96px -80px;\r\n}\r\n.ui-icon-transferthick-e-w {\r\n\tbackground-position: -112px -80px;\r\n}\r\n.ui-icon-folder-collapsed {\r\n\tbackground-position: 0 -96px;\r\n}\r\n.ui-icon-folder-open {\r\n\tbackground-position: -16px -96px;\r\n}\r\n.ui-icon-document {\r\n\tbackground-position: -32px -96px;\r\n}\r\n.ui-icon-document-b {\r\n\tbackground-position: -48px -96px;\r\n}\r\n.ui-icon-note {\r\n\tbackground-position: -64px -96px;\r\n}\r\n.ui-icon-mail-closed {\r\n\tbackground-position: -80px -96px;\r\n}\r\n.ui-icon-mail-open {\r\n\tbackground-position: -96px -96px;\r\n}\r\n.ui-icon-suitcase {\r\n\tbackground-position: -112px -96px;\r\n}\r\n.ui-icon-comment {\r\n\tbackground-position: -128px -96px;\r\n}\r\n.ui-icon-person {\r\n\tbackground-position: -144px -96px;\r\n}\r\n.ui-icon-print {\r\n\tbackground-position: -160px -96px;\r\n}\r\n.ui-icon-trash {\r\n\tbackground-position: -176px -96px;\r\n}\r\n.ui-icon-locked {\r\n\tbackground-position: -192px -96px;\r\n}\r\n.ui-icon-unlocked {\r\n\tbackground-position: -208px -96px;\r\n}\r\n.ui-icon-bookmark {\r\n\tbackground-position: -224px -96px;\r\n}\r\n.ui-icon-tag {\r\n\tbackground-position: -240px -96px;\r\n}\r\n.ui-icon-home {\r\n\tbackground-position: 0 -112px;\r\n}\r\n.ui-icon-flag {\r\n\tbackground-position: -16px -112px;\r\n}\r\n.ui-icon-calendar {\r\n\tbackground-position: -32px -112px;\r\n}\r\n.ui-icon-cart {\r\n\tbackground-position: -48px -112px;\r\n}\r\n.ui-icon-pencil {\r\n\tbackground-position: -64px -112px;\r\n}\r\n.ui-icon-clock {\r\n\tbackground-position: -80px -112px;\r\n}\r\n.ui-icon-disk {\r\n\tbackground-position: -96px -112px;\r\n}\r\n.ui-icon-calculator {\r\n\tbackground-position: -112px -112px;\r\n}\r\n.ui-icon-zoomin {\r\n\tbackground-position: -128px -112px;\r\n}\r\n.ui-icon-zoomout {\r\n\tbackground-position: -144px -112px;\r\n}\r\n.ui-icon-search {\r\n\tbackground-position: -160px -112px;\r\n}\r\n.ui-icon-wrench {\r\n\tbackground-position: -176px -112px;\r\n}\r\n.ui-icon-gear {\r\n\tbackground-position: -192px -112px;\r\n}\r\n.ui-icon-heart {\r\n\tbackground-position: -208px -112px;\r\n}\r\n.ui-icon-star {\r\n\tbackground-position: -224px -112px;\r\n}\r\n.ui-icon-link {\r\n\tbackground-position: -240px -112px;\r\n}\r\n.ui-icon-cancel {\r\n\tbackground-position: 0 -128px;\r\n}\r\n.ui-icon-plus {\r\n\tbackground-position: -16px -128px;\r\n}\r\n.ui-icon-plusthick {\r\n\tbackground-position: -32px -128px;\r\n}\r\n.ui-icon-minus {\r\n\tbackground-position: -48px -128px;\r\n}\r\n.ui-icon-minusthick {\r\n\tbackground-position: -64px -128px;\r\n}\r\n.ui-icon-close {\r\n\tbackground-position: -80px -128px;\r\n}\r\n.ui-icon-closethick {\r\n\tbackground-position: -96px -128px;\r\n}\r\n.ui-icon-key {\r\n\tbackground-position: -112px -128px;\r\n}\r\n.ui-icon-lightbulb {\r\n\tbackground-position: -128px -128px;\r\n}\r\n.ui-icon-scissors {\r\n\tbackground-position: -144px -128px;\r\n}\r\n.ui-icon-clipboard {\r\n\tbackground-position: -160px -128px;\r\n}\r\n.ui-icon-copy {\r\n\tbackground-position: -176px -128px;\r\n}\r\n.ui-icon-contact {\r\n\tbackground-position: -192px -128px;\r\n}\r\n.ui-icon-image {\r\n\tbackground-position: -208px -128px;\r\n}\r\n.ui-icon-video {\r\n\tbackground-position: -224px -128px;\r\n}\r\n.ui-icon-script {\r\n\tbackground-position: -240px -128px;\r\n}\r\n.ui-icon-alert {\r\n\tbackground-position: 0 -144px;\r\n}\r\n.ui-icon-info {\r\n\tbackground-position: -16px -144px;\r\n}\r\n.ui-icon-notice {\r\n\tbackground-position: -32px -144px;\r\n}\r\n.ui-icon-help {\r\n\tbackground-position: -48px -144px;\r\n}\r\n.ui-icon-check {\r\n\tbackground-position: -64px -144px;\r\n}\r\n.ui-icon-bullet {\r\n\tbackground-position: -80px -144px;\r\n}\r\n.ui-icon-radio-on {\r\n\tbackground-position: -96px -144px;\r\n}\r\n.ui-icon-radio-off {\r\n\tbackground-position: -112px -144px;\r\n}\r\n.ui-icon-pin-w {\r\n\tbackground-position: -128px -144px;\r\n}\r\n.ui-icon-pin-s {\r\n\tbackground-position: -144px -144px;\r\n}\r\n.ui-icon-play {\r\n\tbackground-position: 0 -160px;\r\n}\r\n.ui-icon-pause {\r\n\tbackground-position: -16px -160px;\r\n}\r\n.ui-icon-seek-next {\r\n\tbackground-position: -32px -160px;\r\n}\r\n.ui-icon-seek-prev {\r\n\tbackground-position: -48px -160px;\r\n}\r\n.ui-icon-seek-end {\r\n\tbackground-position: -64px -160px;\r\n}\r\n.ui-icon-seek-start {\r\n\tbackground-position: -80px -160px;\r\n}\r\n/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */\r\n.ui-icon-seek-first {\r\n\tbackground-position: -80px -160px;\r\n}\r\n.ui-icon-stop {\r\n\tbackground-position: -96px -160px;\r\n}\r\n.ui-icon-eject {\r\n\tbackground-position: -112px -160px;\r\n}\r\n.ui-icon-volume-off {\r\n\tbackground-position: -128px -160px;\r\n}\r\n.ui-icon-volume-on {\r\n\tbackground-position: -144px -160px;\r\n}\r\n.ui-icon-power {\r\n\tbackground-position: 0 -176px;\r\n}\r\n.ui-icon-signal-diag {\r\n\tbackground-position: -16px -176px;\r\n}\r\n.ui-icon-signal {\r\n\tbackground-position: -32px -176px;\r\n}\r\n.ui-icon-battery-0 {\r\n\tbackground-position: -48px -176px;\r\n}\r\n.ui-icon-battery-1 {\r\n\tbackground-position: -64px -176px;\r\n}\r\n.ui-icon-battery-2 {\r\n\tbackground-position: -80px -176px;\r\n}\r\n.ui-icon-battery-3 {\r\n\tbackground-position: -96px -176px;\r\n}\r\n.ui-icon-circle-plus {\r\n\tbackground-position: 0 -192px;\r\n}\r\n.ui-icon-circle-minus {\r\n\tbackground-position: -16px -192px;\r\n}\r\n.ui-icon-circle-close {\r\n\tbackground-position: -32px -192px;\r\n}\r\n.ui-icon-circle-triangle-e {\r\n\tbackground-position: -48px -192px;\r\n}\r\n.ui-icon-circle-triangle-s {\r\n\tbackground-position: -64px -192px;\r\n}\r\n.ui-icon-circle-triangle-w {\r\n\tbackground-position: -80px -192px;\r\n}\r\n.ui-icon-circle-triangle-n {\r\n\tbackground-position: -96px -192px;\r\n}\r\n.ui-icon-circle-arrow-e {\r\n\tbackground-position: -112px -192px;\r\n}\r\n.ui-icon-circle-arrow-s {\r\n\tbackground-position: -128px -192px;\r\n}\r\n.ui-icon-circle-arrow-w {\r\n\tbackground-position: -144px -192px;\r\n}\r\n.ui-icon-circle-arrow-n {\r\n\tbackground-position: -160px -192px;\r\n}\r\n.ui-icon-circle-zoomin {\r\n\tbackground-position: -176px -192px;\r\n}\r\n.ui-icon-circle-zoomout {\r\n\tbackground-position: -192px -192px;\r\n}\r\n.ui-icon-circle-check {\r\n\tbackground-position: -208px -192px;\r\n}\r\n.ui-icon-circlesmall-plus {\r\n\tbackground-position: 0 -208px;\r\n}\r\n.ui-icon-circlesmall-minus {\r\n\tbackground-position: -16px -208px;\r\n}\r\n.ui-icon-circlesmall-close {\r\n\tbackground-position: -32px -208px;\r\n}\r\n.ui-icon-squaresmall-plus {\r\n\tbackground-position: -48px -208px;\r\n}\r\n.ui-icon-squaresmall-minus {\r\n\tbackground-position: -64px -208px;\r\n}\r\n.ui-icon-squaresmall-close {\r\n\tbackground-position: -80px -208px;\r\n}\r\n.ui-icon-grip-dotted-vertical {\r\n\tbackground-position: 0 -224px;\r\n}\r\n.ui-icon-grip-dotted-horizontal {\r\n\tbackground-position: -16px -224px;\r\n}\r\n.ui-icon-grip-solid-vertical {\r\n\tbackground-position: -32px -224px;\r\n}\r\n.ui-icon-grip-solid-horizontal {\r\n\tbackground-position: -48px -224px;\r\n}\r\n.ui-icon-gripsmall-diagonal-se {\r\n\tbackground-position: -64px -224px;\r\n}\r\n.ui-icon-grip-diagonal-se {\r\n\tbackground-position: -80px -224px;\r\n}\r\n\r\n/* Misc visuals\r\n----------------------------------*/\r\n\r\n/* Corner radius */\r\n.ui-corner-all,\r\n.ui-corner-top,\r\n.ui-corner-left,\r\n.ui-corner-tl {\r\n\tborder-top-left-radius: 3px;\r\n}\r\n.ui-corner-all,\r\n.ui-corner-top,\r\n.ui-corner-right,\r\n.ui-corner-tr {\r\n\tborder-top-right-radius: 3px;\r\n}\r\n.ui-corner-all,\r\n.ui-corner-bottom,\r\n.ui-corner-left,\r\n.ui-corner-bl {\r\n\tborder-bottom-left-radius: 3px;\r\n}\r\n.ui-corner-all,\r\n.ui-corner-bottom,\r\n.ui-corner-right,\r\n.ui-corner-br {\r\n\tborder-bottom-right-radius: 3px;\r\n}\r\n\r\n/* Overlays */\r\n.ui-widget-overlay {\r\n\tbackground: #aaaaaa;\r\n\topacity: 0.003;\r\n\tfilter: Alpha(Opacity=.3); /* support: IE8 */\r\n}\r\n.ui-widget-shadow {\r\n\t-webkit-box-shadow: 0px 0px 5px #666666;\r\n\tbox-shadow: 0px 0px 5px #666666;\r\n}\r\n",""]);const k=v},665:(t,e,i)=>{"use strict";i.d(e,{Z:()=>s});var r=i(39),n=i.n(r),o=i(499),a=i.n(o)()(n());a.push([t.id,'/* This is a compiled file, you should be editing the file in the templates directory */\r\n\r\n.pace {\r\n -webkit-pointer-events: none;\r\n pointer-events: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n user-select: none;\r\n}\r\n\r\n.pace .pace-progress {\r\n position: fixed;\r\n z-index: 2000;\r\n top: 0;\r\n right: 0;\r\n height: 5rem;\r\n width: 5rem;\r\n -webkit-transform: translate3d(0, 0, 0) !important;\r\n -ms-transform: translate3d(0, 0, 0) !important;\r\n transform: translate3d(0, 0, 0) !important;\r\n}\r\n\r\n.pace .pace-inactive .pace-progress {\r\n display: none;\r\n}\r\n\r\n.pace .pace-progress::after {\r\n display: block;\r\n position: absolute;\r\n top: 0;\r\n right: 0.5rem;\r\n content: attr(data-progress-text);\r\n font-family: "Helvetica Neue", sans-serif;\r\n font-weight: 100;\r\n font-size: 5rem;\r\n line-height: 1;\r\n text-align: right;\r\n color: rgba(238, 49, 72, 0.19999999999999996);\r\n}\r\n',""]);const s=a},163:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>u});var r=i(39),n=i.n(r),o=i(499),a=i.n(o),s=i(932),l=i(547),d=i(665),c=a()(n());c.i(s.Z),c.i(l.Z),c.i(d.Z),c.push([t.id,".search-teachers .s-t-list .item-time-list {\r\n\tmargin-top: 315px;\r\n}\r\n\r\n.search-teachers .s-t-list .item {\r\n\theight: 679px;\r\n\twidth: 233px;\r\n\tmargin-right: 5px;\r\n\tmargin-bottom: 5px;\r\n}\r\n\r\n.search-teachers .s-t-list .s-t-content {\r\n\tmargin-right: 0;\r\n}\r\n\r\n.search-teachers {\r\n\twidth: 100%;\r\n}\r\n\r\n.search-teachers .s-t-list .item .item-top .teacher-name {\r\n\tline-height: 15px;\r\n}\r\n\r\n.ui-tabs .ui-tabs-panel {\r\n\tpadding: 0.5em 0.2em;\r\n}\r\n\r\n.ui-dialog .ui-dialog-content {\r\n\tpadding: 0.5em 0.2em;\r\n}\r\n\r\n.search-teachers .s-t-top .s-t-days .s-t-days-list li {\r\n\tfloat: left;\r\n\twidth: 118px;\r\n\theight: 34px;\r\n\tline-height: 34px;\r\n\tmargin-right: 5px;\r\n\tmargin-bottom: 5px;\r\n}\r\n\r\n.search-teachers .s-t-top .s-t-top-details {\r\n\tpadding: 2px 0 2px 30px;\r\n}\r\n\r\n.search-teachers .s-t-top .s-t-top-right {\r\n\theight: auto;\r\n}\r\n\r\n.search-teachers .s-t-top .s-t-top-left .condition-item {\r\n\tmargin-bottom: 2px;\r\n}\r\n\r\n.s-t-page {\r\n\tpadding-top: 2px;\r\n}\r\n\r\n#buttons input,\r\n#buttons button {\r\n\tmargin-right: 3px;\r\n}\r\n\r\n/*\r\n.pace .pace-progress {\r\n background: #29d;\r\n position: fixed;\r\n z-index: 2000;\r\n top: 0;\r\n right: 100%;\r\n width: 100%;\r\n height: 2px;\r\n} */\r\n",""]);const u=c},499:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",r=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),r&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),r&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,r,n,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var d=0;d<t.length;d++){var c=[].concat(t[d]);r&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),e.push(c))}},e}},888:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},39:t=>{"use strict";t.exports=function(t){return t[1]}},637:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,i="millisecond",r="second",n="minute",o="hour",a="day",s="week",l="month",d="quarter",c="year",u="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},m=function(t,e,i){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(i)+t},v={s:m,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),r=Math.floor(i/60),n=i%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(n,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var r=12*(i.year()-e.year())+(i.month()-e.month()),n=e.clone().add(r,l),o=i-n<0,a=e.clone().add(r+(o?-1:1),l);return+(-(r+(i-n)/(o?n-a:a-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:c,w:s,d:a,D:u,h:o,m:n,s:r,ms:i,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=g;var y=function(t){return t instanceof A},x=function t(e,i,r){var n;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(n=o),i&&(w[o]=i,n=o);var a=e.split("-");if(!n&&a.length>1)return t(a[0])}else{var s=e.name;w[s]=e,n=s}return!r&&n&&(b=n),n||!r&&b},_=function(t,e){if(y(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new A(i)},C=v;C.l=x,C.i=y,C.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function g(t){this.$L=x(t.locale,null,!0),this.parse(t)}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(C.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var n=r[2]-1||0,o=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(t,e){var i=_(t);return this.startOf(e)<=i&&i<=this.endOf(e)},m.isAfter=function(t,e){return _(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<_(t)},m.$g=function(t,e,i){return C.u(t)?this[e]:this.set(i,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var i=this,d=!!C.u(e)||e,h=C.p(t),p=function(t,e){var r=C.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return d?r:r.endOf(a)},f=function(t,e){return C.w(i.toDate()[t].apply(i.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},g=this.$W,m=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case c:return d?p(1,0):p(31,11);case l:return d?p(1,m):p(0,m+1);case s:var w=this.$locale().weekStart||0,y=(g<w?g+7:g)-w;return p(d?v-y:v+(6-y),m);case a:case u:return f(b+"Hours",0);case o:return f(b+"Minutes",1);case n:return f(b+"Seconds",2);case r:return f(b+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var s,d=C.p(t),h="set"+(this.$u?"UTC":""),p=(s={},s[a]=h+"Date",s[u]=h+"Date",s[l]=h+"Month",s[c]=h+"FullYear",s[o]=h+"Hours",s[n]=h+"Minutes",s[r]=h+"Seconds",s[i]=h+"Milliseconds",s)[d],f=d===a?this.$D+(e-this.$W):e;if(d===l||d===c){var g=this.clone().set(u,1);g.$d[p](f),g.init(),this.$d=g.set(u,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[C.p(t)]()},m.add=function(i,d){var u,h=this;i=Number(i);var p=C.p(d),f=function(t){var e=_(h);return C.w(e.date(e.date()+Math.round(t*i)),h)};if(p===l)return this.set(l,this.$M+i);if(p===c)return this.set(c,this.$y+i);if(p===a)return f(1);if(p===s)return f(7);var g=(u={},u[n]=t,u[o]=e,u[r]=1e3,u)[p]||1,m=this.$d.getTime()+i*g;return C.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||h;var r=t||"YYYY-MM-DDTHH:mm:ssZ",n=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=i.weekdays,d=i.months,c=function(t,i,n,o){return t&&(t[i]||t(e,r))||n[i].slice(0,o)},u=function(t){return C.s(o%12||12,t,"0")},p=i.meridiem||function(t,e,i){var r=t<12?"AM":"PM";return i?r.toLowerCase():r},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:C.s(s+1,2,"0"),MMM:c(i.monthsShort,s,d,3),MMMM:c(d,s),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,l,2),ddd:c(i.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:C.s(o,2,"0"),h:u(1),hh:u(2),a:p(o,a,!0),A:p(o,a,!1),m:String(a),mm:C.s(a,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:n};return r.replace(f,(function(t,e){return e||g[t]||n.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,u,h){var p,f=C.p(u),g=_(i),m=(g.utcOffset()-this.utcOffset())*t,v=this-g,b=C.m(this,g);return b=(p={},p[c]=b/12,p[l]=b,p[d]=b/3,p[s]=(v-m)/6048e5,p[a]=(v-m)/864e5,p[o]=v/e,p[n]=v/t,p[r]=v/1e3,p)[f]||v,h?b:C.a(b)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return w[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),r=x(t,e,!0);return r&&(i.$L=r),i},m.clone=function(){return C.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),j=A.prototype;return _.prototype=j,[["$ms",i],["$s",r],["$m",n],["$H",o],["$W",a],["$M",l],["$y",c],["$D",u]].forEach((function(t){j[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),_.extend=function(t,e){return t.$i||(t(e,A,_),t.$i=!0),_},_.locale=x,_.isDayjs=y,_.unix=function(t){return _(1e3*t)},_.en=w[b],_.Ls=w,_.p={},_}()},393:function(t,e,i){t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t),i={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1100?"上午":i<1300?"中午":i<1800?"下午":"晚上"}};return e.default.locale(i,null,!0),i}(i(637))},498:function(t){t.exports=function(){"use strict";return function(t,e,i){t=t||{};var r=e.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,i,n){return r.fromToBase(t,e,i,n)}i.en.relativeTime=n,r.fromToBase=function(e,r,o,a,s){for(var l,d,c,u=o.$locale().relativeTime||n,h=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,f=0;f<p;f+=1){var g=h[f];g.d&&(l=a?i(e).diff(o,g.d,!0):o.diff(e,g.d,!0));var m=(t.rounding||Math.round)(Math.abs(l));if(c=l>0,m<=g.r||!g.r){m<=1&&f>0&&(g=h[f-1]);var v=u[g.l];s&&(m=s(""+m)),d="string"==typeof v?v.replace("%d",m):v(m,r,g.l,c);break}}if(r)return d;var b=c?u.future:u.past;return"function"==typeof b?b(d):b.replace("%s",d)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var a=function(t){return t.$u?i.utc():i()};r.toNow=function(t){return this.to(a(this),t)},r.fromNow=function(t){return this.from(a(this),t)}}}()},439:(t,e,i)=>{var r=i(163);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,i(950).Z)("580bf414",r,!1,{})},950:(t,e,i)=>{"use strict";function r(t,e){for(var i=[],r={},n=0;n<e.length;n++){var o=e[n],a=o[0],s={id:t+":"+n,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):i.push(r[a]={id:a,parts:[s]})}return i}i.d(e,{Z:()=>f});var n="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,h="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,i,n){d=i,u=n||{};var a=r(t,e);return g(a),function(e){for(var i=[],n=0;n<a.length;n++){var s=a[n];(l=o[s.id]).refs--,i.push(l)}for(e?g(a=r(t,e)):a=[],n=0;n<i.length;n++){var l;if(0===(l=i[n]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete o[l.id]}}}}function g(t){for(var e=0;e<t.length;e++){var i=t[e],r=o[i.id];if(r){r.refs++;for(var n=0;n<r.parts.length;n++)r.parts[n](i.parts[n]);for(;n<i.parts.length;n++)r.parts.push(v(i.parts[n]));r.parts.length>i.parts.length&&(r.parts.length=i.parts.length)}else{var a=[];for(n=0;n<i.parts.length;n++)a.push(v(i.parts[n]));o[i.id]={id:i.id,refs:1,parts:a}}}}function m(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function v(t){var e,i,r=document.querySelector("style["+h+'~="'+t.id+'"]');if(r){if(d)return c;r.parentNode.removeChild(r)}if(p){var n=l++;r=s||(s=m()),e=y.bind(null,r,n,!1),i=y.bind(null,r,n,!0)}else r=m(),e=x.bind(null,r),i=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else i()}}var b,w=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function y(t,e,i,r){var n=i?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,n);else{var o=document.createTextNode(n),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function x(t,e){var i=e.css,r=e.media,n=e.sourceMap;if(r&&t.setAttribute("media",r),u.ssrId&&t.setAttribute(h,e.id),n&&(i+="\n/*# sourceURL="+n.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}},811:t=>{"use strict";t.exports="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},373:t=>{"use strict";t.exports="data:image/gif;base64,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"},920:t=>{"use strict";t.exports="data:image/png;base64,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"},647:t=>{"use strict";t.exports="data:image/png;base64,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"},397:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAMAAADYSUr5AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEV3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diB3diDPBZfVAAAAY3RSTlMAWEd8IjKY4b3Ld2acsomqpVpOeudAQGVmhVOLRpGUY2NhTaBobXqbc6W/fcC8463l6eSBjl3f3eC51tvSxNXU12LacP4Nzplp+DgqFhzFedHjp4FYyJPQ2K/wzZCniLC7x6vHwZbrAAAAAWJLR0QAiAUdSAAAAAd0SU1FB+AHDQUaNuOGGEYAAA+BSURBVHja7V0LYxvFEd67iyQsxycZJGgDCYrBKSR1WjdJX5RCGiJICzFpmxCamFLm//+H7t5rZ2f2oeNk6Wzv58T23D7nu9m9md09WYiIiIgeIIFk213Ysv7QcwY6dy8Bv/4JZkBl3iwhxAJBwSSA9sdIV6kJvgLAGgBPA6R88etGTYJaICcgof0x0ukdZATQ4rwBljnZIAOs/3YVPOmcQUFy+2u3ZU68mdYKZsG8i/QGcwvx3mFuAZ4ObN4C7KSwLvoIYKWBmYindmKCm58DVuDjTJ8CdAht/imwdVx2RygiIiIiIiKixzhzT3DLflDCojWgzntCS9DsRoCfsAZ86wFsQUjWvlFKLB1gBLAMNLsZLiasAUqAJ7pUtW8yGGL9t/fYk2xZUUk8xUVgCRAKAja2HMAtWNhs1ojWVlgPSMzafCNq2xZgReLpcff1AD5CtjoHhHHRnwIRERER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"},222:t=>{"use strict";t.exports="data:image/png;base64,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"},28:t=>{"use strict";t.exports="data:image/png;base64,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"},364:t=>{"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAADwCAQAAABFnnJAAAAABGdBTUEAALGPC/xhBQAAAAJiS0dEAP+Hj8y/AAAAB3RJTUUH4AcNBRo244YYRgAAF7hJREFUeNrtXV2IJcd1/lpeWzNrbdLjBYU7bLKrWYzioDAzewdiPYS9myCkrB90V6A8GAJXXjFOAsZZP5qAVgKRF8M6YEHWSLOLwcE4hJVCTPyQZDZsCEGMtCsEiU2Qfx4yQwhhFL9MwBYnD/1XVX3qVHX3vXN/qr5m5t7bp+rUz/mqurtOVXVCiAgZD007AxHTRSRA4IgE0NEDoTftTBwnIgFU9LAPYD8kCoybANNvPz20va/NzL8KGwUKzdMv4xihE0DuAKk8JLjajz0+5an3rGFcaRdGbFeCzPwHOQUkzQvUR6gEGEcHuNpBQxG3aIfN0SUukCDBAYADJEgEzV3KOHNIysZQFLFoBzYQUKseFZmepFX8opXZ0nelTR3z7qvZVcY5QtUDyB2gL6Q26L58ZKlLJpS1dGub0iVI1dytn5kxJI3vmORWJLXBKqm2bcetQW6bct7lPrDS7Opn5grNCSCDpl41Pey3Jph8CSo0T7+MY8S4CTDv6GF/kczrRiRA4IgjgYEjEiBwRAIEjkiAwBEJEDgiAQJHJEDgiPMBzLjTzv8xo8l8AL8ZAS5nTE+cDyCn4DZPl/kAbnd4lveFIkmz+QB+HjC5Cu0GWrV899XtMr9L+77xade+MLMB6vMBMthHw4tQkr/NLnfF9pkPIOVOTt0dXwbluovPhYA+H4D7ruPAqxfgw7jbp898AKn9+eXNTh9yzjZoktJcoI0zSHK4zvp8AIlcrv6nKHl0BwuYfuV0nQ8w7fwfM6I7OHDEgaDAEQkQOCIBAkckQOCIBAgckQCBIxIgcJyYdgZmDjTFUf7uY6WN83+iW/SJVMI0c0DOHLR3BbljTqHk+iWAANHX77M/ALWQNEXbNFz5z0yfiFrc5Ggb268EPqEaxH1IC+AqfuJRAHv8xKOCfIpAgrPHJ3+JINM/m6VRSNw1IJdQJhA5YgOuRqzlX70E+BbfNlvHXUnJGDp4Ej2RrqtolxxQGTthpWrqXCpF87LngQS5rLsqndwM1FwmQNObQPJoPa5QPuxs18b9jJt4aJcM5KO3bQ1ITdBHt7sOavImj4FVF+cTipfJXaCbwbIOVxfr10W7WpArdZ+byLZwU9wt13JguoNDfwqY7/RbPEbG+QCBI44EBo5IgMARCRA4IgECRyRA4IgECByRAIFDXxxabJY6Pbj3A58kfGrAxyPaLp5rbbRvKo1QEaBYGOWz3Xu7Chgf2uly5dyvBqStZitvXK9x7MxPWRz2MvRa1wAZuQTALw6Vl3D6eLR7zLnxUcCmy29rCHv+/WrAlkbPWF7baxS7KoGrB+q2NL22QFcfCvbZTt21BNu2QNRvJo07BzY97i3c3Tn325Ce97nVTZsYctfC8so43PpE0jTLDmObwzqph2lKAP8KSBrE9cuBXIU+6bvX9tvTd8V2EcBdB7IB3QSQCWQhQLOngKoC2nisEkUHr520Tyn9Nqjy3fYeQkp9NZcWV3B+BwEp/SImfw/g0lzt3SCtbzZz2XA+gFQB+g2MVHw5c1IRJR1q0dzTvjgTuAkoleDA2EDioLEGP0jmPShfe+OXSzS9BPj5qsm5RYR8FewS2696+XL4XYO7T2mT9LR/qY37HoBFnA+goud8Y9LCIRIgcMSh4MARCRA4IgECRyRA4IgECByRAOPGnD1WmfMBXJD8VT5F73X0d08a3XOXOAa7Z6zs9fkAEiSPuc8oYeGxW/VYYGpH18VV8vLwxLn81W1gW3xJ+5RQDQSp2XLv9lsfbFSXRrZ7+7fvQDMgeexcsRNrOPWszdspLR4lL6l/SY8F/D2AbdKB7K+qLg1tJi1kLcc9bcq+hwHB19eXNDjLpcul717ZPJMw3xdQVWHTN3Cbl5CkQdxC6rcE2r14u/0WEpIZXT2Ev2Zpj4BjRtUDqI7CNllzvUnA7WztenVMlB6E7yH0Ty7EeFoxl4Lee8yI+fVLwEGZKa4Dzzr4bLoXjwNxPoCPt9+9PYSMai4AP6VCrvrqImTfXaQImTSUqiHaTqiZCHhvIFk7cB9nqe0mcBzOVr9Zi21vNH1uIgE4CDozxvVBdAfrmJmu+bgQCRA44lBw4IgECByRAIEjEiBwRAIEjtkjQDpb3rJFh0kAP1+25LIhL6ktRIrDY3kSn/Y+CDODZtvF+2wnnWClQ34OUZAkFcO13bK+wgK9AbwLdALIo9TyaHfRqlMcshSgcqCUX7uXdf0rZYhDS/ziW7tN1dXex+9V8wuOigD6du91VP5w25bpCZLc/B+yaclde9b1f4gVYe1skTqfvj6jwNTit31EcCiGgv1Wt0so5trYzG/OxTF7Eddv6WxdYoYzt4+Q3nIeFNQpYQnqZjJhn8rgNyHCPqnMJJBtSgafQ9f2CTrBF+wV8F1QvTBCrTL7BiPut174vlbCJs8oQLX7iMIRzO/Kr+fH57UREQC4/QH8Vq7X/fLuHWokaXbzKIfQtSVe5wq4dxAKFP4vjNBnxVbfxw37XUQ3+G8fERRmbT7ApMwfYcGsESDimDF7voCIY0UkQOCIBAgckQCBY5EI0C89Af2J6D+Bpfxo9r7VmUZGgGFecbsYttb0isPT7wLhpjZboKkR+9grv++xsfud6HECv8DjOMIRHscvWAr0nblfy6VrljTscldM4HnjkFMw5nYQXaMBDWhIKqqw1fkhwXJQ+bmtxVVD8NqzY0R9TT7SpH0y0W8k13PI5W7NiL9myJdonYiWaImI1mlJqAE+jTqkGvKXqCG2vctYhiiYfB8AcNcymeMOvoL7AFLcKc/dxSUrG79oGVFcLr8d1WS38E2h/e0h21giwz4Ie1oKe9hSegBgy5C78YGSuyyHZvwHWMYjAPp4YITV8wlsMRLf3HR5+byMNXxQfi81FQR4kH+q0zDULN8H8EMcibN9lvLPm9YQHxdiv4D3sS3Ir2iu5CsKFTO8o1BgC+8YUoK6OJNfYfhx/Kz8/ktsHh7BKSQ4KeTysiAzPZK8nH8BdcJoaUbwwvy/i39QT1fXskOHgh/iqBZGz0JGgBVBm63dAK4eAHi7pADhCt5mQhQUqJs/Q2p81nP3K2JON/Df+D0Af4cNNv47QEkhPgdbeU+l91bHgcL8v49lnQK+97Oc+esVCMgdVdZ2fszKXD1AQQFYzI88dVhv8s4bnyaW8NP821lG+km8hw08ALCB93Aa/2fIzVlIbZeZujt6V4jP4y9r5zLzfxGfBPC3AFBcwP0fA+vmNwt4EidxEss4ae0kH8bDeBgA18JuOcwP9PA2ruAK3rZM5+zjAEMMcdDyPn8Zv54fy7X89XAGhJ9hAxt4CIQz4pTSLYvxzyl/NizBBVeIbzPnMtLfxCfwXQDAJdzNBO2faOtFXHbG+YEQ0tUD9HAA5G3/gKn+vibnKPCrxqdZRVkr2UB2R6T3E4/iAYAflb8fYEOYUdSlgz/qGIKfMPujvHzZ/VlpfpSPganjMcr9CPOKJn/F+rhif4y5OcHHwOIhqfq05aLPPAJyD3GuB72mj8GgkbX0PiHUEvL6i4fAgXp2dtzBfQC/qfx+33IjNVkQgPNKSx+/9gzTmZqyhg+01o84HyB4LJIvIKIFIgECRyRA4IgECByRAIuFV/Fqswg6AVIQXAuz7aDSkdH10aIPzqO+pTy+1v1tQ+Oxd2jItw05N+ikesvXJiAHgD9z1M8Ag9b1dgpfxVdxyhFqhBFG5S+lTlIi6lOfiNLaIMIuLeXDCNdpnYbsMMjNfCBim24actmTbR59NvyW4skmItpiB0KKox7fPZCThVmndVqfkLwIkw3qmJIBFQNyqTlck1uHaJuQly5ldN8jIqJ7Yu0Wg0kjOkcg6An08zG0unqiXqNxME4OIvrj/O+atYL6lE1A6Vv0w5KCy8BEoH8l0H0C/QvxUyaI1nPJuiCHKD9FS3TKIi+qf0SjxjVYYJuVb9dib7PpD4loRGk1kqi6gwsn5R62Wm3Uos4V4D2HT2If/4F/x0/xvsUn2MceruBNq0u3C/4ev4XvYwPfx5P4R2uobCx9Q5TrY5Y6fl7zE1YY4RYA5P/r9Xeo/eLBz7Y463EGAL4MYCW/PKb4EGUPcNMYTe/TzcY9gNrB2XqAa0T0p0T0KttC+kRs6x9XD/BXBPoegb5NS0z6jzt6gEIOUW7vAUZa7sxLwEDJdYZBo/J9TZN9janBc3SunrqZRD8nQr36x0GAz9Kv0efpfP7XxPz6rDgbAVIiSinNr5em/LtE9J38769r8qJ8tmt4Jb/gkPPxq2tvdpxvSADTXZcKNSS7mrTzpgL1U5ct0ZBQcmjAhJAJUPfXNTG/WTyZALz8LH2PHqVdepT+hj5jyFdruVsbq7wyP6yHbuJUlNuk9/IbQVM+ouLav9uWAHAclGcj9QzPG7hvlW8ZFcw9BaRl0XmC2AmY4QlH7rrI4TC/j8u9oEDKyJ6ij/Ibv236iJ5iCHCNRvW4vsm7Darfh/L3oNKkZdn8JgW2alLXtG5ZTkTUcxini3zkNL/rMbCiQGqJ/Xz5/flabGsP5OsOXsd7fgEjOmIA6B77MWEEALhtno7zAQJH9AUEjkiAwBEJEDgiAQJHeATI3MYDRjIon40e99Bj201xzu6qVQKslxWw3lofTa0KUhB28u87sM1quJ4vKt2tUeB3sIvn8Bw+jU/jB/hMLWZWO9fyX9mepeq+55v4HAhP4kkQPofNWnx5+4ph7cF+6JC7QgxraRgjQObZdSLapSEN6ZAqpwc34CENZpAzRPtjlOdrnR1UybBDoB1rLorhkHPsUNfJ8vgEOxa6Q8M8B5meAZO+fRyv8FKklmEw+UwVO7XoycYa+7k3B0z51BjrxXc1QDZKvENEh1YjTpMAxVgWn0Zh9uqzruG6ONb5EH2MEkroY/QQa5AhgYgGpU+fy51MANUfYq5cyrwh/bKO6wSANouiToBM63Y5JssR4Ayt5gdDgGFejTvsjB8XAchZBW7jyvHXFRnXQ+0ocs78qaifKCmPNSb1G3msXX5IlbLdQ4qDJ4A9fSpnXPEaqPRxDgl0jiUAFALwfco6bdJm6a9kCLCTVx0/5cvFcDlEMylPIJdPTWr91YynDAND/h0iWssPohuMhkHpsuXSJzrViQCn87Ony/9m7KL/GhLROUsPYK+/PhGdoTO0Smdok4iuZ+fV9wV8iBS38IX8FknecR9OubSbuFvKpbBe7mOSrdE38S38Qfn9n/HbmixVZjwBL9THxLGOLyu/XsFPhNSzWjLLvwLgIwDAz5kNZggr2jwr8wUXj2nnCT8x5Pp8oVv4ijFrK9vCP5ssu8ds50+4AOC/AAD/qdSu1sEe0pCGtEuzeRNYtD4+jW+VrT/DPSNuP2/3qVX/Ztl2zrGp79A1orwd7jDy7PO05UbPnGhjtt8n6Anjv9x/NL8HGFKfNmmTNolos34JUK+xNvPP/lPAPSrmxnLVM3CksEPbtM1Op0IeO6MQRwESfpln12ohhrUOfGjEPFc7mt0DEA3Lw0IA31Y4LQLIR6q0+ntkes2z1uFTOlv+s57lkFIqbieTWtwv0GepJ9QSEZT7DF22lD8FZP/NbejqBDEpMhSlaum0MkZ3sIrTeBnAS/gfVjrCCm7lbzNI8b/4Ze3NBq57JEDfzHIS855bIBIgcITnC4jQEAkQOCIBAodJgKF1v/DLuF3eUN4Wt0SNmCdoDwp3iIjoDvMA86XaQ8iXpvKwF48xH+qPZ0rjPmMEu6w9PRa4zCjcI6I9a3I/9hyQgUeI4z/2FPrvTT03EyDAHSp8TmYf8DpLgNcZhfJAUG0Ywmp+jiTu5VWuEC450V45XLTHyv3yP0dH9fUZzcB6H2BDUwKAwC7crJu/3k+oa2t5A7pCjIjoaVqip60a/Eq3oATIrv+F11nvA/SCS9WwTbZlYar5dxnJoPzkLxMu4yA3fJoTgZM/nX97WtCwJ6SxwAQYkAnVAP4E4DtvXdN9xiNXxLOZ35cAKdn7GCpH2Ov++gp2AvSJaI/2aI98/ApzcpgVYH5vSgDXURipbv7M7Dbzz0IPsMA3gVX7TxW/c2WGb7AE+Aaj0NUD2A61B+LjT/8ewE3BOTy4otUL+RQrfYpR6Kocu1Rq/bqBR61DdH0KyMJM3WjjJ8Aea2C1Cq7WpFetZhwICUr0aNt7HO+xYATwdwdfxBB/kn//Ot7EP017DHNKaPsuoBlFnA8QOKI3MHBEAgSOSIDAEQkQOCIBAkckgIkBqLV0DqESgJhtE3QQxvVKiGnhpvBucwAYYLe1dD5hjNIR7Qqjcao3wJQU8VKrhgHt5o6gAe0KGkDIlzfp8m1NUxt37cAx2DzwiF3UgF3LXB189dlMKBFAjVev5kEZZ5CvsJc12Algi+9DAEkqO3rq0gUZErYVkp/W4SJAZsLqty4FoTSeS4ONAPb4bgI0NbFdym/AMJcHfxN4F5fwzRbXk7u4hEvI1sldUsbME+XsJXEn3EKDDa74x4NF8gbUWL7I9wCuI8B7ANUZRLiLl8X2RTn7i8/5gvrkYst9dp/fTjqXiN5AEwPsCiaWpXOISIDAEUcCA0ckQOCIBAgckQCBIxIgcJgEIOXF4hEBoCJAmm+VehZnLXvtZ0NH1y3SiLlEQYAUh+XmMI/hkDXyBi7h63gJhx4vlDCHF7aNEcjtY5ZH2JDX2A4R/TmBiF6ibF9c2+hxKu4lXI3Ku373j1UeD8tRGJXoPoFAL9GAQPfJ9nbqHTpHmVM2tSrld6pdyrdTP5X/mTvdniJpw/VCTqJ8qfxbau0QCuw4AQA4D+AtAMDLAIC3sIHzta1MN7CJW3gBj+EKDvECbjTqaj6ldDoJ6iPQj+R/CfjlV6fyv0+B31z+EQAruXxlscbrJ4nMF5DiEA+UFx3dxwZWtJ1wC6Q4xF1cwg5eYCuZ8p3q67vV/4b2+9+MvXInLY+wIe8KdqlaND0ifhOXzBeeva/C9lIZ23wZ/d3i9flGk5bHw3IU3sDsfRgP8BaexQb4N3JUswEuAYxbVG39C7aGdnFRuYPXcT1/EHwT1+PL4kNBnA8QOKIvIHBEAgSOSIDAEQkQOCoCuN4H0FV+ETdK+Q1cPHb5pMs3bXlb5Dpd7wPoKndtMzdp+aTLN2156yP7uEwcqvcBdJW7NpqctHzS5Zu2vMORXQKeKzuERBnBe475psKUv5jHTfCiIX9W0Q/m7LOceos8aRH/OTY+Vz5X+dX8N4//DhIlhC2+JFdzwVulIbKBoGo0KKn90uVcRgp5AuAqgDe0M+PT7xPfrV8N0TR+An6BGTX4TYqWuvwPAQB/Ya2/4uwm3sVYFqmpBNDfRV3PgEsOvIg3AFzF62IF2yrIrT9htfkawK1fJkD3+knK8+3kF/CuYv6xEOBEdxUKPlL+Nwc5ewQZ6nL0NhoS5bNNfPKI63KT/ZEgu4D7mvnHgnFfAkYAbqP9JaB7F2/PX11Duy5c0u/Xg7h6KFv6F3BfM/8YeoDsJvA1VvYa802SXwVwC7fyb6r8DSUWMWffUKQuOUQ5WLmef6qdfU2TuORt66coH7WWv6uZn0+1KYJ4DJv2Y+ik5Z3HARZ/IGbaA1GTlncmAOgi3SiV36CLtaBd5Zfpdim/zQxiTFo+6fJNW97yiBNCAkf0BgaOSIDAEQkQOCIBAkckQOCIBAgcqjOo7nTUMevyiBbQvYHL5bcjNnRXecTMoX4J6Ga6I6eGbi036awhQoNJAJcBj3AkypdxpPQDdbgMqE6J4kAtff0RFpgEWAZEAy5jWZQfYVkkCEGeMJF7KKyI647HjPolYLmFFj22rKFb+3URKKIh9PcFaJJa2FmXR7RA9AYGjjgQFDgiAQJHJEDgiAQIHJEAgSMSIHDMLwF6cUBoHNAJ0H2cjdAHoT/xfPewj9WJpxIAdAKs5n/Thqt1Z+Y/mHY2FwE6Afbzv+nC1bqj+ccI3x6A0Kv9NQOzKolFZl47DQvzx3uAsUCfEbSPBPusmyVh/pphyytUYf5VUX4Q7wHGBZ0AUg+wWpqm+GvWCe/VztRJ1FP0cxTTzR8vAmPALPUA0fxTgG8P0B3u93c0M3/PEi6iEXx7gOOA1Ltw5o/3AGOAPiGkhwP0ZrJzpbzTNz8jOiLOCAoc8+sLiBgL/h+GQVCmztXzdwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0wOS0xNFQxMzozMzoxNi0wNDowMCENDgIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTYtMDctMTNUMDU6MjY6NTQtMDQ6MDAwTG2hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg=="},336:t=>{"use strict";t.exports=$}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[t]={id:t,exports:{}};return __webpack_modules__[t].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.b=document.baseURI||self.location.href;var __webpack_exports__={};(()=>{"use strict";__webpack_require__(821),__webpack_require__(818),__webpack_require__(514),__webpack_require__(569);var t=__webpack_require__(637),e=__webpack_require__.n(t),i=__webpack_require__(393),r=__webpack_require__.n(i),n=__webpack_require__(498),o=__webpack_require__.n(n);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var r,n,o,a,s=[],l=!0,d=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(r=o.call(i)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){d=!0,n=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(d)throw n}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}var l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cfg",i=null,r="gm-config",n=function(){var t="\n\t\t\t\t.".concat(r," {\n\t\t\t\t\tdisplay: grid;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\tgrid-row-gap: 5px;\n\t\t\t\t\tgrid-column-gap: 10px;\n\t\t\t\t\tbackground-color: white;\n\t\t\t\t\tborder: 1px solid black;\n\t\t\t\t\tpadding: 5px;\n\t\t\t\t\tposition: fixed;\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tright: 0;\n\t\t\t\t\tz-index: 2147483647;\n\t\t\t\t}\n\n\t\t\t\t.").concat(r," label {\n\t\t\t\t\tgrid-column: 1 / 2;\n\t\t\t\t\tcolor: black;\n\t\t\t\t\ttext-align: right;\n\t\t\t\t\tfont-size: small;\n\t\t\t\t\tfont-weight: bold;\n\t\t\t\t}\n\n\t\t\t\t.").concat(r," input,\n\t\t\t\t.").concat(r," textarea,\n\t\t\t\t.").concat(r," select {\n\t\t\t\t\tgrid-column: 2 / 4;\n\t\t\t\t}\n\n\t\t\t\t.").concat(r," .").concat(r,"-save {\n\t\t\t\t\tgrid-column: 2 / 3;\n\t\t\t\t}\n\n\t\t\t\t.").concat(r," .").concat(r,"-cancel {\n\t\t\t\t\tgrid-column: 3 / 4;\n\t\t\t\t}\n\t\t\t");if("undefined"==typeof GM_addStyle){var e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}else GM_addStyle(t)},o=function(){var i={};t.forEach((function(t){var e=t.key,r=t.default;return i[e]=r}));var r="undefined"!=typeof GM_getValue?GM_getValue(e):localStorage.getItem(e);return r?(r=JSON.parse(r),Object.entries(i).forEach((function(t){var e=a(t,2),i=e[0],n=e[1];void 0===r[i]&&(r[i]=n)})),r):i},s=function(t){var i=JSON.stringify(t);"undefined"!=typeof GM_setValue?GM_setValue(e,i):localStorage.setItem(e,i)},l=function(){var e,n,a,l,d=function(t,e,i,r,n,o){var a=document.createElement(n?"textarea":"input");return n?a.style.resize=o?"vertical":"none":a.type="text",a.name=t,void 0!==e&&(a.value=e),i&&(a.placeholder=i),r&&(a.maxLength=r),a},c=function(t,e,i){var n=document.createElement("button");return n.classList.add("".concat(r,"-").concat(i)),n.textContent=t,n.onclick=e,n};e=o(),a={},(n=document.createElement("form")).classList.add(r),l=n,t.filter((function(t){return"hidden"!==t.type})).forEach((function(t){var n,o,s,c,u,h,p,f,g,m,v,b=e[t.key];"text"===t.type?n=d(t.key,b,t.placeholder,t.maxLength,t.multiline,t.resizable):"number"===t.type?(o=t.key,s=b,c=t.placeholder,u=t.min,h=t.max,p=t.step,(f=d(o,s,c)).type="number",void 0!==u&&(f.min=u),void 0!==h&&(f.max=h),void 0!==p&&(f.step=p),n=f):"dropdown"===t.type?n=function(t,e,i,r){var n=document.createElement("select");n.name=t;var o=function(t){var e=t.value,i=void 0===e?t:e,r=t.text,n=void 0===r?t:r,o=document.createElement("option");return o.value=i,o.textContent=n,o};return r&&n.appendChild(o("")),e.forEach((function(t){if(void 0!==t.optgroup){var e=document.createElement("optgroup");e.label=t.optgroup,n.appendChild(e),t.values.forEach((function(t){return e.appendChild(o(t))}))}else n.appendChild(o(t))})),n.value=i,n}(t.key,t.values,b,t.showBlank):"bool"===t.type&&(n=function(t,e){var i=document.createElement("input");return i.id="".concat(r,"-").concat(t),i.type="checkbox",i.name=t,i.checked=e,i}(t.key,b)),l.appendChild((g=t.label,m=n.id,v=document.createElement("label"),m&&(v.htmlFor=m),v.textContent=g,v)),l.appendChild(n),a[t.key]=n,n.addEventListener("dropdown"===t.type?"change":"input",(function(){if(i.onchange){var e=a[t.key],r="bool"===t.type?e.checked:e.value;i.onchange(t.key,r)}}))})),l.appendChild(c("Save",(function(){t.filter((function(t){return"hidden"!==t.type})).forEach((function(t){var i=t.key,r=t.type,n=a[i];e[i]="bool"===r?n.checked:n.value})),s(e),i.onsave&&i.onsave(e),l.remove()}),"save")),l.appendChild(c("Cancel",(function(){i.oncancel&&i.oncancel(e),l.remove()}),"cancel")),document.body.appendChild(l)};return n(),i={load:o,save:s,setup:l}}([{key:"pageMaxCount",label:"最大页数 (自动获取时)",default:20,type:"dropdown",values:[0,5,10,20,50,1e3]},{key:"newBatcherKeyMinutes",label:"排名缓存(分钟),0为每次更新",default:23,type:"dropdown",values:[0,1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,73,79,83,89,97,101,103,107,109,113,127,131,137,139,179,181,191,193,197,199]},{key:"tInfoExprHours",label:"教师数据缓存过期时间(小时)",default:139,type:"dropdown",values:[0,1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,73,79,83,89,97,101,103,107,109,113,127,131,137,139,179,181,191,193,197,199]},{key:"markRankRed",label:"突出前N名教师的名次",default:120,type:"dropdown",values:[5,10,30,50,120,500,3e3,5e3,10080]},{key:"calcIndicator",label:"[高级]排名公式",default:"",type:"text",placeholder:"Math.ceil((t.label * t.thumbUpRate) / 100) + t.favoritesCount",multiline:!0,resizable:!0},{key:"version",type:"hidden",default:1}]),d=l.load();GM_registerMenuCommand("设置",l.setup);var c=function(){var t;if(d.calcIndicator)try{t=new Function("t","return ".concat(d.calcIndicator))}catch(e){t=new Function("t","return Math.ceil((t.label * t.thumbUpRate) / 100) + t.favoritesCount"),console.debug(e),alert("计算公式错误,排名计算方式使用默认公式。Error:".concat(e))}else t=new Function("t","return Math.ceil((t.label * t.thumbUpRate) / 100) + t.favoritesCount");return t}(),u=window.location.href.toLocaleLowerCase(),h={isCoursePage:u.includes("study_center"),isDetailPage:u.includes("teachernew"),isListPage:u.includes("reservenew"),pageMaxCount:d.pageMaxCount,tid:u.match(/(t\d+)/g)?u.match(/(t\d+)/g)[0]:null,url:u},p=36e5*d.tInfoExprHours,f=/[0-9]*/g;function g(t){return t?t.match(/(t\d+)/g)[0]:h.tid}function m(t,e){var i=sessionStorage.getItem(t);if(null!==i)return JSON.parse(i);var r="function"==typeof e?e(t):e;return sessionStorage.setItem(t,JSON.stringify(r)),r}function v(t,e){if(null===e)sessionStorage.removeItem(t);else{var i="function"==typeof e?e(t):e;sessionStorage.setItem(t,JSON.stringify(i))}}function b(){var t=Date.now();if(d.newBatcherKeyMinutes<=0)return t;var e=parseInt(GM_getValue("_getBatchNumber"));return!e||Date.now()-e>6e5*d.newBatcherKeyMinutes?(GM_setValue("_getBatchNumber",t),t):e}function w(){return"tinfo-"+g()}function y(t){return isNaN(t.label)&&(t.label=0),isNaN(t.thumbUpRate)&&(t.thumbUpRate=0),isNaN(t.favoritesCount)&&(t.favoritesCount=0),c(t)}function x(t){isNaN(t.thumbDown)&&(t.thumbDown=0),isNaN(t.thumbUp)&&(t.thumbUp=0);var e=t.thumbDown+t.thumbUp;return e<1&&(e=1),100*((t.thumbUp+Number.EPSILON)/e).toFixed(2)}function _(t){"inprogress"!=$.queue(document,"fx",t)[0]&&$.dequeue(document)}function C(t){return e=0,$.each(t.text().match(f).filter((function(t){return""!==t})),(function(t,i){e+=Number(i)})),e;var e}function A(t){return t.map((function(t,e){var i=/([\u4e00-\u9fa5]+)\s*\(\s*(\d+)\)/gi.exec(e.innerHTML);return{key:i[1],value:i[2]}})).get().reduce((function(t,e){return t[e.key]&&(t[e.key]+=Number(e.value)),t[e.key]=Number(e.value),t}),{})}function j(t,e){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.find(".teacher-name-tit").prop("innerHTML",(function(t,e){return e.replaceAll("\x3c!--","").replaceAll("--\x3e","")}));var n={label:C(e.find(".t-d-label")),updateTime:Date.now(),labels:A(e.find(".t-d-label>span")),teacherStar:Number(e.find(".s-t-top>.s-t-top-details.f-cb>.s-t-top-left>.teacher-left-right>.teacher-star").text()),certificates:e.find(".s-t-top>.s-t-top-details.f-cb>.s-t-top-left>.teacher-left-right>.teacher-icon-tag>span:eq(0)").text(),suitable:e.find(".s-t-top>.s-t-top-details.f-cb>.s-t-top-left>.teacher-left-right>.suitable>span:not(:first)").map((function(t,e){return $(e).text()})).get().reduce((function(t,e){return e&&t.push(e),t}),[])};e.find(".evaluate-content-left span").length>=3&&(n.thumbUp=Number(e.find(".evaluate-content-left span:eq(1)").text().match(f).filter((function(t){return""!==t}))[0]),n.thumbDown=Number(e.find(".evaluate-content-left span:eq(2)").text().match(f).filter((function(t){return""!==t}))[0]),n.thumbUpRate=x(n),n.thumbUpRate=x(n),n.indicator=y(n),n.sLevel=e.find(".sui-students").text()),n.favoritesCount=Number(null!==(i=e.find(".clear-search").text().match(f).filter((function(t){return""!==t}))[0])&&void 0!==i?i:0),n.isFavorite=e.find(".go-search.cancel-collection").length>0,n.name=e.find(".t-name").text().trim();var o=e.find(".teacher-name-tit > .age.age-line").text().match(f).filter((function(t){return""!==t}));return n.tAge=Number(o[1]),n.age=Number(o[0]),n.batchNumber=b(),n=$.extend({},t,n,r),e.find(".teacher-name-tit").prop("innerHTML",(function(e,i){return"".concat(i,"\n<span class=\"age age-line\"><label title='指标'>").concat(t.indicator,"</label></span>\n<span class=\"age age-line\"><label title='好评率'>").concat(t.thumbUpRate,"%</label></span>\n<span class=\"age age-line\"><label title='被赞数量'>").concat(t.thumbUp,"</label></span>\n<span class=\"age age-line\"><label title='被踩数量'>").concat(t.thumbDown,"</label></span>\n<span class=\"age age-line\"><label title='评论标签数量'>").concat(t.label,'</label></span>\n<span class="age age-line"><label title=\'在同类别教师中的排名\'><span id="teacherRank"></span></label></span>\n ')})),n}__webpack_require__(439);const k=class{has(t,e){if("symbol"==typeof e)return e in t;if((e=e.toLowerCase())in t)return!0;let i=Object.keys(t),r=i.length;for(;r--;)if(i[r]&&i[r].toLowerCase()==e)return!0;return!1}get(t,e,i){if("symbol"==typeof e)return t[e];if((e=e.toLowerCase())in t)return t[e];let r=Object.keys(t),n=r.length;for(;n--;)if(r[n]&&r[n].toLowerCase()==e)return t[r[n]]}set(t,e,i){return"symbol"==typeof e&&(t[e]=i),t[e.toLowerCase()]=i,!0}};function D(t){return D="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},D(t)}function q(){q=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,r=Object.defineProperty||function(t,e,i){t[e]=i.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function d(t,e,i,n){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new j(n||[]);return r(a,"_invoke",{value:x(t,i,s)}),a}function c(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var u={};function h(){}function p(){}function f(){}var g={};l(g,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&i.call(v,o)&&(g=v);var b=f.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function n(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==D(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function x(t,e,i){var r="suspendedStart";return function(n,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw o;return{value:void 0,done:!0}}for(i.method=n,i.arg=o;;){var a=i.delegate;if(a){var s=_(a,i);if(s){if(s===u)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(t,e,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}function _(t,e){var i=e.method,r=t.iterator[i];if(void 0===r)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),u;var n=c(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,u;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=f,r(b,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=l(f,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(y.prototype),l(y.prototype,a,(function(){return this})),t.AsyncIterator=y,t.async=function(e,i,r,n,o){void 0===o&&(o=Promise);var a=new y(d(e,i,r,n),o);return t.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,s,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var r in e)i.push(r);return i.reverse(),function t(){for(;i.length;){var r=i.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(i,r){return a.type="throw",a.arg=t,e.next=i,r&&(e.method="next",e.arg=void 0),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r,n=this.tryEntries.length-1;n>=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e,i=this.tryEntries.length-1;i>=0;--i)if((e=this.tryEntries[i]).finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),u},catch:function(t){for(var e,i=this.tryEntries.length-1;i>=0;--i)if((e=this.tryEntries[i]).tryLoc===t){var r=e.completion;if("throw"===r.type){var n=r.arg;A(e)}return n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:k(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},t}function I(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==D(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===D(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function S(t,e,i,r,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void i(t)}s.done?e(l):Promise.resolve(l).then(r,n)}function F(t){return function(){var e=this,i=arguments;return new Promise((function(r,n){var o=t.apply(e,i);function a(t){S(o,r,n,a,s,"next",t)}function s(t){S(o,r,n,a,s,"throw",t)}a(void 0)}))}}function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var r,n,o,a,s=[],l=!0,d=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(r=o.call(i)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){d=!0,n=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(d)throw n}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return R(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?R(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}$.extend(Array.prototype,{clean:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=0;e<this.length;e++)this[e]==t&&(this.splice(e,1),e--);return this}}),$.extend(Number.prototype,{toString:function(t){return isNaN(t)&&(t=2),this.toFixed(t)}}),$.extend(String.prototype,{toFloat:function(){return parseFloat(this)},toInt:function(){return parseInt(this)},includesAny:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!!Array.isArray(e)&&new RegExp(e.join("|")).test(this)},replaceAll:function(t,e){return this.replace(new RegExp(t,"g"),e)}}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){var i=e>0?0|e:0;return this.substring(i,i+t.length)===t}}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}),String.prototype.includes||(String.prototype.includes=function(t,e){if(t instanceof RegExp)throw TypeError("first argument must not be a RegExp");return void 0===e&&(e=0),-1!==this.indexOf(t,e)}),$.extend(window,{parameters:function(t){var e=t?t.split("?")[1]:window.location.search.slice(1),i="urlparameters"+e,r=$(window).data(i);if(null!=r)return r;if(r=new Proxy({},k),$(window).data(i,r),e)for(var n=(e=e.split("#")[0]).split("&"),o=0;o<n.length;o++){var a=n[o].split("="),s=a[0],l=void 0===a[1]||a[1];if(s.match(/\[(\d+)?\]$/)){var d=s.replace(/\[(\d+)?\]/,"");if(r[d]||(r[d]=[]),s.match(/\[\d+\]$/)){var c=/\[(\d+)\]/.exec(s)[1];r[d][c]=l}else r[d].push(l)}else r[s]?r[s]&&"string"==typeof r[s]?(r[s]=[r[s]],r[s].push(l)):r[s].push(l):r[s]=l}return r}}),l.onsave=function(t){console.debug(t);try{new Function("t","return ".concat(t.calcIndicator))({})}catch(t){return console.debug(t),alert("计算公式错误,排名计算方式使用默认公式。Error:".concat(t)),!1}var e;GM_setValue("_getBatchNumber",0),$("#autoGetNextPage").text("自动获取"+(e=function(){var t=Number($(".s-t-page>.next-page:first").prev().text()),e=Number($(".s-t-page>.active:first").text());return t?t-e:0}(),(h.pageMaxCount>e?e:h.pageMaxCount)+"页"))};var E=0,N=99999,T=0,M=9999999,z=0,P=999999,B=0,G=99999;function H(t,e){isNaN(e.label)||(e.label>T&&(T=e.label),e.label<M&&(M=e.label)),e.favoritesCount&&!isNaN(e.favoritesCount)&&(e.favoritesCount>z&&(z=e.favoritesCount),e.favoritesCount<P&&(P=e.favoritesCount)),isNaN(e.thumbUpRate)||(e.thumbUpRate>E&&(E=e.thumbUpRate),e.thumbUpRate<N&&(N=e.thumbUpRate)),isNaN(e.age)||(e.age>B&&(B=e.age),e.age<G&&(G=e.age)),t.attr("teacherInfo",JSON.stringify(e)),t.find(".teacher-name").html(t.find(".teacher-name").html()+"<br /><label title='评论标签数量'>".concat(e.label,"</label>|<label title='好评率'>").concat(e.thumbUpRate,"%</label>\n | <label title='收藏数量'>").concat(e.favoritesCount," </label> ")),t.attr("indicator",e.indicator)}function L(t){var e=0,i=0;console.debug("-----uiFilters",t),$.each($(".item"),(function(r,n){var o=$(n),a=o.attr("teacherInfo");if(!a)return!0;var s=JSON.parse(a),l=!0;isNaN(s.thumbUpRate)||(l=s.thumbUpRate>=t.rate1&&s.thumbUpRate<=t.rate2&&l),isNaN(s.label)||(l=s.label>=t.l1&&s.label<=t.l2&&l),isNaN(s.age)||(l=s.age>=t.age1&&s.age<=t.age2&&l),isNaN(s.favoritesCount)||(l=s.favoritesCount>=t.fc1&&s.favoritesCount<=t.fc2&&l),l?(o.is(":hidden")&&o.show().animate({left:"+=50"},3500).animate({left:"-=50"},3500),e++):(console.debug("Hide---------------",s),o.css("color","white").hide(500),i++)})),$("#tCount").text(e),$("#tHideCount").text(i)}function W(){var t=O($("#labelSlider").slider("values"),2),e=t[0],i=t[1],r=O($("#thumbUpRateSlider").slider("values"),2),n=r[0],o=r[1],a=O($("#tAgeSlider").slider("values"),2),s=a[0],l=a[1],d=O($("#fcSlider").slider("values"),2);return{l1:e,l2:i,rate1:n,rate2:o,age1:s,age2:l,fc1:d[0],fc2:d[1]}}function V(t){var e=C(t.find(".label")),i=A(t.find(".label>span")),r=t.find(".teacher-name").text(),n=$(".s-t-top-list .li-active").text(),o=b();return"收藏外教"==n?{label:e,name:r,batchNumber:o,isFavorite:!0,labels:i}:{label:e,name:r,batchNumber:o,type:n,labels:i}}function Y(){var t=sessionStorage.getItem("selectedTimeSlots");if(!t)return!1;var e=JSON.parse(t),i=e.shift();return!!i&&(v("autoNextPageCount",500),v("selectedTimeSlots",e),v("selectedTimeSlotsRemain",e.length),$('form[name="searchform"]>input[name="selectTime"]').val(i),$('form[name="searchform"]>input[name="pageID"]').val(1),$(".go-search").trigger("click"),!0)}function U(t,e,i){var r=$("#timesMultipleCheck"),n=r.find("input").length+1;$("<input />",{type:"checkbox",id:"cb"+n,value:t,name:i}).appendTo(r),$("<label />",{for:"cb"+n,text:e||t}).appendTo(r)}function Q(){return(Q=F(q().mark((function t(e){return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:h.isListPage&&($(".item-top-cont").prop("innerHTML",(function(t,e){return e.replaceAll("\x3c!--","").replaceAll("--\x3e","")})),_((function(t){var e=Number($(".s-t-page:last>a:last").prev().text()),i=window.parameters().pageID?window.parameters().pageID:1,r=e-i;if(m("autoNextPageCount",0)>0&&$(".s-t-page>.next-page").length>0){var n,o=$('<div id="dialog-confirm" title="是否停止自动搜索老师?">\n<p><span class="ui-icon ui-icon-alert" style="float:left; margin:12px 12px 20px 0;"></span>\n<b>正在根据您的选择自动获取教师信息</b><br><br>\n剩余'.concat(sessionStorage.getItem("selectedTimeSlotsRemain"),"/").concat(sessionStorage.getItem("selectedTimeSlotsTotal"),"个时段,<br><br>\n当前时段约").concat(28*e,"个教师,获取第").concat(i,"/").concat(e,"页,进度").concat(Math.floor(i/e*100),"%,<br>\n\n</p>\n</div>"));o.appendTo("body"),o.dialog({resizable:!1,height:"auto",width:400,modal:!1,buttons:(n={停止获取:function(){sessionStorage.removeItem("selectedTimeSlots"),v("autoNextPageCount",0),$(this).dialog("close")}},I(n,"取后".concat((.25*r).toFixed(0),"页"),(function(){sessionStorage.removeItem("selectedTimeSlots"),v("autoNextPageCount",(.25*r).toFixed(0)),$(this).dialog("close")})),I(n,"取后".concat((.5*r).toFixed(0),"页"),(function(){sessionStorage.removeItem("selectedTimeSlots"),v("autoNextPageCount",(.5*r).toFixed(0)),$(this).dialog("close")})),I(n,"取后".concat((.75*r).toFixed(0),"页"),(function(){sessionStorage.removeItem("selectedTimeSlots"),v("autoNextPageCount",(.75*r).toFixed(0)),$(this).dialog("close")})),n)})}t()})),$(".item").each((function(t,e){_((function(t){Pace.track((function(){var i=$(e),r=g(i.find(".teacher-details-link a").attr("href")),n="tinfo-"+r,o=V(i),a=GM_getValue(n);if(a){var s=Date.now();if(a.updateTime||(a.updateTime=new Date(1970,1,1).getTime()),o=$.extend({},a,o),s-a.updateTime<p)return H(i,o),GM_setValue(n,o),t(),!0}var l=Date.now();$.ajax({url:"".concat(window.location.protocol,"//").concat(window.location.host,"/TeacherNew/teacherComment?tid=").concat(r,"&type=bad&has_msg=1"),type:"GET",dateType:"html",success:function(t){var e=$(t);o=j(o,e,{}),e.remove(),H(i,o),GM_setValue(n,o)},error:function(t){console.debug("xhr error when getting teacher "+JSON.stringify(i)+",error msg:"+JSON.stringify(t))}}).always((function(){var e=Date.now()-l;e<600?setTimeout(t,600-e):t()}))}))}))})),_((function(t){var e=m("autoNextPageCount",0);if(e>0){if(v("autoNextPageCount",e-1),0!=$(".s-t-page>.next-page").length)return $(".s-t-page .next-page")[0].click(),!1;if(v("autoNextPageCount",0),Y())return}else if(Y())return;t()})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}h.isDetailPage&&_((function(t){var e,i;e=$(document),i=j(i=GM_getValue(w(),{}),e,{}),GM_setValue(w(),i),t()}));const X='<div id="filterDialog" title="Teacher Filter"> <div id="tabs"> <div> <ul> <li><a href="#tabs-1">Search Teachers</a></li> <li><a href="#tabs-2">Sorted Teachers</a></li> </ul> <br/> <div id="filterButtons"> <div id="buttons" style="text-align:center"> <button id="asc" title="当前为降序,点击后按升序排列">升序</button> <button id="desc" title="当前为升序,点击进行降序排列" style="display:none">降序</button> <input id="tInfoExprHours" title="缓存过期时间(小时)"/> <button title="清空缓存,并重新搜索">清除缓存</button> <a>报告BUG</a> <a>帮助</a> </div> <div id="buttons1" style="text-align:center"> <div id="timesMultipleCheck"></div> <button>反选时间段</button> <button id="autogettodaysteachers" title="自动获取上述选择时段的全部教师并缓存">获取选定时段老师</button> </div> </div> </div> <div id="tabs-1"> 当前可选 <span id="tCount"></span> 位,被折叠 <span id="tHideCount"></span> 位。 <br/> 有效经验值 <span id="_tLabelCount"></span> <br/> <div id="labelSlider"></div> 收藏数 <span id="_tfc"></span> <br/> <div id="fcSlider"></div> 好评率 <span id="_thumbUpRate"></span> <br/> <div id="thumbUpRateSlider"></div> 年龄 <span id="_tAge"></span> <br/> <div id="tAgeSlider"></div> </div> <div id="tabs-2"> <table id="teacherTab"> <caption></caption> <th id="vwswslwo"></th> </table> <div id="pager5"></div> </div> </div> </div> ';function K(t){return K="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},K(t)}function J(){J=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,r=Object.defineProperty||function(t,e,i){t[e]=i.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function d(t,e,i,n){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new j(n||[]);return r(a,"_invoke",{value:x(t,i,s)}),a}function c(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var u={};function h(){}function p(){}function f(){}var g={};l(g,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&i.call(v,o)&&(g=v);var b=f.prototype=h.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function n(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==K(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){d.value=t,a(d)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function x(t,e,i){var r="suspendedStart";return function(n,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw o;return{value:void 0,done:!0}}for(i.method=n,i.arg=o;;){var a=i.delegate;if(a){var s=_(a,i);if(s){if(s===u)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===r)throw r="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r="executing";var l=c(t,e,i);if("normal"===l.type){if(r=i.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r="completed",i.method="throw",i.arg=l.arg)}}}function _(t,e){var i=e.method,r=t.iterator[i];if(void 0===r)return e.delegate=null,"throw"===i&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),u;var n=c(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,u;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:D}}function D(){return{value:void 0,done:!0}}return p.prototype=f,r(b,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:p,configurable:!0}),p.displayName=l(f,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(y.prototype),l(y.prototype,a,(function(){return this})),t.AsyncIterator=y,t.async=function(e,i,r,n,o){void 0===o&&(o=Promise);var a=new y(d(e,i,r,n),o);return t.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,s,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),i=[];for(var r in e)i.push(r);return i.reverse(),function t(){for(;i.length;){var r=i.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=k,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(i,r){return a.type="throw",a.arg=t,e.next=i,r&&(e.method="next",e.arg=void 0),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r,n=this.tryEntries.length-1;n>=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e,i=this.tryEntries.length-1;i>=0;--i)if((e=this.tryEntries[i]).finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),u},catch:function(t){for(var e,i=this.tryEntries.length-1;i>=0;--i)if((e=this.tryEntries[i]).tryLoc===t){var r=e.completion;if("throw"===r.type){var n=r.arg;A(e)}return n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:k(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},t}function Z(t,e,i,r,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void i(t)}s.done?e(l):Promise.resolve(l).then(r,n)}function tt(t){return function(){var e=this,i=arguments;return new Promise((function(r,n){var o=t.apply(e,i);function a(t){Z(o,r,n,a,s,"next",t)}function s(t){Z(o,r,n,a,s,"throw",t)}a(void 0)}))}}function et(){return et=tt(J().mark((function t(){return J().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e().extend(o()),e().locale(r()),(h.isListPage||h.isDetailPage)&&(_((function(t){try{var i=GM_getValue("filterConfig",{l1:null!=M?M:300,l2:null!=T?T:200,rate1:null!=N?N:97,rate2:null!=E?E:100,age1:null!=G?G:0,age2:null!=B?B:100,fc1:null!=P?P:0,fc2:null!=z?z:999999});$("body").append(X),h.isListPage||$("#filterButtons").hide(),$("body").append("<div id='teacherListDialog' style='display:none;'></div>"),$("body").append("<div id='wwwww'>已加载选课辅助插件。</div>"),$("#labelSlider").slider({range:!0,min:M-1,max:T+1,values:[i.l1<M-1?M-1:i.l1,T],slide:function(t,e){$("#_tLabelCount").html(e.values[0]+" - "+e.values[1])}}).on("slidestop",(function(t,e){var i=$(this).slider("values"),r=W(),n=GM_getValue("filterConfig",r);n.l1=i[0],n.l2=i[1],GM_setValue("filterConfig",n),L(r)})),$("#fcSlider").slider({range:!0,min:P-1,max:z+1,values:[i.fc1,i.fc2],slide:function(t,e){$("#_tfc").html(e.values[0]+" - "+e.values[1])}}).on("slidestop",(function(t,e){var i=$(this).slider("values"),r=W(),n=GM_getValue("filterConfig",r);n.fc1=i[0],n.fc2=i[1],GM_setValue("filterConfig",n),L(r)})),$("#thumbUpRateSlider").slider({range:!0,min:N,max:E,values:[i.rate1,i.rate2],slide:function(t,e){$("#_thumbUpRate").html(e.values[0]+"% - "+e.values[1]+"%")}}).on("slidestop",(function(t,e){var i=$("#thumbUpRateSlider").slider("values"),r=W(),n=GM_getValue("filterConfig",r);n.rate1=i[0],n.rate2=i[1],GM_setValue("filterConfig",n),L(r)})),$("#tAgeSlider").slider({range:!0,min:G,max:B,values:[i.age1<G?G:i.age1,i.age2>B?B:i.age2],slide:function(t,e){$("#_tAge").html(e.values[0]+" - "+e.values[1])}}).on("slidestop",(function(t,e){var i=$(this).slider("values"),r=W(),n=GM_getValue("filterConfig",r);n.age1=i[0],n.age2=i[1],GM_setValue("filterConfig",n),L(r)})),$("#buttons>button,#buttons>input,#buttons>a").eq(0).button({icon:"ui-icon-arrowthick-1-n",showLabel:!0}).click((function(){$("#desc").show(),$(this).hide(),ot(rt)})).end().eq(1).button({icon:"ui-icon-arrowthick-1-s",showLabel:!0}).click((function(){$("#asc").show(),$(this).hide(),ot(nt)})).end().eq(2).spinner({min:0,spin:function(t,e){GM_setValue("tInfoExprHours",e.value)}}).css({width:"45px"}).val(GM_getValue("tInfoExprHours",p/36e5)).hide().end().eq(3).button({icon:"uiicon-trash",showLabel:!0}).click((function(){var t=GM_listValues();$.each(t,(function(t,e){var i="正在删除第".concat(t,"个教师缓存");_((function(t){try{$("title").html(i),GM_deleteValue(e)}finally{t()}}))})),$(".go-search").click()})).end().eq(4).button({icon:"ui-icon-comment",showLabel:!0}).prop("href","https://gitee.com/tsharp/userscripts/issues/new?assignees=&labels=&template=feature_request.md&title=").prop("target","_blank").end().eq(5).button({icon:"ui-icon-help",showLabel:!0}).prop("href","https://gitee.com/tsharp/userscripts/tree/master/findteacherson51talk").prop("target","_blank").end(),$("#buttons1>button").eq(0).button({icon:"ui-icon-seek-next",showLabel:!0}).click((function(){$("#timesMultipleCheck>input").each((function(t,e){$(e).prop("checked",!$(e).is(":checked")).change()}))})).end().eq(1).button({icon:"ui-icon-seek-next",showLabel:!0}).click((function(){n=[],$("#timesMultipleCheck>input").each((function(t,e){$(e).is(":checked")&&n.push($(e).val())})),v("selectedTimeSlots",n),v("selectedTimeSlotsTotal",n.length),Y()})).end(),$("div.condition-type:eq(0)>ul.condition-type-time>li").each((function(t,e){U($(e).attr("data-val"),$(e).text())}));var r=sessionStorage.getItem("selectedTimeSlots"),n=[];if(r)if((n=JSON.parse(r)).length>0)for(var o=n.length;o--;)$("#timesMultipleCheck>input[value='"+n[o]+"']").attr("checked",!0);else $("#timesMultipleCheck>input[value='"+$("input[name='selectTime']").val()+"']").attr("checked",!0);else $("#timesMultipleCheck>input[value='"+$("input[name='selectTime']").val()+"']").attr("checked",!0);$("#timesMultipleCheck").find("input").checkboxradio({icon:!1}),$("#tabs").tabs({active:"#tabs-2",activate:function(t,i){if("tabs-2"==i.newPanel.attr("id")){var r=at();if($("#teacherTab").jqGrid({data:r,datatype:"local",height:240,colNames:["查","类型","排名","Name","爱","分","标","率%","收藏数","学","教龄","好","差","龄","更新"],colModel:[{name:"batchNumber",index:"batchNumber",width:45,sorttype:"float",align:"right",searchoptions:{sopt:["cn"]},formatter:function(t,i,r){var n=e()(t);return n.isValid()?"<span title='".concat(n.format("YY-M-D H:m:s"),"'>").concat(n.format("HHmmss"),"</span>"):t}},{name:"type",index:"type",width:55,sorttype:"string",align:"left",searchoptions:{sopt:["cn"],defaultValue:"收藏外教"==$(".s-t-top-list .li-active").text()?"":$(".s-t-top-list .li-active").text()},formatter:function(t,e,i){return t||"na"}},{name:"rank",index:"rank",width:40,sorttype:"float",align:"right",searchoptions:{sopt:["le"]}},{name:"name",index:"name",width:125,sorttype:"string",formatter:function(t,e,i){return"<a href='".concat(window.location.protocol,"//").concat(window.location.host,"/TeacherNew/info/").concat(i.tid,"' target='_blank' style='color:blue'>").concat(t||i.tid,"</a>")}},{name:"isFavorite",index:"isFavorite",width:39,sorttype:"string",align:"left",searchoptions:{sopt:["cn"]},formatter:function(t,e,i){return t?"收藏":""}},{name:"indicator",index:"indicator",width:50,sorttype:"float",align:"right",searchoptions:{sopt:["ge"]}},{name:"label",index:"label",width:45,align:"right",searchoptions:{sopt:["ge"]}},{name:"thumbUpRate",index:"thumbUpRate",width:35,align:"right",sorttype:"float",searchoptions:{sopt:["ge"]}},{name:"favoritesCount",index:"favoritesCount",width:35,align:"right",sorttype:"float",searchoptions:{sopt:["ge"]}},{name:"sLevel",index:"sLevel",width:85,sorttype:"string",align:"left",searchoptions:{sopt:["cn","nc"]}},{name:"tAge",index:"tAge",width:25,sorttype:"float",align:"right",searchoptions:{sopt:["ge"]}},{name:"thumbUp",index:"thumbUp",width:45,align:"right",sorttype:"float",searchoptions:{sopt:["ge"]}},{name:"thumbDown",index:"thumbDown",width:30,sorttype:"float",align:"right"},{name:"age",index:"age",width:30,sorttype:"float",align:"right",searchoptions:{sopt:["le","ge","eq"]}},{name:"updateTime",index:"updateTime",width:35,sorttype:"Date",align:"right",searchoptions:{sopt:["cn"]},formatter:function(t,i,r){return t?e()(t).fromNow(!0):"na"}}],multiselect:!1,rowNum:10,rowList:[5,10,20,30],pager:"#pager5",sortname:"batchNumber desc,indicator desc",viewrecords:!0,multiSort:!0,sortorder:"desc",grouping:!1,responsive:!0,del:!0,width:830}).jqGrid("filterToolbar",{searchOperators:!0})[0].triggerToolbar(),h.isListPage&&$.each($(".item"),(function(t,e){var i=$(e),n=i.find(".teacher-details-link a").attr("href").replace("".concat(window.location.protocol,"//").concat(window.location.host,"/TeacherNew/info/"),""),o=r.find((function(t,e,i){return t.tid==n})),a=i.find(".teacher-name>label:eq(3)");0==a.length?i.find(".teacher-name").html("".concat(i.find(".teacher-name").html(),"| ").concat(st(o))):a.replaceWith(st(o))})),h.isDetailPage){var n=r.find((function(t,e,i){return t.tid==g()}));$("#teacherRank").html(st(n))}}}});var a=W();L(a),$("#_tAge").html(a.age1+" - "+a.age2),$("#_tLabelCount").html(a.l1+" - "+a.l2),$("#_tfc").html(a.fc1+" - "+a.fc2),$("#_thumbUpRate").html(a.rate1+"% - "+a.rate2+"%")}catch(t){throw console.debug(t+""),t}finally{t()}})),_((function(t){$(".s-t-list").before($(".s-t-page").prop("outerHTML")),$("#tabs>div:first").append($(".s-t-page").prop("outerHTML")),ot(nt),$("#tabs").tabs("option","active",1),h.isDetailPage&&$("#tabs").tabs("option","disabled",[0]),$("#filterDialog").dialog({width:"850"}),$("#filterDialog").parent().scrollFix(),$("#filterDialog").dialog("open"),t()}))),h.isCoursePage&&_((function(t){$(".course_lock").removeClass("course_lock").addClass("course_unlock"),$("img.course_mask").removeClass("course_mask").attr("src",""),t()}));case 4:case"end":return t.stop()}}),t)}))),et.apply(this,arguments)}var it;function rt(t,e){var i=$(t).attr("indicator"),r=$(e).attr("indicator");return i&&r?$(t).attr("indicator").toFloat()>$(e).attr("indicator").toFloat()?1:-1:0}function nt(t,e){var i=$(t).attr("indicator"),r=$(e).attr("indicator");return i&&r?$(t).attr("indicator").toFloat()>$(e).attr("indicator").toFloat()?-1:1:0}function ot(t){var e=$(".s-t-content.f-cb"),i=e.find(".item").detach().sort(t);e.append(i)}function at(){var t=[];$.each(GM_listValues(),(function(e,i){if(i.startsWith("tinfo-")){var r=GM_getValue(i);r.tid=i.slice(6,i.length),t.push(r)}}));var e={};return t=t.sort((function(t,e){return t.indicator==e.indicator?t.favoritesCount>e.favoritesCount?-1:1:t.indicator>e.indicator?-1:1})).map((function(t,i){return isNaN(e[t.type])?e[t.type]=1:e[t.type]+=1,t.rank=e[t.type],t}))}function st(t){if(t){var e="";return t.rank<=d.markRankRed&&(e="style = 'color:red'"),"<label title='在同类别教师中的排名' ".concat(e,"> ").concat(t.rank,"名</label>")}return"<label title='未找到该教师' > N名</label>"}it=function(t,e){return new Promise((function(e,i){try{var r=unsafeWindow.document||window.document,n=r.createElement("script"),o=r.head||r.body;n.type="text/javascript",n.crossorigin="use-credentials",n.src=t,n.onload=function(){return e({loaded:!0,error:!1})},n.onerror=function(){return i({loaded:!1,error:!0,message:"Failed to load script with src ".concat(t)})},o.appendChild(n)}catch(t){i(t)}}))},Promise.resolve().then((function(t){Pace.Options={ajax:!1,document:!1,eventLag:!1,elements:{selectors:["#filterDialog"]}}})).then((function(t){return function(t){return Q.apply(this,arguments)}(it)})).then((function(t){return function(){return et.apply(this,arguments)}()})).catch((function(t){return console.log("catched errors: ",t)}))})()})();
//# sourceMappingURL=findingteacher.user.js.map