diff --git a/KendoUISharepoint.sln b/KendoUISharepoint.sln new file mode 100644 index 0000000..394b2b3 --- /dev/null +++ b/KendoUISharepoint.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KendoUISharepoint", "KendoUISharepoint\KendoUISharepoint.csproj", "{C6A9FB33-4C07-4B47-89F2-0E5750736984}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C6A9FB33-4C07-4B47-89F2-0E5750736984}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C6A9FB33-4C07-4B47-89F2-0E5750736984}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C6A9FB33-4C07-4B47-89F2-0E5750736984}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {C6A9FB33-4C07-4B47-89F2-0E5750736984}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C6A9FB33-4C07-4B47-89F2-0E5750736984}.Release|Any CPU.Build.0 = Release|Any CPU + {C6A9FB33-4C07-4B47-89F2-0E5750736984}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/KendoUISharepoint.suo b/KendoUISharepoint.suo new file mode 100644 index 0000000..d4ba0db Binary files /dev/null and b/KendoUISharepoint.suo differ diff --git a/KendoUISharepoint.v11.suo b/KendoUISharepoint.v11.suo new file mode 100644 index 0000000..5790b25 Binary files /dev/null and b/KendoUISharepoint.v11.suo differ diff --git a/KendoUISharepoint/AppManifest.xml b/KendoUISharepoint/AppManifest.xml new file mode 100644 index 0000000..048ceb5 --- /dev/null +++ b/KendoUISharepoint/AppManifest.xml @@ -0,0 +1,22 @@ + + + + + ~appWebUrl/Pages/Default.aspx?{StandardTokens} + Kendo UI Leaves + + + + + + + + + + + diff --git a/KendoUISharepoint/Content/App.css b/KendoUISharepoint/Content/App.css new file mode 100644 index 0000000..c77bfc3 --- /dev/null +++ b/KendoUISharepoint/Content/App.css @@ -0,0 +1,210 @@ +#sidebar { + float:left; + width: 180px; + position: relative; +} + +#right-content { + position: absolute; + left: 220px; + right: 20px; +} + +.k-scheduler-layout > tbody > tr:first-child .k-scheduler-times tr + tr, .k-scheduler-header tr + tr { + display:none; +} + +#employee-name { + display: block; + position: absolute; + top: 180px; + left: 0px; + box-sizing: border-box; + width: 180px; + padding: 0 15px; + height: 40px; + line-height: 40px; + font-size: 14px; + color: #ffffff; + background-color: rgba(0,0,0,.45); + text-overflow: ellipsis; +} +.subtitle { + font-size: 11px; + font-weight: 500; + text-transform: uppercase; + color: #666666; + margin: 0; + padding: 15px 0 0; +} +#remaining-days { + font-size: 32px; + font-weight: normal; + color: #333333; +} + +ul.remaining-by-type { + margin: 10px 0 0; + padding: 10px 0 0; + list-style-type: none; + border-top: 1px solid #e3e3e3; +} + +ul.remaining-by-type li { + display: block; + position: relative; + padding: 0 0 0 18px; + font-size: 12px; + line-height: 22px; + height: 22px; +} + +ul.remaining-by-type li:after { + display: block; + content: " "; + position: absolute; + left: 0; + top: 50%; + margin-top: -6px; + width: 12px; + height: 12px; + border-radius: 50%; + background-color: #0072c6; +} + +ul.remaining-by-type li.bonus:after { + background-color: #ec236a; +} + +ul.remaining-by-type li span { + display: block; + float: right; + text-align: right; + font-weight: bold; + color: #333333; +} + +.scheduler-header:after { + display: block; + clear: both; + content: " "; + height: 0; + line-height: 0; +} + +.scheduler-header { + padding: 15px 0; +} + +h1 { + margin: -10px 0 0; + padding: 0; +} + +.team-picker { + float: right; + line-height: 28px; + vertical-align: bottom; +} + +.action-button { + display: block; + float: left; + font-size: 20px; + padding-left: 20px; + position: relative; + color: #0072c6; +} + +.action-button:after { + display: block; + position: absolute; + content: " "; + left: 0; + top: 9px; + width: 16px; + height: 16px; + background: url(/_layouts/15/images/spcommon.png) no-repeat -233px -138px; +} + +.action-button:hover { + text-decoration: none; + color: #004d85; +} + +.action-button:hover:after { + background: url(/_layouts/15/images/spcommon.png) no-repeat -233px -120px; +} + +.employee-card { + position: relative; + height: 70px; + width: 205px; +} + +.employee-photo { + position: absolute; + left: 10px; + top: 10px; + width: 50px; + height: 50px; + border-radius: 50%; +} + +.employee-name { + display: block; + position: absolute; + left: 70px; + top: 18px; + font-size: 14px; + color: #333333; +} + +.employee-jobtitle { + display: block; + position: absolute; + left: 70px; + top: 38px; + font-size: 9px; + text-transform: uppercase; + color: #787878; +} + +.k-scheduler-monthview .k-scheduler-table td, +.k-scheduler-monthview .k-hidden { + height: 55px; +} + +.k-edit-form-container .k-button:visited { + color: #333; +} +.k-edit-form-container .k-button.k-primary:visited { + color: #fff; +} + +.k-nav-current>.k-link span+span { + vertical-align: bottom; +} + +#chart, +#chart-totals { + height: 180px; + margin-top: 15px; +} + +.left-col, +.right-col { + display: inline-block; + width: 30%; + box-sizing: border-box; + padding: 0 20px 30px 0; +} + +.right-col { + width: 69.5%; + padding: 0 0 30px 0; +} +#ctl00_PlaceHolderSiteName_onetidProjectPropertyTitle { + font-size:42px; + text-decoration:none; +} diff --git a/KendoUISharepoint/Content/Elements.xml b/KendoUISharepoint/Content/Elements.xml new file mode 100644 index 0000000..a673963 --- /dev/null +++ b/KendoUISharepoint/Content/Elements.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Content/Office365/loading.gif b/KendoUISharepoint/Content/Office365/loading.gif new file mode 100644 index 0000000..f94bee2 Binary files /dev/null and b/KendoUISharepoint/Content/Office365/loading.gif differ diff --git a/KendoUISharepoint/Content/Office365/sprite.png b/KendoUISharepoint/Content/Office365/sprite.png new file mode 100644 index 0000000..f54e64d Binary files /dev/null and b/KendoUISharepoint/Content/Office365/sprite.png differ diff --git a/KendoUISharepoint/Content/SharePointProjectItem.spdata b/KendoUISharepoint/Content/SharePointProjectItem.spdata new file mode 100644 index 0000000..dfae0e7 --- /dev/null +++ b/KendoUISharepoint/Content/SharePointProjectItem.spdata @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Content/kendo.common-office365.min.css b/KendoUISharepoint/Content/kendo.common-office365.min.css new file mode 100644 index 0000000..f023001 --- /dev/null +++ b/KendoUISharepoint/Content/kendo.common-office365.min.css @@ -0,0 +1 @@ +.fake{color:red}.k-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.k-floatwrap:after,.k-slider-items:after,.k-grid-toolbar:after{content:"";display:block;clear:both;visibility:hidden;height:0;overflow:hidden}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:inline-block}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:block}.k-block,.k-button,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-tabstrip-items .k-item,.k-link.k-state-hover,.k-textbox,.k-textbox:hover,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-autocomplete.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-draghandle{background-repeat:repeat;background-position:0 center}.k-link:hover{text-decoration:none}.k-state-highlight>.k-link{color:inherit}.k-textbox>input,.k-input[type="text"],.k-input[type="number"],.k-textbox,.k-picker-wrap .k-input,.k-button{font-size:100%;font-family:inherit;border-style:solid;border-width:1px;-webkit-appearance:none}.k-widget,.k-block,.k-inline-block,.k-draghandle{border-style:solid;border-width:1px;-webkit-appearance:none}.k-block,.k-widget{line-height:normal;outline:0}.k-block{padding:2px}.k-button{display:inline-block;margin:0;padding:2px 7px 2px;font-family:inherit;line-height:1.72em;text-align:center;cursor:pointer;text-decoration:none}.k-button[disabled],.k-button.k-state-disabled,.k-state-disabled .k-button,.k-state-disabled .k-button:hover,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:active,.k-button.k-state-disabled:active{cursor:default}.k-ie7 .k-button{line-height:normal}a.k-button{-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;text-decoration:none}.k-ff input.k-button{padding-bottom:.37em;padding-top:.37em}.k-ie7 .k-button{overflow:visible;margin-right:4px}.k-ie7 a.k-button{line-height:1.6;padding-left:7px;padding-right:7px}.k-ie7 .k-slider a.k-button{height:22px;line-height:22px;padding:0}.k-ie7 .k-button-expand{margin-left:0;margin-right:0}button.k-button::-moz-focus-inner,input.k-button::-moz-focus-inner{padding:0;border:0}a.k-button-expand{display:block}button.k-button-expand,input[type="submit"].k-button-expand,input[type="button"].k-button-expand,input[type="reset"].k-button-expand{width:100%}body .k-button-icon,body .k-split-button-arrow{padding-left:.4em;padding-right:.4em}.k-ie7 a.k-button-icon{padding-left:5px;padding-right:5px}.k-button-icontext{overflow:visible}.k-toolbar .k-button-icontext{padding-right:.8em}.k-button-icontext .k-icon,.k-button-icontext .k-image{margin-right:3px;margin-right:.3rem;margin-left:-3px;margin-left:-0.3rem}.k-button.k-button-icontext .k-icon,.k-button.k-button-icontext .k-image{vertical-align:text-top}html body .k-button-bare{background:none!important;color:inherit;border-width:0}html body .k-button-bare.k-upload-button:hover{color:inherit}.k-link{cursor:pointer;outline:0;text-decoration:none}.k-grid-header span.k-link{cursor:default}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-icon,.k-state-disabled .k-button,.k-state-disabled .k-draghandle,.k-state-disabled .k-upload-button input{cursor:default!important;outline:0}@media print{.k-state-disabled,.k-state-disabled .k-input{opacity:1!important}}.k-state-error{border-style:ridge}.k-state-empty{font-style:italic}.k-icon,.k-sprite,.k-button-group .k-tool-icon{display:inline-block;width:16px;height:16px;overflow:hidden;background-repeat:no-repeat;font-size:0;line-height:0;text-align:center;-ms-high-contrast-adjust:none}.k-icon.k-i-none{background-image:none!important}.k-ie8 .k-icon,.k-ie8 .k-sprite,.k-ie8 .k-button-group .k-tool-icon{vertical-align:middle}:root *>.k-icon,:root *>.k-sprite,:root *>.k-button-group .k-tool-icon{vertical-align:middle}.k-icon,.k-sprite{background-color:transparent}.k-ie7 .k-icon,.k-ie7 .k-sprite{text-indent:0}.k-numerictextbox .k-select .k-link span.k-i-arrow-n{background-position:0 -3px}.k-numerictextbox .k-select .k-link span.k-i-arrow-s{background-position:0 -35px}.k-state-selected .k-i-arrow-n{background-position:-16px 0}.k-link:not(.k-state-disabled):hover>.k-state-selected .k-i-arrow-n,.k-state-hover>.k-state-selected .k-i-arrow-n,.k-state-hover>*>.k-state-selected .k-i-arrow-n,.k-button:not(.k-state-disabled):hover .k-state-selected .k-i-arrow-n,.k-textbox:hover .k-state-selected .k-i-arrow-n,.k-button:active .k-state-selected .k-i-arrow-n{background-position:-32px 0}.k-link:not(.k-state-disabled):hover>.k-state-selected .k-i-arrow-n,.k-state-hover>.k-state-selected .k-i-arrow-n,.k-state-hover>*>.k-state-selected .k-i-arrow-n,.k-button:not(.k-state-disabled):hover .k-state-selected .k-i-arrow-n,.k-textbox:hover .k-state-selected .k-i-arrow-n,.k-button:active .k-state-selected .k-i-arrow-n{background-position:-16px 0}.k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n{background-position:-16px -3px}.k-state-selected .k-i-arrow-s{background-position:-16px -32px}.k-link:not(.k-state-disabled):hover>.k-state-selected .k-i-arrow-s,.k-state-hover>.k-state-selected .k-i-arrow-s,.k-state-hover>*>.k-state-selected .k-i-arrow-s,.k-button:not(.k-state-disabled):hover .k-state-selected .k-i-arrow-s,.k-textbox:hover .k-state-selected .k-i-arrow-s,.k-button:active .k-state-selected .k-i-arrow-s{background-position:-32px -32px}.k-link:not(.k-state-disabled):hover>.k-state-selected .k-i-arrow-s,.k-state-hover>.k-state-selected .k-i-arrow-s,.k-state-hover>*>.k-state-selected .k-i-arrow-s,.k-button:not(.k-state-disabled):hover .k-state-selected .k-i-arrow-s,.k-textbox:hover .k-state-selected .k-i-arrow-s,.k-button:active .k-state-selected .k-i-arrow-s{background-position:-16px -32px}.k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s{background-position:-16px -35px}.k-grid-header th>.k-link:hover span.k-i-arrow-n{background-position:0 0}.k-grid-header th>.k-link:hover span.k-i-arrow-s{background-position:0 -32px}.k-group-indicator .k-link:hover span.k-si-arrow-n{background-position:0 -129px}.k-group-indicator .k-link:hover span.k-si-arrow-s{background-position:0 -159px}.k-group-indicator .k-button:hover span.k-group-delete{background-position:-32px -16px}.k-scheduler .k-scheduler-toolbar .k-nav-current .k-link .k-i-calendar{background-position:-32px -176px}.k-i-arrow-n{background-position:0 0}.k-link:not(.k-state-disabled):hover>.k-i-arrow-n,.k-state-hover>.k-i-arrow-n,.k-state-hover>*>.k-i-arrow-n,.k-button:not(.k-state-disabled):hover .k-i-arrow-n,.k-textbox:hover .k-i-arrow-n,.k-button:active .k-i-arrow-n{background-position:-16px 0}.k-link:not(.k-state-disabled):hover>.k-i-arrow-n,.k-state-hover>.k-i-arrow-n,.k-state-hover>*>.k-i-arrow-n,.k-button:not(.k-state-disabled):hover .k-i-arrow-n,.k-textbox:hover .k-i-arrow-n,.k-button:active .k-i-arrow-n{background-position:0 0}.k-i-arrow-e{background-position:0 -16px}.k-link:not(.k-state-disabled):hover>.k-i-arrow-e,.k-state-hover>.k-i-arrow-e,.k-state-hover>*>.k-i-arrow-e,.k-button:not(.k-state-disabled):hover .k-i-arrow-e,.k-textbox:hover .k-i-arrow-e,.k-button:active .k-i-arrow-e{background-position:-16px -16px}.k-link:not(.k-state-disabled):hover>.k-i-arrow-e,.k-state-hover>.k-i-arrow-e,.k-state-hover>*>.k-i-arrow-e,.k-button:not(.k-state-disabled):hover .k-i-arrow-e,.k-textbox:hover .k-i-arrow-e,.k-button:active .k-i-arrow-e{background-position:0 -16px}.k-rtl .k-i-arrow-w{background-position:0 -16px}.k-rtl .k-link:not(.k-state-disabled):hover>.k-i-arrow-w,.k-rtl .k-state-hover>.k-i-arrow-w,.k-rtl .k-state-hover>*>.k-i-arrow-w,.k-rtl .k-button:not(.k-state-disabled):hover .k-i-arrow-w,.k-rtl .k-textbox:hover .k-i-arrow-w,.k-rtl .k-button:active .k-i-arrow-w{background-position:-16px -16px}.k-rtl .k-link:not(.k-state-disabled):hover>.k-i-arrow-w,.k-rtl .k-state-hover>.k-i-arrow-w,.k-rtl .k-state-hover>*>.k-i-arrow-w,.k-rtl .k-button:not(.k-state-disabled):hover .k-i-arrow-w,.k-rtl .k-textbox:hover .k-i-arrow-w,.k-rtl .k-button:active .k-i-arrow-w{background-position:0 -16px}.k-i-arrow-s{background-position:0 -32px}.k-link:not(.k-state-disabled):hover>.k-i-arrow-s,.k-state-hover>.k-i-arrow-s,.k-state-hover>*>.k-i-arrow-s,.k-button:not(.k-state-disabled):hover .k-i-arrow-s,.k-textbox:hover .k-i-arrow-s,.k-button:active .k-i-arrow-s{background-position:-16px -32px}.k-link:not(.k-state-disabled):hover>.k-i-arrow-s,.k-state-hover>.k-i-arrow-s,.k-state-hover>*>.k-i-arrow-s,.k-button:not(.k-state-disabled):hover .k-i-arrow-s,.k-textbox:hover .k-i-arrow-s,.k-button:active .k-i-arrow-s{background-position:0 -32px}.k-i-arrow-w{background-position:0 -48px}.k-link:not(.k-state-disabled):hover>.k-i-arrow-w,.k-state-hover>.k-i-arrow-w,.k-state-hover>*>.k-i-arrow-w,.k-button:not(.k-state-disabled):hover .k-i-arrow-w,.k-textbox:hover .k-i-arrow-w,.k-button:active .k-i-arrow-w{background-position:-16px -48px}.k-link:not(.k-state-disabled):hover>.k-i-arrow-w,.k-state-hover>.k-i-arrow-w,.k-state-hover>*>.k-i-arrow-w,.k-button:not(.k-state-disabled):hover .k-i-arrow-w,.k-textbox:hover .k-i-arrow-w,.k-button:active .k-i-arrow-w{background-position:0 -48px}.k-rtl .k-i-arrow-e{background-position:0 -48px}.k-rtl .k-link:not(.k-state-disabled):hover>.k-i-arrow-e,.k-rtl .k-state-hover>.k-i-arrow-e,.k-rtl .k-state-hover>*>.k-i-arrow-e,.k-rtl .k-button:not(.k-state-disabled):hover .k-i-arrow-e,.k-rtl .k-textbox:hover .k-i-arrow-e,.k-rtl .k-button:active .k-i-arrow-e{background-position:-16px -48px}.k-rtl .k-link:not(.k-state-disabled):hover>.k-i-arrow-e,.k-rtl .k-state-hover>.k-i-arrow-e,.k-rtl .k-state-hover>*>.k-i-arrow-e,.k-rtl .k-button:not(.k-state-disabled):hover .k-i-arrow-e,.k-rtl .k-textbox:hover .k-i-arrow-e,.k-rtl .k-button:active .k-i-arrow-e{background-position:0 -48px}.k-i-seek-n{background-position:0 -64px}.k-link:not(.k-state-disabled):hover>.k-i-seek-n,.k-state-hover>.k-i-seek-n,.k-state-hover>*>.k-i-seek-n,.k-button:not(.k-state-disabled):hover .k-i-seek-n,.k-textbox:hover .k-i-seek-n,.k-button:active .k-i-seek-n{background-position:-16px -64px}.k-link:not(.k-state-disabled):hover>.k-i-seek-n,.k-state-hover>.k-i-seek-n,.k-state-hover>*>.k-i-seek-n,.k-button:not(.k-state-disabled):hover .k-i-seek-n,.k-textbox:hover .k-i-seek-n,.k-button:active .k-i-seek-n{background-position:0 -64px}.k-i-seek-e{background-position:0 -80px}.k-link:not(.k-state-disabled):hover>.k-i-seek-e,.k-state-hover>.k-i-seek-e,.k-state-hover>*>.k-i-seek-e,.k-button:not(.k-state-disabled):hover .k-i-seek-e,.k-textbox:hover .k-i-seek-e,.k-button:active .k-i-seek-e{background-position:-16px -80px}.k-link:not(.k-state-disabled):hover>.k-i-seek-e,.k-state-hover>.k-i-seek-e,.k-state-hover>*>.k-i-seek-e,.k-button:not(.k-state-disabled):hover .k-i-seek-e,.k-textbox:hover .k-i-seek-e,.k-button:active .k-i-seek-e{background-position:0 -80px}.k-rtl .k-i-seek-w{background-position:0 -80px}.k-rtl .k-link:not(.k-state-disabled):hover>.k-i-seek-w,.k-rtl .k-state-hover>.k-i-seek-w,.k-rtl .k-state-hover>*>.k-i-seek-w,.k-rtl .k-button:not(.k-state-disabled):hover .k-i-seek-w,.k-rtl .k-textbox:hover .k-i-seek-w,.k-rtl .k-button:active .k-i-seek-w{background-position:-16px -80px}.k-rtl .k-link:not(.k-state-disabled):hover>.k-i-seek-w,.k-rtl .k-state-hover>.k-i-seek-w,.k-rtl .k-state-hover>*>.k-i-seek-w,.k-rtl .k-button:not(.k-state-disabled):hover .k-i-seek-w,.k-rtl .k-textbox:hover .k-i-seek-w,.k-rtl .k-button:active .k-i-seek-w{background-position:0 -80px}.k-i-seek-s{background-position:0 -96px}.k-link:not(.k-state-disabled):hover>.k-i-seek-s,.k-state-hover>.k-i-seek-s,.k-state-hover>*>.k-i-seek-s,.k-button:not(.k-state-disabled):hover .k-i-seek-s,.k-textbox:hover .k-i-seek-s,.k-button:active .k-i-seek-s{background-position:-16px -96px}.k-link:not(.k-state-disabled):hover>.k-i-seek-s,.k-state-hover>.k-i-seek-s,.k-state-hover>*>.k-i-seek-s,.k-button:not(.k-state-disabled):hover .k-i-seek-s,.k-textbox:hover .k-i-seek-s,.k-button:active .k-i-seek-s{background-position:0 -96px}.k-i-seek-w{background-position:0 -112px}.k-link:not(.k-state-disabled):hover>.k-i-seek-w,.k-state-hover>.k-i-seek-w,.k-state-hover>*>.k-i-seek-w,.k-button:not(.k-state-disabled):hover .k-i-seek-w,.k-textbox:hover .k-i-seek-w,.k-button:active .k-i-seek-w{background-position:-16px -112px}.k-link:not(.k-state-disabled):hover>.k-i-seek-w,.k-state-hover>.k-i-seek-w,.k-state-hover>*>.k-i-seek-w,.k-button:not(.k-state-disabled):hover .k-i-seek-w,.k-textbox:hover .k-i-seek-w,.k-button:active .k-i-seek-w{background-position:0 -112px}.k-rtl .k-i-seek-e{background-position:0 -112px}.k-rtl .k-link:not(.k-state-disabled):hover>.k-i-seek-e,.k-rtl .k-state-hover>.k-i-seek-e,.k-rtl .k-state-hover>*>.k-i-seek-e,.k-rtl .k-button:not(.k-state-disabled):hover .k-i-seek-e,.k-rtl .k-textbox:hover .k-i-seek-e,.k-rtl .k-button:active .k-i-seek-e{background-position:-16px -112px}.k-rtl .k-link:not(.k-state-disabled):hover>.k-i-seek-e,.k-rtl .k-state-hover>.k-i-seek-e,.k-rtl .k-state-hover>*>.k-i-seek-e,.k-rtl .k-button:not(.k-state-disabled):hover .k-i-seek-e,.k-rtl .k-textbox:hover .k-i-seek-e,.k-rtl .k-button:active .k-i-seek-e{background-position:0 -112px}.k-si-arrow-n{background-position:0 -129px}.k-link:not(.k-state-disabled):hover>.k-si-arrow-n,.k-state-hover>.k-si-arrow-n,.k-state-hover>*>.k-si-arrow-n,.k-button:not(.k-state-disabled):hover .k-si-arrow-n,.k-textbox:hover .k-si-arrow-n,.k-button:active .k-si-arrow-n{background-position:-16px -129px}.k-si-arrow-e{background-position:0 -144px}.k-link:not(.k-state-disabled):hover>.k-si-arrow-e,.k-state-hover>.k-si-arrow-e,.k-state-hover>*>.k-si-arrow-e,.k-button:not(.k-state-disabled):hover .k-si-arrow-e,.k-textbox:hover .k-si-arrow-e,.k-button:active .k-si-arrow-e{background-position:-16px -144px}.k-link:not(.k-state-disabled):hover>.k-si-arrow-e,.k-state-hover>.k-si-arrow-e,.k-state-hover>*>.k-si-arrow-e,.k-button:not(.k-state-disabled):hover .k-si-arrow-e,.k-textbox:hover .k-si-arrow-e,.k-button:active .k-si-arrow-e{background-position:0 -144px}.k-si-arrow-s{background-position:0 -159px}.k-link:not(.k-state-disabled):hover>.k-si-arrow-s,.k-state-hover>.k-si-arrow-s,.k-state-hover>*>.k-si-arrow-s,.k-button:not(.k-state-disabled):hover .k-si-arrow-s,.k-textbox:hover .k-si-arrow-s,.k-button:active .k-si-arrow-s{background-position:-16px -159px}.k-si-arrow-w{background-position:0 -176px}.k-link:not(.k-state-disabled):hover>.k-si-arrow-w,.k-state-hover>.k-si-arrow-w,.k-state-hover>*>.k-si-arrow-w,.k-button:not(.k-state-disabled):hover .k-si-arrow-w,.k-textbox:hover .k-si-arrow-w,.k-button:active .k-si-arrow-w{background-position:-16px -176px}.k-link:not(.k-state-disabled):hover>.k-si-arrow-w,.k-state-hover>.k-si-arrow-w,.k-state-hover>*>.k-si-arrow-w,.k-button:not(.k-state-disabled):hover .k-si-arrow-w,.k-textbox:hover .k-si-arrow-w,.k-button:active .k-si-arrow-w{background-position:0 -176px}.k-i-arrowhead-n{background-position:0 -256px}.k-link:not(.k-state-disabled):hover>.k-i-arrowhead-n,.k-state-hover>.k-i-arrowhead-n,.k-state-hover>*>.k-i-arrowhead-n,.k-button:not(.k-state-disabled):hover .k-i-arrowhead-n,.k-textbox:hover .k-i-arrowhead-n,.k-button:active .k-i-arrowhead-n{background-position:-16px -256px}.k-link:not(.k-state-disabled):hover>.k-i-arrowhead-n,.k-state-hover>.k-i-arrowhead-n,.k-state-hover>*>.k-i-arrowhead-n,.k-button:not(.k-state-disabled):hover .k-i-arrowhead-n,.k-textbox:hover .k-i-arrowhead-n,.k-button:active .k-i-arrowhead-n{background-position:0 -256px}.k-i-arrowhead-e{background-position:0 -272px}.k-link:not(.k-state-disabled):hover>.k-i-arrowhead-e,.k-state-hover>.k-i-arrowhead-e,.k-state-hover>*>.k-i-arrowhead-e,.k-button:not(.k-state-disabled):hover .k-i-arrowhead-e,.k-textbox:hover .k-i-arrowhead-e,.k-button:active .k-i-arrowhead-e{background-position:-16px -272px}.k-link:not(.k-state-disabled):hover>.k-i-arrowhead-e,.k-state-hover>.k-i-arrowhead-e,.k-state-hover>*>.k-i-arrowhead-e,.k-button:not(.k-state-disabled):hover .k-i-arrowhead-e,.k-textbox:hover .k-i-arrowhead-e,.k-button:active .k-i-arrowhead-e{background-position:0 -272px}.k-i-arrowhead-s{background-position:0 -288px}.k-link:not(.k-state-disabled):hover>.k-i-arrowhead-s,.k-state-hover>.k-i-arrowhead-s,.k-state-hover>*>.k-i-arrowhead-s,.k-button:not(.k-state-disabled):hover .k-i-arrowhead-s,.k-textbox:hover .k-i-arrowhead-s,.k-button:active .k-i-arrowhead-s{background-position:-16px -288px}.k-link:not(.k-state-disabled):hover>.k-i-arrowhead-s,.k-state-hover>.k-i-arrowhead-s,.k-state-hover>*>.k-i-arrowhead-s,.k-button:not(.k-state-disabled):hover .k-i-arrowhead-s,.k-textbox:hover .k-i-arrowhead-s,.k-button:active .k-i-arrowhead-s{background-position:0 -288px}.k-i-arrowhead-w{background-position:0 -304px}.k-link:not(.k-state-disabled):hover>.k-i-arrowhead-w,.k-state-hover>.k-i-arrowhead-w,.k-state-hover>*>.k-i-arrowhead-w,.k-button:not(.k-state-disabled):hover .k-i-arrowhead-w,.k-textbox:hover .k-i-arrowhead-w,.k-button:active .k-i-arrowhead-w{background-position:-16px -304px}.k-link:not(.k-state-disabled):hover>.k-i-arrowhead-w,.k-state-hover>.k-i-arrowhead-w,.k-state-hover>*>.k-i-arrowhead-w,.k-button:not(.k-state-disabled):hover .k-i-arrowhead-w,.k-textbox:hover .k-i-arrowhead-w,.k-button:active .k-i-arrowhead-w{background-position:0 -304px}.k-i-expand,.k-plus,.k-plus-disabled{background-position:0 -192px}.k-link:not(.k-state-disabled):hover>.k-i-expand,.k-link:not(.k-state-disabled):hover>.k-plus,.k-link:not(.k-state-disabled):hover>.k-plus-disabled,.k-state-hover>.k-i-expand,.k-state-hover>.k-plus,.k-state-hover>.k-plus-disabled,.k-state-hover>*>.k-i-expand,.k-state-hover>*>.k-plus,.k-state-hover>*>.k-plus-disabled,.k-button:not(.k-state-disabled):hover .k-i-expand,.k-button:not(.k-state-disabled):hover .k-plus,.k-button:not(.k-state-disabled):hover .k-plus-disabled,.k-textbox:hover .k-i-expand,.k-textbox:hover .k-plus,.k-textbox:hover .k-plus-disabled,.k-button:active .k-i-expand,.k-button:active .k-plus,.k-button:active .k-plus-disabled{background-position:-16px -192px}.k-link:not(.k-state-disabled):hover>.k-i-expand,.k-link:not(.k-state-disabled):hover>.k-plus,.k-link:not(.k-state-disabled):hover>.k-plus-disabled,.k-state-hover>.k-i-expand,.k-state-hover>.k-plus,.k-state-hover>.k-plus-disabled,.k-state-hover>*>.k-i-expand,.k-state-hover>*>.k-plus,.k-state-hover>*>.k-plus-disabled,.k-button:not(.k-state-disabled):hover .k-i-expand,.k-button:not(.k-state-disabled):hover .k-plus,.k-button:not(.k-state-disabled):hover .k-plus-disabled,.k-textbox:hover .k-i-expand,.k-textbox:hover .k-plus,.k-textbox:hover .k-plus-disabled,.k-button:active .k-i-expand,.k-button:active .k-plus,.k-button:active .k-plus-disabled{background-position:0 -192px}.k-i-expand-w,.k-rtl .k-i-expand,.k-rtl .k-plus,.k-rtl .k-plus-disabled{background-position:0 -208px}.k-link:not(.k-state-disabled):hover>.k-i-expand-w,.k-link:not(.k-state-disabled):hover>.k-rtl .k-i-expand,.k-link:not(.k-state-disabled):hover>.k-rtl .k-plus,.k-link:not(.k-state-disabled):hover>.k-rtl .k-plus-disabled,.k-state-hover>.k-i-expand-w,.k-state-hover>.k-rtl .k-i-expand,.k-state-hover>.k-rtl .k-plus,.k-state-hover>.k-rtl .k-plus-disabled,.k-state-hover>*>.k-i-expand-w,.k-state-hover>*>.k-rtl .k-i-expand,.k-state-hover>*>.k-rtl .k-plus,.k-state-hover>*>.k-rtl .k-plus-disabled,.k-button:not(.k-state-disabled):hover .k-i-expand-w,.k-button:not(.k-state-disabled):hover .k-rtl .k-i-expand,.k-button:not(.k-state-disabled):hover .k-rtl .k-plus,.k-button:not(.k-state-disabled):hover .k-rtl .k-plus-disabled,.k-textbox:hover .k-i-expand-w,.k-textbox:hover .k-rtl .k-i-expand,.k-textbox:hover .k-rtl .k-plus,.k-textbox:hover .k-rtl .k-plus-disabled,.k-button:active .k-i-expand-w,.k-button:active .k-rtl .k-i-expand,.k-button:active .k-rtl .k-plus,.k-button:active .k-rtl .k-plus-disabled{background-position:-16px -208px}.k-link:not(.k-state-disabled):hover>.k-i-expand-w,.k-link:not(.k-state-disabled):hover>.k-rtl .k-i-expand,.k-link:not(.k-state-disabled):hover>.k-rtl .k-plus,.k-link:not(.k-state-disabled):hover>.k-rtl .k-plus-disabled,.k-state-hover>.k-i-expand-w,.k-state-hover>.k-rtl .k-i-expand,.k-state-hover>.k-rtl .k-plus,.k-state-hover>.k-rtl .k-plus-disabled,.k-state-hover>*>.k-i-expand-w,.k-state-hover>*>.k-rtl .k-i-expand,.k-state-hover>*>.k-rtl .k-plus,.k-state-hover>*>.k-rtl .k-plus-disabled,.k-button:not(.k-state-disabled):hover .k-i-expand-w,.k-button:not(.k-state-disabled):hover .k-rtl .k-i-expand,.k-button:not(.k-state-disabled):hover .k-rtl .k-plus,.k-button:not(.k-state-disabled):hover .k-rtl .k-plus-disabled,.k-textbox:hover .k-i-expand-w,.k-textbox:hover .k-rtl .k-i-expand,.k-textbox:hover .k-rtl .k-plus,.k-textbox:hover .k-rtl .k-plus-disabled,.k-button:active .k-i-expand-w,.k-button:active .k-rtl .k-i-expand,.k-button:active .k-rtl .k-plus,.k-button:active .k-rtl .k-plus-disabled{background-position:0 -208px}.k-i-collapse,.k-minus,.k-minus-disabled{background-position:0 -224px}.k-link:not(.k-state-disabled):hover>.k-i-collapse,.k-link:not(.k-state-disabled):hover>.k-minus,.k-link:not(.k-state-disabled):hover>.k-minus-disabled,.k-state-hover>.k-i-collapse,.k-state-hover>.k-minus,.k-state-hover>.k-minus-disabled,.k-state-hover>*>.k-i-collapse,.k-state-hover>*>.k-minus,.k-state-hover>*>.k-minus-disabled,.k-button:not(.k-state-disabled):hover .k-i-collapse,.k-button:not(.k-state-disabled):hover .k-minus,.k-button:not(.k-state-disabled):hover .k-minus-disabled,.k-textbox:hover .k-i-collapse,.k-textbox:hover .k-minus,.k-textbox:hover .k-minus-disabled,.k-button:active .k-i-collapse,.k-button:active .k-minus,.k-button:active .k-minus-disabled{background-position:-16px -224px}.k-link:not(.k-state-disabled):hover>.k-i-collapse,.k-link:not(.k-state-disabled):hover>.k-minus,.k-link:not(.k-state-disabled):hover>.k-minus-disabled,.k-state-hover>.k-i-collapse,.k-state-hover>.k-minus,.k-state-hover>.k-minus-disabled,.k-state-hover>*>.k-i-collapse,.k-state-hover>*>.k-minus,.k-state-hover>*>.k-minus-disabled,.k-button:not(.k-state-disabled):hover .k-i-collapse,.k-button:not(.k-state-disabled):hover .k-minus,.k-button:not(.k-state-disabled):hover .k-minus-disabled,.k-textbox:hover .k-i-collapse,.k-textbox:hover .k-minus,.k-textbox:hover .k-minus-disabled,.k-button:active .k-i-collapse,.k-button:active .k-minus,.k-button:active .k-minus-disabled{background-position:0 -224px}.k-i-collapse-w,.k-rtl .k-i-collapse,.k-rtl .k-minus,.k-rtl .k-minus-disabled{background-position:0 -240px}.k-link:not(.k-state-disabled):hover>.k-i-collapse-w,.k-link:not(.k-state-disabled):hover>.k-rtl .k-i-collapse,.k-link:not(.k-state-disabled):hover>.k-rtl .k-minus,.k-link:not(.k-state-disabled):hover>.k-rtl .k-minus-disabled,.k-state-hover>.k-i-collapse-w,.k-state-hover>.k-rtl .k-i-collapse,.k-state-hover>.k-rtl .k-minus,.k-state-hover>.k-rtl .k-minus-disabled,.k-state-hover>*>.k-i-collapse-w,.k-state-hover>*>.k-rtl .k-i-collapse,.k-state-hover>*>.k-rtl .k-minus,.k-state-hover>*>.k-rtl .k-minus-disabled,.k-button:not(.k-state-disabled):hover .k-i-collapse-w,.k-button:not(.k-state-disabled):hover .k-rtl .k-i-collapse,.k-button:not(.k-state-disabled):hover .k-rtl .k-minus,.k-button:not(.k-state-disabled):hover .k-rtl .k-minus-disabled,.k-textbox:hover .k-i-collapse-w,.k-textbox:hover .k-rtl .k-i-collapse,.k-textbox:hover .k-rtl .k-minus,.k-textbox:hover .k-rtl .k-minus-disabled,.k-button:active .k-i-collapse-w,.k-button:active .k-rtl .k-i-collapse,.k-button:active .k-rtl .k-minus,.k-button:active .k-rtl .k-minus-disabled{background-position:-16px -240px}.k-link:not(.k-state-disabled):hover>.k-i-collapse-w,.k-link:not(.k-state-disabled):hover>.k-rtl .k-i-collapse,.k-link:not(.k-state-disabled):hover>.k-rtl .k-minus,.k-link:not(.k-state-disabled):hover>.k-rtl .k-minus-disabled,.k-state-hover>.k-i-collapse-w,.k-state-hover>.k-rtl .k-i-collapse,.k-state-hover>.k-rtl .k-minus,.k-state-hover>.k-rtl .k-minus-disabled,.k-state-hover>*>.k-i-collapse-w,.k-state-hover>*>.k-rtl .k-i-collapse,.k-state-hover>*>.k-rtl .k-minus,.k-state-hover>*>.k-rtl .k-minus-disabled,.k-button:not(.k-state-disabled):hover .k-i-collapse-w,.k-button:not(.k-state-disabled):hover .k-rtl .k-i-collapse,.k-button:not(.k-state-disabled):hover .k-rtl .k-minus,.k-button:not(.k-state-disabled):hover .k-rtl .k-minus-disabled,.k-textbox:hover .k-i-collapse-w,.k-textbox:hover .k-rtl .k-i-collapse,.k-textbox:hover .k-rtl .k-minus,.k-textbox:hover .k-rtl .k-minus-disabled,.k-button:active .k-i-collapse-w,.k-button:active .k-rtl .k-i-collapse,.k-button:active .k-rtl .k-minus,.k-button:active .k-rtl .k-minus-disabled{background-position:0 -240px}.k-i-pencil,.k-edit{background-position:-32px 0}.k-link:not(.k-state-disabled):hover>.k-i-pencil,.k-link:not(.k-state-disabled):hover>.k-edit,.k-state-hover>.k-i-pencil,.k-state-hover>.k-edit,.k-state-hover>*>.k-i-pencil,.k-state-hover>*>.k-edit,.k-button:not(.k-state-disabled):hover .k-i-pencil,.k-button:not(.k-state-disabled):hover .k-edit,.k-textbox:hover .k-i-pencil,.k-textbox:hover .k-edit,.k-button:active .k-i-pencil,.k-button:active .k-edit{background-position:-48px 0}.k-link:not(.k-state-disabled):hover>.k-i-pencil,.k-link:not(.k-state-disabled):hover>.k-edit,.k-state-hover>.k-i-pencil,.k-state-hover>.k-edit,.k-state-hover>*>.k-i-pencil,.k-state-hover>*>.k-edit,.k-button:not(.k-state-disabled):hover .k-i-pencil,.k-button:not(.k-state-disabled):hover .k-edit,.k-textbox:hover .k-i-pencil,.k-textbox:hover .k-edit,.k-button:active .k-i-pencil,.k-button:active .k-edit{background-position:-32px 0}.k-i-close,.k-delete,.k-group-delete{background-position:-32px -16px}.k-link:not(.k-state-disabled):hover>.k-i-close,.k-link:not(.k-state-disabled):hover>.k-delete,.k-link:not(.k-state-disabled):hover>.k-group-delete,.k-state-hover>.k-i-close,.k-state-hover>.k-delete,.k-state-hover>.k-group-delete,.k-state-hover>*>.k-i-close,.k-state-hover>*>.k-delete,.k-state-hover>*>.k-group-delete,.k-button:not(.k-state-disabled):hover .k-i-close,.k-button:not(.k-state-disabled):hover .k-delete,.k-button:not(.k-state-disabled):hover .k-group-delete,.k-textbox:hover .k-i-close,.k-textbox:hover .k-delete,.k-textbox:hover .k-group-delete,.k-button:active .k-i-close,.k-button:active .k-delete,.k-button:active .k-group-delete{background-position:-48px -16px}.k-link:not(.k-state-disabled):hover>.k-i-close,.k-link:not(.k-state-disabled):hover>.k-delete,.k-link:not(.k-state-disabled):hover>.k-group-delete,.k-state-hover>.k-i-close,.k-state-hover>.k-delete,.k-state-hover>.k-group-delete,.k-state-hover>*>.k-i-close,.k-state-hover>*>.k-delete,.k-state-hover>*>.k-group-delete,.k-button:not(.k-state-disabled):hover .k-i-close,.k-button:not(.k-state-disabled):hover .k-delete,.k-button:not(.k-state-disabled):hover .k-group-delete,.k-textbox:hover .k-i-close,.k-textbox:hover .k-delete,.k-textbox:hover .k-group-delete,.k-button:active .k-i-close,.k-button:active .k-delete,.k-button:active .k-group-delete{background-position:-32px -16px}.k-si-close{background-position:-160px -80px}.k-link:not(.k-state-disabled):hover>.k-si-close,.k-state-hover>.k-si-close,.k-state-hover>*>.k-si-close,.k-button:not(.k-state-disabled):hover .k-si-close,.k-textbox:hover .k-si-close,.k-button:active .k-si-close{background-position:-176px -80px}.k-link:not(.k-state-disabled):hover>.k-si-close,.k-state-hover>.k-si-close,.k-state-hover>*>.k-si-close,.k-button:not(.k-state-disabled):hover .k-si-close,.k-textbox:hover .k-si-close,.k-button:active .k-si-close{background-position:-160px -80px}.k-multiselect .k-delete{background-position:-160px -80px}.k-multiselect .k-state-hover .k-delete{background-position:-176px -80px}.k-i-tick,.k-insert,.k-update{background-position:-32px -32px}.k-link:not(.k-state-disabled):hover>.k-i-tick,.k-link:not(.k-state-disabled):hover>.k-insert,.k-link:not(.k-state-disabled):hover>.k-update,.k-state-hover>.k-i-tick,.k-state-hover>.k-insert,.k-state-hover>.k-update,.k-state-hover>*>.k-i-tick,.k-state-hover>*>.k-insert,.k-state-hover>*>.k-update,.k-button:not(.k-state-disabled):hover .k-i-tick,.k-button:not(.k-state-disabled):hover .k-insert,.k-button:not(.k-state-disabled):hover .k-update,.k-textbox:hover .k-i-tick,.k-textbox:hover .k-insert,.k-textbox:hover .k-update,.k-button:active .k-i-tick,.k-button:active .k-insert,.k-button:active .k-update{background-position:-48px -32px}.k-link:not(.k-state-disabled):hover>.k-i-tick,.k-link:not(.k-state-disabled):hover>.k-insert,.k-link:not(.k-state-disabled):hover>.k-update,.k-state-hover>.k-i-tick,.k-state-hover>.k-insert,.k-state-hover>.k-update,.k-state-hover>*>.k-i-tick,.k-state-hover>*>.k-insert,.k-state-hover>*>.k-update,.k-button:not(.k-state-disabled):hover .k-i-tick,.k-button:not(.k-state-disabled):hover .k-insert,.k-button:not(.k-state-disabled):hover .k-update,.k-textbox:hover .k-i-tick,.k-textbox:hover .k-insert,.k-textbox:hover .k-update,.k-button:active .k-i-tick,.k-button:active .k-insert,.k-button:active .k-update{background-position:-32px -32px}.k-check:checked,.k-mobile-list .k-edit-field [type=checkbox],.k-mobile-list .k-edit-field [type=radio]{background-position:-32px -32px}.k-link:not(.k-state-disabled):hover>.k-check:checked,.k-link:not(.k-state-disabled):hover>.k-mobile-list .k-edit-field [type=checkbox],.k-link:not(.k-state-disabled):hover>.k-mobile-list .k-edit-field [type=radio],.k-state-hover>.k-check:checked,.k-state-hover>.k-mobile-list .k-edit-field [type=checkbox],.k-state-hover>.k-mobile-list .k-edit-field [type=radio],.k-state-hover>*>.k-check:checked,.k-state-hover>*>.k-mobile-list .k-edit-field [type=checkbox],.k-state-hover>*>.k-mobile-list .k-edit-field [type=radio],.k-button:not(.k-state-disabled):hover .k-check:checked,.k-button:not(.k-state-disabled):hover .k-mobile-list .k-edit-field [type=checkbox],.k-button:not(.k-state-disabled):hover .k-mobile-list .k-edit-field [type=radio],.k-textbox:hover .k-check:checked,.k-textbox:hover .k-mobile-list .k-edit-field [type=checkbox],.k-textbox:hover .k-mobile-list .k-edit-field [type=radio],.k-button:active .k-check:checked,.k-button:active .k-mobile-list .k-edit-field [type=checkbox],.k-button:active .k-mobile-list .k-edit-field [type=radio]{background-position:-48px -32px}.k-link:not(.k-state-disabled):hover>.k-check:checked,.k-link:not(.k-state-disabled):hover>.k-mobile-list .k-edit-field [type=checkbox],.k-link:not(.k-state-disabled):hover>.k-mobile-list .k-edit-field [type=radio],.k-state-hover>.k-check:checked,.k-state-hover>.k-mobile-list .k-edit-field [type=checkbox],.k-state-hover>.k-mobile-list .k-edit-field [type=radio],.k-state-hover>*>.k-check:checked,.k-state-hover>*>.k-mobile-list .k-edit-field [type=checkbox],.k-state-hover>*>.k-mobile-list .k-edit-field [type=radio],.k-button:not(.k-state-disabled):hover .k-check:checked,.k-button:not(.k-state-disabled):hover .k-mobile-list .k-edit-field [type=checkbox],.k-button:not(.k-state-disabled):hover .k-mobile-list .k-edit-field [type=radio],.k-textbox:hover .k-check:checked,.k-textbox:hover .k-mobile-list .k-edit-field [type=checkbox],.k-textbox:hover .k-mobile-list .k-edit-field [type=radio],.k-button:active .k-check:checked,.k-button:active .k-mobile-list .k-edit-field [type=checkbox],.k-button:active .k-mobile-list .k-edit-field [type=radio]{background-position:-32px -32px}.k-i-cancel,.k-cancel,.k-denied{background-position:-32px -48px}.k-link:not(.k-state-disabled):hover>.k-i-cancel,.k-link:not(.k-state-disabled):hover>.k-cancel,.k-link:not(.k-state-disabled):hover>.k-denied,.k-state-hover>.k-i-cancel,.k-state-hover>.k-cancel,.k-state-hover>.k-denied,.k-state-hover>*>.k-i-cancel,.k-state-hover>*>.k-cancel,.k-state-hover>*>.k-denied,.k-button:not(.k-state-disabled):hover .k-i-cancel,.k-button:not(.k-state-disabled):hover .k-cancel,.k-button:not(.k-state-disabled):hover .k-denied,.k-textbox:hover .k-i-cancel,.k-textbox:hover .k-cancel,.k-textbox:hover .k-denied,.k-button:active .k-i-cancel,.k-button:active .k-cancel,.k-button:active .k-denied{background-position:-48px -48px}.k-link:not(.k-state-disabled):hover>.k-i-cancel,.k-link:not(.k-state-disabled):hover>.k-cancel,.k-link:not(.k-state-disabled):hover>.k-denied,.k-state-hover>.k-i-cancel,.k-state-hover>.k-cancel,.k-state-hover>.k-denied,.k-state-hover>*>.k-i-cancel,.k-state-hover>*>.k-cancel,.k-state-hover>*>.k-denied,.k-button:not(.k-state-disabled):hover .k-i-cancel,.k-button:not(.k-state-disabled):hover .k-cancel,.k-button:not(.k-state-disabled):hover .k-denied,.k-textbox:hover .k-i-cancel,.k-textbox:hover .k-cancel,.k-textbox:hover .k-denied,.k-button:active .k-i-cancel,.k-button:active .k-cancel,.k-button:active .k-denied{background-position:-32px -48px}.k-i-plus,.k-add{background-position:-32px -64px}.k-link:not(.k-state-disabled):hover>.k-i-plus,.k-link:not(.k-state-disabled):hover>.k-add,.k-state-hover>.k-i-plus,.k-state-hover>.k-add,.k-state-hover>*>.k-i-plus,.k-state-hover>*>.k-add,.k-button:not(.k-state-disabled):hover .k-i-plus,.k-button:not(.k-state-disabled):hover .k-add,.k-textbox:hover .k-i-plus,.k-textbox:hover .k-add,.k-button:active .k-i-plus,.k-button:active .k-add{background-position:-48px -64px}.k-link:not(.k-state-disabled):hover>.k-i-plus,.k-link:not(.k-state-disabled):hover>.k-add,.k-state-hover>.k-i-plus,.k-state-hover>.k-add,.k-state-hover>*>.k-i-plus,.k-state-hover>*>.k-add,.k-button:not(.k-state-disabled):hover .k-i-plus,.k-button:not(.k-state-disabled):hover .k-add,.k-textbox:hover .k-i-plus,.k-textbox:hover .k-add,.k-button:active .k-i-plus,.k-button:active .k-add{background-position:-32px -64px}.k-i-funnel,.k-filter{background-position:-32px -80px}.k-link:not(.k-state-disabled):hover>.k-i-funnel,.k-link:not(.k-state-disabled):hover>.k-filter,.k-state-hover>.k-i-funnel,.k-state-hover>.k-filter,.k-state-hover>*>.k-i-funnel,.k-state-hover>*>.k-filter,.k-button:not(.k-state-disabled):hover .k-i-funnel,.k-button:not(.k-state-disabled):hover .k-filter,.k-textbox:hover .k-i-funnel,.k-textbox:hover .k-filter,.k-button:active .k-i-funnel,.k-button:active .k-filter{background-position:-48px -80px}.k-link:not(.k-state-disabled):hover>.k-i-funnel,.k-link:not(.k-state-disabled):hover>.k-filter,.k-state-hover>.k-i-funnel,.k-state-hover>.k-filter,.k-state-hover>*>.k-i-funnel,.k-state-hover>*>.k-filter,.k-button:not(.k-state-disabled):hover .k-i-funnel,.k-button:not(.k-state-disabled):hover .k-filter,.k-textbox:hover .k-i-funnel,.k-textbox:hover .k-filter,.k-button:active .k-i-funnel,.k-button:active .k-filter{background-position:-32px -80px}.k-i-funnel-clear,.k-clear-filter{background-position:-32px -96px}.k-link:not(.k-state-disabled):hover>.k-i-funnel-clear,.k-link:not(.k-state-disabled):hover>.k-clear-filter,.k-state-hover>.k-i-funnel-clear,.k-state-hover>.k-clear-filter,.k-state-hover>*>.k-i-funnel-clear,.k-state-hover>*>.k-clear-filter,.k-button:not(.k-state-disabled):hover .k-i-funnel-clear,.k-button:not(.k-state-disabled):hover .k-clear-filter,.k-textbox:hover .k-i-funnel-clear,.k-textbox:hover .k-clear-filter,.k-button:active .k-i-funnel-clear,.k-button:active .k-clear-filter{background-position:-48px -96px}.k-link:not(.k-state-disabled):hover>.k-i-funnel-clear,.k-link:not(.k-state-disabled):hover>.k-clear-filter,.k-state-hover>.k-i-funnel-clear,.k-state-hover>.k-clear-filter,.k-state-hover>*>.k-i-funnel-clear,.k-state-hover>*>.k-clear-filter,.k-button:not(.k-state-disabled):hover .k-i-funnel-clear,.k-button:not(.k-state-disabled):hover .k-clear-filter,.k-textbox:hover .k-i-funnel-clear,.k-textbox:hover .k-clear-filter,.k-button:active .k-i-funnel-clear,.k-button:active .k-clear-filter{background-position:-32px -96px}.k-i-lock{background-position:-64px 0}.k-link:not(.k-state-disabled):hover>.k-i-lock,.k-state-hover>.k-i-lock,.k-state-hover>*>.k-i-lock,.k-button:not(.k-state-disabled):hover .k-i-lock,.k-textbox:hover .k-i-lock,.k-button:active .k-i-lock{background-position:-80px 0}.k-link:not(.k-state-disabled):hover>.k-i-lock,.k-state-hover>.k-i-lock,.k-state-hover>*>.k-i-lock,.k-button:not(.k-state-disabled):hover .k-i-lock,.k-textbox:hover .k-i-lock,.k-button:active .k-i-lock{background-position:-64px 0}.k-i-unlock{background-position:-64px -16px}.k-link:not(.k-state-disabled):hover>.k-i-unlock,.k-state-hover>.k-i-unlock,.k-state-hover>*>.k-i-unlock,.k-button:not(.k-state-disabled):hover .k-i-unlock,.k-textbox:hover .k-i-unlock,.k-button:active .k-i-unlock{background-position:-80px -16px}.k-link:not(.k-state-disabled):hover>.k-i-unlock,.k-state-hover>.k-i-unlock,.k-state-hover>*>.k-i-unlock,.k-button:not(.k-state-disabled):hover .k-i-unlock,.k-textbox:hover .k-i-unlock,.k-button:active .k-i-unlock{background-position:-64px -16px}.k-i-refresh{background-position:-32px -112px}.k-link:not(.k-state-disabled):hover>.k-i-refresh,.k-state-hover>.k-i-refresh,.k-state-hover>*>.k-i-refresh,.k-button:not(.k-state-disabled):hover .k-i-refresh,.k-textbox:hover .k-i-refresh,.k-button:active .k-i-refresh{background-position:-48px -112px}.k-link:not(.k-state-disabled):hover>.k-i-refresh,.k-state-hover>.k-i-refresh,.k-state-hover>*>.k-i-refresh,.k-button:not(.k-state-disabled):hover .k-i-refresh,.k-textbox:hover .k-i-refresh,.k-button:active .k-i-refresh{background-position:-32px -112px}.k-i-exception{background-position:-160px -304px}.k-link:not(.k-state-disabled):hover>.k-i-exception,.k-state-hover>.k-i-exception,.k-state-hover>*>.k-i-exception,.k-button:not(.k-state-disabled):hover .k-i-exception,.k-textbox:hover .k-i-exception,.k-button:active .k-i-exception{background-position:-176px -304px}.k-link:not(.k-state-disabled):hover>.k-i-exception,.k-state-hover>.k-i-exception,.k-state-hover>*>.k-i-exception,.k-button:not(.k-state-disabled):hover .k-i-exception,.k-textbox:hover .k-i-exception,.k-button:active .k-i-exception{background-position:-160px -304px}.k-i-restore{background-position:-32px -128px}.k-link:not(.k-state-disabled):hover>.k-i-restore,.k-state-hover>.k-i-restore,.k-state-hover>*>.k-i-restore,.k-button:not(.k-state-disabled):hover .k-i-restore,.k-textbox:hover .k-i-restore,.k-button:active .k-i-restore{background-position:-48px -128px}.k-link:not(.k-state-disabled):hover>.k-i-restore,.k-state-hover>.k-i-restore,.k-state-hover>*>.k-i-restore,.k-button:not(.k-state-disabled):hover .k-i-restore,.k-textbox:hover .k-i-restore,.k-button:active .k-i-restore{background-position:-32px -128px}.k-i-maximize{background-position:-32px -144px}.k-link:not(.k-state-disabled):hover>.k-i-maximize,.k-state-hover>.k-i-maximize,.k-state-hover>*>.k-i-maximize,.k-button:not(.k-state-disabled):hover .k-i-maximize,.k-textbox:hover .k-i-maximize,.k-button:active .k-i-maximize{background-position:-48px -144px}.k-link:not(.k-state-disabled):hover>.k-i-maximize,.k-state-hover>.k-i-maximize,.k-state-hover>*>.k-i-maximize,.k-button:not(.k-state-disabled):hover .k-i-maximize,.k-textbox:hover .k-i-maximize,.k-button:active .k-i-maximize{background-position:-32px -144px}.k-i-minimize{background-position:-64px -288px}.k-link:not(.k-state-disabled):hover>.k-i-minimize,.k-state-hover>.k-i-minimize,.k-state-hover>*>.k-i-minimize,.k-button:not(.k-state-disabled):hover .k-i-minimize,.k-textbox:hover .k-i-minimize,.k-button:active .k-i-minimize{background-position:-80px -288px}.k-link:not(.k-state-disabled):hover>.k-i-minimize,.k-state-hover>.k-i-minimize,.k-state-hover>*>.k-i-minimize,.k-button:not(.k-state-disabled):hover .k-i-minimize,.k-textbox:hover .k-i-minimize,.k-button:active .k-i-minimize{background-position:-64px -288px}.k-i-pin{background-position:-160px -256px}.k-link:not(.k-state-disabled):hover>.k-i-pin,.k-state-hover>.k-i-pin,.k-state-hover>*>.k-i-pin,.k-button:not(.k-state-disabled):hover .k-i-pin,.k-textbox:hover .k-i-pin,.k-button:active .k-i-pin{background-position:-176px -256px}.k-link:not(.k-state-disabled):hover>.k-i-pin,.k-state-hover>.k-i-pin,.k-state-hover>*>.k-i-pin,.k-button:not(.k-state-disabled):hover .k-i-pin,.k-textbox:hover .k-i-pin,.k-button:active .k-i-pin{background-position:-160px -256px}.k-i-unpin{background-position:-160px -272px}.k-link:not(.k-state-disabled):hover>.k-i-unpin,.k-state-hover>.k-i-unpin,.k-state-hover>*>.k-i-unpin,.k-button:not(.k-state-disabled):hover .k-i-unpin,.k-textbox:hover .k-i-unpin,.k-button:active .k-i-unpin{background-position:-176px -272px}.k-link:not(.k-state-disabled):hover>.k-i-unpin,.k-state-hover>.k-i-unpin,.k-state-hover>*>.k-i-unpin,.k-button:not(.k-state-disabled):hover .k-i-unpin,.k-textbox:hover .k-i-unpin,.k-button:active .k-i-unpin{background-position:-160px -272px}.k-resize-se{background-position:-32px -160px}.k-link:not(.k-state-disabled):hover>.k-resize-se,.k-state-hover>.k-resize-se,.k-state-hover>*>.k-resize-se,.k-button:not(.k-state-disabled):hover .k-resize-se,.k-textbox:hover .k-resize-se,.k-button:active .k-resize-se{background-position:-48px -160px}.k-link:not(.k-state-disabled):hover>.k-resize-se,.k-state-hover>.k-resize-se,.k-state-hover>*>.k-resize-se,.k-button:not(.k-state-disabled):hover .k-resize-se,.k-textbox:hover .k-resize-se,.k-button:active .k-resize-se{background-position:-32px -160px}.k-i-calendar{background-position:-32px -176px}.k-link:not(.k-state-disabled):hover>.k-i-calendar,.k-state-hover>.k-i-calendar,.k-state-hover>*>.k-i-calendar,.k-button:not(.k-state-disabled):hover .k-i-calendar,.k-textbox:hover .k-i-calendar,.k-button:active .k-i-calendar{background-position:-48px -176px}.k-link:not(.k-state-disabled):hover>.k-i-calendar,.k-state-hover>.k-i-calendar,.k-state-hover>*>.k-i-calendar,.k-button:not(.k-state-disabled):hover .k-i-calendar,.k-textbox:hover .k-i-calendar,.k-button:active .k-i-calendar{background-position:-32px -176px}.k-i-clock{background-position:-32px -192px}.k-link:not(.k-state-disabled):hover>.k-i-clock,.k-state-hover>.k-i-clock,.k-state-hover>*>.k-i-clock,.k-button:not(.k-state-disabled):hover .k-i-clock,.k-textbox:hover .k-i-clock,.k-button:active .k-i-clock{background-position:-48px -192px}.k-link:not(.k-state-disabled):hover>.k-i-clock,.k-state-hover>.k-i-clock,.k-state-hover>*>.k-i-clock,.k-button:not(.k-state-disabled):hover .k-i-clock,.k-textbox:hover .k-i-clock,.k-button:active .k-i-clock{background-position:-32px -192px}.k-si-plus{background-position:-32px -208px}.k-link:not(.k-state-disabled):hover>.k-si-plus,.k-state-hover>.k-si-plus,.k-state-hover>*>.k-si-plus,.k-button:not(.k-state-disabled):hover .k-si-plus,.k-textbox:hover .k-si-plus,.k-button:active .k-si-plus{background-position:-48px -208px}.k-link:not(.k-state-disabled):hover>.k-si-plus,.k-state-hover>.k-si-plus,.k-state-hover>*>.k-si-plus,.k-button:not(.k-state-disabled):hover .k-si-plus,.k-textbox:hover .k-si-plus,.k-button:active .k-si-plus{background-position:-32px -208px}.k-si-minus{background-position:-32px -224px}.k-link:not(.k-state-disabled):hover>.k-si-minus,.k-state-hover>.k-si-minus,.k-state-hover>*>.k-si-minus,.k-button:not(.k-state-disabled):hover .k-si-minus,.k-textbox:hover .k-si-minus,.k-button:active .k-si-minus{background-position:-48px -224px}.k-link:not(.k-state-disabled):hover>.k-si-minus,.k-state-hover>.k-si-minus,.k-state-hover>*>.k-si-minus,.k-button:not(.k-state-disabled):hover .k-si-minus,.k-textbox:hover .k-si-minus,.k-button:active .k-si-minus{background-position:-32px -224px}.k-i-search{background-position:-32px -240px}.k-link:not(.k-state-disabled):hover>.k-i-search,.k-state-hover>.k-i-search,.k-state-hover>*>.k-i-search,.k-button:not(.k-state-disabled):hover .k-i-search,.k-textbox:hover .k-i-search,.k-button:active .k-i-search{background-position:-48px -240px}.k-link:not(.k-state-disabled):hover>.k-i-search,.k-state-hover>.k-i-search,.k-state-hover>*>.k-i-search,.k-button:not(.k-state-disabled):hover .k-i-search,.k-textbox:hover .k-i-search,.k-button:active .k-i-search{background-position:-32px -240px}.k-i-custom{background-position:-115px -113px}.k-link:not(.k-state-disabled):hover>.k-i-custom,.k-state-hover>.k-i-custom,.k-state-hover>*>.k-i-custom,.k-button:not(.k-state-disabled):hover .k-i-custom,.k-textbox:hover .k-i-custom,.k-button:active .k-i-custom{background-position:-141px -113px}.k-editor .k-i-custom{background-position:-111px -109px}.k-viewHtml{background-position:-288px -120px}.k-i-insert-n,.k-insert-top{background-position:-160px -32px}.k-link:not(.k-state-disabled):hover>.k-i-insert-n,.k-link:not(.k-state-disabled):hover>.k-insert-top,.k-state-hover>.k-i-insert-n,.k-state-hover>.k-insert-top,.k-state-hover>*>.k-i-insert-n,.k-state-hover>*>.k-insert-top,.k-button:not(.k-state-disabled):hover .k-i-insert-n,.k-button:not(.k-state-disabled):hover .k-insert-top,.k-textbox:hover .k-i-insert-n,.k-textbox:hover .k-insert-top,.k-button:active .k-i-insert-n,.k-button:active .k-insert-top{background-position:-176px -32px}.k-link:not(.k-state-disabled):hover>.k-i-insert-n,.k-link:not(.k-state-disabled):hover>.k-insert-top,.k-state-hover>.k-i-insert-n,.k-state-hover>.k-insert-top,.k-state-hover>*>.k-i-insert-n,.k-state-hover>*>.k-insert-top,.k-button:not(.k-state-disabled):hover .k-i-insert-n,.k-button:not(.k-state-disabled):hover .k-insert-top,.k-textbox:hover .k-i-insert-n,.k-textbox:hover .k-insert-top,.k-button:active .k-i-insert-n,.k-button:active .k-insert-top{background-position:-160px -32px}.k-i-insert-m,.k-insert-middle{background-position:-160px -48px}.k-link:not(.k-state-disabled):hover>.k-i-insert-m,.k-link:not(.k-state-disabled):hover>.k-insert-middle,.k-state-hover>.k-i-insert-m,.k-state-hover>.k-insert-middle,.k-state-hover>*>.k-i-insert-m,.k-state-hover>*>.k-insert-middle,.k-button:not(.k-state-disabled):hover .k-i-insert-m,.k-button:not(.k-state-disabled):hover .k-insert-middle,.k-textbox:hover .k-i-insert-m,.k-textbox:hover .k-insert-middle,.k-button:active .k-i-insert-m,.k-button:active .k-insert-middle{background-position:-176px -48px}.k-link:not(.k-state-disabled):hover>.k-i-insert-m,.k-link:not(.k-state-disabled):hover>.k-insert-middle,.k-state-hover>.k-i-insert-m,.k-state-hover>.k-insert-middle,.k-state-hover>*>.k-i-insert-m,.k-state-hover>*>.k-insert-middle,.k-button:not(.k-state-disabled):hover .k-i-insert-m,.k-button:not(.k-state-disabled):hover .k-insert-middle,.k-textbox:hover .k-i-insert-m,.k-textbox:hover .k-insert-middle,.k-button:active .k-i-insert-m,.k-button:active .k-insert-middle{background-position:-160px -48px}.k-i-insert-s,.k-insert-bottom{background-position:-160px -64px}.k-link:not(.k-state-disabled):hover>.k-i-insert-s,.k-link:not(.k-state-disabled):hover>.k-insert-bottom,.k-state-hover>.k-i-insert-s,.k-state-hover>.k-insert-bottom,.k-state-hover>*>.k-i-insert-s,.k-state-hover>*>.k-insert-bottom,.k-button:not(.k-state-disabled):hover .k-i-insert-s,.k-button:not(.k-state-disabled):hover .k-insert-bottom,.k-textbox:hover .k-i-insert-s,.k-textbox:hover .k-insert-bottom,.k-button:active .k-i-insert-s,.k-button:active .k-insert-bottom{background-position:-176px -64px}.k-link:not(.k-state-disabled):hover>.k-i-insert-s,.k-link:not(.k-state-disabled):hover>.k-insert-bottom,.k-state-hover>.k-i-insert-s,.k-state-hover>.k-insert-bottom,.k-state-hover>*>.k-i-insert-s,.k-state-hover>*>.k-insert-bottom,.k-button:not(.k-state-disabled):hover .k-i-insert-s,.k-button:not(.k-state-disabled):hover .k-insert-bottom,.k-textbox:hover .k-i-insert-s,.k-textbox:hover .k-insert-bottom,.k-button:active .k-i-insert-s,.k-button:active .k-insert-bottom{background-position:-160px -64px}.k-drop-hint{background-position:0 -326px}.k-i-note,.k-warning{background-position:-160px -240px}.k-link:not(.k-state-disabled):hover>.k-i-note,.k-link:not(.k-state-disabled):hover>.k-warning,.k-state-hover>.k-i-note,.k-state-hover>.k-warning,.k-state-hover>*>.k-i-note,.k-state-hover>*>.k-warning,.k-button:not(.k-state-disabled):hover .k-i-note,.k-button:not(.k-state-disabled):hover .k-warning,.k-textbox:hover .k-i-note,.k-textbox:hover .k-warning,.k-button:active .k-i-note,.k-button:active .k-warning{background-position:-176px -240px}.k-link:not(.k-state-disabled):hover>.k-i-note,.k-link:not(.k-state-disabled):hover>.k-warning,.k-state-hover>.k-i-note,.k-state-hover>.k-warning,.k-state-hover>*>.k-i-note,.k-state-hover>*>.k-warning,.k-button:not(.k-state-disabled):hover .k-i-note,.k-button:not(.k-state-disabled):hover .k-warning,.k-textbox:hover .k-i-note,.k-textbox:hover .k-warning,.k-button:active .k-i-note,.k-button:active .k-warning{background-position:-160px -240px}.k-i-sort-asc{background-position:-112px -240px}.k-link:not(.k-state-disabled):hover>.k-i-sort-asc,.k-state-hover>.k-i-sort-asc,.k-state-hover>*>.k-i-sort-asc,.k-button:not(.k-state-disabled):hover .k-i-sort-asc,.k-textbox:hover .k-i-sort-asc,.k-button:active .k-i-sort-asc{background-position:-128px -240px}.k-link:not(.k-state-disabled):hover>.k-i-sort-asc,.k-state-hover>.k-i-sort-asc,.k-state-hover>*>.k-i-sort-asc,.k-button:not(.k-state-disabled):hover .k-i-sort-asc,.k-textbox:hover .k-i-sort-asc,.k-button:active .k-i-sort-asc{background-position:-112px -240px}.k-i-sort-desc{background-position:-112px -256px}.k-link:not(.k-state-disabled):hover>.k-i-sort-desc,.k-state-hover>.k-i-sort-desc,.k-state-hover>*>.k-i-sort-desc,.k-button:not(.k-state-disabled):hover .k-i-sort-desc,.k-textbox:hover .k-i-sort-desc,.k-button:active .k-i-sort-desc{background-position:-128px -256px}.k-link:not(.k-state-disabled):hover>.k-i-sort-desc,.k-state-hover>.k-i-sort-desc,.k-state-hover>*>.k-i-sort-desc,.k-button:not(.k-state-disabled):hover .k-i-sort-desc,.k-textbox:hover .k-i-sort-desc,.k-button:active .k-i-sort-desc{background-position:-112px -256px}.k-i-group{background-position:-112px -272px}.k-link:not(.k-state-disabled):hover>.k-i-group,.k-state-hover>.k-i-group,.k-state-hover>*>.k-i-group,.k-button:not(.k-state-disabled):hover .k-i-group,.k-textbox:hover .k-i-group,.k-button:active .k-i-group{background-position:-128px -272px}.k-link:not(.k-state-disabled):hover>.k-i-group,.k-state-hover>.k-i-group,.k-state-hover>*>.k-i-group,.k-button:not(.k-state-disabled):hover .k-i-group,.k-textbox:hover .k-i-group,.k-button:active .k-i-group{background-position:-112px -272px}.k-i-ungroup{background-position:-112px -288px}.k-link:not(.k-state-disabled):hover>.k-i-ungroup,.k-state-hover>.k-i-ungroup,.k-state-hover>*>.k-i-ungroup,.k-button:not(.k-state-disabled):hover .k-i-ungroup,.k-textbox:hover .k-i-ungroup,.k-button:active .k-i-ungroup{background-position:-128px -288px}.k-link:not(.k-state-disabled):hover>.k-i-ungroup,.k-state-hover>.k-i-ungroup,.k-state-hover>*>.k-i-ungroup,.k-button:not(.k-state-disabled):hover .k-i-ungroup,.k-textbox:hover .k-i-ungroup,.k-button:active .k-i-ungroup{background-position:-112px -288px}.k-i-columns{background-position:-112px -304px}.k-link:not(.k-state-disabled):hover>.k-i-columns,.k-state-hover>.k-i-columns,.k-state-hover>*>.k-i-columns,.k-button:not(.k-state-disabled):hover .k-i-columns,.k-textbox:hover .k-i-columns,.k-button:active .k-i-columns{background-position:-128px -304px}.k-link:not(.k-state-disabled):hover>.k-i-columns,.k-state-hover>.k-i-columns,.k-state-hover>*>.k-i-columns,.k-button:not(.k-state-disabled):hover .k-i-columns,.k-textbox:hover .k-i-columns,.k-button:active .k-i-columns{background-position:-112px -304px}.k-i-hbars{background-position:-64px -32px}.k-link:not(.k-state-disabled):hover>.k-i-hbars,.k-state-hover>.k-i-hbars,.k-state-hover>*>.k-i-hbars,.k-button:not(.k-state-disabled):hover .k-i-hbars,.k-textbox:hover .k-i-hbars,.k-button:active .k-i-hbars{background-position:-80px -32px}.k-link:not(.k-state-disabled):hover>.k-i-hbars,.k-state-hover>.k-i-hbars,.k-state-hover>*>.k-i-hbars,.k-button:not(.k-state-disabled):hover .k-i-hbars,.k-textbox:hover .k-i-hbars,.k-button:active .k-i-hbars{background-position:-64px -32px}.k-i-vbars{background-position:-64px -48px}.k-link:not(.k-state-disabled):hover>.k-i-vbars,.k-state-hover>.k-i-vbars,.k-state-hover>*>.k-i-vbars,.k-button:not(.k-state-disabled):hover .k-i-vbars,.k-textbox:hover .k-i-vbars,.k-button:active .k-i-vbars{background-position:-80px -48px}.k-link:not(.k-state-disabled):hover>.k-i-vbars,.k-state-hover>.k-i-vbars,.k-state-hover>*>.k-i-vbars,.k-button:not(.k-state-disabled):hover .k-i-vbars,.k-textbox:hover .k-i-vbars,.k-button:active .k-i-vbars{background-position:-64px -48px}.k-i-sum{background-position:-64px -64px}.k-link:not(.k-state-disabled):hover>.k-i-sum,.k-state-hover>.k-i-sum,.k-state-hover>*>.k-i-sum,.k-button:not(.k-state-disabled):hover .k-i-sum,.k-textbox:hover .k-i-sum,.k-button:active .k-i-sum{background-position:-80px -64px}.k-link:not(.k-state-disabled):hover>.k-i-sum,.k-state-hover>.k-i-sum,.k-state-hover>*>.k-i-sum,.k-button:not(.k-state-disabled):hover .k-i-sum,.k-textbox:hover .k-i-sum,.k-button:active .k-i-sum{background-position:-64px -64px}.k-i-pdf{background-position:-64px -80px}.k-link:not(.k-state-disabled):hover>.k-i-pdf,.k-state-hover>.k-i-pdf,.k-state-hover>*>.k-i-pdf,.k-button:not(.k-state-disabled):hover .k-i-pdf,.k-textbox:hover .k-i-pdf,.k-button:active .k-i-pdf{background-position:-80px -80px}.k-link:not(.k-state-disabled):hover>.k-i-pdf,.k-state-hover>.k-i-pdf,.k-state-hover>*>.k-i-pdf,.k-button:not(.k-state-disabled):hover .k-i-pdf,.k-textbox:hover .k-i-pdf,.k-button:active .k-i-pdf{background-position:-64px -80px}.k-i-excel{background-position:-64px -96px}.k-link:not(.k-state-disabled):hover>.k-i-excel,.k-state-hover>.k-i-excel,.k-state-hover>*>.k-i-excel,.k-button:not(.k-state-disabled):hover .k-i-excel,.k-textbox:hover .k-i-excel,.k-button:active .k-i-excel{background-position:-80px -96px}.k-link:not(.k-state-disabled):hover>.k-i-excel,.k-state-hover>.k-i-excel,.k-state-hover>*>.k-i-excel,.k-button:not(.k-state-disabled):hover .k-i-excel,.k-textbox:hover .k-i-excel,.k-button:active .k-i-excel{background-position:-64px -96px}.k-i-rotatecw{background-position:-64px -112px}.k-link:not(.k-state-disabled):hover>.k-i-rotatecw,.k-state-hover>.k-i-rotatecw,.k-state-hover>*>.k-i-rotatecw,.k-button:not(.k-state-disabled):hover .k-i-rotatecw,.k-textbox:hover .k-i-rotatecw,.k-button:active .k-i-rotatecw{background-position:-80px -112px}.k-link:not(.k-state-disabled):hover>.k-i-rotatecw,.k-state-hover>.k-i-rotatecw,.k-state-hover>*>.k-i-rotatecw,.k-button:not(.k-state-disabled):hover .k-i-rotatecw,.k-textbox:hover .k-i-rotatecw,.k-button:active .k-i-rotatecw{background-position:-64px -112px}.k-i-rotateccw{background-position:-64px -128px}.k-link:not(.k-state-disabled):hover>.k-i-rotateccw,.k-state-hover>.k-i-rotateccw,.k-state-hover>*>.k-i-rotateccw,.k-button:not(.k-state-disabled):hover .k-i-rotateccw,.k-textbox:hover .k-i-rotateccw,.k-button:active .k-i-rotateccw{background-position:-80px -128px}.k-link:not(.k-state-disabled):hover>.k-i-rotateccw,.k-state-hover>.k-i-rotateccw,.k-state-hover>*>.k-i-rotateccw,.k-button:not(.k-state-disabled):hover .k-i-rotateccw,.k-textbox:hover .k-i-rotateccw,.k-button:active .k-i-rotateccw{background-position:-64px -128px}.k-i-undo{background-position:-64px -160px}.k-link:not(.k-state-disabled):hover>.k-i-undo,.k-state-hover>.k-i-undo,.k-state-hover>*>.k-i-undo,.k-button:not(.k-state-disabled):hover .k-i-undo,.k-textbox:hover .k-i-undo,.k-button:active .k-i-undo{background-position:-80px -160px}.k-link:not(.k-state-disabled):hover>.k-i-undo,.k-state-hover>.k-i-undo,.k-state-hover>*>.k-i-undo,.k-button:not(.k-state-disabled):hover .k-i-undo,.k-textbox:hover .k-i-undo,.k-button:active .k-i-undo{background-position:-64px -160px}.k-i-redo{background-position:-64px -144px}.k-link:not(.k-state-disabled):hover>.k-i-redo,.k-state-hover>.k-i-redo,.k-state-hover>*>.k-i-redo,.k-button:not(.k-state-disabled):hover .k-i-redo,.k-textbox:hover .k-i-redo,.k-button:active .k-i-redo{background-position:-80px -144px}.k-link:not(.k-state-disabled):hover>.k-i-redo,.k-state-hover>.k-i-redo,.k-state-hover>*>.k-i-redo,.k-button:not(.k-state-disabled):hover .k-i-redo,.k-textbox:hover .k-i-redo,.k-button:active .k-i-redo{background-position:-64px -144px}.k-i-shape{background-position:-64px -176px}.k-link:not(.k-state-disabled):hover>.k-i-shape,.k-state-hover>.k-i-shape,.k-state-hover>*>.k-i-shape,.k-button:not(.k-state-disabled):hover .k-i-shape,.k-textbox:hover .k-i-shape,.k-button:active .k-i-shape{background-position:-80px -176px}.k-link:not(.k-state-disabled):hover>.k-i-shape,.k-state-hover>.k-i-shape,.k-state-hover>*>.k-i-shape,.k-button:not(.k-state-disabled):hover .k-i-shape,.k-textbox:hover .k-i-shape,.k-button:active .k-i-shape{background-position:-64px -176px}.k-i-connector{background-position:-64px -192px}.k-link:not(.k-state-disabled):hover>.k-i-connector,.k-state-hover>.k-i-connector,.k-state-hover>*>.k-i-connector,.k-button:not(.k-state-disabled):hover .k-i-connector,.k-textbox:hover .k-i-connector,.k-button:active .k-i-connector{background-position:-80px -192px}.k-link:not(.k-state-disabled):hover>.k-i-connector,.k-state-hover>.k-i-connector,.k-state-hover>*>.k-i-connector,.k-button:not(.k-state-disabled):hover .k-i-connector,.k-textbox:hover .k-i-connector,.k-button:active .k-i-connector{background-position:-64px -192px}.k-i-kpi{background-position:-64px -208px}.k-link:not(.k-state-disabled):hover>.k-i-kpi,.k-state-hover>.k-i-kpi,.k-state-hover>*>.k-i-kpi,.k-button:not(.k-state-disabled):hover .k-i-kpi,.k-textbox:hover .k-i-kpi,.k-button:active .k-i-kpi{background-position:-80px -208px}.k-link:not(.k-state-disabled):hover>.k-i-kpi,.k-state-hover>.k-i-kpi,.k-state-hover>*>.k-i-kpi,.k-button:not(.k-state-disabled):hover .k-i-kpi,.k-textbox:hover .k-i-kpi,.k-button:active .k-i-kpi{background-position:-64px -208px}.k-i-dimension{background-position:-64px -224px}.k-link:not(.k-state-disabled):hover>.k-i-dimension,.k-state-hover>.k-i-dimension,.k-state-hover>*>.k-i-dimension,.k-button:not(.k-state-disabled):hover .k-i-dimension,.k-textbox:hover .k-i-dimension,.k-button:active .k-i-dimension{background-position:-80px -224px}.k-link:not(.k-state-disabled):hover>.k-i-dimension,.k-state-hover>.k-i-dimension,.k-state-hover>*>.k-i-dimension,.k-button:not(.k-state-disabled):hover .k-i-dimension,.k-textbox:hover .k-i-dimension,.k-button:active .k-i-dimension{background-position:-64px -224px}.k-file{background-position:0 0}.k-link:not(.k-state-disabled):hover>.k-file,.k-state-hover>.k-file,.k-state-hover>*>.k-file,.k-button:not(.k-state-disabled):hover .k-file,.k-textbox:hover .k-file,.k-button:active .k-file{background-position:-16px 0}.k-link:not(.k-state-disabled):hover>.k-file,.k-state-hover>.k-file,.k-state-hover>*>.k-file,.k-button:not(.k-state-disabled):hover .k-file,.k-textbox:hover .k-file,.k-button:active .k-file{background-position:0 0}.k-i-folder-add,.k-addfolder{background-position:-32px -272px}.k-link:not(.k-state-disabled):hover>.k-i-folder-add,.k-link:not(.k-state-disabled):hover>.k-addfolder,.k-state-hover>.k-i-folder-add,.k-state-hover>.k-addfolder,.k-state-hover>*>.k-i-folder-add,.k-state-hover>*>.k-addfolder,.k-button:not(.k-state-disabled):hover .k-i-folder-add,.k-button:not(.k-state-disabled):hover .k-addfolder,.k-textbox:hover .k-i-folder-add,.k-textbox:hover .k-addfolder,.k-button:active .k-i-folder-add,.k-button:active .k-addfolder{background-position:-48px -272px}.k-link:not(.k-state-disabled):hover>.k-i-folder-add,.k-link:not(.k-state-disabled):hover>.k-addfolder,.k-state-hover>.k-i-folder-add,.k-state-hover>.k-addfolder,.k-state-hover>*>.k-i-folder-add,.k-state-hover>*>.k-addfolder,.k-button:not(.k-state-disabled):hover .k-i-folder-add,.k-button:not(.k-state-disabled):hover .k-addfolder,.k-textbox:hover .k-i-folder-add,.k-textbox:hover .k-addfolder,.k-button:active .k-i-folder-add,.k-button:active .k-addfolder{background-position:-32px -272px}.k-i-folder-up,.k-goup{background-position:-32px -288px}.k-link:not(.k-state-disabled):hover>.k-i-folder-up,.k-link:not(.k-state-disabled):hover>.k-goup,.k-state-hover>.k-i-folder-up,.k-state-hover>.k-goup,.k-state-hover>*>.k-i-folder-up,.k-state-hover>*>.k-goup,.k-button:not(.k-state-disabled):hover .k-i-folder-up,.k-button:not(.k-state-disabled):hover .k-goup,.k-textbox:hover .k-i-folder-up,.k-textbox:hover .k-goup,.k-button:active .k-i-folder-up,.k-button:active .k-goup{background-position:-48px -288px}.k-link:not(.k-state-disabled):hover>.k-i-folder-up,.k-link:not(.k-state-disabled):hover>.k-goup,.k-state-hover>.k-i-folder-up,.k-state-hover>.k-goup,.k-state-hover>*>.k-i-folder-up,.k-state-hover>*>.k-goup,.k-button:not(.k-state-disabled):hover .k-i-folder-up,.k-button:not(.k-state-disabled):hover .k-goup,.k-textbox:hover .k-i-folder-up,.k-textbox:hover .k-goup,.k-button:active .k-i-folder-up,.k-button:active .k-goup{background-position:-32px -288px}.k-i-more{background-position:-64px -32px}.k-link:not(.k-state-disabled):hover>.k-i-more,.k-state-hover>.k-i-more,.k-state-hover>*>.k-i-more,.k-button:not(.k-state-disabled):hover .k-i-more,.k-textbox:hover .k-i-more,.k-button:active .k-i-more{background-position:-80px -32px}.k-link:not(.k-state-disabled):hover>.k-i-more,.k-state-hover>.k-i-more,.k-state-hover>*>.k-i-more,.k-button:not(.k-state-disabled):hover .k-i-more,.k-textbox:hover .k-i-more,.k-button:active .k-i-more{background-position:-64px -32px}.k-file>.k-icon{background-position:-115px -91px}.k-image{border:0}.k-breadcrumbs:hover .k-i-arrow-n{background-position:0 0}.k-breadcrumbs:hover .k-i-arrow-e{background-position:0 -16px}.k-pager-numbers .k-current-page .k-link:after,.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after{background-position:0 -32px}.k-link:not(.k-state-disabled):hover>.k-pager-numbers .k-current-page .k-link:after,.k-link:not(.k-state-disabled):hover>.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-state-hover>.k-pager-numbers .k-current-page .k-link:after,.k-state-hover>.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-state-hover>*>.k-pager-numbers .k-current-page .k-link:after,.k-state-hover>*>.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-button:not(.k-state-disabled):hover .k-pager-numbers .k-current-page .k-link:after,.k-button:not(.k-state-disabled):hover .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-textbox:hover .k-pager-numbers .k-current-page .k-link:after,.k-textbox:hover .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-button:active .k-pager-numbers .k-current-page .k-link:after,.k-button:active .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after{background-position:-16px -32px}.k-link:not(.k-state-disabled):hover>.k-pager-numbers .k-current-page .k-link:after,.k-link:not(.k-state-disabled):hover>.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-state-hover>.k-pager-numbers .k-current-page .k-link:after,.k-state-hover>.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-state-hover>*>.k-pager-numbers .k-current-page .k-link:after,.k-state-hover>*>.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-button:not(.k-state-disabled):hover .k-pager-numbers .k-current-page .k-link:after,.k-button:not(.k-state-disabled):hover .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-textbox:hover .k-pager-numbers .k-current-page .k-link:after,.k-textbox:hover .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after,.k-button:active .k-pager-numbers .k-current-page .k-link:after,.k-button:active .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view .k-link:after{background-position:0 -32px}html .k-success-colored{color:#507f50;border-color:#d0dfd0;background-color:#f0fff0}html .k-info-colored{color:#50607f;border-color:#d0d9df;background-color:#f0f9ff}html .k-error-colored{color:#7f5050;border-color:#dfd0d0;background-color:#fff0f0}.k-inline-block{padding:0 2px}.k-loading,.k-loading-image{background-color:transparent;background-repeat:no-repeat;background-position:center center}.k-loading-mask,.k-loading-image,.k-loading-text{position:absolute}.k-loading-text{text-indent:-4000px;text-align:center}.k-loading-image,.k-loading-color{width:100%;height:100%}.k-loading-image{top:0;left:0;z-index:2}.k-loading-color{filter:alpha(opacity=30);opacity:.3}.k-content-frame{border:0;width:100%;height:100%}.k-pane>.k-splitter-overlay{filter:alpha(opacity=0);opacity:0;position:absolute}.k-drag-clue{position:absolute;z-index:10003;border-style:solid;border-width:1px;font-size:.9em;padding:.2em .4em;white-space:nowrap;cursor:default}.k-drag-status{margin-top:-3px;margin-right:4px;vertical-align:middle}.k-reorder-cue{position:absolute;width:1px;overflow:visible}.k-reorder-cue .k-icon{position:absolute;left:-4px;width:8px;height:4px}.k-reorder-cue .k-i-arrow-s{top:-4px;background-position:-4px -166px}.k-reorder-cue .k-i-arrow-n{bottom:-4px;background-position:-4px -134px}.k-scrollbar{position:absolute;overflow:scroll}.k-scrollbar-vertical{top:0;right:0;width:17px;height:100%;overflow-x:hidden}.k-touch-scrollbar{display:none;position:absolute;z-index:200000;height:8px;width:8px;border:1px solid #8a8a8a;background-color:#858585}@media only screen and (-webkit-min-device-pixel-ratio:2){body .k-touch-scrollbar{height:12px;width:12px;border-radius:7px}}.k-virtual-scrollable-wrap{overflow-x:auto}.k-current-time{background:#f00;position:absolute}.k-animation-container,.k-widget,.k-widget *,.k-animation-container *,.k-widget *:before,.k-animation-container *:after,.k-block .k-header,.k-list-container{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.k-button,.k-textbox,.k-autocomplete,div.k-window-content,.k-tabstrip>.k-content>.km-scroll-container,.k-block,.k-edit-cell .k-widget,.k-grid-edit-row .k-widget,.k-grid-edit-row .text-box,.km-actionsheet>li,.km-shim{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-group .form-control{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.form-control.k-widget{padding:0}a.k-button:hover{text-decoration:none}.k-widget,.k-widget *{-moz-background-clip:border-box;-webkit-background-clip:border-box;background-clip:border-box}input.k-checkbox,.k-radio{display:inline;opacity:0;width:0;margin:0;position:absolute}.k-checkbox-label{position:relative;padding-left:1.5em;vertical-align:middle;line-height:.875em;cursor:pointer}.k-checkbox-label:before{content:"";position:absolute;top:0;left:0;width:1em;height:1em;border-width:1px;border-style:solid}.k-checkbox-label:after{content:"";position:absolute;top:0;left:0;width:1em;height:1em;border-width:1px;border-style:solid}.k-checkbox:checked+.k-checkbox-label:after{content:"\2713";width:1em;height:1em;position:absolute;top:0;left:0;border-width:1px;border-style:solid;text-align:center}.k-checkbox:disabled+.k-checkbox-label{cursor:auto}.k-radio-label{position:relative;padding-left:1.5em;vertical-align:middle;line-height:.875em;cursor:pointer}.k-radio-label:before{content:"";position:absolute;top:0;left:0;width:14px;height:14px;border-style:solid}.k-radio:checked+.k-radio-label:after{content:"";width:10px;height:10px;position:absolute;top:3px;left:3px}.k-radio:disabled+.k-radio-label{cursor:auto}.k-ie8 input.k-checkbox,.k-ie8 .k-radio{display:inline-block;width:auto}.k-ie8 .k-checkbox-label,.k-ie8 .k-radio-label{padding-left:0}.k-ie8 .k-checkbox-label:before,.k-ie8 .k-checkbox-label:after,.k-ie8 .k-radio-label:before,.k-ie8 .k-radio-label:after{display:none}.k-rtl .k-checkbox-label,.k-rtl .k-radio-label{padding-right:1.5em}.k-rtl .k-checkbox-label:before,.k-rtl .k-checkbox-label:after,.k-rtl .k-radio-label:before{right:0}.k-rtl .k-radio:checked+.k-radio-label:after{right:3px}input.k-checkbox+label{-webkit-user-select:none;user-select:none}.k-pdf-export-shadow{position:absolute;overflow:visible;left:-10000px}.k-rpanel-left{-webkit-transform:translateX(-100%) translateZ(0);-ms-transform:translateX(-100%) translateZ(0);transform:translateX(-100%) translateZ(0);left:0}.k-rpanel-right{-webkit-transform:translateX(100%) translateZ(0);-ms-transform:translateX(100%) translateZ(0);transform:translateX(100%) translateZ(0);right:0}.k-rpanel-left,.k-rpanel-right{position:fixed;display:block;overflow:auto;min-width:320px;height:100%;top:0}.k-rpanel-left.k-rpanel-expanded,.k-rpanel-right.k-rpanel-expanded{-webkit-transform:translateX(0) translateZ(0);-ms-transform:translateX(0) translateZ(0);transform:translateX(0) translateZ(0)}.k-rpanel-left+*,.k-rpanel-right+*{overflow:auto}.k-rpanel-top{position:static;overflow:hidden;max-height:0}.k-rpanel-top.k-rpanel-expanded{max-height:568px}.k-edit-form{margin:0;padding:0}.k-window>div.k-popup-edit-form{padding:1em 0}.k-grid-edit-row .k-edit-form td{border-bottom-width:0}.k-edit-form-container{position:relative;width:400px}.k-edit-label,.k-edit-form-container .editor-label{float:left;clear:both;width:30%;padding:.4em 0 1em;margin-left:2%;text-align:right}.k-edit-field,.k-edit-form-container .editor-field{float:right;clear:right;width:60%;margin-right:2%;padding:0 0 .6em}.k-edit-field>input[type="checkbox"],.k-edit-field>input[type="radio"]{margin-top:.4em}.k-edit-form-container .k-button{margin:0 .16em}.k-edit-field>input[type="checkbox"]:first-child,.k-edit-field>input[type="radio"]:first-child,.k-edit-field>label:first-child>input[type="checkbox"],.k-edit-field>.k-button:first-child{margin-left:0}.k-edit-form-container .k-edit-buttons{clear:both;text-align:right;border-width:1px 0 0;border-style:solid;position:relative;bottom:-1em;padding:.6em}div.k-window{display:inline-block;position:absolute;z-index:10001;border-style:solid;border-width:1px;padding-top:2em}.k-block>.k-header,.k-window-titlebar{position:absolute;width:100%;height:1.1em;border-bottom-style:solid;border-bottom-width:1px;margin-top:-2em;padding:.4em 0;font-size:1.2em;white-space:nowrap;min-height:16px}.k-block>.k-header{position:relative;margin:-2px 0 10px -2px;padding:.3em 2px}.k-window-title{position:absolute;left:.44em;right:.44em;overflow:hidden;cursor:default;text-overflow:ellipsis}.k-window-title .k-image{margin:0 5px 0 0;vertical-align:middle}div.k-window-titleless{padding-top:0}div.k-window-content{position:relative;height:100%;padding:.58em;overflow:auto;outline:0}div.k-window-iframecontent{padding:0;overflow:visible}.k-window-content>.km-scroll-container{height:100%}.k-ie7 .k-window{padding-bottom:1.16em}.k-ie7 .k-window-titleless{padding-bottom:0}.k-window-titlebar .k-window-actions{position:absolute;top:0;right:.3em;padding-top:.3em;white-space:nowrap}.k-window-titlebar .k-window-action{display:inline-block;width:16px;height:16px;padding:2px;text-decoration:none;vertical-align:middle;opacity:.7}.k-window-titlebar .k-state-hover{border-style:solid;border-width:1px;padding:1px;opacity:1}.k-window-action .k-icon{margin:0;vertical-align:top}.k-window>.k-resize-handle{position:absolute;z-index:1;background-color:#fff;font-size:0;line-height:6px;filter:alpha(opacity=0);opacity:0;zoom:1}.k-resize-n{top:-3px;left:0;width:100%;height:6px;cursor:n-resize}.k-resize-e{top:0;right:-3px;width:6px;height:100%;cursor:e-resize}.k-resize-s{bottom:-3px;left:0;width:100%;height:6px;cursor:s-resize}.k-resize-w{top:0;left:-3px;width:6px;height:100%;cursor:w-resize}.k-resize-se{bottom:-3px;right:-3px;width:16px;height:16px;cursor:se-resize}.k-resize-sw{bottom:-3px;left:-3px;width:6px;height:6px;cursor:sw-resize}.k-resize-ne{top:-3px;right:-3px;width:6px;height:6px;cursor:ne-resize}.k-resize-nw{top:-3px;left:-3px;width:6px;height:6px;cursor:nw-resize}.k-overlay{position:fixed;top:0;left:0;z-index:10001;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);opacity:.5}.k-window .k-overlay{position:absolute;width:100%;height:100%;background-color:#fff;filter:alpha(opacity=0);opacity:0}.k-tabstrip{margin:0;padding:0;zoom:1}.k-tabstrip .k-tabstrip-items{padding:.3em .3em 0}.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item{list-style-type:none;display:inline-block;position:relative;border-style:solid;border-width:1px 1px 0;margin:0 -1px 0 0;padding:0;vertical-align:top}.k-tabstrip-items .k-tab-on-top,.k-tabstrip-items .k-state-active,.k-panelbar .k-tabstrip-items .k-state-active{margin-bottom:-1px;padding-bottom:1px}.k-tabstrip-items .k-tab-on-top{z-index:1}.k-tabstrip-items .k-link,.k-panelbar .k-tabstrip-items .k-link{display:inline-block;border-bottom-width:0;padding:.5em .92em}.k-tabstrip-items .k-icon,.k-panelbar .k-tabstrip-items .k-icon{margin:-1px 4px 0 -3px;vertical-align:top}.k-tabstrip-items .k-item .k-image,.k-tabstrip-items .k-item .k-sprite,.k-panelbar .k-tabstrip-items .k-item .k-image,.k-panelbar .k-tabstrip-items .k-item .k-sprite{margin:-3px 3px 0 -6px;vertical-align:middle}.k-ie7 .k-tabstrip-items .k-item .k-image,.k-ie7 .k-tabstrip-items .k-item .k-sprite{margin-top:-1px;vertical-align:top}.k-tabstrip-items .k-loading{top:0;left:0;height:0;width:20%;position:absolute;background:transparent;border-top:1px solid transparent;border-color:inherit;-webkit-transition:width 200ms linear;-moz-transition:width 200ms linear;-o-transition:width 200ms linear;transition:width 200ms linear;-webkit-transition:"width 200ms linear";-moz-transition:"width 200ms linear";-ms-transition:"width 200ms linear";-o-transition:"width 200ms linear";transition:"width 200ms linear";animation:k-tab-loader 1s ease-in-out infinite;-moz-animation:k-tab-loader 1s ease-in-out infinite;-webkit-animation:k-tab-loader 1s ease-in-out infinite}.k-tabstrip-items .k-progress{animation:none;-moz-animation:none;-webkit-animation:none}.k-tabstrip-items .k-loading.k-complete{width:100%;animation:none;-moz-animation:none;-webkit-animation:none}.k-tabstrip>.k-content,.k-panelbar .k-tabstrip>.k-content{position:static;border-style:solid;border-width:1px;margin:0 .286em .3em;padding:.3em .92em;zoom:1}.k-tabstrip>.k-content{display:none}.k-tabstrip>.k-content.km-scroll-wrapper{padding:0}.k-tabstrip>.k-content>.km-scroll-container{padding:.3em .92em}@-webkit-keyframes k-tab-loader{0%{left:0}50%{left:80%}100%{left:0}}@-moz-keyframes k-tab-loader{0%{left:0}50%{left:80%}100%{left:0}}@keyframes k-tab-loader{0%{left:0}50%{left:80%}100%{left:0}}.k-tabstrip-left>div.k-content,.k-tabstrip-right>div.k-content{margin:.286em .3em}.k-tabstrip-left .k-tabstrip-items .k-item,.k-tabstrip-right .k-tabstrip-items .k-item{display:block;margin-bottom:-1px}.k-tabstrip-left .k-tabstrip-items .k-link,.k-tabstrip-right .k-tabstrip-items .k-link{display:block}.k-tabstrip-left .k-tabstrip-items .k-tab-on-top,.k-tabstrip-right .k-tabstrip-items .k-tab-on-top,.k-tabstrip-left .k-tabstrip-items .k-state-active,.k-tabstrip-right .k-tabstrip-items .k-state-active,.k-tabstrip-left .k-panelbar .k-tabstrip-items .k-state-active,.k-tabstrip-right .k-panelbar .k-tabstrip-items .k-state-active{margin-bottom:-1px;padding-bottom:0}.k-tabstrip-left .k-tabstrip-items{float:left;padding:.25em 0 .3em .3em}.k-tabstrip-left .k-tabstrip-items .k-item{border-width:1px 0 1px 1px;border-radius:3px 0 0 3px}.k-tabstrip-left .k-tabstrip-items .k-state-active{border-width:1px 0 1px 1px}.k-tabstrip-left .k-tabstrip-items .k-tab-on-top,.k-tabstrip-left .k-tabstrip-items .k-state-active,.k-tabstrip-left .k-panelbar .k-tabstrip-items .k-state-active{margin-right:-2px;padding-right:1px}.k-tabstrip-right .k-tabstrip-items{float:right;padding:.25em .3em .3em 0}.k-tabstrip-right .k-tabstrip-items .k-item{border-width:1px 1px 1px 0;border-radius:0 3px 3px 0}.k-tabstrip-right .k-tabstrip-items .k-state-active{border-width:1px 1px 1px 0}.k-tabstrip-right .k-tabstrip-items .k-tab-on-top,.k-tabstrip-right .k-tabstrip-items .k-state-active,.k-tabstrip-right .k-panelbar .k-tabstrip-items .k-state-active{margin-left:-1px;padding-left:1px}.k-tabstrip-bottom>.k-tabstrip-items{margin-top:-1px;padding:0 .3em .3em}.k-tabstrip-bottom>.k-content,.k-panelbar .k-tabstrip-bottom>.k-content{margin:.3em .286em 0;z-index:1;position:relative}.k-tabstrip-bottom>.k-tabstrip-items .k-item{border-width:0 1px 1px;border-radius:0 0 4px 4px}.k-tabstrip-bottom>.k-tabstrip-items .k-state-active{margin-bottom:0;padding-bottom:0}.k-tabstrip-bottom>.k-content{min-height:100px}.k-tabstrip-bottom .k-tabstrip-items .k-loading{top:auto;bottom:0}.k-panelbar{zoom:1}.k-panelbar>.k-item,.k-panel>.k-item{list-style-type:none;display:block;border-width:0;margin:0;zoom:1;border-radius:0}.k-panelbar .k-image,.k-panelbar .k-sprite{float:left;margin-top:4px;margin-right:5px;vertical-align:middle}.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link{display:block;position:relative;border-bottom-style:solid;border-bottom-width:1px;padding:0 1em;line-height:2.34em;text-decoration:none;zoom:1}.k-panelbar-expand,.k-panelbar-collapse{position:absolute;top:50%;right:4px;margin-top:-8px}.k-panelbar .k-panel,.k-panelbar .k-content{position:relative;border-bottom-style:solid;border-bottom-width:1px;margin:0;padding:0;zoom:1}.k-panel>.k-item>.k-link{border-bottom:0;font-size:.95em;line-height:2.2}.k-panel .k-panel>.k-item>.k-link{padding-left:2em}.k-panelbar .k-i-seek-e .k-link{border-bottom:0}.k-panel .k-panel{border-bottom:0}.k-menu{cursor:default}.k-menu,.k-menu .k-menu-group{list-style:none;margin:0;padding:0;zoom:1}.k-menu:after{content:'';display:block;width:99%;height:0;float:inherit;clear:both}.k-menu .k-item{-webkit-user-select:none;-moz-user-select:-moz-none;user-select:none}.k-menu .k-item div{-webkit-user-select:default;-moz-user-select:default;user-select:default}.k-menu .k-item .k-item,ul.k-menu-vertical>.k-item{display:block;float:none;border-width:0}.k-ie7 .k-menu .k-item .k-item{zoom:normal}.k-menu .k-item>.k-link>.k-icon,.k-menu .k-image,.k-menu .k-sprite{margin:-2px 4px 0 -4px;vertical-align:middle}.k-menu .k-item>.k-link>.k-icon{margin:-2px 0 0}.k-ie7 .k-menu .k-item>.k-link>.k-i-arrow-s,.k-ie7 .k-menu .k-image,.k-ie7 .k-menu .k-sprite{margin-top:0}.k-menu .k-item>.k-link{display:block;padding:.5em 1.1em .4em;line-height:1.34em;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.k-menu .k-menu-group{display:none;border-style:solid;border-width:1px;overflow:visible;white-space:nowrap}.k-menu .k-menu-group>.k-item{display:block;border-width:0}.k-menu .k-item,.k-widget.k-menu-horizontal>.k-item{position:relative;float:left;border-style:solid;border-width:0 1px 0 0;vertical-align:top;zoom:1;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.k-context-menu.k-menu-vertical>.k-item>.k-link,.k-menu .k-menu-group .k-item>.k-link{padding:.28em 1.8em .38em .9em}.k-context-menu.k-menu-horizontal>.k-separator{display:none}.k-context-menu.k-menu-horizontal>.k-item{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.k-context-menu.k-menu-horizontal>.k-last{border:0}.k-ie7 .k-menu .k-menu-group .k-link{width:100%}.k-menu .k-item>.k-link>.k-i-arrow-s{margin-right:-8px}.k-menu .k-item>.k-link>.k-i-arrow-e{position:absolute;top:50%;margin-top:-8px;right:2px;right:.2rem}.k-menu .k-animation-container{border:0}.k-menu .k-animation-container,.k-menu .k-menu-group{position:absolute;left:0}.k-menu .k-animation-container .k-animation-container,.k-menu .k-menu-group .k-menu-group,.k-menu-vertical .k-animation-container,.k-menu-vertical .k-menu-group{top:0;left:0}.k-menu .k-animation-container .k-menu-group{top:auto;left:auto;margin-left:-1px}.k-menu .k-animation-container,.k-popup .k-animation-container{margin-top:-1px;padding-left:1px}.k-ie .k-menu .k-animation-container,.k-ie .k-popup .k-animation-container{margin-top:-2px}.k-popup .k-animation-container .k-popup{margin-left:-1px}ul.k-menu .k-separator{padding:.25em 0;height:100%;width:1px;font-size:0;line-height:0;border-width:0 1px 0 0}ul.k-menu-vertical .k-separator,.k-menu .k-menu-group .k-separator{padding:0;height:1px;width:100%;border-width:1px 0 0}.k-context-menu{border:0;-webkit-user-select:none;-moz-user-select:-moz-none;user-select:none}.k-grid,.k-listview{position:relative;zoom:1}.k-grid table{width:100%;margin:0;max-width:none;border-collapse:separate;border-spacing:0;empty-cells:show;border-width:0;outline:0}.k-header.k-drag-clue{overflow:hidden}.k-grid-header th.k-header,.k-filter-row th{overflow:hidden;border-style:solid;border-width:0 0 1px 1px;padding:.5em .6em .4em .6em;font-weight:normal;white-space:nowrap;text-overflow:ellipsis;text-align:left}.k-grid-header th.k-header{vertical-align:bottom}.k-filtercell,.k-filtercell>span,.k-filtercell .k-widget{display:block;width:auto}.k-filtercell>span{padding-right:4.8em;position:relative;min-height:2em;line-height:2em}.k-filtercell>.k-operator-hidden{padding-right:2.3em}.k-filtercell>span>.k-button,.k-filter-row .k-dropdown-operator{position:absolute;top:0;right:0}.k-filter-row .k-dropdown-operator{width:2.1em;right:2.5em}.k-filtercell>span>label{vertical-align:middle}.k-filter-row label>input[type="radio"]{vertical-align:middle;position:relative;bottom:2px}.k-ie10 .k-grid-header a:active{background-color:transparent}.k-grid-header th.k-header>.k-link{display:block;min-height:18px;line-height:18px;margin:-0.5em -0.6em -0.4em -0.6em;padding:.5em .6em .4em .6em;overflow:hidden;text-overflow:ellipsis}.k-grid-header th.k-with-icon .k-link{margin-right:18px}.k-grid-header th.k-header .k-icon{position:static}.k-grid-header th>.k-link>.k-icon{vertical-align:text-top}.k-grid .k-state-hover{cursor:pointer}.k-grid-column-resizing th,.k-grid-column-resizing td{-webkit-transform:translateZ(0)}.k-grid-column-resizing,.k-grid-column-resizing .k-grid-filter,.k-grid-column-resizing .k-link,.k-grid-column-resizing .k-button,.k-grid-column-resizing .k-grid-toolbar{cursor:col-resize}.k-grid td{border-style:solid;border-width:0 0 0 1px;padding:.4em .6em;overflow:hidden;line-height:1.6em;vertical-align:middle;text-overflow:ellipsis}.k-grid .k-grouping-row td,.k-grid .k-hierarchy-cell{overflow:visible}.k-grid-edit-row td{text-overflow:clip}.k-grid-edit-row .k-textbox,.k-grid-edit-row .text-box{margin-top:0;margin-bottom:0}.k-grid-header-wrap,.k-grid-footer-wrap{position:relative;width:100%;overflow:hidden;border-style:solid;border-width:0 1px 0 0;zoom:1}div.k-grid-header,div.k-grid-footer{padding-right:17px;border-bottom-style:solid;border-bottom-width:1px;zoom:1}.k-grid-header-wrap>table,.k-grid-header-locked>table{margin-bottom:-1px}.k-grid-content{position:relative;width:100%;overflow:auto;overflow-x:auto;overflow-y:scroll;zoom:1}.k-mobile .k-grid tbody{-webkit-backface-visibility:hidden}.k-mobile .k-grid-backface tbody{-webkit-backface-visibility:visible}.k-grid-content-expander{position:absolute;visibility:hidden;height:1px}@media print{.k-grid{height:auto!important}.k-grid-header{padding:0!important}.k-grid-header-wrap,.k-grid-content{overflow:visible;height:auto!important}}.k-virtual-scrollable-wrap{height:100%;overflow-y:hidden;position:relative}.k-grid-header table,.k-grid-content table,.k-grid-footer table,.k-grid-content-locked>table{table-layout:fixed}.k-ie7 .k-grid-content table{width:auto}.k-grid-lockedcolumns{white-space:nowrap}.k-grid-content-locked,.k-grid-content,.k-pager-wrap{white-space:normal}.k-grid-header-locked,.k-grid-content-locked,.k-grid-footer-locked{display:inline-block;vertical-align:top;overflow:hidden;position:relative;border-style:solid;border-width:0 1px 0 0}.k-grid-header-locked+.k-grid-header-wrap,.k-grid-content-locked+.k-grid-content,.k-grid-footer-locked+.k-grid-footer-wrap{display:inline-block;vertical-align:top}.k-grid-toolbar{border-style:solid;border-width:1px 0 0}.k-grid-header th.k-header:first-child,.k-grid tbody td:first-child,.k-grid tfoot td:first-child,.k-filter-row>th:first-child{border-left-width:0}.k-grid-header th.k-header.k-first{border-left-width:1px}.k-grid-toolbar:first-child,.k-grouping-header+.k-grid-toolbar{border-width:0 0 1px}.k-footer-template td{border-style:solid;border-width:1px 0 0 1px}.k-group-footer td{border-style:solid;border-width:1px 0}.k-group-footer .k-group-cell+td{border-left-width:1px}.k-grid-footer{border-style:solid;border-width:1px 0 0}.k-grid-footer td{border-top-width:0}.k-grid-footer>td{border-top-width:1px}.k-pager-wrap{clear:both;overflow:hidden;border-style:solid;border-width:1px;line-height:2.0em;padding:.333em 0 .333em .250em}.k-grid-pager{border-width:1px 0 0}.k-grid .k-pager-numbers,.k-pager-numbers .k-link,.k-pager-numbers .k-state-selected{display:inline-block;vertical-align:top;margin-right:1px}.k-pager-numbers{margin:0 2px}.k-pager-numbers .k-state-selected{vertical-align:top}.k-pager-numbers .k-current-page{display:none}.k-pager-numbers li,.k-pager-input{float:left}.k-grid .k-pager-numbers{float:left;cursor:default}.k-pager-info{float:right;padding:0 1.333em}.k-pager-numbers .k-link{text-decoration:none}.k-pager-wrap>.k-link,.k-pager-numbers .k-link,.k-pager-numbers .k-state-selected{min-width:2em}.k-pager-wrap>.k-link{float:left;margin:0 .08333em;height:2em;line-height:2em;border-radius:1.0833em;cursor:pointer;text-align:center}.k-pager-wrap>a.k-state-disabled:hover{background:0;cursor:default}.k-pager-numbers .k-link{text-align:center;line-height:2em;border-style:solid;border-width:1px;border-radius:1.0833em}.k-pager-wrap>.k-link{border-style:solid;border-width:1px}.k-pager-wrap .k-pager-refresh{float:right;margin-right:.5em;border-width:0;border-radius:0}.k-pager-numbers .k-state-selected{border-style:solid;border-width:1px;text-align:center;border-radius:1.0833em}.k-pager-wrap .k-textbox{width:3.333em}.k-ie7 .k-pager-wrap .k-textbox{height:1.3333em;margin-top:.16666em;display:inline}.k-pager-wrap .k-dropdown{width:4.500em}.k-pager-refresh{float:right}.k-pager-input,.k-pager-sizes{padding:0 1.4166em}.k-pager-sizes{display:inline-block;padding-top:1px}.k-pager-sizes .k-widget.k-dropdown{margin-top:-2px}.k-ie7 .k-pager-sizes{float:left}.k-pager-wrap .k-textbox,.k-pager-wrap .k-widget{margin:0 .4em 0}.k-header>.k-grid-filter,.k-header>.k-header-column-menu{float:right;margin:-0.5em -0.6em -0.4em;padding:.5em .2em .4em;position:relative;z-index:1}.k-grid .k-animation-container{position:absolute}.k-filter-menu{padding:.5em}form.k-filter-menu .k-widget,form.k-filter-menu .k-textbox{display:block}.k-filter-help-text,.k-filter-menu .k-widget,.k-filter-menu .k-textbox{margin:.19em 0 0}.k-filter-menu span.k-filter-and{width:6em;margin:.5em 0 .5em}.k-filter-menu .k-button{width:48%;margin:.5em 4% 0 0}.k-filter-menu .k-button+.k-button{margin-right:0}.k-multicheck-wrap{overflow:auto;overflow-x:hidden;white-space:nowrap;max-height:300px}.k-multicheck-wrap .k-item{line-height:2.2em}.k-grouping-row .k-icon{margin:-3px 4px 0 2px}.k-grouping-row p{display:inline-block;vertical-align:middle;margin-left:-0.6em;padding:0 .6em}.k-grouping-row+tr td{border-top-width:1px}.k-grouping-row .k-group-cell,.k-grouping-row+tr .k-group-cell{border-top-width:0;text-overflow:none}.k-grid .k-hierarchy-cell+td{border-left-width:0}.k-grid .k-group-col,.k-grid .k-hierarchy-col{width:27px}.k-grouping-header{border-bottom-style:solid;border-bottom-width:1px}.k-grouping-header{line-height:2}.k-grouping-dropclue{position:absolute;width:6px;height:25px;background-repeat:no-repeat;background-position:-165px -148px}.k-grouping-header .k-group-indicator{display:inline-block;border-style:solid;border-width:1px;margin:0 3px;padding:.15em .15em .15em .4em;line-height:1.5em}.k-grouping-header .k-link{display:inline-block;border-width:0;padding:0;line-height:normal;text-decoration:none}.k-grouping-header .k-button{border:0;padding:0;background:transparent;line-height:1}.k-grouping-header .k-link .k-icon{margin:0 0 0 -3px}.k-grouping-header .k-button .k-icon{margin:0 0 0 3px}.k-grouping-header a,.k-grouping-header .k-button{display:inline-block;vertical-align:middle}.k-dirty-cell:before{content:"\a0";display:inline-block;width:0;float:left}.k-ie7 .k-dirty-cell{position:relative}.k-ie7 .k-dirty{top:5px}.k-dirty{position:absolute;width:0;height:0;border-style:solid;border-width:3px;border-color:#f00 transparent transparent #f00;margin:-0.45em 0 0 -0.6em;padding:0;overflow:hidden;vertical-align:top}.k-grouping-header,.k-grid-toolbar{margin:0;padding:.22em .2em .28em;cursor:default}.k-grid .k-edit-container{padding:0}.k-grid .field-validation-error{display:block}.k-grid .input-validation-error{border-style:ridge;border-color:#f00;background-color:#ffc0cb}.k-grid-toolbar .k-button{vertical-align:middle}.k-grid-actions{display:inline-block}.k-ie7 .k-grid-actions{vertical-align:bottom}.k-grid .k-button{margin:0 .16em}.k-grid tbody .k-button,.k-ie8 .k-grid tbody button.k-button{min-width:64px}.k-grid tbody button.k-button{min-width:78px}.k-ie7 .k-grid tbody a.k-button{min-width:62px}html body .k-grid tbody .k-button-icon{width:auto;min-width:0}.k-detail-row{position:relative}.k-grid .k-detail-cell{overflow:visible}.k-grid .k-edit-cell{padding:0 .3em;white-space:nowrap}.k-grid .k-edit-cell .k-tooltip{white-space:normal}.k-edit-cell>.k-textbox,.k-edit-cell>.k-widget,.k-grid-edit-row>td>.k-textbox,.k-grid-edit-row>td>.k-widget,.k-grid-edit-row>td>.text-box{width:100%}.k-ie7 .k-edit-cell>.text-box,.k-ie7 .k-edit-cell>.k-textbox,.k-ie7 .k-edit-cell>.k-widget,.k-ie7 .k-grid-edit-row>td>.k-textbox,.k-ie7 .k-grid-edit-row>td>.k-widget,.k-ie7 .k-grid-edit-row>td>.text-box{display:block;width:90%}html .k-edit-cell .k-tooltip,html .k-grid-edit-row .k-tooltip{width:auto;max-width:300px}.k-edit-cell input[type="checkbox"]{margin-left:.6em}.k-grid tbody td>.k-grid-delete{margin-top:-0.2em;margin-bottom:-0.2em}.k-grid-resize-indicator{position:absolute;width:2px;background-color:#aaa}.k-grid-header .k-resize-handle,.k-grid>.k-resize-handle{position:absolute;height:25px;cursor:col-resize;z-index:2}.k-marquee{position:absolute;z-index:100000}.k-marquee-color,.k-marquee-text{position:absolute;top:0;left:0;width:100%;height:100%}.k-marquee-color{filter:alpha(opacity=60);opacity:.6}.k-ie9 .k-column-menu{width:160px}.k-ie8 .k-grid-filter,.k-ie8 .k-header-column-menu{font-size:100%}.k-column-menu{min-width:160px}.k-column-menu .k-sprite{margin-right:10px}.k-column-menu>.k-menu{border-width:0}.k-columns-item .k-group{max-height:200px;overflow:auto}.k-pdf-export-shadow .k-grid{float:left}.k-pdf-export-shadow .k-grid,.k-pdf-export-shadow .k-grid-content{height:auto!important;overflow:visible}.k-pdf-export-shadow .k-grid-header{padding-right:0!important}.k-loading-pdf-mask{position:absolute;width:100%;height:100%;top:0;left:0;z-index:100}.k-loading-pdf-mask .k-loading-color{filter:alpha(opacity=50);opacity:.5}.k-loading-pdf-mask .k-loading-pdf-progress{margin:auto;position:absolute;top:0;bottom:0;left:0;right:0}.k-pdf-export .k-loading-pdf-mask{display:none}.k-autofitting{width:auto!important;table-layout:auto!important}.k-autofitting th.k-header,.k-autofitting td{white-space:nowrap!important}@media only screen and (max-width:1024px){.k-webkit .k-pager-wrap .k-pager-nav,.k-ff .k-pager-wrap .k-pager-nav,.k-ie11 .k-pager-wrap .k-pager-nav,.k-webkit .k-pager-input,.k-ff .k-pager-input,.k-ie11 .k-pager-input{float:none;display:inline-block;vertical-align:top}.k-webkit .k-pager-numbers,.k-ff .k-pager-numbers,.k-ie11 .k-pager-numbers,.k-webkit .k-grid .k-pager-numbers,.k-ff .k-grid .k-pager-numbers,.k-ie11 .k-grid .k-pager-numbers{position:absolute;left:4.8em;display:-moz-inline-flex;display:-webkit-inline-flex;display:inline-flex;-webkit-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-transform:translatey(-100%);-moz-transform:translatey(-100%);transform:translatey(-100%)}.k-webkit .k-rtl .k-pager-numbers,.k-ff .k-rtl .k-pager-numbers,.k-ie11 .k-rtl .k-pager-numbers,.k-webkit .k-rtl .k-grid .k-pager-numbers,.k-ff .k-rtl .k-grid .k-pager-numbers,.k-ie11 .k-rtl .k-grid .k-pager-numbers{right:4.8em;width:4.5em}.k-webkit .k-pager-numbers .k-current-page,.k-ff .k-pager-numbers .k-current-page,.k-ie11 .k-pager-numbers .k-current-page,.k-webkit .k-grid .k-pager-numbers .k-current-page,.k-ff .k-grid .k-pager-numbers .k-current-page,.k-ie11 .k-grid .k-pager-numbers .k-current-page{display:block;border-left:0;-webkit-transform:translatey(100%);-moz-transform:translatey(100%);transform:translatey(100%)}.k-webkit .k-pager-numbers li:not(.k-current-page),.k-ff .k-pager-numbers li:not(.k-current-page),.k-ie11 .k-pager-numbers li:not(.k-current-page){display:none}.k-webkit .k-pager-numbers .k-current-page .k-link,.k-ff .k-pager-numbers .k-current-page .k-link,.k-ie11 .k-pager-numbers .k-current-page .k-link{width:3.2em;padding:0 .429em 0 .714em;border-radius:1.0833em}.k-webkit .k-pager-numbers+.k-link,.k-ff .k-pager-numbers+.k-link,.k-ie11 .k-pager-numbers+.k-link{margin-left:4.8em}.k-webkit .k-rtl .k-pager-numbers+.k-link,.k-ff .k-rtl .k-pager-numbers+.k-link,.k-ie11 .k-rtl .k-pager-numbers+.k-link{margin-right:5.1em;margin-left:0}.k-webkit .k-pager-numbers .k-state-selected,.k-ff .k-pager-numbers .k-state-selected,.k-ie11 .k-pager-numbers .k-state-selected,.k-webkit .k-pager-numbers .k-link,.k-ff .k-pager-numbers .k-link,.k-ie11 .k-pager-numbers .k-link{display:block;margin-right:0;padding:1px 5px 1px 5px;text-align:left}.k-webkit .k-pager-numbers.k-state-expanded,.k-ff .k-pager-numbers.k-state-expanded,.k-ie11 .k-pager-numbers.k-state-expanded{box-sizing:border-box;padding:2px 2px 0}.k-webkit .k-pager-numbers.k-state-expanded .k-current-page,.k-ff .k-pager-numbers.k-state-expanded .k-current-page,.k-ie11 .k-pager-numbers.k-state-expanded .k-current-page{margin:-2em -3px 0;padding:0}.k-webkit .k-pager-numbers.k-state-expanded .k-current-page .k-link,.k-ff .k-pager-numbers.k-state-expanded .k-current-page .k-link,.k-ie11 .k-pager-numbers.k-state-expanded .k-current-page .k-link{border-radius:0 0 1.0833em 1.0833em}.k-webkit .k-pager-numbers.k-state-expanded li,.k-ff .k-pager-numbers.k-state-expanded li,.k-ie11 .k-pager-numbers.k-state-expanded li{display:inline-block}}@media only screen and (max-width:640px){.k-webkit .k-pager-info,.k-ff .k-pager-info,.k-ie11 .k-pager-info{display:none}}@media only screen and (max-width:480px){.k-webkit .k-pager-sizes,.k-ff .k-pager-sizes,.k-ie11 .k-pager-sizes{display:none}}.k-treelist .k-status{padding:.4em .6em;line-height:1.6em}.k-treelist .k-status .k-loading{vertical-align:baseline;margin-right:5px}.k-treelist tr.k-hidden{display:none}.k-gantt{white-space:nowrap;position:relative}.k-gantt-layout{display:inline-block;white-space:normal;vertical-align:top}.k-gantt .k-splitbar{position:relative;cursor:e-resize;width:5px;border-width:0 1px;background-repeat:repeat-y}.k-gantt .k-gantt-layout th{vertical-align:bottom}.k-gantt td{overflow:hidden;white-space:nowrap;vertical-align:top}.k-gantt .k-grid .k-edit-cell{vertical-align:middle}.k-gantt-treelist>.k-treelist,.k-gantt-timeline>.k-timeline{border-width:0;height:100%}.k-gantt-toolbar{border-style:solid;border-width:0 0 1px;line-height:2.4em;padding:.5em}.k-gantt-layout+.k-gantt-toolbar{border-width:1px 0 0}.k-gantt-actions,.k-gantt-toolbar>ul{float:left;margin-right:.6em}.k-gantt-toolbar>.k-gantt-views{float:right;margin-right:0}.k-gantt-toolbar>ul>li{display:inline-block;border-style:solid;border-width:1px 1px 1px 0}.k-gantt-toolbar>ul>li:first-child{border-left-width:1px}.k-gantt-toolbar .k-link{display:inline-block;padding:0 1.1em}.k-gantt-toolbar li:first-child,.k-gantt-toolbar li:first-child>.k-link{border-top-left-radius:4px;border-bottom-left-radius:4px}.k-gantt-toolbar li:last-child,.k-gantt-toolbar li:last-child>.k-link{border-top-right-radius:4px;border-bottom-right-radius:4px}.k-gantt-toolbar li.k-button{line-height:inherit;padding-top:0;padding-bottom:0}.k-gantt-treelist .k-grid-header tr{height:5em}.k-gantt .k-treelist .k-grid-header{padding:0!important}.k-gantt .k-treelist .k-grid-content{overflow-y:hidden;overflow-x:scroll}.k-treelist-group>tr>span{font-weight:bold}.k-treelist-group .k-widget{font-weight:normal}.k-gantt-timeline .k-grid-header tr{height:2.5em}.k-gantt-tasks{position:relative}.k-gantt-rows tr,.k-gantt-tasks tr,.k-gantt .k-grid-content tr{height:2.3em}.k-gantt .k-gantt-tasks td:after{content:"\a0"}.k-gantt-timeline{background:transparent}.k-gantt-rows,.k-gantt-columns,.k-gantt-dependencies{position:absolute;top:0;left:0}.k-gantt-tables{position:relative}.k-gantt .k-gantt-timeline th{text-align:center}.k-gantt .k-gantt-timeline tr:first-child th{border-bottom-width:1px}.k-task-summary{height:10px;display:inline-block;vertical-align:top;margin-top:3px}.k-task-summary-complete{height:10px;position:relative;z-index:2}.k-task-summary-progress{height:15px;overflow:hidden}.k-task-summary:before,.k-task-summary-complete:before,.k-task-summary:after,.k-task-summary-complete:after{content:"";position:absolute;top:0;width:0;height:0;border-style:solid;border-width:8px;border-color:transparent}.k-task-summary:before,.k-task-summary-complete:before{left:0;border-left-color:inherit}.k-task-summary:after,.k-task-summary-complete:after{right:0;border-right-color:inherit}.k-line-h,.k-line-v{position:absolute}.k-line-h{height:2px}.k-line-v{width:2px}.k-arrow-e,.k-arrow-w{position:absolute;top:-4px;width:0;height:0;border-style:solid;border-width:5px}.k-arrow-e{right:-6px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.k-arrow-w{left:-6px;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.k-task-milestone{width:13px;height:13px;margin-top:3px;border-style:solid;border-width:1px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.k-ie8 .k-task-milestone,.k-ie7 .k-task-milestone{margin-left:1px}.k-gantt .k-gantt-treelist .k-button,.k-gantt .k-gantt-tasks .k-button-icon{padding-top:0;padding-bottom:0}.k-gantt .k-gantt-tasks .k-button-icon{margin-top:4px}.k-gantt .k-gantt-treelist .k-button{margin-top:-4px;margin-bottom:-2px}.k-gantt .k-gantt-tasks .k-button-icon{padding-left:2px;padding-right:2px}.k-gantt .k-gantt-treelist .k-button .k-icon,.k-gantt .k-gantt-tasks .k-button .k-icon{vertical-align:text-top}.k-rel .k-button-icon{position:absolute;left:200px}.k-rel{position:relative;height:0;top:-0.3em}.k-task-wrap{position:absolute;padding:0 23px 5px;margin:-1px -23px 0;z-index:2}.k-task-wrap:hover,.k-line.k-state-selected{z-index:3}.k-milestone-wrap{margin:0 -13px 0 -27px}.k-task-content{position:relative;z-index:2}.k-task-complete{position:absolute;top:0;bottom:0;left:0;width:20%;z-index:1}.k-task-dot{position:absolute;top:0;width:16px;height:16px;line-height:16px;display:none;cursor:pointer}.k-task-dot.k-state-hover{background-color:transparent}.k-task-single+.k-task-dot,.k-task-single+.k-task-dot+.k-task-dot{top:.2em}.k-task-wrap:hover .k-task-dot,.k-task-wrap-active .k-task-dot{display:block}.k-task-dot:before{content:"\a0";display:inline-block;width:0;height:16px}.k-task-dot:after{content:"";display:inline-block;vertical-align:middle;width:8px;height:8px;border-radius:4px;margin-left:4px}.k-task-dot:hover:after,.k-task-dot.k-state-hover:after,.k-task-wrap-active .k-task-dot:after{border-style:solid;border-width:1px;margin-left:3px}.k-task-start{left:0}.k-task-end{right:0}.k-task-single{border-style:solid;border-width:1px;text-align:left;overflow:hidden;cursor:default;min-height:1.3em;white-space:nowrap}.k-task-template{padding:.2em 1.4em .2em .6em;line-height:normal}.k-task-actions,.k-task-content>.k-link{position:absolute;top:0;right:4px;white-space:nowrap}.k-task-actions{z-index:1}.k-task-actions:first-child{position:static;float:left;margin:4px 2px 0 4px}.k-webkit .k-task-actions:first-child{margin-top:3px}.k-task-actions:first-child>.k-link{display:inline-block}.k-task-delete{display:none}.k-task-wrap:hover .k-task-delete,.k-task-wrap-active .k-task-delete{display:inline-block}.k-task-single .k-resize-handle{position:absolute;visibility:hidden;z-index:2;height:auto}.k-task-single:hover .k-resize-handle,.k-task-wrap-active .k-resize-handle{visibility:visible}.k-task-single .k-resize-handle:after{content:"";position:absolute;filter:alpha(opacity=50);opacity:.5}.k-task-content>.k-resize-e{right:0;top:0;bottom:0;width:.4em}.k-task-content>.k-resize-w{left:0;top:0;bottom:0;width:.4em}.k-task-content>.k-resize-e:after,.k-task-content>.k-resize-w:after{left:1px;top:50%;margin-top:-0.7em;height:1.4em;width:1px}.k-task-content>.k-resize-e:after{left:auto;right:1px}.k-task-draghandle{position:absolute;bottom:0;width:0;height:0;margin-left:16px;border-width:5px;border-style:solid;border-top-color:transparent;border-left-color:transparent;border-right-color:transparent;display:none;cursor:e-resize}.k-task-wrap:hover .k-task-draghandle,.k-task-wrap-active .k-task-draghandle{display:block}.k-dependency-hint{z-index:4}.k-task-details{padding:.4em;text-align:left;white-space:nowrap}.k-task-details>strong{font-size:120%;display:block}.k-task-pct{margin:.5em 0 .1em;font-size:170%}.k-task-details>ul{line-height:1.2}.k-resources-wrap{position:absolute;z-index:2;zoom:1;margin-left:20px;margin-top:-2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k-resources-wrap .k-resource{margin:0 5px}.k-gantt-edit-form>.k-edit-form-container{width:430px}.k-gantt-edit-form>.k-resources-form-container{width:506px}.k-resources-form-container>.k-grid{margin:0 .9em}.k-gantt-edit-form>.k-edit-form-container .k-textbox,.k-gantt-edit-form>.k-edit-form-container .k-numerictextbox{width:15em}.k-gantt-edit-form .k-edit-buttons .k-gantt-delete{float:left}.k-pdf-export-shadow .k-gantt{float:left}.k-pdf-export-shadow .k-gantt,.k-pdf-export-shadow .k-gantt-timeline,.k-pdf-export-shadow .k-gantt .k-grid-content{width:auto!important;height:auto!important;overflow:visible!important}.k-pdf-export-shadow .k-gantt-treelist{height:auto!important;overflow:visible!important}.k-pdf-export-shadow .k-gantt-timeline .k-grid-header{padding:0!important}.k-pdf-export-shadow .k-gantt .k-splitbar,.k-pdf-export-shadow .k-pdf-export{display:none}.k-pivot{position:relative}.k-pivot-toolbar{padding:.2em;border-bottom-width:1px;border-bottom-style:solid}.k-pivot .k-pivot-toolbar{padding:.6em}.k-pivot-toolbar .k-button{margin-right:.4em;line-height:1.2em;font-size:.9em;text-align:left;position:relative;padding:.3em 5em .3em .3em}.k-field-actions{position:absolute;right:2px;top:3px}.k-pivot .k-grid td{white-space:nowrap}.k-pivot-layout{border-spacing:0;table-layout:auto}.k-pivot-layout>tbody>tr>td{vertical-align:top;padding:0}.k-pivot td{vertical-align:top}.k-pivot-rowheaders>.k-grid,.k-pivot-table>.k-grid{border-width:0}.k-pivot-rowheaders>.k-grid td:first-child,.k-pivot-table .k-grid-header .k-header.k-first{border-left-width:1px}.k-pivot-rowheaders>.k-grid td.k-first{border-left-width:0}.k-pivot-rowheaders>.k-grid{overflow:hidden}.k-pivot-table{border-left-width:1px;border-left-style:solid}.k-pivot-table .k-grid-header-wrap>table{height:100%}.k-pivot .k-grid-header .k-header{vertical-align:top}.k-header.k-alt,td.k-alt{font-weight:bold}.k-header.k-alt{background-image:none}.k-pivot-layout .k-grid td{border-bottom-width:1px}.k-pivot-layout .k-grid-footer>td{border-top-width:0}.k-pivot-filter-window .k-treeview{max-height:600px}.k-fieldselector .k-edit-buttons{bottom:auto}.k-fieldselector .k-edit-label{width:16%}.k-fieldselector .k-edit-field{width:77%}.k-fieldselector .k-edit-field>.k-widget,.k-fieldselector .k-edit-field>.k-textbox{width:99%}.k-fieldselector .k-edit-buttons>input,.k-fieldselector .k-edit-buttons>label{float:left;margin-top:.4em}.k-fieldselector p{margin:0 0 .2em .5em;text-transform:uppercase}.k-fieldselector p .k-icon{margin:0 5px 0 0}.k-fieldselector .k-columns{border-style:solid;border-width:0}.k-fieldselector .k-columns>div{overflow:auto;padding:.6em;border-style:solid;border-width:0 0 0 1px;float:left;width:45%}.k-fieldselector .k-columns>div:first-child{border-width:0;margin-right:-1px}.k-fieldselector .k-columns>div+div{float:right;border-width:0}.k-fieldselector div.k-treeview{border-width:0;margin-right:-1px;padding-left:4px;overflow:visible}.k-fieldselector .k-list-container{margin-left:.5em;margin-bottom:1em;padding:.2em 0 0;border-style:solid;border-width:1px}.k-fieldselector .k-list{padding-bottom:2em}.k-fieldselector .k-list li.k-item{padding:.3em 3.3em .3em .3em;margin:0 .2em.2em;position:relative;font-size:.9em;line-height:1.2em;min-height:1em}.k-i-kpi-decrease{background-position:0 0}.k-i-kpi-denied{background-position:-16px 0}.k-i-kpi-equal{background-position:-32px 0}.k-i-kpi-hold{background-position:-48px 0}.k-i-kpi-increase{background-position:-64px 0}.k-i-kpi-open{background-position:-80px 0}.k-pdf-export-shadow .k-pivot .k-grid-content{overflow:visible!important}.k-pdf-export-shadow .k-pivot .k-pivot-rowheaders .k-grid,.k-pdf-export-shadow .k-pivot .k-grid-content{height:100%!important}.k-pdf-export-shadow .k-pivot .k-grid-header{padding-right:0!important}.k-pdf-export-shadow .k-pivot{width:auto!important;height:auto!important}.k-pdf-export-shadow .k-pivot .k-grid-header-wrap>table,.k-pdf-export-shadow .k-pivot .k-grid-content>table{width:100%!important;height:auto!important}.k-calendar{position:relative;display:inline-block;width:16.917em;overflow:hidden}.k-calendar td,.k-calendar .k-link{text-decoration:none}.k-calendar .k-action-link{text-decoration:underline}.k-calendar .k-header,.k-calendar .k-footer{position:relative;text-align:center;zoom:1}.k-widget.k-calendar .k-nav-prev,.k-widget.k-calendar .k-nav-next{position:absolute;top:.16666em;line-height:1.8333em;height:1.8333em}.k-widget.k-calendar .k-nav-prev{left:1%}.k-widget.k-calendar .k-nav-next{right:1%}.k-calendar .k-content{float:left;border-spacing:0;width:100%;height:14.167em;border-width:0;margin:0;table-layout:fixed;outline:0}.k-calendar .k-content,.k-calendar .k-content th{text-align:right}.k-calendar .k-animation-container .k-content{height:100%}.k-widget.k-calendar .k-nav-fast{display:inline-block;width:75%;height:1.8333em;line-height:1.8333em;margin:.16666em -0.08333em .3333em 0}.k-calendar .k-header .k-icon{vertical-align:middle}.k-calendar .k-header .k-link.k-nav-prev,.k-calendar .k-header .k-link.k-nav-next{height:1.8333em;width:1.8333em}.k-calendar th{border-bottom-style:solid;border-bottom-width:1px;padding:.4em .45em .4em .1em;font-weight:normal;cursor:default}.k-calendar td{padding:.08333em;cursor:pointer}.k-calendar .k-state-focus{border-style:dotted;border-width:.08333em;padding:0}.k-calendar .k-content .k-link{display:block;overflow:hidden;min-height:1.8333em;line-height:1.8333em;padding:0 .45em 0 .1em}.k-calendar .k-meta-view .k-link{padding:.25em 0 .3em;text-align:center}.k-calendar .k-footer{clear:both}.k-calendar .k-footer .k-nav-today,.k-calendar .k-footer>.k-state-disabled{display:block;height:100%;padding:.5em 0}.k-calendar .k-nav-today:hover{text-decoration:underline}div.k-treeview{border-width:0;background:0;overflow:auto;white-space:nowrap}.k-treeview .k-item{display:block;border-width:0;margin:0;padding:0 0 0 16px}.k-treeview>.k-group,.k-treeview .k-item>.k-group,.k-treeview .k-content{margin:0;padding:0;background:0;list-style-type:none;position:relative}.k-treeview .k-icon,.k-treeview .k-image,.k-treeview .k-sprite,.k-treeview .k-checkbox,.k-treeview .k-in{display:inline-block;vertical-align:top}.k-treeview .k-checkbox{margin-top:.2em}.k-treeview .k-icon,.k-treeview .k-in{vertical-align:middle}.k-treeview .k-request-retry{vertical-align:baseline}.k-treeview .k-plus,.k-treeview .k-minus,.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{margin-top:.25em;margin-left:-16px;cursor:pointer}.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{cursor:default}.k-treeview .k-sprite,.k-treeview .k-image{margin-right:3px}.k-treeview .k-in{margin:1px 0 1px .16666em;padding:1px .3333em 1px .25em;line-height:1.3333em;text-decoration:none;border-style:solid;border-width:1px}.k-treeview span.k-in{cursor:default}.k-treeview .k-drop-hint{position:absolute;z-index:10000;visibility:hidden;width:80px;height:5px;margin-top:-3px;background-color:transparent;background-repeat:no-repeat}span.k-datepicker,span.k-timepicker,span.k-datetimepicker,span.k-colorpicker,span.k-numerictextbox,span.k-combobox,span.k-dropdown,.k-toolbar .k-split-button{background-image:none}.k-autocomplete,.k-combobox,.k-datepicker,.k-timepicker,.k-datetimepicker,.k-colorpicker,.k-numerictextbox,.k-dropdown,.k-selectbox,.k-textbox,.k-toolbar .k-split-button{position:relative;display:inline-block;width:12.4em;overflow:visible;border-width:0;vertical-align:middle}.k-filter-menu .k-combobox,.k-filter-menu .k-datepicker,.k-filter-menu .k-timepicker,.k-filter-menu .k-datetimepicker,.k-filter-menu .k-numerictextbox,.k-filter-menu .k-dropdown,.k-filter-menu .k-textbox{width:13.2em}.k-autocomplete,.k-combobox,.k-datepicker,.k-timepicker,.k-datetimepicker,.k-colorpicker,.k-numerictextbox,.k-dropdown,.k-selectbox,.k-toolbar .k-split-button{white-space:nowrap}.k-colorpicker,.k-toolbar .k-split-button{width:auto}.k-datetimepicker{width:15em}.k-autocomplete,.k-picker-wrap,.k-numeric-wrap{position:relative;cursor:default}.k-dropdown-wrap{position:relative}.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{display:block}.k-block,.k-widget,.k-grid,.k-slider,.k-splitter,.k-treeview,.k-panelbar,.k-content,.k-header-column-menu{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-block,.k-slider,.k-splitbar,.k-calendar,.k-treeview,.k-pager-wrap,.k-grid-header .k-link,.k-header-column-menu{-webkit-touch-callout:none}.k-popup.k-list-container,.k-popup.k-calendar-container{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:2px;border-width:1px;border-style:solid}.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{border-bottom-width:0;padding-bottom:1px}.k-list-container .km-scroll-container{padding-bottom:6px}.k-textbox,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{border-width:1px;border-style:solid;padding:0 1.9em 0 0}.k-numeric-wrap.k-expand-padding{padding-right:0}.k-textbox,.k-autocomplete{padding:0}.k-textbox.k-space-left{padding-left:1.9em}.k-textbox.k-space-right{padding-right:1.9em}.k-textbox .k-icon{top:50%;margin:-8px 0 0;position:absolute}.k-space-left .k-icon{left:3px}.k-space-right .k-icon{right:3px}.k-autocomplete,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-hover{-webkit-transition:box-shadow .15s ease-out;-moz-transition:box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out;transition:box-shadow .15s ease-out;-webkit-transition:"box-shadow .15s ease-out";-moz-transition:"box-shadow .15s ease-out";-ms-transition:"box-shadow .15s ease-out";-o-transition:"box-shadow .15s ease-out";transition:"box-shadow .15s ease-out"}.k-textbox>input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-combobox .k-input{width:100%;vertical-align:top}.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{font-family:inherit;border-width:0;outline:0}.k-dropdown .k-input,.k-selectbox .k-input{background:transparent}.k-ie7 .k-picker-wrap .k-input,.k-ie7 .k-numeric-wrap .k-input,.k-ie7 .k-combobox .k-input{margin:-1px 0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{position:absolute;top:0;right:0;display:inline-block;vertical-align:top;text-decoration:none}.k-combobox .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select{border-style:solid;border-width:0 0 0 1px;border-color:inherit}span.k-datetimepicker .k-select,span.k-datetimepicker .k-select+.k-select{right:0}.k-textbox>input,.k-autocomplete .k-input{display:block}.k-dropdown .k-select,.k-selectbox .k-select{overflow:hidden;border:0;text-decoration:none;font:inherit;color:inherit}.k-dropdown .k-input,.k-selectbox .k-input{display:block;overflow:hidden;text-overflow:ellipsis}.k-textbox>input,.k-autocomplete .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{height:1.714em;line-height:1.714em;padding:.177em 0;text-indent:.571em;border:0;margin:0}.k-webkit .k-combobox .k-dropdown-wrap:before,.k-webkit .k-picker-wrap:before,.k-webkit .k-numeric-wrap:before{content:"\a0";display:inline-block;width:0;height:1.714em;padding-bottom:.4em}.km.root .k-combobox .k-dropdown-wrap:before,.km.root .k-picker-wrap:before,.km.root .k-numeric-wrap:before{content:none}.k-combobox .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input{display:inline}.k-ie7 .k-autocomplete .k-input,.k-ie7 .k-picker-wrap .k-input,.k-ie7 .k-numeric-wrap .k-input,.k-ie7 .k-dropdown-wrap .k-input,.k-ie7 .k-selectbox .k-input{text-indent:0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{min-height:1.714em;line-height:2.064em;vertical-align:middle;-moz-box-sizing:border-box;text-align:center;width:1.9em;height:100%}.k-numeric-wrap .k-select{padding:0}body .k-datetimepicker .k-select{border-radius:0}.k-ie7 .k-picker-wrap .k-icon,.k-ie7 .k-dropdown-wrap .k-icon{line-height:2em;font-size:1em;padding-top:16px;height:0}.k-combobox .k-icon,.k-dropdown,.k-selectbox .k-icon{cursor:pointer}.k-popup{border-style:solid;border-width:1px}.k-popup .k-item,.k-list-optionlabel{cursor:default}.k-popup .k-calendar{border:0}.k-list{height:100%}.k-popup .k-list .k-item,.k-fieldselector .k-list .k-item,.k-list-optionlabel,.k-popup>.k-static-header{padding:1px 5px 1px 5px;line-height:1.8em;min-height:1.8em}.k-popup>.k-static-header{padding-right:22px}.k-overflow-container .k-item{padding:1px}.k-overflow-container>.k-state-disabled .k-button,.k-overflow-container .k-button.k-state-disabled,.k-overflow-container .k-button.k-state-disabled:hover{border:0;background:0}.k-popup .k-list .k-state-hover,.k-popup .k-list .k-state-focused,.k-popup .k-list .k-state-selected,.k-overflow-container .k-state-hover,.k-overflow-container .k-state-focused,.k-overflow-container .k-state-selected,.k-fieldselector .k-list .k-item,.k-list-optionlabel.k-state-focused,.k-list-optionlabel.k-state-selected{padding:0 4px;border-width:1px;border-style:solid}.k-list-filter{position:relative}.k-list-filter>.k-textbox{padding-right:20px;width:100%}.k-list-filter>.k-icon{position:absolute;right:4px;top:3px}.k-multiselect-wrap{position:relative;border-width:0;border-style:solid;border-radius:4px;border-color:#c5c5c5;background-color:#FFF;min-height:2.04em}.k-multiselect-wrap .k-input{background-color:transparent;height:1.31em;line-height:1.31em;padding:.18em 0;text-indent:.571em;border:0;margin:1px 0 0;float:left}.k-multiselect-wrap li{margin:1px 0 1px 1px;padding:.1em .15em .1em .4em;line-height:1.564em;float:left}.k-autocomplete .k-loading,.k-multiselect .k-loading{position:absolute;right:3px;bottom:4px}.k-multiselect .k-loading-hidden{visibility:hidden}.k-datetimepicker .k-picker-wrap{padding-right:3.8em}.k-datetimepicker .k-select{width:3.8em}.k-datetimepicker .k-picker-wrap .k-icon{margin:0 2px}.k-picker-wrap .k-icon{cursor:pointer}.k-button,.k-textbox,.k-timepicker,.k-datepicker,.k-datetimepicker{display:inline-block;vertical-align:middle}.k-picker-wrap .k-input{margin:0}.k-time-popup .k-item{padding:1px 3px}.k-input{padding:.25em 0}.k-input,.k-textbox>input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-textbox{outline:0;padding:2px .3em}input.k-textbox{height:2.194em;text-indent:.571em;line-height:1.6em}.k-ie input.k-textbox{text-indent:.2855em}.k-ff input.k-textbox{height:2.17em}.k-ie7 input.k-textbox{line-height:1.72em;height:1.72em;text-indent:.571em}textarea.k-textbox{height:auto}.k-ie7 .k-textbox{padding:1px 0;text-indent:0}span.k-numerictextbox{background-color:transparent}.k-numerictextbox .k-input{margin:0}.k-numerictextbox .k-link{display:block;height:1em;line-height:1em;vertical-align:middle;border-width:0;padding:0}.k-numerictextbox .k-icon{height:11px}.k-numeric-wrap .k-input::-webkit-inner-spin-button{-webkit-appearance:none}.k-colorpicker .k-picker-wrap{line-height:2em}.k-colorpicker .k-selected-color{vertical-align:top;line-height:0;display:inline-block;height:2em;width:2em}.k-colorpicker .k-tool-icon{position:relative;top:-2px;display:inline-block;padding:3px 3px 2px;font-size:0;line-height:0;margin-right:3px;margin-left:2px;margin-bottom:3px;background-repeat:no-repeat;vertical-align:middle;width:16px;height:16px;-ms-high-contrast-adjust:none}.k-colorpicker .k-tool-icon .k-selected-color{display:block;height:3px;width:16px;position:absolute;left:3px;bottom:-3px;border-radius:0!important}.k-colorpicker .k-icon{cursor:pointer}.k-disabled-overlay{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#fff;opacity:.5;filter:alpha(opacity=50)}.k-colorpalette{position:relative;line-height:0;border-width:0;display:inline-block}.k-colorpalette .k-palette{border-collapse:collapse;position:relative;width:100%;height:100%}.k-colorpalette .k-item{width:14px;height:14px;overflow:hidden;-ms-high-contrast-adjust:none}.k-colorpalette .k-item.k-state-selected{z-index:100;background:transparent;box-shadow:0 1px 4px #000,inset 0 0 3px #fff;position:relative}.k-flatcolorpicker{position:relative;display:inline-block;width:250px;padding-bottom:5px}div.k-flatcolorpicker{background-color:transparent;background-image:none}.k-flatcolorpicker .k-selected-color{background-image:url("textures/transtexture.png");background-position:50% 50%;text-align:right}.k-flatcolorpicker .k-selected-color input.k-color-value{font-family:Consolas,"Ubuntu Mono","Lucida Console","Courier New",monospace;padding:.75em .3em .65em 1em;border:0;margin:0;width:70%}.k-flatcolorpicker .k-hsv-rectangle{position:relative;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;-ms-touch-action:pinch-zoom double-tap-zoom}.k-flatcolorpicker .k-hsv-rectangle .k-draghandle{cursor:pointer;position:absolute;z-index:10;left:50%;top:50%;width:8px;height:8px;border:1px solid #eee;margin-left:-5px;margin-top:-5px;border-radius:6px;-webkit-box-shadow:0 1px 2px #444;box-shadow:0 1px 2px #444;background:transparent}.k-flatcolorpicker .k-hsv-rectangle .k-draghandle:hover,.k-flatcolorpicker .k-hsv-rectangle .k-draghandle:focus{background:transparent;border-color:#fff;-webkit-box-shadow:0 1px 5px #000;box-shadow:0 1px 5px #000}.k-flatcolorpicker .k-hsv-rectangle.k-dragging,.k-flatcolorpicker .k-hsv-rectangle.k-dragging *{cursor:none}.k-flatcolorpicker .k-slider-horizontal{height:20px;width:90%;margin:0 5%}.k-flatcolorpicker .k-slider-horizontal .k-slider-track{-webkit-box-shadow:0 1px 0 #fff,0 -1px 0 #999;box-shadow:0 1px 0 #fff,0 -1px 0 #999}.k-flatcolorpicker .k-hue-slider,.k-flatcolorpicker .k-transparency-slider{display:block}.k-flatcolorpicker .k-hue-slider .k-slider-selection,.k-flatcolorpicker .k-transparency-slider .k-slider-selection{background:transparent}.k-flatcolorpicker .k-hue-slider .k-draghandle,.k-flatcolorpicker .k-transparency-slider .k-draghandle{background:transparent;border:3px solid #eee;margin-top:1px;height:8px;width:8px;-webkit-box-shadow:0 1px 4px #444;box-shadow:0 1px 4px #444}.k-flatcolorpicker .k-hue-slider .k-draghandle:hover,.k-flatcolorpicker .k-transparency-slider .k-draghandle:hover,.k-flatcolorpicker .k-hue-slider .k-draghandle:focus,.k-flatcolorpicker .k-transparency-slider .k-draghandle:focus{background:transparent;border-color:#fff;-webkit-box-shadow:0 1px 5px #000;box-shadow:0 1px 5px #000;border-width:2px;padding:1px}.k-flatcolorpicker .k-hue-slider .k-slider-track{background:-moz-linear-gradient(left,#f00 0,#ff0 16%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 84%,#ff0004 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0%,#f00),color-stop(16%,#ff0),color-stop(33%,#0f0),color-stop(50%,#0ff),color-stop(67%,#00f),color-stop(84%,#f0f),color-stop(100%,#ff0004));background:-webkit-linear-gradient(left,#f00 0,#ff0 16%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 84%,#ff0004 100%);background:-o-linear-gradient(left,#f00 0,#ff0 16%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 84%,#ff0004 100%);background:-ms-linear-gradient(left,#f00 0,#ff0 16%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 84%,#ff0004 100%);background:-left-linear-gradient(left,#f00 0,#ff0 16%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 84%,#ff0004 100%)}.k-flatcolorpicker .k-transparency-slider .k-slider-track{background-image:url("textures/transparency.png");background-size:100% auto;background-position:100% 50%;background-repeat:no-repeat}.k-flatcolorpicker .k-controls{margin-top:10px;margin-bottom:5px;text-align:center;font-size:90%}.k-flatcolorpicker .k-controls .k-button{width:6em}.k-flatcolorpicker .k-hsv-gradient{background:-moz-linear-gradient(top,rgba(0,0,0,0) 0,#000 100%),-moz-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(0,0,0,0)),color-stop(100%,#000)),-webkit-gradient(linear,left top,right top,color-stop(0%,#fff),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(top,rgba(0,0,0,0) 0,#000 100%),-webkit-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-o-linear-gradient(top,rgba(0,0,0,0) 0,#000 100%),-o-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(top,rgba(0,0,0,0) 0,#000 100%),-ms-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-top-linear-gradient(top,rgba(0,0,0,0) 0,#000 100%),-left-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);height:180px;margin-bottom:5px}.k-ie9 .k-flatcolorpicker .k-hue-slider .k-slider-track{background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjE2JSIgc3RvcC1jb2xvcj0iI2ZmZmYwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjMzJSIgc3RvcC1jb2xvcj0iIzAwZmYwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzAwZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjY3JSIgc3RvcC1jb2xvcj0iIzAwMDBmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9Ijg0JSIgc3RvcC1jb2xvcj0iI2ZmMDBmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjAwMDQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+)}.k-ie9 .k-flatcolorpicker .k-hsv-gradient{background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+),url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+)}.k-ie7 .k-flatcolorpicker .k-hue-slider .k-slider-track,.k-ie8 .k-flatcolorpicker .k-hue-slider .k-slider-track{background:url("textures/hue.png") repeat 0 50%}.k-ie7 .k-flatcolorpicker .k-transparency-slider .k-slider-track,.k-ie8 .k-flatcolorpicker .k-transparency-slider .k-slider-track{background:url("textures/transparency.png") repeat 0 50%}.k-ie7 .k-flatcolorpicker .k-hsv-gradient,.k-ie8 .k-flatcolorpicker .k-hsv-gradient{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#00ffffff',GradientType=1) progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#ff000000',GradientType=0)}table.k-editor{width:100%;height:250px;table-layout:fixed;border-style:solid;border-width:1px;border-collapse:separate;border-spacing:4px;font-size:100%;vertical-align:top;position:relative}.k-editor-inline{border-width:2px;padding:.3em .5em;word-wrap:break-word}.k-editortoolbar-dragHandle{cursor:move;padding-left:0;padding-right:3px;box-shadow:none!important}.k-editor .k-editor-toolbar-wrap{border:0;padding:0}.k-editor-toolbar{margin:0;padding:.1em 0;list-style-type:none;line-height:1.3em;cursor:default}.k-editor-toolbar li{display:inline-block;vertical-align:middle}.k-ie7 .k-editor-toolbar li{display:inline}.k-webkit .k-editor-toolbar,.k-ff .k-editor-toolbar,.k-ie9 .k-editor-toolbar{padding:0}.k-webkit .k-editor-toolbar li,.k-safari .k-editor-toolbar li,.k-ff .k-editor-toolbar li,.k-ie9 .k-editor-toolbar li,.k-ie10 .k-editor-toolbar li{display:inline-block;padding:.1em 0}.k-editor-toolbar .k-editor-widget,.k-editor-toolbar>li{margin-right:6px}.k-group-start.k-group-end .k-editor-widget{margin-right:0}.k-editor-toolbar .k-editor-dropdown{position:relative}.k-select-overlay{-webkit-appearance:none;opacity:0;z-index:11000;top:0;left:0;position:absolute;height:26px;width:100%;margin:-4px 0 0}.k-editor-toolbar .k-separator{position:relative;top:1px;border-style:solid;border-width:0 1px 0 0;margin:0 .3em 0 .1em;padding:0 0 0 1px;font-size:1.3em}.k-editor-toolbar .k-break{display:block;height:1px;font-size:0;line-height:0}.k-editor-toolbar .k-dropdown,.k-editor-toolbar .k-combobox,.k-editor-toolbar .k-selectbox,.k-editor-toolbar .k-colorpicker{vertical-align:middle}.k-button-group{white-space:nowrap}.k-button-group .k-tool{display:inline-block;vertical-align:middle;margin:1px 0;width:2em;height:2em;line-height:2em}.k-button-group .k-tool-icon{width:24px;height:24px;vertical-align:middle;-ms-high-contrast-adjust:none}.k-i-move{background-position:-160px -288px}.k-bold{background-position:-240px 0}.k-state-hover .k-bold,.k-state-selected .k-bold{background-position:-264px 0}.k-state-hover .k-bold,.k-state-selected .k-bold{background-position:-240px 0}.k-italic{background-position:-240px -24px}.k-state-hover .k-italic,.k-state-selected .k-italic{background-position:-264px -24px}.k-state-hover .k-italic,.k-state-selected .k-italic{background-position:-240px -24px}.k-underline{background-position:-240px -48px}.k-state-hover .k-underline,.k-state-selected .k-underline{background-position:-264px -48px}.k-state-hover .k-underline,.k-state-selected .k-underline{background-position:-240px -48px}.k-strikethrough{background-position:-240px -72px}.k-state-hover .k-strikethrough,.k-state-selected .k-strikethrough{background-position:-264px -72px}.k-state-hover .k-strikethrough,.k-state-selected .k-strikethrough{background-position:-240px -72px}.k-foreColor{background-position:-240px -96px}.k-state-hover .k-foreColor,.k-state-selected .k-foreColor{background-position:-264px -96px}.k-state-hover .k-foreColor,.k-state-selected .k-foreColor{background-position:-240px -96px}.k-backColor{background-position:-240px -120px}.k-state-hover .k-backColor,.k-state-selected .k-backColor{background-position:-264px -120px}.k-state-hover .k-backColor,.k-state-selected .k-backColor{background-position:-240px -120px}.k-colorpicker .k-foreColor{background-position:-240px -96px}.k-colorpicker .k-backColor{background-position:-240px -120px}.k-justifyLeft{background-position:-240px -144px}.k-state-hover .k-justifyLeft,.k-state-selected .k-justifyLeft{background-position:-264px -144px}.k-state-hover .k-justifyLeft,.k-state-selected .k-justifyLeft{background-position:-240px -144px}.k-justifyCenter{background-position:-240px -168px}.k-state-hover .k-justifyCenter,.k-state-selected .k-justifyCenter{background-position:-264px -168px}.k-state-hover .k-justifyCenter,.k-state-selected .k-justifyCenter{background-position:-240px -168px}.k-justifyRight{background-position:-240px -192px}.k-state-hover .k-justifyRight,.k-state-selected .k-justifyRight{background-position:-264px -192px}.k-state-hover .k-justifyRight,.k-state-selected .k-justifyRight{background-position:-240px -192px}.k-justifyFull{background-position:-240px -216px}.k-state-hover .k-justifyFull,.k-state-selected .k-justifyFull{background-position:-264px -216px}.k-state-hover .k-justifyFull,.k-state-selected .k-justifyFull{background-position:-240px -216px}.k-insertUnorderedList{background-position:-240px -264px}.k-state-hover .k-insertUnorderedList,.k-state-selected .k-insertUnorderedList{background-position:-264px -264px}.k-state-hover .k-insertUnorderedList,.k-state-selected .k-insertUnorderedList{background-position:-240px -264px}.k-insertOrderedList{background-position:-240px -288px}.k-state-hover .k-insertOrderedList,.k-state-selected .k-insertOrderedList{background-position:-264px -288px}.k-state-hover .k-insertOrderedList,.k-state-selected .k-insertOrderedList{background-position:-240px -288px}.k-indent,.k-rtl .k-outdent{background-position:-288px 0}.k-state-hover .k-indent,.k-state-hover .k-rtl .k-outdent,.k-state-selected .k-indent,.k-state-selected .k-rtl .k-outdent{background-position:-312px 0}.k-state-hover .k-indent,.k-state-hover .k-rtl .k-outdent,.k-state-selected .k-indent,.k-state-selected .k-rtl .k-outdent{background-position:-288px 0}.k-outdent,.k-rtl .k-indent{background-position:-288px -24px}.k-state-hover .k-outdent,.k-state-hover .k-rtl .k-indent,.k-state-selected .k-outdent,.k-state-selected .k-rtl .k-indent{background-position:-312px -24px}.k-state-hover .k-outdent,.k-state-hover .k-rtl .k-indent,.k-state-selected .k-outdent,.k-state-selected .k-rtl .k-indent{background-position:-288px -24px}.k-createLink{background-position:-288px -48px}.k-state-hover .k-createLink,.k-state-selected .k-createLink{background-position:-312px -48px}.k-state-hover .k-createLink,.k-state-selected .k-createLink{background-position:-288px -48px}.k-unlink{background-position:-288px -72px}.k-state-hover .k-unlink,.k-state-selected .k-unlink{background-position:-312px -72px}.k-state-hover .k-unlink,.k-state-selected .k-unlink{background-position:-288px -72px}.k-insertImage{background-position:-288px -96px}.k-state-hover .k-insertImage,.k-state-selected .k-insertImage{background-position:-312px -96px}.k-state-hover .k-insertImage,.k-state-selected .k-insertImage{background-position:-288px -96px}.k-insertFile{background-position:-288px -216px}.k-state-hover .k-insertFile,.k-state-selected .k-insertFile{background-position:-312px -216px}.k-state-hover .k-insertFile,.k-state-selected .k-insertFile{background-position:-288px -216px}.k-subscript{background-position:-288px -144px}.k-state-hover .k-subscript,.k-state-selected .k-subscript{background-position:-312px -144px}.k-state-hover .k-subscript,.k-state-selected .k-subscript{background-position:-288px -144px}.k-superscript{background-position:-288px -168px}.k-state-hover .k-superscript,.k-state-selected .k-superscript{background-position:-312px -168px}.k-state-hover .k-superscript,.k-state-selected .k-superscript{background-position:-288px -168px}.k-cleanFormatting{background-position:-288px -192px}.k-state-hover .k-cleanFormatting,.k-state-selected .k-cleanFormatting{background-position:-312px -192px}.k-state-hover .k-cleanFormatting,.k-state-selected .k-cleanFormatting{background-position:-288px -192px}.k-createTable{background-position:-192px 0}.k-state-hover .k-createTable,.k-state-selected .k-createTable{background-position:-216px 0}.k-state-hover .k-createTable,.k-state-selected .k-createTable{background-position:-192px 0}.k-addColumnLeft{background-position:-192px -24px}.k-state-hover .k-addColumnLeft,.k-state-selected .k-addColumnLeft{background-position:-216px -24px}.k-state-hover .k-addColumnLeft,.k-state-selected .k-addColumnLeft{background-position:-192px -24px}.k-addColumnRight{background-position:-192px -48px}.k-state-hover .k-addColumnRight,.k-state-selected .k-addColumnRight{background-position:-216px -48px}.k-state-hover .k-addColumnRight,.k-state-selected .k-addColumnRight{background-position:-192px -48px}.k-addRowAbove{background-position:-192px -72px}.k-state-hover .k-addRowAbove,.k-state-selected .k-addRowAbove{background-position:-216px -72px}.k-state-hover .k-addRowAbove,.k-state-selected .k-addRowAbove{background-position:-192px -72px}.k-addRowBelow{background-position:-192px -96px}.k-state-hover .k-addRowBelow,.k-state-selected .k-addRowBelow{background-position:-216px -96px}.k-state-hover .k-addRowBelow,.k-state-selected .k-addRowBelow{background-position:-192px -96px}.k-deleteRow{background-position:-192px -120px}.k-state-hover .k-deleteRow,.k-state-selected .k-deleteRow{background-position:-216px -120px}.k-state-hover .k-deleteRow,.k-state-selected .k-deleteRow{background-position:-192px -120px}.k-deleteColumn{background-position:-192px -144px}.k-state-hover .k-deleteColumn,.k-state-selected .k-deleteColumn{background-position:-216px -144px}.k-state-hover .k-deleteColumn,.k-state-selected .k-deleteColumn{background-position:-192px -144px}.k-mergeCells{background-position:-192px -168px}.k-state-hover .k-mergeCells,.k-state-selected .k-mergeCells{background-position:-216px -168px}.k-state-hover .k-mergeCells,.k-state-selected .k-mergeCells{background-position:-192px -168px}.k-pdf{background-position:-288px -240px}.k-state-hover .k-pdf,.k-state-selected .k-pdf{background-position:-312px -240px}.k-state-hover .k-pdf,.k-state-selected .k-pdf{background-position:-288px -240px}.k-print{background-position:-288px -264px}.k-state-hover .k-print,.k-state-selected .k-print{background-position:-312px -264px}.k-state-hover .k-print,.k-state-selected .k-print{background-position:-288px -264px}.k-fontName{width:110px}.k-fontSize{width:124px}.k-formatBlock{width:147px}.k-editortoolbar-dragHandle{float:left;margin:1px 0 0}.k-editor-toolbar .k-button-group{padding:1px}.k-editor .k-editor-toolbar .k-row-break{display:block;height:0;font-size:0;line-height:0}.k-button-group .k-tool{border-style:solid;border-width:1px;margin-right:-1px}.k-button-group .k-tool.k-state-hover,.k-button-group .k-tool:focus{position:relative;z-index:1}.k-rtl .k-button-group .k-tool{border-style:solid;border-width:1px}.k-button-group .k-tool.k-group-end{border-right-width:1px}.k-rtl .k-button-group .k-tool.k-group-end{border-left-width:1px}.k-button-group .k-state-disabled{display:none}.k-button-group .k-state-hover,.k-button-group .k-state-active{vertical-align:middle}.k-button-group .k-state-disabled{filter:alpha(opacity=30);opacity:.3}.k-editor .k-editable-area{width:100%;height:100%;border-style:solid;border-width:1px;outline:0}.k-editor .k-content{display:block;width:100%;height:100%;border:0;margin:0;padding:0;background:#fff}.k-editor .k-tool{outline:0}.k-editor iframe.k-content{display:inline;vertical-align:top}.k-editor .k-raw-content{border:0;margin:0;padding:0}.k-editor .k-raw-content,.k-editor-dialog .k-editor-textarea{font-size:inherit;font-family:consolas,"courier new",monospace}.k-editor-dialog{padding:1em;width:400px}.k-editor-dialog .k-edit-label{width:25%}.k-editor-dialog .k-edit-field{width:66%}.k-editor-dialog .k-edit-field .k-textbox{width:96%}.k-viewhtml-dialog{width:auto}.k-filebrowser-dialog{width:auto;min-width:350px}.k-filebrowser-dialog .k-filebrowser{margin:0 1em 0}.k-filebrowser-dialog .k-edit-label{width:18%}.k-filebrowser-dialog .k-edit-field{width:75%}.k-filebrowser-dialog .k-edit-field .k-textbox{width:70%}#k-editor-image-width,#k-editor-image-height{width:5em}.k-editor-dialog .k-button{display:inline-block}.k-editor-dialog .k-editor-textarea{width:600px;height:350px;padding:.2em .2em .2em .4em;border-width:1px;border-style:solid;overflow:auto}.k-button-wrapper .k-link:hover{text-decoration:underline}.k-ct-popup{width:180.39999999999998px;padding:.65em .5em .5em}.k-ct-popup .k-status{margin:.3em 0}.k-ct-cell{border-width:1px;border-style:solid;width:18px;height:18px;margin:1px;vertical-align:top;display:inline-block;overflow:hidden;-ms-high-contrast-adjust:none}.k-editor .k-resize-handle{position:absolute;padding:5px;right:0;bottom:0}.k-editor .k-overlay{position:absolute;background-color:#fff;opacity:0}.k-notification-wrap{padding:.6em .5em;cursor:default;position:relative;white-space:nowrap}.k-notification-button .k-notification-wrap{padding-right:20px}.k-notification-wrap>.k-i-note{vertical-align:text-bottom;margin-right:4px}.k-notification-wrap>.k-i-close{position:absolute;top:7px;right:4px;display:none}.k-notification-button .k-notification-wrap>.k-i-close{display:block}.k-progressbar{display:inline-block;position:relative;vertical-align:middle}.k-progressbar{border-radius:4px}.k-progressbar-horizontal{width:27em;height:1.9em}.k-progressbar-vertical{width:1.9em;height:27em}.k-progressbar>.k-state-selected{position:absolute;border-style:solid;border-width:1px;overflow:hidden}.k-progressbar-horizontal>.k-state-selected,.k-rtl .k-progressbar-horizontal.k-progressbar-reverse>.k-state-selected{left:-1px;right:auto;top:-1px;height:100%;border-radius:4px 0 0 4px}.k-progressbar-horizontal.k-progressbar-reverse>.k-state-selected,.k-rtl .k-progressbar-horizontal>.k-state-selected{left:auto;right:-1px;border-radius:0 4px 4px 0}.k-progressbar-vertical>.k-state-selected{left:-1px;bottom:-1px;width:100%;border-radius:0 0 4px 4px}.k-progressbar-vertical.k-progressbar-reverse>.k-state-selected{bottom:auto;top:-1px;border-radius:4px 4px 0 0}.k-progressbar>.k-state-selected.k-complete,.k-rtl .k-progressbar>.k-state-selected.k-complete{border-radius:4px}.k-progressbar>.k-reset{list-style:none;margin:0;padding:0;position:absolute;left:-1px;top:-1px;width:100%;height:100%;border-radius:4px;white-space:nowrap}.k-progressbar-horizontal .k-item{display:inline-block;height:100%;border-style:solid;margin-left:-1px}.k-progressbar-horizontal .k-item.k-first{margin-left:0}.k-progressbar-horizontal .k-item.k-last{border-right-width:0}.k-progressbar-horizontal .k-item,.k-rtl .k-progressbar-horizontal.k-progressbar-reverse .k-item{border-width:1px 1px 1px 0}.k-progressbar-horizontal.k-progressbar-reverse .k-item,.k-rtl .k-progressbar-horizontal .k-item{border-width:1px 0 1px 1px}.k-progressbar-horizontal .k-first,.k-rtl .k-progressbar-horizontal .k-last,.k-rtl .k-progressbar-horizontal.k-progressbar-reverse .k-last{border-radius:4px 0 0 4px;border-left-width:1px}.k-progressbar-horizontal .k-last,.k-rtl .k-progressbar-horizontal .k-first{border-radius:0 4px 4px 0}.k-progressbar-horizontal.k-progressbar-reverse .k-last,.k-rtl .k-progressbar-horizontal .k-first{border-right-width:1px}.k-progressbar-vertical .k-item{width:100%;border-style:solid;border-width:1px 1px 0 1px;margin-top:-1px}.k-progressbar-vertical .k-item.k-first{margin-top:0}.k-progressbar-vertical li.k-item.k-last{border-bottom-width:0}.k-progressbar-vertical .k-first{border-radius:4px 4px 0 0}.k-progressbar-vertical .k-last{border-radius:0 0 4px 4px;border-bottom-width:1px}.k-progressbar-vertical.k-progressbar-reverse .k-item{border-width:0 1px 1px 1px}.k-progressbar-vertical.k-progressbar-reverse .k-first{border-top-width:1px}.k-progress-status-wrap{position:absolute;top:-1px;border:1px solid transparent;line-height:2em;width:100%;height:100%}.k-progress-status-wrap,.k-rtl .k-progressbar-horizontal.k-progressbar-reverse .k-progress-status-wrap{left:-1px;right:auto;text-align:right}.k-progressbar-horizontal.k-progressbar-reverse .k-progress-status-wrap,.k-rtl .k-progressbar-horizontal .k-progress-status-wrap{left:auto;right:-1px;text-align:left}.k-progressbar-vertical .k-progress-status-wrap{top:auto;bottom:-1px}.k-progressbar-vertical.k-progressbar-reverse .k-progress-status-wrap{bottom:auto;top:-1px}.k-progress-status{display:inline-block;padding:0 .5em;min-width:10px;white-space:nowrap}.k-progressbar-vertical.k-progressbar-reverse .k-progress-status{position:absolute;bottom:0;left:0}.k-progressbar-vertical .k-progress-status{-webkit-transform:rotate(-90deg) translateX(-100%);-moz-transform:rotate(-90deg) translateX(-100%);-ms-transform:rotate(-90deg) translateX(-100%);-o-transform:rotate(-90deg) translateX(-100%);transform:rotate(-90deg) translateX(-100%);-webkit-transform-origin:0 0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;-o-transform-origin:0 0;transform-origin:0 0}.k-progressbar-vertical.k-progressbar-reverse .k-progress-status{-webkit-transform:rotate(90deg) translateX(-100%);-moz-transform:rotate(90deg) translateX(-100%);-ms-transform:rotate(90deg) translateX(-100%);-o-transform:rotate(90deg) translateX(-100%);transform:rotate(90deg) translateX(-100%);-webkit-transform-origin:0 100%;-moz-transform-origin:0 100%;-ms-transform-origin:0 100%;-o-transform-origin:0 100%;transform-origin:0 100%}.k-ie7 .k-progressbar-vertical .k-progress-status{writing-mode:tb-rl;padding:.5em 0}.k-ie8 .k-progressbar-vertical .k-progress-status{writing-mode:bt-lr;padding:.5em 0}div.k-slider{position:relative;border-width:0;background-color:transparent;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.k-slider-vertical{width:26px;height:200px}.k-slider-horizontal{display:inline-block;width:200px;height:26px}.k-slider-wrap{width:100%;height:100%}.k-slider .k-button,.k-grid .k-slider .k-button{position:absolute;top:0;width:24px;min-width:0;height:24px;margin:0;padding:0;outline:0}.k-slider .k-button .k-icon{margin-top:3px;vertical-align:top}.k-state-disabled .k-slider-wrap{filter:alpha(opacity=60);opacity:.6}.k-state-disabled .k-slider-wrap .k-slider-items{color:#333}.k-slider .k-button-decrease{left:0}.k-slider-vertical .k-button-decrease,.k-grid .k-slider-vertical .k-button-decrease{top:auto;bottom:0}.k-slider .k-button-increase{right:0}.k-slider .k-icon,.k-slider-track,.k-slider .k-tick{cursor:pointer}.k-ie7 .k-slider .k-icon{margin-top:2px}.k-slider-track,.k-slider-selection{position:absolute;margin:0;padding:0}.k-slider-horizontal .k-slider-track,.k-slider-horizontal .k-slider-selection{top:50%;left:0;height:8px;margin-top:-4px;background-repeat:repeat-x}.k-slider-horizontal .k-slider-buttons .k-slider-track{left:34px}.k-slider-vertical .k-slider-track,.k-slider-vertical .k-slider-selection{left:50%;bottom:0;width:8px;margin-left:-4px;background-repeat:repeat-y}.k-slider-vertical .k-slider-buttons .k-slider-track{bottom:34px}.k-draghandle{position:absolute;background-repeat:no-repeat;background-color:transparent;text-indent:-3333px;overflow:hidden;text-decoration:none;text-align:center;outline:0}.k-slider-horizontal .k-draghandle{top:-4px;width:13px;height:14px}.k-slider-vertical .k-draghandle{left:-4px;width:14px;height:13px}.k-slider-buttons .k-slider-items{margin-left:34px}.k-slider-horizontal .k-slider-items{height:100%}.k-slider-vertical .k-slider-items{padding-top:1px}.k-slider-vertical .k-slider-buttons .k-slider-items{padding-top:0}.k-slider-vertical .k-slider-buttons .k-slider-items{margin:0;padding-top:35px}.k-slider .k-tick{position:relative;margin:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-position:center center}.k-slider-horizontal .k-tick{float:left;height:100%;text-align:center}.k-ie7 .k-slider-vertical .k-tick{float:left;clear:left;width:100%}.k-slider-horizontal .k-tick{background-position:center -92px}.k-slider-horizontal .k-slider-topleft .k-tick{background-position:center -122px}.k-slider-horizontal .k-slider-bottomright .k-tick{background-position:center -152px}.k-slider-horizontal .k-tick-large{background-position:center -2px}.k-slider-horizontal .k-slider-topleft .k-tick-large{background-position:center -32px}.k-slider-horizontal .k-slider-bottomright .k-tick-large{background-position:center -62px}.k-slider-vertical .k-tick{background-position:-92px center}.k-slider-vertical .k-slider-topleft .k-tick{background-position:-122px center}.k-slider-vertical .k-slider-bottomright .k-tick{background-position:-152px center}.k-slider-vertical .k-tick-large{background-position:-2px center}.k-slider-vertical .k-slider-topleft .k-tick-large{background-position:-32px center}.k-slider-vertical .k-slider-bottomright .k-tick-large{background-position:-62px center}.k-slider-horizontal .k-first{background-position:0 -92px}.k-slider-horizontal .k-tick-large.k-first{background-position:0 -2px}.k-slider-horizontal .k-slider-topleft .k-first{background-position:0 -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-first{background-position:0 -32px}.k-slider-horizontal .k-slider-bottomright .k-first{background-position:0 -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-first{background-position:0 -62px}.k-slider-horizontal .k-last{background-position:100% -92px}.k-slider-horizontal .k-tick-large.k-last{background-position:100% -2px}.k-slider-horizontal .k-slider-topleft .k-last{background-position:100% -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-last{background-position:100% -32px}.k-slider-horizontal .k-slider-bottomright .k-last{background-position:100% -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-last{background-position:100% -62px}.k-slider-vertical .k-first{background-position:-92px 100%}.k-slider-vertical .k-tick-large.k-first{background-position:-2px 100%}.k-slider-vertical .k-slider-topleft .k-first{background-position:-122px 100%}.k-slider-vertical .k-slider-topleft .k-tick-large.k-first{background-position:-32px 100%}.k-slider-vertical .k-slider-bottomright .k-first{background-position:-152px 100%}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-first{background-position:-62px 100%}.k-slider-vertical .k-last{background-position:-92px 0}.k-slider-vertical .k-tick-large.k-last{background-position:-2px 0}.k-slider-vertical .k-slider-topleft .k-last{background-position:-122px 0}.k-slider-vertical .k-slider-topleft .k-tick-large.k-last{background-position:-32px 0}.k-slider-vertical .k-slider-bottomright .k-last{background-position:-152px 0}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-last{background-position:-62px 0}.k-slider-vertical .k-tick{text-align:right}.k-slider-vertical .k-slider-topleft .k-tick{text-align:left}.k-slider .k-label{position:absolute;white-space:nowrap;font-size:.92em}.k-slider-horizontal .k-label{left:0;width:100%;line-height:1}.k-slider-horizontal .k-first .k-label{left:-50%}.k-slider-horizontal .k-last .k-label{left:auto;right:-50%}.k-slider-horizontal .k-label{bottom:-1.2em}.k-slider-horizontal .k-slider-topleft .k-label{top:-1.2em}.k-slider-vertical .k-label{left:120%;display:block;text-align:left}.k-slider-vertical .k-last .k-label{top:-0.5em}.k-slider-vertical .k-first .k-label{bottom:-0.5em}.k-slider-vertical .k-slider-topleft .k-label{left:auto;right:120%}.k-slider-tooltip{top:-4444px}.k-scheduler-toolbar,.k-scheduler-footer{border-style:solid}.k-scheduler-toolbar,.k-scheduler-footer{line-height:28px;padding:6px}.k-scheduler-toolbar{position:relative;border-width:0 0 1px}.k-edit-field.k-scheduler-toolbar{border-width:0;padding-top:0;padding-left:0;padding-right:0}.k-scheduler-header{text-align:center}.k-scheduler-footer{border-width:1px 0 0}.k-scheduler-toolbar>ul{float:right}.k-scheduler-toolbar>ul:first-child{float:left}.k-scheduler-toolbar>.k-scheduler-tools{float:left;margin-bottom:.5em}.k-scheduler-tools+.k-scheduler-navigation{float:left;clear:left}.k-scheduler-toolbar>ul>li,.k-scheduler-footer>ul>li{display:inline-block;border-style:solid;border-width:1px 1px 1px 0}.k-scheduler .k-scheduler-toolbar .k-nav-current,.k-scheduler .k-scheduler-toolbar .k-scheduler-tools>li{border-width:0}.k-scheduler-toolbar>ul>li:first-child,.k-scheduler-toolbar>ul.k-scheduler-views>li:first-child+li{border-left-width:1px}.k-scheduler div.k-scheduler-footer ul li{margin-right:.6em;border-width:1px}.k-scheduler-toolbar .k-link,.k-scheduler-footer .k-link{display:inline-block;padding:0 1.1em}.k-scheduler-toolbar .k-nav-prev .k-link,.k-scheduler-toolbar .k-nav-next .k-link{padding-left:.6em;padding-right:.6em}.k-ie7 .k-scheduler-toolbar .k-nav-prev .k-link,.k-ie7 .k-scheduler-toolbar .k-nav-next .k-link{height:2.3em;margin-top:-1px;vertical-align:middle}.k-ie7 .k-scheduler-toolbar .k-nav-prev .k-link .k-icon,.k-ie7 .k-scheduler-toolbar .k-nav-next .k-link .k-icon{margin-top:.5em}.k-scheduler-toolbar .k-nav-current .k-link{padding:0}.k-scheduler-toolbar .k-nav-current{margin:0 1.1em}.k-scheduler div.k-scheduler-toolbar>ul>li.k-nav-current,.k-scheduler .k-nav-current>.k-state-active{background:0}.k-scheduler-phone .k-scheduler-toolbar+.k-scheduler-toolbar .k-scheduler-navigation{width:100%;text-align:center}.k-scheduler-phone .k-scheduler-toolbar+.k-scheduler-toolbar .k-scheduler-navigation>li{background:0;border:0}.k-scheduler-phone .k-toolbar .k-nav-next{float:right}.k-scheduler-phone .k-toolbar .k-nav-prev{float:left}.k-scheduler-toolbar .k-i-calendar,.k-scheduler-footer .k-icon{margin:-2px 6px 0 0}.k-scheduler-header,.k-scheduler-header-wrap{overflow:hidden}.k-scheduler-header-wrap{position:relative;border-style:solid;border-width:0}.k-scheduler .k-scrollbar-v .k-scheduler-header-wrap{border-right-width:1px}.k-scheduler-times,.k-scheduler-content{position:relative}.k-scheduler-times{overflow:hidden;border-style:solid;border-width:0}.k-scheduler-content{overflow:auto}.k-scheduler-layout,.k-scheduler-table{border-spacing:0;width:100%;margin:0;border-collapse:separate}.k-ie7 .k-scheduler-content .k-scheduler-table{width:auto}.k-scheduler-layout>tbody>tr>td{padding:0;vertical-align:top}.k-safari .k-scheduler-layout>tbody>tr>td+td{width:100%}.k-scheduler-table{table-layout:fixed;max-width:none}.k-scheduler-times .k-scheduler-table{table-layout:auto}.k-scheduler-monthview .k-scheduler-content .k-scheduler-table{height:100%}.k-scheduler-table td,.k-scheduler-table th{height:1.5em;padding:.334em .5em;font-size:100%}.k-scheduler .k-scheduler-table td,.k-scheduler .k-scheduler-table th{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.k-scheduler-monthview .k-hidden,.k-scheduler-monthview .k-hidden>div{width:0!important;overflow:hidden!important}.k-scheduler-monthview .k-hidden{padding-left:0!important;padding-right:0!important;border-right-width:0!important}.k-scheduler-monthview>tbody>tr:first-child .k-scheduler-times{margin-right:1px}.k-scheduler-monthview>tbody>tr:first-child .k-scheduler-times .k-hidden{height:auto}.k-scheduler-monthview .k-scheduler-table td,.k-scheduler-monthview .k-hidden{height:80px;text-align:right}.k-scheduler-phone .k-scheduler-monthview .k-scheduler-table td,.k-scheduler-phone .k-scheduler-monthview .k-hidden{height:40px}.k-scheduler-table td,.k-slot-cell{vertical-align:top}.k-scheduler-layout tr+tr .k-scheduler-times th:last-child{vertical-align:top}.k-scheduler-phone .k-scheduler-monthview .k-scheduler-table td{text-align:center;vertical-align:middle}.k-scheduler-phone .k-scheduler-monthview .k-scheduler-table td span{font-size:1.5em}.k-scheduler-header th{overflow:hidden;text-overflow:ellipsis}.k-scheduler-table td,.k-scheduler-header th{border-style:solid;border-width:0 0 1px 1px}.k-scheduler-table td:first-child,.k-scheduler-header th:first-child{border-left-width:0}.k-scheduler-agendaview .k-scheduler-table td:first-child{border-left-width:1px}.k-scheduler-agendaview .k-scheduler-table td.k-first{border-left-width:0}.k-scheduler-layout tr+tr .k-scheduler-times tr:last-child>th,.k-scheduler-layout tr+tr .k-scheduler-table>tbody>tr:last-child>td,.k-scheduler-table>tbody>tr>.k-last{border-bottom-width:0}.k-scrollbar-h tr+tr .k-scheduler-times,.k-scrollbar-h .k-scheduler-content .k-scheduler-table>tbody>tr:last-child>td,.k-scheduler-agendaview.k-scrollbar-h .k-scheduler-table>tbody>tr>td.k-last{border-bottom-width:1px}.k-scheduler-times th{text-align:right;padding-right:.6em;border-style:solid;border-width:0 1px 1px 0;border-color:transparent;white-space:nowrap}.k-scheduler-layout tr+tr .k-scheduler-times th{border-bottom-color:transparent}.k-scheduler-layout tr+tr .k-scheduler-times th.k-slot-cell,.k-scheduler-layout tr+tr .k-scheduler-times th.k-scheduler-times-all-day{border-bottom-color:inherit}.k-scheduler .k-middle-row td{border-bottom-style:dotted}.k-scheduler-now-arrow,.k-scheduler-now-line{position:absolute}.k-scheduler-now-arrow{width:0;height:0;border:solid 5px transparent;left:0}.k-scheduler-now-line{left:5px;right:0;height:1px}.k-task{position:relative}div.k-more-events{text-align:center;font-size:18px;line-height:1.2;padding:0}.k-more-events>span{display:block;margin-top:-0.6em}.k-event,.k-more-events{position:absolute;border-style:solid;border-width:1px;text-align:left;overflow:hidden}.k-event{cursor:default;min-height:1.3em}.k-event-drag-hint{filter:alpha(opacity=60);opacity:.6;cursor:-webkit-grabbing;cursor:-moz-grabbing}.k-scheduler-header .k-event{white-space:nowrap}.k-event-template{padding:.3em 1.4em .3em .6em}.k-event-time{display:none;padding-bottom:0;font-size:.9em}.k-event-drag-hint .k-event-time{display:block}.k-event-actions,.k-event>.k-link,.k-task>.k-link{position:absolute;top:3px;right:4px;white-space:nowrap}.k-event-actions{z-index:1}.k-scheduler-agendaview .k-task>.k-link{top:0;right:0}.k-event-actions:first-child{position:static;float:left;margin:4px 2px 0 4px}.k-webkit .k-event-actions:first-child{margin-top:3px}.k-event-actions:first-child>.k-link{display:inline-block}.k-event-delete{display:none}.k-event:hover .k-event-delete,tr:hover>td>.k-task .k-event-delete{display:inline-block}.k-event .k-event-top-actions,.k-event .k-event-bottom-actions{position:absolute;top:0;left:0;width:100%;text-align:center}.k-event .k-event-bottom-actions{top:auto;bottom:0}.k-event .k-resize-handle,.k-scheduler-mobile .k-event:hover .k-resize-handle{position:absolute;visibility:hidden;z-index:2}.k-event:hover .k-resize-handle,.k-event-active .k-resize-handle,.k-scheduler-mobile .k-event-active:hover .k-resize-handle{visibility:visible}.k-event .k-resize-handle:after{content:"";position:absolute;filter:alpha(opacity=50);opacity:.5}.k-scheduler-mobile .k-event .k-resize-handle:after{filter:none;opacity:1}.k-event>.k-resize-n{top:0;left:0;right:0;height:.4em}.k-event>.k-resize-s{bottom:0;left:0;right:0;height:.4em}.k-event>.k-resize-e{right:0;top:0;bottom:0;width:.4em}.k-event>.k-resize-w{left:0;top:0;bottom:0;width:.4em}.k-event>.k-resize-n:after,.k-event>.k-resize-s:after{top:1px;left:50%;margin-left:-1em;width:2em;height:1px}.k-event>.k-resize-s:after{top:auto;bottom:1px}.k-event>.k-resize-e:after,.k-event>.k-resize-w:after{left:1px;top:50%;margin-top:-0.7em;height:1.4em;width:1px}.k-event>.k-resize-e:after{left:auto;right:1px}.k-scheduler-mobile .k-event>.k-resize-n,.k-scheduler-mobile .k-event>.k-resize-s{height:.6em}.k-scheduler-mobile .k-event>.k-resize-e,.k-scheduler-mobile .k-event>.k-resize-w{width:.6em}.k-scheduler-mobile .k-event>.k-resize-n:after,.k-scheduler-mobile .k-event>.k-resize-s:after{top:0;margin-left:-3em;width:4em;height:.6em}.k-scheduler-mobile .k-event>.k-resize-s:after{bottom:0}.k-scheduler-mobile .k-event>.k-resize-e:after,.k-scheduler-mobile .k-event>.k-resize-w:after{left:0;margin-top:-0.7em;height:1.4em;width:.6em}.k-scheduler-mobile .k-event>.k-resize-e:after{right:0}.k-scheduler-mobile .k-event>.k-resize-n:after{border-radius:0 0 4px 4px}.k-scheduler-mobile .k-event>.k-resize-s:after{border-radius:4px 4px 0 0}.k-scheduler-mobile .k-event>.k-resize-w:after{border-radius:0 4px 4px 0}.k-scheduler-mobile .k-event>.k-resize-e:after{border-radius:4px 0 0 4px}.k-scheduler-phone .k-scheduler-monthview .k-events-container{position:absolute;text-align:center;height:6px;line-height:6px}.k-scheduler-phone .k-scheduler-monthview .k-event{position:static;display:inline-block;width:4px;height:4px;min-height:0;margin:1px}.k-scheduler-marquee{border-style:solid;border-width:0}.k-scheduler-marquee.k-first:before,.k-scheduler-marquee.k-last:after{content:"";position:absolute;width:0;height:0;border-style:solid;border-width:3px}div.k-scheduler-marquee:before{top:0;left:0;border-right-color:transparent;border-bottom-color:transparent}div.k-scheduler-marquee:after{bottom:0;right:0;border-top-color:transparent;border-left-color:transparent}.k-scheduler-marquee .k-label-top{position:absolute;top:.3em;left:.8em;font-size:.8em}.k-scheduler-marquee .k-label-bottom{position:absolute;bottom:.3em;right:.81em;font-size:.8em}.k-scheduler-quickedit .k-textbox{width:200px}.k-tooltip-bottom{text-align:left}.k-tooltip-bottom .k-button{float:left;margin-right:.3em}.k-tooltip-bottom .k-quickedit-details{float:right;margin-right:0}.k-scheduler-agendaview .k-scheduler-table th,.k-scheduler-agendaview .k-scheduler-table td{text-align:left}.k-scheduler-times .k-slot-cell,.k-scheduler-groupcolumn{width:6em}.k-scheduler-datecolumn{width:12em}.k-scheduler-timecolumn{width:11em}.k-scheduler-timecolumn>div{position:relative;vertical-align:top}.k-webkit .k-scheduler-timecolumn>div>.k-icon{vertical-align:top}.k-scheduler-timecolumn>div>.k-i-arrow-e{position:absolute;right:-4px}.k-scheduler-timecolumn .k-i-arrow-w{margin-left:-4px}.k-scheduler-mark{display:inline-block;width:1em;height:1em;vertical-align:middle;margin-right:.5em}.k-scheduler-agendaday{float:left;margin:0 .2em 0 0;font-size:3em;font-weight:normal}.k-scheduler-agendaweek{display:block;margin:.4em 0 0;font-size:1.1em;font-style:normal}.k-scheduler-agendadate{font-size:.8em}.k-scheduler-timecolumn{white-space:nowrap}.k-scheduler-edit-form .k-edit-form-container,.k-scheduler-timezones .k-edit-form-container{width:520px}.k-scheduler-edit-form .k-edit-label{width:17%}.k-scheduler-edit-form .k-edit-field{width:77%}.k-scheduler-edit-form .k-textbox[name="title"],.k-scheduler-edit-form textarea.k-textbox{width:100%}.k-scheduler-edit-form textarea.k-textbox{min-height:4em;resize:vertical}.k-scheduler-edit-form>.k-edit-box:first-child .k-datetimepicker{margin-right:1em}.km-pane-wrapper .k-scheduler-edit-form .k-edit-buttons{clear:right;margin-right:2%;margin-left:2%;padding:0 0 .6em}.k-edit-box{float:left}.k-edit-box+.k-edit-box{float:right}.k-scheduler-edit-form label+input{margin-left:1em}.k-edit-field>ul.k-reset>li{margin:.2em 0 .4em;line-height:2.4}.k-edit-field>ul.k-reset.k-toolbar>li{margin:0}.k-edit-field>ul.k-reset .k-widget{margin-left:.8em}.k-edit-field>ul.k-reset .k-numerictextbox,.k-edit-field span.k-recur-interval{width:5em}.k-edit-field>ul.k-reset .k-dropdown,.k-edit-field>ul.k-reset .k-datepicker,div[name="recurrenceRule"]>.k-dropdown{width:9em}.k-scheduler-edit-form .k-edit-buttons .k-scheduler-delete{float:left}.k-popup-message{margin:0;padding:1em 0 2em;text-align:center}.k-scheduler-timezones .k-dropdown:first-child{width:100%}.k-scheduler-timezones .k-dropdown+.k-dropdown{margin:.5em 0 .7em}.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view{display:none}.k-scheduler-toolbar li.k-nav-current .k-sm-date-format{display:none}@media only screen and (max-width:1024px){.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views{position:absolute;right:6px;top:6px;z-index:10000}.k-webkit .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views,.k-ff .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views,.k-ie11 .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views{right:auto;left:6px}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li:not(.k-current-view),.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li:not(.k-current-view),.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li:not(.k-current-view){display:none}.k-webkit .k-scheduler-toolbar li.k-nav-current .k-lg-date-format,.k-ff .k-scheduler-toolbar li.k-nav-current .k-lg-date-format,.k-ie11 .k-scheduler-toolbar li.k-nav-current .k-lg-date-format{display:none}.k-webkit .k-scheduler-toolbar li.k-nav-current .k-sm-date-format,.k-ff .k-scheduler-toolbar li.k-nav-current .k-sm-date-format,.k-ie11 .k-scheduler-toolbar li.k-nav-current .k-sm-date-format{display:inline}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view{display:block;border-width:1px}.k-webkit .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ff .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ie11 .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view{text-align:left;padding-left:1em}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link{display:block;position:relative;padding-right:2.5em;padding-left:1em}.k-webkit .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-ff .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-ie11 .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link{padding-left:0}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link:after,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link:after,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link:after{display:block;content:"";position:absolute;top:50%;margin-top:-0.6em;right:.333em;width:1.333em;height:1.333em}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li:first-child+li,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li:first-child+li,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li:first-child+li{display:block;border:0;border-radius:0}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded{border:1px solid #c5c5c5;background-color:#fff;background-image:none;box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-webkit .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ff .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ie11 .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded{text-align:left}}@media only screen and (max-width:480px){.k-webkit .k-scheduler-toolbar li.k-nav-current .k-sm-date-format,.k-ff .k-scheduler-toolbar li.k-nav-current .k-sm-date-format,.k-ie11 .k-scheduler-toolbar li.k-nav-current .k-sm-date-format{display:none}.k-webkit .k-scheduler-timecolumn,.k-ff .k-scheduler-timecolumn,.k-ie11 .k-scheduler-timecolumn{width:5em}.k-webkit .k-scheduler-datecolumn,.k-ff .k-scheduler-datecolumn,.k-ie11 .k-scheduler-datecolumn{width:6em;overflow:hidden}.k-webkit .k-scheduler-timecolumn>div,.k-ff .k-scheduler-timecolumn>div,.k-ie11 .k-scheduler-timecolumn>div,.k-webkit .k-scheduler-datecolumn>div,.k-ff .k-scheduler-datecolumn>div,.k-ie11 .k-scheduler-datecolumn>div{white-space:normal}}.k-scheduler-pdf-export{overflow:hidden}.k-pdf-export-shadow .k-scheduler,.k-scheduler-pdf-export .k-scheduler-content,.k-scheduler-pdf-export .k-scheduler-times{height:auto!important;overflow:visible!important}.k-scheduler-pdf-export .k-scheduler-header{padding:0!important}.k-scheduler-pdf-export .k-scheduler-header-wrap{border-width:0!important}.k-scheduler-pdf-export .k-scheduler-header .k-scheduler-table,.k-scheduler-pdf-export .k-scheduler-content .k-scheduler-table{width:100%!important}.k-tooltip{position:absolute;z-index:12000;border-style:solid;border-width:1px;padding:4px 5px 4px 6px;background-repeat:repeat-x;min-width:20px;text-align:center}.k-tooltip-button{text-align:right;height:0}.k-tooltip-content{height:100%}.k-tooltip-closable .k-tooltip-content{padding-right:20px}span.k-tooltip{position:static;display:inline-block;border-width:1px;padding:2px 5px 1px 6px}.k-invalid-msg{display:none}.k-callout{position:absolute;width:0;height:0;border-style:solid;border-width:6px;border-color:transparent}.k-callout-n{top:-13px;left:50%}.k-callout-w{top:50%;left:-13px}.k-callout-s{left:50%;bottom:-13px}.k-callout-e{top:50%;right:-13px}.k-slider-tooltip .k-callout-n,.k-slider-tooltip .k-callout-s{margin-left:-6px}.k-slider-tooltip .k-callout-w,.k-slider-tooltip .k-callout-e{margin-top:-6px}.k-tooltip-validation .k-warning{vertical-align:text-top;margin-right:3px}.k-tooltip-validation{z-index:9999}.k-toolbar{position:relative;display:block;vertical-align:middle;line-height:2.9em}.k-toolbar .k-button .k-icon,.k-toolbar .k-button .k-sprite,.k-overflow-container .k-button .k-icon,.k-overflow-container .k-button .k-sprite{vertical-align:middle;margin-top:-7px;margin-bottom:-5px}.k-toolbar .k-input{line-height:inherit;height:inherit;padding-top:2px;padding-bottom:2px}.k-toolbar .k-input:before{content:"\a0";display:inline-block;width:0}.k-ie .k-toolbar .k-input{height:1.65em}.k-toolbar .k-combobox .k-dropdown-wrap:before,.k-toolbar .k-picker-wrap:before,.k-toolbar .k-numeric-wrap:before{display:none}.k-overflow-container .k-sprite{margin-left:-4px}.k-toolbar-resizable{overflow:hidden;white-space:nowrap}.k-toolbar>.k-align-left{float:none}.k-toolbar>.k-align-right{float:right}.k-toolbar>*,.k-toolbar .k-button{display:inline-block;vertical-align:middle;line-height:1.72em}.k-toolbar .k-separator{border-width:0 0 0 1px;border-style:solid;width:1px;line-height:inherit}.k-toolbar .k-button-group{list-style-type:none}.k-toolbar .k-button-group>li{display:inline-block}.k-toolbar .k-button-group .k-button{margin:0 0 0 -1px;border-radius:0}.k-toolbar .k-button,.k-toolbar .k-split-button,.k-toolbar .k-button-group,.k-toolbar .k-widget,.k-toolbar .k-textbox,.k-toolbar label,.k-toolbar .k-separator{margin:0 .2em;line-height:1.72em;vertical-align:middle}.k-toolbar .k-split-button{padding-left:0}.k-toolbar .k-split-button .k-button,.k-toolbar .k-button-group .k-group-start{margin:0}.k-toolbar .k-split-button .k-split-button-arrow{margin:0 0 0 -1px}.k-toolbar .k-overflow-anchor{border-width:0 0 0 1px;border-style:solid;height:3em;width:3em;line-height:inherit;padding:0 .5em;margin:0;position:relative;float:right;border-radius:0}.k-overflow-container .k-item{float:none;border:0}.k-overflow-container .k-separator{border-width:0 0 1px;border-style:solid;height:1px;line-height:0;font-size:0;padding:0}.k-overflow-container .k-overflow-button,.k-split-container .k-button{text-align:left;display:block;background:0;border-color:transparent;white-space:nowrap}.k-split-container{margin-top:-1px}.k-overflow-container .k-button-group{padding:0}.k-overflow-container .k-button-group>li{display:block}.k-overflow-container .k-overflow-group{border-width:1px 0;border-style:solid;border-radius:0;padding:2px 0;margin:1px 0}.k-overflow-container .k-overflow-hidden{display:none}.k-overflow-container .k-toolbar-first-visible,.k-overflow-container .k-overflow-group+.k-overflow-group,.k-overflow-container .k-separator+.k-overflow-group{border-top:0;margin-top:0;padding-top:1px}.k-overflow-container .k-overflow-group+.k-separator{display:none}.k-overflow-container .k-toolbar-last-visible{border-bottom:0;margin-bottom:0;padding-bottom:1px}.k-splitter{position:relative;height:300px}.k-pane>.k-splitter{border-width:0;overflow:hidden}.k-splitter .k-pane{overflow:hidden}.k-splitter .k-scrollable{overflow:auto}.k-splitter .k-pane-loading{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.k-ghost-splitbar,.k-splitbar{position:absolute;border-style:solid;font-size:0;outline:0;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.k-splitter .k-ghost-splitbar-horizontal,.k-splitter .k-splitbar-horizontal{top:0;width:5px;border-width:0 1px;background-repeat:repeat-y}.k-ghost-splitbar-vertical,.k-splitbar-vertical{left:0;height:5px;border-width:1px 0;background-repeat:repeat-x}.k-splitbar-draggable-horizontal{cursor:w-resize}.k-splitbar-draggable-vertical{cursor:n-resize}.k-splitbar .k-resize-handle{display:none}.k-restricted-size-horizontal,.k-restricted-size-vertical{background-color:#f00}.k-splitbar-horizontal .k-icon{position:absolute;top:50%;width:5px;height:20px;margin-top:-10px}.k-collapse-prev,.k-collapse-next,.k-expand-prev,.k-expand-next{cursor:pointer}.k-splitbar-horizontal .k-collapse-prev{margin-top:-31px}.k-splitbar-horizontal .k-collapse-next{margin-top:11px}.k-splitbar-static-horizontal{width:1px}.k-splitbar-static-vertical{height:1px}.k-splitbar-vertical .k-icon{position:absolute;left:50%;width:20px;height:5px;margin-left:-10px}.k-splitbar-vertical .k-collapse-prev{margin-left:-31px}.k-splitbar-vertical .k-collapse-next{margin-left:11px}.k-splitbar-draggable-vertical .k-resize-handle,.k-splitbar-draggable-horizontal .k-resize-handle{display:inline-block}.k-splitbar-horizontal .k-resize-handle{background-position:-165px -6px}.k-splitbar-horizontal-hover>.k-resize-handle{background-position:-181px -6px}.k-splitbar-horizontal .k-collapse-prev,.k-splitbar-horizontal .k-expand-next{background-position:-6px -174px}.k-splitbar-horizontal-hover>.k-collapse-prev,.k-splitbar-horizontal-hover>.k-expand-next{background-position:-22px -174px}.k-splitbar-horizontal .k-collapse-next,.k-splitbar-horizontal .k-expand-prev{background-position:-5px -142px}.k-splitbar-horizontal-hover>.k-collapse-next,.k-splitbar-horizontal-hover>.k-expand-prev{background-position:-21px -142px}.k-splitbar-vertical .k-resize-handle{background-position:-38px -309px}.k-splitbar-vertical-hover>.k-resize-handle{background-position:-70px -309px}.k-splitbar-vertical .k-collapse-prev,.k-splitbar-vertical .k-expand-next{background-position:2px -134px}.k-splitbar-vertical-hover>.k-collapse-prev,.k-splitbar-vertical-hover>.k-expand-next{background-position:-14px -134px}.k-splitbar-vertical .k-collapse-next,.k-splitbar-vertical .k-expand-prev{background-position:2px -165px}.k-splitbar-vertical-hover>.k-collapse-next,.k-splitbar-vertical-hover>.k-expand-prev{background-position:-14px -165px}.k-splitter-resizing{overflow:hidden}html .k-upload{position:relative}html .k-upload-empty{border-width:0;background:0}.k-dropzone em,.k-upload-button{vertical-align:middle}.k-ie7 .k-dropzone em,.k-ie7 .k-upload-button{vertical-align:baseline}.k-dropzone,.k-file{position:relative}.k-dropzone{border-style:solid;border-width:0;padding:.8em;background-color:transparent}.k-dropzone em{visibility:hidden;margin-left:.6em}.k-dropzone-active em{visibility:visible}.k-upload-button{position:relative;min-width:7.167em;overflow:hidden!important;direction:ltr}.k-upload-sync .k-upload-button,.k-ie7 .k-upload-button,.k-ie8 .k-upload-button,.k-ie9 .k-upload-button{margin:.8em}.k-upload-button input{position:absolute;top:0;right:0;z-index:1;font:170px monospace!important;filter:alpha(opacity=0);opacity:0;margin:0;padding:0;cursor:pointer}.k-upload-files{margin:0 0 .6em;line-height:2.66;border-style:solid;border-width:1px 0 0}.k-upload-files .k-button{padding:0}.k-upload-files .k-button,.k-upload-status-total .k-icon{margin-left:8px}.k-ie7 .k-upload-files .k-button{line-height:1}.k-upload .k-fail{background-position:-161px -111px}.k-si-refresh{background-position:-160px -128px}.k-link:not(.k-state-disabled):hover>.k-si-refresh,.k-state-hover>.k-si-refresh,.k-state-hover>*>.k-si-refresh,.k-button:not(.k-state-disabled):hover .k-si-refresh,.k-textbox:hover .k-si-refresh,.k-button:active .k-si-refresh{background-position:-176px -128px}.k-link:not(.k-state-disabled):hover>.k-si-refresh,.k-state-hover>.k-si-refresh,.k-state-hover>*>.k-si-refresh,.k-button:not(.k-state-disabled):hover .k-si-refresh,.k-textbox:hover .k-si-refresh,.k-button:active .k-si-refresh{background-position:-160px -128px}.k-si-tick,.k-success{background-position:-160px -96px}.k-link:not(.k-state-disabled):hover>.k-si-tick,.k-link:not(.k-state-disabled):hover>.k-success,.k-state-hover>.k-si-tick,.k-state-hover>.k-success,.k-state-hover>*>.k-si-tick,.k-state-hover>*>.k-success,.k-button:not(.k-state-disabled):hover .k-si-tick,.k-button:not(.k-state-disabled):hover .k-success,.k-textbox:hover .k-si-tick,.k-textbox:hover .k-success,.k-button:active .k-si-tick,.k-button:active .k-success{background-position:-176px -96px}.k-link:not(.k-state-disabled):hover>.k-si-tick,.k-link:not(.k-state-disabled):hover>.k-success,.k-state-hover>.k-si-tick,.k-state-hover>.k-success,.k-state-hover>*>.k-si-tick,.k-state-hover>*>.k-success,.k-button:not(.k-state-disabled):hover .k-si-tick,.k-button:not(.k-state-disabled):hover .k-success,.k-textbox:hover .k-si-tick,.k-textbox:hover .k-success,.k-button:active .k-si-tick,.k-button:active .k-success{background-position:-160px -96px}.k-si-cancel{background-position:-160px -112px}.k-link:not(.k-state-disabled):hover>.k-si-cancel,.k-state-hover>.k-si-cancel,.k-state-hover>*>.k-si-cancel,.k-button:not(.k-state-disabled):hover .k-si-cancel,.k-textbox:hover .k-si-cancel,.k-button:active .k-si-cancel{background-position:-176px -112px}.k-link:not(.k-state-disabled):hover>.k-si-cancel,.k-state-hover>.k-si-cancel,.k-state-hover>*>.k-si-cancel,.k-button:not(.k-state-disabled):hover .k-si-cancel,.k-textbox:hover .k-si-cancel,.k-button:active .k-si-cancel{background-position:-160px -112px}.k-file{border-style:solid;border-width:0 0 1px;padding:.167em .167em .167em .8em}.k-file .k-icon{position:relative}.k-file>.k-icon{background-position:-112px -288px}.k-link:not(.k-state-disabled):hover>.k-file>.k-icon,.k-state-hover>.k-file>.k-icon,.k-state-hover>*>.k-file>.k-icon,.k-button:not(.k-state-disabled):hover .k-file>.k-icon,.k-textbox:hover .k-file>.k-icon,.k-button:active .k-file>.k-icon{background-position:-128px -288px}.k-link:not(.k-state-disabled):hover>.k-file>.k-icon,.k-state-hover>.k-file>.k-icon,.k-state-hover>*>.k-file>.k-icon,.k-button:not(.k-state-disabled):hover .k-file>.k-icon,.k-textbox:hover .k-file>.k-icon,.k-button:active .k-file>.k-icon{background-position:-112px -288px}.k-filename{position:relative;display:inline-block;min-width:10em;max-width:16.667em;vertical-align:middle;margin-left:1em;padding-bottom:.167em;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap}.k-upload-status{position:absolute;right:12px;top:.6em;line-height:.7em}.k-upload-status .k-button,.k-upload-status .k-warning{vertical-align:text-bottom}.k-dropzone .k-upload-status{line-height:2.4}.k-upload-pct{line-height:20px}.k-ie8 .k-upload-status-total{line-height:29px}.k-progress{position:absolute;top:0;bottom:0;left:0}.k-upload-selected{min-width:7.167em;margin:.25em 0 0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.k-ie7 .k-upload-selected{min-width:100px}.k-upload-selected,.k-upload-cancel{margin-bottom:.8em}.k-upload-selected{margin-left:.8em;margin-right:.2em}.k-toolbar-wrap .k-dropzone em,.k-toolbar-wrap .k-upload-files{display:none}.k-toolbar-wrap .k-dropzone{border:0;padding:0}.k-toolbar-wrap .k-dropzone-active{text-align:center}.k-toolbar-wrap .k-dropzone-active em{display:inline;margin:0;font-size:5em;font-style:normal}.k-toolbar-wrap .k-dropzone-active .k-upload-button{display:none}.k-filebrowser-dropzone{z-index:10010;filter:alpha(opacity=40);opacity:.4;position:fixed}.k-search-wrap{position:relative;float:right;width:20%;padding:0}.k-search-wrap label{position:absolute;top:0;left:4px;line-height:20px;font-style:italic}.k-search-wrap input.k-input{padding-left:0;padding-right:0}.k-search-wrap .k-search{position:absolute;top:4px;right:2px;margin:0}.k-breadcrumbs{position:relative;float:left;width:79%}.k-breadcrumbs-wrap{position:absolute;top:3px;left:0;z-index:1;padding-left:5px;line-height:18px}.k-breadcrumbs>.k-input{width:100%;font-size:inherit;font-family:inherit;border:0}.k-breadcrumbs .k-link,.k-breadcrumbs-wrap .k-icon{margin-top:0;text-decoration:none;vertical-align:middle;position:static}.k-breadcrumbs .k-link:hover{text-decoration:underline}.k-filebrowser .k-breadcrumbs .k-i-seek-w{text-decoration:none;cursor:default}.k-filebrowser .k-filebrowser-toolbar{border-style:solid;border-width:1px;margin:8px 0 0;padding:.25em;line-height:23px;white-space:nowrap}.k-filebrowser .k-filebrowser-toolbar .k-button.k-state-disabled{display:none}.k-filebrowser .k-toolbar-wrap{float:left}.k-filebrowser .k-tiles-arrange{float:right}.k-filebrowser .k-tiles-arrange .k-dropdown{width:75px}.k-filebrowser .k-upload{float:left;z-index:10010;border-width:0;background-color:transparent}.k-filebrowser .k-upload .k-upload-status{display:none}.k-filebrowser .k-upload .k-upload-button{width:auto;margin-left:0;vertical-align:top}.k-filebrowser .k-upload .k-icon{vertical-align:bottom}.k-ie7 .k-filebrowser .k-upload-button,.k-ie7 .k-filebrowser .k-upload .k-icon{vertical-align:baseline;position:relative;top:1px}.k-ie7 .k-filebrowser .k-upload .k-icon{top:2px}.k-ie7 .k-filebrowser .k-filebrowser-toolbar .k-button-icon{vertical-align:middle}.k-tiles{clear:both;height:390px;border-style:solid;border-width:1px;border-top-width:0;margin:0 0 1.4em;padding:9px;overflow:auto;line-height:1.2}.k-tile{float:left;width:223px;height:88px;overflow:hidden;border-style:solid;border-width:1px;margin:1px;padding:0 0 4px;background-position:0 100px;background-repeat:repeat-x;cursor:pointer}.k-tiles li.k-state-hover,.k-tiles li.k-state-selected{background-position:0 center}.k-filebrowser .k-thumb{float:left;display:inline;width:80px;height:80px;margin:4px 10px 0 4px;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.k-filebrowser .k-file{width:80px;height:80px}.k-filebrowser .k-image{margin:2px 0 0 2px}.k-filebrowser .k-folder{width:80px;height:80px;background-position:0 -200px;background-repeat:no-repeat}.k-filebrowser .k-loading{margin:35px 0 0 33px}.k-tile strong,.k-tile input{margin:10px 0 4px;font-weight:normal}.k-tile strong{float:left;width:120px;overflow:hidden;text-overflow:ellipsis}.k-tile input{width:100px}.k-tile strong,.k-tile input,.k-tile .k-filesize{display:block}.k-filebrowser .k-form-text-row{text-align:right}.k-filebrowser .k-form-text-row label{width:14%}.k-filebrowser .k-form-text-row input{width:80%}.k-tile-empty{margin:160px 0 0}.k-tile-empty .k-dialog-upload{font-weight:bold;font-size:120%}.k-tile-empty strong{display:block;margin:0 0 .2em;font-size:3em;font-weight:normal}.k-tile-empty,.k-tile-empty .k-button-wrapper{text-align:center}.k-ie7 .k-button,.k-ie7 .k-grid-filter,.k-ie7 .k-header-column-menu,.k-ie7 .k-grid .k-pager-numbers,.k-ie7 .k-grid .k-status-text,.k-ie7 .k-pager-numbers .k-link,.k-ie7 .k-pager-numbers span,.k-ie7 .k-pager-numbers input,.k-ie7 .k-grouping-row p,.k-ie7 .k-grouping-header a,.k-ie7 .k-grouping-header .k-group-indicator,.k-ie7 .k-grouping-header .k-link,.k-ie7 .k-grouping-header .k-button,.k-ie7 .k-grid-actions,.k-ie7 .k-edit-label,.k-ie7 .k-edit-field,.k-ie7 .k-edit-form-container .editor-label,.k-ie7 .k-edit-form-container .editor-field,.k-ie7 .k-combobox,.k-ie7 .k-dropdown,.k-ie7 .k-selectbox,.k-ie7 .k-picker-wrap .k-select,.k-ie7 .k-dropdown-wrap .k-select,.k-ie7 .k-numerictextbox,.k-ie7 .k-timepicker,.k-ie7 .k-datepicker,.k-ie7 .k-datetimepicker,.k-ie7 .k-colorpicker,.k-ie7 .k-calendar,.k-ie7 .k-calendar .k-nav-fast,.k-ie7 .k-treeview .k-icon,.k-ie7 .k-treeview .k-image,.k-ie7 .k-treeview .k-sprite,.k-ie7 .k-treeview .k-in,.k-ie7 .k-colorpicker,.k-ie7 .k-colorpicker .k-tool-icon,.k-ie7 .k-palette.k-reset,.k-ie7 .k-editor-dialog .k-button,.k-ie7 .k-form-text-row label,.k-ie7 .k-tabstrip-items .k-item,.k-ie7 .k-tabstrip-items .k-link,.k-ie7 .k-slider-horizontal,.k-ie7 .k-splitbar-draggable-vertical .k-resize-handle,.k-ie7 .k-splitbar-draggable-horizontal .k-resize-handle,.k-ie7 .t-filename,.k-ie7 div.k-window,.k-ie7 .k-window-titlebar .k-window-action,.k-ie7 .k-scheduler-toolbar>ul>li,.k-ie7 .k-scheduler-footer>ul>li,.k-ie7 .k-scheduler-toolbar>ul>li,.k-ie7 .k-scheduler-footer>ul>li,.k-ie7 .k-event:hover .k-event-delete,.k-ie7 tr:hover>td>.k-task .k-event-delete,.k-ie7 .k-progressbar,.k-ie7 .k-progressbar-horizontal .k-item,.k-ie7 .k-progress-status,.k-ie7 .k-grid-header-locked,.k-ie7 .k-grid-content-locked,.k-ie7 .k-grid-header-locked+.k-grid-header-wrap,.k-ie7 .k-grid-content-locked+.k-grid-content,.k-ie7 .k-grid-footer-locked,.k-ie7 .k-gantt-layout,.k-ie7 .k-gantt-toolbar>ul>li,.k-ie7 .k-gantt-toolbar .k-link,.k-ie7 .k-task-summary,.k-ie7 .k-task-actions:first-child>.k-link,.k-ie7 .k-task-wrap:hover .k-task-delete,.k-ie7 .k-task-wrap-active .k-task-delete{display:inline;zoom:1}.k-ie7 .k-treeview .k-item,.k-ie7 .k-treeview .k-group{zoom:1}.k-ie7 .k-edit-field>.k-textbox{text-indent:0}.km-root,.km-pane,.km-pane-wrapper{width:100%;height:100%;-ms-touch-action:none;-ms-content-zooming:none;-ms-user-select:none;-webkit-user-select:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none}.km-pane-wrapper{position:absolute;width:100%;height:100%}.km-pane,.km-shim{font-family:sans-serif}.km-pane{overflow-x:hidden}.km-view{top:0;left:0;position:absolute;display:-moz-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;width:100%;-moz-box-orient:vertical;-webkit-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:stretch;align-items:stretch;-webkit-align-content:stretch;align-content:stretch;vertical-align:top}.k-ff .km-view,.k-ff .km-pane{overflow:hidden}.k-ff18 .km-view,.k-ff18 .km-pane,.k-ff19 .km-view,.k-ff19 .km-pane,.k-ff20 .km-view,.k-ff20 .km-pane,.k-ff21 .km-view,.k-ff21 .km-pane{position:relative}.k-ff .km-view{display:-moz-inline-box;display:flex}.km-content{min-height:1px;-moz-box-flex:1;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-moz-box-align:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;flex-align:stretch;display:block;width:auto;overflow:hidden;position:relative}.km-actionsheet>li{list-style-type:none;padding:inherit 1em;line-height:2em}.km-actionsheet{padding:0;margin:0}.km-shim{left:0;bottom:0;position:fixed;width:100%;height:100%;background:rgba(0,0,0,0.6);z-index:10001}.km-shim .k-animation-container,.km-actionsheet-wrapper{width:100%;-webkit-box-shadow:none;box-shadow:none;border:0}.km-shim .k-animation-container{width:auto}.km-pane-wrapper .k-grid-edit-form>.km-header,.km-pane-wrapper .k-grid-column-menu>.km-header,.km-pane-wrapper .k-grid-filter-menu>.km-header,.km-pane-wrapper .k-scheduler-edit-form>.km-header{border-style:solid;border-width:1px;padding:.3em .6em;text-align:center;width:auto;line-height:2em}.k-ie .km-pane-wrapper .k-scheduler>.k-scheduler-toolbar,.k-ie .km-pane-wrapper .k-scheduler>.k-scheduler-footer{line-height:2em}.km-pane-wrapper .k-grid-edit-form .k-multiselect,.km-pane-wrapper .k-scheduler-edit-form .k-multiselect{width:15em}.km-pane-wrapper .k-grid-edit-form .k-dropdown-wrap,.km-pane-wrapper .k-scheduler-edit-form .k-dropdown-wrap{display:block}.km-pane-wrapper .k-grid-column-menu .k-done,.km-pane-wrapper .k-grid-filter-menu .k-submit,.km-pane-wrapper .k-grid-edit-form .k-grid-update,.km-pane-wrapper .k-scheduler-edit-form .k-scheduler-update{float:right}.km-pane-wrapper .k-grid-filter-menu .k-cancel,.km-pane-wrapper .k-grid-edit-form .k-grid-cancel,.km-pane-wrapper .k-scheduler-edit-form .k-scheduler-cancel{float:left}.km-pane-wrapper .k-scheduler-edit-form .k-scheduler-delete,*:not(.km-pane)>.km-shim .km-actionsheet .k-button{display:block;text-align:center}*:not(.km-pane)>.km-shim .km-actionsheet .k-button{font-size:1.4em;margin:.3em 1em}*:not(.km-pane)>.km-shim .km-actionsheet-title{text-align:center;line-height:3em;margin-bottom:-0.3em}*:not(.km-pane)>.km-shim>.k-animation-container{margin:0!important;padding:0!important;left:0!important}.km-pane-wrapper>div.km-pane{-webkit-box-shadow:none;box-shadow:none;font-weight:normal}.km-pane-wrapper .k-popup-edit-form .km-content>.km-scroll-container,.km-pane-wrapper .k-grid-edit-form .km-content>.km-scroll-container,.km-pane-wrapper .k-grid-column-menu .km-content>.km-scroll-container,.km-pane-wrapper .k-grid-filter-menu .km-content>.km-scroll-container{position:absolute;width:100%;min-height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.km-pane-wrapper .k-mobile-list .k-edit-field{width:74%}.km-pane-wrapper .k-grid-edit-form .k-popup-edit-form,.km-pane-wrapper .k-grid-edit-form .k-edit-form-container{width:auto}.km-pane-wrapper .k-filter-menu .k-button{width:100%;margin:0}.k-grid-mobile{border-width:0}.k-grid-mobile .k-resize-handle-inner{position:absolute;top:50%;margin-top:-10px;left:-7px;width:17px;height:17px;border-style:solid;border-width:2px;border-radius:10px}.k-grid-mobile .k-resize-handle-inner:before{content:"";position:absolute;top:50%;margin-top:-3px;left:1px;width:6px;height:6px;background-position:-5px -53px}.k-grid-mobile .k-resize-handle-inner:after{content:"";position:absolute;top:50%;margin-top:-3px;right:1px;width:6px;height:6px;background-position:-5px -21px}.km-pane-wrapper .km-pane *{-webkit-background-clip:border-box;background-clip:border-box}.km-pane-wrapper .km-pane .k-mobile-list,.km-pane-wrapper .k-mobile-list ul{padding:0;margin:0;list-style-type:none;border-radius:0;background:0}.km-pane-wrapper .km-switch{top:50%;right:.8rem;position:absolute;margin-top:-1.1rem}.km-pane-wrapper .k-mobile-list .k-state-disabled{opacity:1}.km-pane-wrapper .k-mobile-list .k-state-disabled>*{opacity:.7}.km-pane-wrapper .k-mobile-list .k-item,.km-pane-wrapper .k-mobile-list .k-item>.k-link,.km-pane-wrapper .k-mobile-list .k-item>.k-label,.km-pane-wrapper .k-mobile-list .k-edit-label{display:block;position:relative;list-style-type:none;vertical-align:middle;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:.5em 0 .5em 1em;font-size:1em}.km-pane-wrapper .k-edit-form-container,.km-pane-wrapper .k-scheduler-edit-form .km-scroll-container{padding-top:1em;width:100%}.km-pane-wrapper .k-mobile-list .k-edit-label{position:absolute;margin:0;float:none;clear:none;width:100%}.km-pane-wrapper .k-mobile-list .k-edit-field,.km-pane-wrapper .k-mobile-list .k-edit-label label{display:block;text-align:left;overflow:hidden;text-overflow:ellipsis;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:.1em 0;margin:0}.km-pane-wrapper .k-mobile-list .k-item,.km-pane-wrapper .k-mobile-list .k-edit-field,.km-pane-wrapper .k-mobile-list .k-edit-label{font-size:1em;line-height:1.6em;overflow:hidden}.km-pane-wrapper .k-mobile-list .k-edit-field,.km-pane-wrapper .k-mobile-list .k-edit-label{width:100%;float:none;clear:none;min-height:2.7em}.km-pane-wrapper .km-header .k-icon,.km-pane-wrapper .k-grid-toolbar .k-icon,.km-pane-wrapper .k-grid-edit .k-icon,.km-pane-wrapper .k-grid-delete .k-icon{display:none}.km-pane-wrapper .k-mobile-list .k-edit-field{padding:.5em 0}.km-pane-wrapper .k-mobile-list .k-scheduler-toolbar{padding:.3em 0}.km-pane-wrapper .k-mobile-list .k-scheduler-toolbar ul li{line-height:2em}.km-pane-wrapper .k-mobile-list .k-item>*{line-height:normal}.km-pane-wrapper .k-mobile-list .k-edit-buttons,.km-pane-wrapper .k-mobile-list .k-button-container{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:.5em 1em;margin:0}.km-pane-wrapper .k-mobile-list>ul>li>.k-link,.km-pane-wrapper .k-mobile-list .k-filter-help-text>li>.k-link,.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-label:nth-child(3),.km-pane-wrapper #recurrence .km-scroll-container>.k-edit-label:first-child{display:block;padding:.2em 1em;font-size:.95em;position:-webkit-sticky;margin:0;font-weight:normal;line-height:2em;background:transparent;border-top:1em solid transparent}.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-label:nth-child(3),.km-pane-wrapper #recurrence .km-scroll-container>.k-edit-label:first-child{position:relative}.km-pane-wrapper .k-mobile-list .k-item:first-child{border-top:0}.km-pane-wrapper .k-mobile-list .k-item:last-child{border-bottom:0}.km-pane-wrapper .k-mobile-list .k-item>.k-link,.km-pane-wrapper .k-mobile-list .k-item>.k-label{line-height:inherit;text-decoration:none;margin:-0.5em 0 -0.5em -1em}.k-check[type=checkbox],.k-check[type=radio],.k-mobile-list .k-edit-field [type=checkbox],.k-mobile-list .k-edit-field [type=radio]{appearance:none;-moz-appearance:none;-webkit-appearance:none;background-color:transparent}.km-pane-wrapper .k-mobile-list .k-link .k-check,.km-pane-wrapper .k-mobile-list .k-label .k-check,.k-mobile-list .k-edit-field [type=checkbox],.k-mobile-list .k-edit-field [type=radio]{border:0;font-size:inherit;width:13px;height:13px;margin:.26em 1em .26em 0}.k-ie .km-pane-wrapper .k-icon,.k-ie .km-pane-wrapper .k-mobile-list .k-link .k-check,.k-ie .km-pane-wrapper .k-mobile-list .k-label .k-check,.k-ie .k-mobile-list .k-edit-field [type=checkbox],.k-ie .k-mobile-list .k-edit-field [type=radio]{font-size:inherit;text-indent:-9999px;width:1.01em;height:1em}@media screen and (-ms-high-contrast:active) and (-ms-high-contrast:none){.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n{background-position:0 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-button:active .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n{background-position:-1em 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-button:active .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-n{background-position:0 0}.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s{background-position:0 -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-button:active .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s{background-position:-1em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-button:active .km-pane-wrapper .k-numerictextbox .k-select .k-link span.k-i-arrow-s{background-position:0 -32px}.km-pane-wrapper .k-state-selected .k-i-arrow-n{background-position:-1em 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-button:active .km-pane-wrapper .k-state-selected .k-i-arrow-n{background-position:-2em 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-state-selected .k-i-arrow-n,.k-button:active .km-pane-wrapper .k-state-selected .k-i-arrow-n{background-position:-16px 0}.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n{background-position:-1em 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-button:active .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-button:active .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n{background-position:-2em 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n,.k-button:active .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n,.k-button:active .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n{background-position:-16px 0}.km-pane-wrapper .k-state-selected .k-i-arrow-s{background-position:-1em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-button:active .km-pane-wrapper .k-state-selected .k-i-arrow-s{background-position:-2em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-state-selected .k-i-arrow-s,.k-button:active .km-pane-wrapper .k-state-selected .k-i-arrow-s{background-position:-16px -32px}.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s{background-position:-1em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-button:active .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-button:active .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s{background-position:-2em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s,.k-button:active .km-pane-wrapper .k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s,.k-button:active .km-pane-wrapper .k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s{background-position:-16px -32px}.km-pane-wrapper .k-i-arrow-n{background-position:0 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-i-arrow-n,.k-button:active .km-pane-wrapper .k-i-arrow-n{background-position:-1em 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-n,.k-state-hover>.km-pane-wrapper .k-i-arrow-n,.k-state-hover>*>.km-pane-wrapper .k-i-arrow-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-n,.k-textbox:hover .km-pane-wrapper .k-i-arrow-n,.k-button:active .km-pane-wrapper .k-i-arrow-n{background-position:0 0}.km-pane-wrapper .k-i-arrow-e{background-position:0 -1em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-e,.k-state-hover>.km-pane-wrapper .k-i-arrow-e,.k-state-hover>*>.km-pane-wrapper .k-i-arrow-e,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-e,.k-textbox:hover .km-pane-wrapper .k-i-arrow-e,.k-button:active .km-pane-wrapper .k-i-arrow-e{background-position:-1em -1em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-e,.k-state-hover>.km-pane-wrapper .k-i-arrow-e,.k-state-hover>*>.km-pane-wrapper .k-i-arrow-e,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-e,.k-textbox:hover .km-pane-wrapper .k-i-arrow-e,.k-button:active .km-pane-wrapper .k-i-arrow-e{background-position:0 -16px}.k-rtl .km-pane-wrapper .k-i-arrow-w{background-position:0 -1em}.k-rtl .k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-w,.k-rtl .k-state-hover>.km-pane-wrapper .k-i-arrow-w,.k-rtl .k-state-hover>*>.km-pane-wrapper .k-i-arrow-w,.k-rtl .k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-w,.k-rtl .k-textbox:hover .km-pane-wrapper .k-i-arrow-w,.k-rtl .k-button:active .km-pane-wrapper .k-i-arrow-w{background-position:-1em -1em}.k-rtl .k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-w,.k-rtl .k-state-hover>.km-pane-wrapper .k-i-arrow-w,.k-rtl .k-state-hover>*>.km-pane-wrapper .k-i-arrow-w,.k-rtl .k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-w,.k-rtl .k-textbox:hover .km-pane-wrapper .k-i-arrow-w,.k-rtl .k-button:active .km-pane-wrapper .k-i-arrow-w{background-position:0 -16px}.km-pane-wrapper .k-i-arrow-s{background-position:0 -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-i-arrow-s,.k-button:active .km-pane-wrapper .k-i-arrow-s{background-position:-1em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-s,.k-state-hover>.km-pane-wrapper .k-i-arrow-s,.k-state-hover>*>.km-pane-wrapper .k-i-arrow-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-s,.k-textbox:hover .km-pane-wrapper .k-i-arrow-s,.k-button:active .km-pane-wrapper .k-i-arrow-s{background-position:0 -32px}.km-pane-wrapper .k-i-arrow-w{background-position:0 -3em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-w,.k-state-hover>.km-pane-wrapper .k-i-arrow-w,.k-state-hover>*>.km-pane-wrapper .k-i-arrow-w,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-w,.k-textbox:hover .km-pane-wrapper .k-i-arrow-w,.k-button:active .km-pane-wrapper .k-i-arrow-w{background-position:-1em -3em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-w,.k-state-hover>.km-pane-wrapper .k-i-arrow-w,.k-state-hover>*>.km-pane-wrapper .k-i-arrow-w,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-w,.k-textbox:hover .km-pane-wrapper .k-i-arrow-w,.k-button:active .km-pane-wrapper .k-i-arrow-w{background-position:0 -48px}.k-rtl .km-pane-wrapper .k-i-arrow-e{background-position:0 -3em}.k-rtl .k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-e,.k-rtl .k-state-hover>.km-pane-wrapper .k-i-arrow-e,.k-rtl .k-state-hover>*>.km-pane-wrapper .k-i-arrow-e,.k-rtl .k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-e,.k-rtl .k-textbox:hover .km-pane-wrapper .k-i-arrow-e,.k-rtl .k-button:active .km-pane-wrapper .k-i-arrow-e{background-position:-1em -3em}.k-rtl .k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrow-e,.k-rtl .k-state-hover>.km-pane-wrapper .k-i-arrow-e,.k-rtl .k-state-hover>*>.km-pane-wrapper .k-i-arrow-e,.k-rtl .k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrow-e,.k-rtl .k-textbox:hover .km-pane-wrapper .k-i-arrow-e,.k-rtl .k-button:active .km-pane-wrapper .k-i-arrow-e{background-position:0 -48px}.km-pane-wrapper .k-i-seek-n{background-position:0 -4em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-n,.k-state-hover>.km-pane-wrapper .k-i-seek-n,.k-state-hover>*>.km-pane-wrapper .k-i-seek-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-n,.k-textbox:hover .km-pane-wrapper .k-i-seek-n,.k-button:active .km-pane-wrapper .k-i-seek-n{background-position:-1em -4em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-n,.k-state-hover>.km-pane-wrapper .k-i-seek-n,.k-state-hover>*>.km-pane-wrapper .k-i-seek-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-n,.k-textbox:hover .km-pane-wrapper .k-i-seek-n,.k-button:active .km-pane-wrapper .k-i-seek-n{background-position:0 -64px}.km-pane-wrapper .k-i-seek-e{background-position:0 -5em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-e,.k-state-hover>.km-pane-wrapper .k-i-seek-e,.k-state-hover>*>.km-pane-wrapper .k-i-seek-e,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-e,.k-textbox:hover .km-pane-wrapper .k-i-seek-e,.k-button:active .km-pane-wrapper .k-i-seek-e{background-position:-1em -5em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-e,.k-state-hover>.km-pane-wrapper .k-i-seek-e,.k-state-hover>*>.km-pane-wrapper .k-i-seek-e,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-e,.k-textbox:hover .km-pane-wrapper .k-i-seek-e,.k-button:active .km-pane-wrapper .k-i-seek-e{background-position:0 -80px}.k-rtl .km-pane-wrapper .k-i-seek-w{background-position:0 -5em}.k-rtl .k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-w,.k-rtl .k-state-hover>.km-pane-wrapper .k-i-seek-w,.k-rtl .k-state-hover>*>.km-pane-wrapper .k-i-seek-w,.k-rtl .k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-w,.k-rtl .k-textbox:hover .km-pane-wrapper .k-i-seek-w,.k-rtl .k-button:active .km-pane-wrapper .k-i-seek-w{background-position:-1em -5em}.k-rtl .k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-w,.k-rtl .k-state-hover>.km-pane-wrapper .k-i-seek-w,.k-rtl .k-state-hover>*>.km-pane-wrapper .k-i-seek-w,.k-rtl .k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-w,.k-rtl .k-textbox:hover .km-pane-wrapper .k-i-seek-w,.k-rtl .k-button:active .km-pane-wrapper .k-i-seek-w{background-position:0 -80px}.km-pane-wrapper .k-i-seek-s{background-position:0 -6em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-s,.k-state-hover>.km-pane-wrapper .k-i-seek-s,.k-state-hover>*>.km-pane-wrapper .k-i-seek-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-s,.k-textbox:hover .km-pane-wrapper .k-i-seek-s,.k-button:active .km-pane-wrapper .k-i-seek-s{background-position:-1em -6em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-s,.k-state-hover>.km-pane-wrapper .k-i-seek-s,.k-state-hover>*>.km-pane-wrapper .k-i-seek-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-s,.k-textbox:hover .km-pane-wrapper .k-i-seek-s,.k-button:active .km-pane-wrapper .k-i-seek-s{background-position:0 -96px}.km-pane-wrapper .k-i-seek-w{background-position:0 -7em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-w,.k-state-hover>.km-pane-wrapper .k-i-seek-w,.k-state-hover>*>.km-pane-wrapper .k-i-seek-w,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-w,.k-textbox:hover .km-pane-wrapper .k-i-seek-w,.k-button:active .km-pane-wrapper .k-i-seek-w{background-position:-1em -7em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-w,.k-state-hover>.km-pane-wrapper .k-i-seek-w,.k-state-hover>*>.km-pane-wrapper .k-i-seek-w,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-w,.k-textbox:hover .km-pane-wrapper .k-i-seek-w,.k-button:active .km-pane-wrapper .k-i-seek-w{background-position:0 -112px}.k-rtl .km-pane-wrapper .k-i-seek-e{background-position:0 -7em}.k-rtl .k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-e,.k-rtl .k-state-hover>.km-pane-wrapper .k-i-seek-e,.k-rtl .k-state-hover>*>.km-pane-wrapper .k-i-seek-e,.k-rtl .k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-e,.k-rtl .k-textbox:hover .km-pane-wrapper .k-i-seek-e,.k-rtl .k-button:active .km-pane-wrapper .k-i-seek-e{background-position:-1em -7em}.k-rtl .k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-seek-e,.k-rtl .k-state-hover>.km-pane-wrapper .k-i-seek-e,.k-rtl .k-state-hover>*>.km-pane-wrapper .k-i-seek-e,.k-rtl .k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-seek-e,.k-rtl .k-textbox:hover .km-pane-wrapper .k-i-seek-e,.k-rtl .k-button:active .km-pane-wrapper .k-i-seek-e{background-position:0 -112px}.km-pane-wrapper .k-i-arrowhead-n{background-position:0 -16em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrowhead-n,.k-state-hover>.km-pane-wrapper .k-i-arrowhead-n,.k-state-hover>*>.km-pane-wrapper .k-i-arrowhead-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrowhead-n,.k-textbox:hover .km-pane-wrapper .k-i-arrowhead-n,.k-button:active .km-pane-wrapper .k-i-arrowhead-n{background-position:-1em -16em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrowhead-n,.k-state-hover>.km-pane-wrapper .k-i-arrowhead-n,.k-state-hover>*>.km-pane-wrapper .k-i-arrowhead-n,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrowhead-n,.k-textbox:hover .km-pane-wrapper .k-i-arrowhead-n,.k-button:active .km-pane-wrapper .k-i-arrowhead-n{background-position:0 -256px}.km-pane-wrapper .k-i-arrowhead-e{background-position:0 -17em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrowhead-e,.k-state-hover>.km-pane-wrapper .k-i-arrowhead-e,.k-state-hover>*>.km-pane-wrapper .k-i-arrowhead-e,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrowhead-e,.k-textbox:hover .km-pane-wrapper .k-i-arrowhead-e,.k-button:active .km-pane-wrapper .k-i-arrowhead-e{background-position:-1em -17em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrowhead-e,.k-state-hover>.km-pane-wrapper .k-i-arrowhead-e,.k-state-hover>*>.km-pane-wrapper .k-i-arrowhead-e,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrowhead-e,.k-textbox:hover .km-pane-wrapper .k-i-arrowhead-e,.k-button:active .km-pane-wrapper .k-i-arrowhead-e{background-position:0 -272px}.km-pane-wrapper .k-i-arrowhead-s{background-position:0 -18em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrowhead-s,.k-state-hover>.km-pane-wrapper .k-i-arrowhead-s,.k-state-hover>*>.km-pane-wrapper .k-i-arrowhead-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrowhead-s,.k-textbox:hover .km-pane-wrapper .k-i-arrowhead-s,.k-button:active .km-pane-wrapper .k-i-arrowhead-s{background-position:-1em -18em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrowhead-s,.k-state-hover>.km-pane-wrapper .k-i-arrowhead-s,.k-state-hover>*>.km-pane-wrapper .k-i-arrowhead-s,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrowhead-s,.k-textbox:hover .km-pane-wrapper .k-i-arrowhead-s,.k-button:active .km-pane-wrapper .k-i-arrowhead-s{background-position:0 -288px}.km-pane-wrapper .k-i-arrowhead-w{background-position:0 -19em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrowhead-w,.k-state-hover>.km-pane-wrapper .k-i-arrowhead-w,.k-state-hover>*>.km-pane-wrapper .k-i-arrowhead-w,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrowhead-w,.k-textbox:hover .km-pane-wrapper .k-i-arrowhead-w,.k-button:active .km-pane-wrapper .k-i-arrowhead-w{background-position:-1em -19em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-arrowhead-w,.k-state-hover>.km-pane-wrapper .k-i-arrowhead-w,.k-state-hover>*>.km-pane-wrapper .k-i-arrowhead-w,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-arrowhead-w,.k-textbox:hover .km-pane-wrapper .k-i-arrowhead-w,.k-button:active .km-pane-wrapper .k-i-arrowhead-w{background-position:0 -304px}.km-pane-wrapper .k-i-expand,.km-pane-wrapper .k-plus,.km-pane-wrapper .k-plus-disabled{background-position:0 -12em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-expand,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-plus,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-plus-disabled,.k-state-hover>.km-pane-wrapper .k-i-expand,.k-state-hover>.km-pane-wrapper .k-plus,.k-state-hover>.km-pane-wrapper .k-plus-disabled,.k-state-hover>*>.km-pane-wrapper .k-i-expand,.k-state-hover>*>.km-pane-wrapper .k-plus,.k-state-hover>*>.km-pane-wrapper .k-plus-disabled,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-expand,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-plus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-plus-disabled,.k-textbox:hover .km-pane-wrapper .k-i-expand,.k-textbox:hover .km-pane-wrapper .k-plus,.k-textbox:hover .km-pane-wrapper .k-plus-disabled,.k-button:active .km-pane-wrapper .k-i-expand,.k-button:active .km-pane-wrapper .k-plus,.k-button:active .km-pane-wrapper .k-plus-disabled{background-position:-1em -12em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-expand,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-plus,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-plus-disabled,.k-state-hover>.km-pane-wrapper .k-i-expand,.k-state-hover>.km-pane-wrapper .k-plus,.k-state-hover>.km-pane-wrapper .k-plus-disabled,.k-state-hover>*>.km-pane-wrapper .k-i-expand,.k-state-hover>*>.km-pane-wrapper .k-plus,.k-state-hover>*>.km-pane-wrapper .k-plus-disabled,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-expand,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-plus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-plus-disabled,.k-textbox:hover .km-pane-wrapper .k-i-expand,.k-textbox:hover .km-pane-wrapper .k-plus,.k-textbox:hover .km-pane-wrapper .k-plus-disabled,.k-button:active .km-pane-wrapper .k-i-expand,.k-button:active .km-pane-wrapper .k-plus,.k-button:active .km-pane-wrapper .k-plus-disabled{background-position:0 -192px}.km-pane-wrapper .k-i-expand-w,.k-rtl .km-pane-wrapper .k-i-expand,.k-rtl .km-pane-wrapper .k-plus,.k-rtl .km-pane-wrapper .k-plus-disabled{background-position:0 -13em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-expand-w,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-i-expand,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-plus,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-plus-disabled,.k-state-hover>.km-pane-wrapper .k-i-expand-w,.k-state-hover>.k-rtl .km-pane-wrapper .k-i-expand,.k-state-hover>.k-rtl .km-pane-wrapper .k-plus,.k-state-hover>.k-rtl .km-pane-wrapper .k-plus-disabled,.k-state-hover>*>.km-pane-wrapper .k-i-expand-w,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-i-expand,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-plus,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-plus-disabled,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-expand-w,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-i-expand,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-plus,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-plus-disabled,.k-textbox:hover .km-pane-wrapper .k-i-expand-w,.k-textbox:hover .k-rtl .km-pane-wrapper .k-i-expand,.k-textbox:hover .k-rtl .km-pane-wrapper .k-plus,.k-textbox:hover .k-rtl .km-pane-wrapper .k-plus-disabled,.k-button:active .km-pane-wrapper .k-i-expand-w,.k-button:active .k-rtl .km-pane-wrapper .k-i-expand,.k-button:active .k-rtl .km-pane-wrapper .k-plus,.k-button:active .k-rtl .km-pane-wrapper .k-plus-disabled{background-position:-1em -13em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-expand-w,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-i-expand,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-plus,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-plus-disabled,.k-state-hover>.km-pane-wrapper .k-i-expand-w,.k-state-hover>.k-rtl .km-pane-wrapper .k-i-expand,.k-state-hover>.k-rtl .km-pane-wrapper .k-plus,.k-state-hover>.k-rtl .km-pane-wrapper .k-plus-disabled,.k-state-hover>*>.km-pane-wrapper .k-i-expand-w,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-i-expand,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-plus,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-plus-disabled,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-expand-w,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-i-expand,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-plus,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-plus-disabled,.k-textbox:hover .km-pane-wrapper .k-i-expand-w,.k-textbox:hover .k-rtl .km-pane-wrapper .k-i-expand,.k-textbox:hover .k-rtl .km-pane-wrapper .k-plus,.k-textbox:hover .k-rtl .km-pane-wrapper .k-plus-disabled,.k-button:active .km-pane-wrapper .k-i-expand-w,.k-button:active .k-rtl .km-pane-wrapper .k-i-expand,.k-button:active .k-rtl .km-pane-wrapper .k-plus,.k-button:active .k-rtl .km-pane-wrapper .k-plus-disabled{background-position:0 -208px}.km-pane-wrapper .k-i-collapse,.km-pane-wrapper .k-minus,.km-pane-wrapper .k-minus-disabled{background-position:0 -14em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-collapse,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-minus,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-minus-disabled,.k-state-hover>.km-pane-wrapper .k-i-collapse,.k-state-hover>.km-pane-wrapper .k-minus,.k-state-hover>.km-pane-wrapper .k-minus-disabled,.k-state-hover>*>.km-pane-wrapper .k-i-collapse,.k-state-hover>*>.km-pane-wrapper .k-minus,.k-state-hover>*>.km-pane-wrapper .k-minus-disabled,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-collapse,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-minus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-minus-disabled,.k-textbox:hover .km-pane-wrapper .k-i-collapse,.k-textbox:hover .km-pane-wrapper .k-minus,.k-textbox:hover .km-pane-wrapper .k-minus-disabled,.k-button:active .km-pane-wrapper .k-i-collapse,.k-button:active .km-pane-wrapper .k-minus,.k-button:active .km-pane-wrapper .k-minus-disabled{background-position:-1em -14em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-collapse,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-minus,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-minus-disabled,.k-state-hover>.km-pane-wrapper .k-i-collapse,.k-state-hover>.km-pane-wrapper .k-minus,.k-state-hover>.km-pane-wrapper .k-minus-disabled,.k-state-hover>*>.km-pane-wrapper .k-i-collapse,.k-state-hover>*>.km-pane-wrapper .k-minus,.k-state-hover>*>.km-pane-wrapper .k-minus-disabled,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-collapse,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-minus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-minus-disabled,.k-textbox:hover .km-pane-wrapper .k-i-collapse,.k-textbox:hover .km-pane-wrapper .k-minus,.k-textbox:hover .km-pane-wrapper .k-minus-disabled,.k-button:active .km-pane-wrapper .k-i-collapse,.k-button:active .km-pane-wrapper .k-minus,.k-button:active .km-pane-wrapper .k-minus-disabled{background-position:0 -224px}.km-pane-wrapper .k-i-collapse-w,.k-rtl .km-pane-wrapper .k-i-collapse,.k-rtl .km-pane-wrapper .k-minus,.k-rtl .km-pane-wrapper .k-minus-disabled{background-position:0 -15em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-collapse-w,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-i-collapse,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-minus,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-minus-disabled,.k-state-hover>.km-pane-wrapper .k-i-collapse-w,.k-state-hover>.k-rtl .km-pane-wrapper .k-i-collapse,.k-state-hover>.k-rtl .km-pane-wrapper .k-minus,.k-state-hover>.k-rtl .km-pane-wrapper .k-minus-disabled,.k-state-hover>*>.km-pane-wrapper .k-i-collapse-w,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-i-collapse,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-minus,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-minus-disabled,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-collapse-w,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-i-collapse,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-minus,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-minus-disabled,.k-textbox:hover .km-pane-wrapper .k-i-collapse-w,.k-textbox:hover .k-rtl .km-pane-wrapper .k-i-collapse,.k-textbox:hover .k-rtl .km-pane-wrapper .k-minus,.k-textbox:hover .k-rtl .km-pane-wrapper .k-minus-disabled,.k-button:active .km-pane-wrapper .k-i-collapse-w,.k-button:active .k-rtl .km-pane-wrapper .k-i-collapse,.k-button:active .k-rtl .km-pane-wrapper .k-minus,.k-button:active .k-rtl .km-pane-wrapper .k-minus-disabled{background-position:-1em -15em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-collapse-w,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-i-collapse,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-minus,.k-link:not(.k-state-disabled):hover>.k-rtl .km-pane-wrapper .k-minus-disabled,.k-state-hover>.km-pane-wrapper .k-i-collapse-w,.k-state-hover>.k-rtl .km-pane-wrapper .k-i-collapse,.k-state-hover>.k-rtl .km-pane-wrapper .k-minus,.k-state-hover>.k-rtl .km-pane-wrapper .k-minus-disabled,.k-state-hover>*>.km-pane-wrapper .k-i-collapse-w,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-i-collapse,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-minus,.k-state-hover>*>.k-rtl .km-pane-wrapper .k-minus-disabled,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-collapse-w,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-i-collapse,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-minus,.k-button:not(.k-state-disabled):hover .k-rtl .km-pane-wrapper .k-minus-disabled,.k-textbox:hover .km-pane-wrapper .k-i-collapse-w,.k-textbox:hover .k-rtl .km-pane-wrapper .k-i-collapse,.k-textbox:hover .k-rtl .km-pane-wrapper .k-minus,.k-textbox:hover .k-rtl .km-pane-wrapper .k-minus-disabled,.k-button:active .km-pane-wrapper .k-i-collapse-w,.k-button:active .k-rtl .km-pane-wrapper .k-i-collapse,.k-button:active .k-rtl .km-pane-wrapper .k-minus,.k-button:active .k-rtl .km-pane-wrapper .k-minus-disabled{background-position:0 -240px}.km-pane-wrapper .k-i-pencil,.km-pane-wrapper .k-edit{background-position:-2em 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-pencil,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-edit,.k-state-hover>.km-pane-wrapper .k-i-pencil,.k-state-hover>.km-pane-wrapper .k-edit,.k-state-hover>*>.km-pane-wrapper .k-i-pencil,.k-state-hover>*>.km-pane-wrapper .k-edit,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-pencil,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-edit,.k-textbox:hover .km-pane-wrapper .k-i-pencil,.k-textbox:hover .km-pane-wrapper .k-edit,.k-button:active .km-pane-wrapper .k-i-pencil,.k-button:active .km-pane-wrapper .k-edit{background-position:-3em 0}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-pencil,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-edit,.k-state-hover>.km-pane-wrapper .k-i-pencil,.k-state-hover>.km-pane-wrapper .k-edit,.k-state-hover>*>.km-pane-wrapper .k-i-pencil,.k-state-hover>*>.km-pane-wrapper .k-edit,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-pencil,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-edit,.k-textbox:hover .km-pane-wrapper .k-i-pencil,.k-textbox:hover .km-pane-wrapper .k-edit,.k-button:active .km-pane-wrapper .k-i-pencil,.k-button:active .km-pane-wrapper .k-edit{background-position:-32px 0}.km-pane-wrapper .k-i-close,.km-pane-wrapper .k-delete,.km-pane-wrapper .k-group-delete{background-position:-2em -1em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-close,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-delete,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-group-delete,.k-state-hover>.km-pane-wrapper .k-i-close,.k-state-hover>.km-pane-wrapper .k-delete,.k-state-hover>.km-pane-wrapper .k-group-delete,.k-state-hover>*>.km-pane-wrapper .k-i-close,.k-state-hover>*>.km-pane-wrapper .k-delete,.k-state-hover>*>.km-pane-wrapper .k-group-delete,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-close,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-delete,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-group-delete,.k-textbox:hover .km-pane-wrapper .k-i-close,.k-textbox:hover .km-pane-wrapper .k-delete,.k-textbox:hover .km-pane-wrapper .k-group-delete,.k-button:active .km-pane-wrapper .k-i-close,.k-button:active .km-pane-wrapper .k-delete,.k-button:active .km-pane-wrapper .k-group-delete{background-position:-3em -1em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-close,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-delete,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-group-delete,.k-state-hover>.km-pane-wrapper .k-i-close,.k-state-hover>.km-pane-wrapper .k-delete,.k-state-hover>.km-pane-wrapper .k-group-delete,.k-state-hover>*>.km-pane-wrapper .k-i-close,.k-state-hover>*>.km-pane-wrapper .k-delete,.k-state-hover>*>.km-pane-wrapper .k-group-delete,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-close,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-delete,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-group-delete,.k-textbox:hover .km-pane-wrapper .k-i-close,.k-textbox:hover .km-pane-wrapper .k-delete,.k-textbox:hover .km-pane-wrapper .k-group-delete,.k-button:active .km-pane-wrapper .k-i-close,.k-button:active .km-pane-wrapper .k-delete,.k-button:active .km-pane-wrapper .k-group-delete{background-position:-32px -16px}.km-pane-wrapper .k-si-close{background-position:-10em -5em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-si-close,.k-state-hover>.km-pane-wrapper .k-si-close,.k-state-hover>*>.km-pane-wrapper .k-si-close,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-si-close,.k-textbox:hover .km-pane-wrapper .k-si-close,.k-button:active .km-pane-wrapper .k-si-close{background-position:-11em -5em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-si-close,.k-state-hover>.km-pane-wrapper .k-si-close,.k-state-hover>*>.km-pane-wrapper .k-si-close,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-si-close,.k-textbox:hover .km-pane-wrapper .k-si-close,.k-button:active .km-pane-wrapper .k-si-close{background-position:-160px -80px}.km-pane-wrapper .k-multiselect .k-delete{background-position:-10em -5em}.km-pane-wrapper .k-multiselect .k-state-hover .k-delete{background-position:-11em -5em}.km-pane-wrapper .k-i-tick,.km-pane-wrapper .k-insert,.km-pane-wrapper .k-update{background-position:-2em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-tick,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-insert,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-update,.k-state-hover>.km-pane-wrapper .k-i-tick,.k-state-hover>.km-pane-wrapper .k-insert,.k-state-hover>.km-pane-wrapper .k-update,.k-state-hover>*>.km-pane-wrapper .k-i-tick,.k-state-hover>*>.km-pane-wrapper .k-insert,.k-state-hover>*>.km-pane-wrapper .k-update,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-tick,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-insert,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-update,.k-textbox:hover .km-pane-wrapper .k-i-tick,.k-textbox:hover .km-pane-wrapper .k-insert,.k-textbox:hover .km-pane-wrapper .k-update,.k-button:active .km-pane-wrapper .k-i-tick,.k-button:active .km-pane-wrapper .k-insert,.k-button:active .km-pane-wrapper .k-update{background-position:-3em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-tick,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-insert,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-update,.k-state-hover>.km-pane-wrapper .k-i-tick,.k-state-hover>.km-pane-wrapper .k-insert,.k-state-hover>.km-pane-wrapper .k-update,.k-state-hover>*>.km-pane-wrapper .k-i-tick,.k-state-hover>*>.km-pane-wrapper .k-insert,.k-state-hover>*>.km-pane-wrapper .k-update,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-tick,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-insert,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-update,.k-textbox:hover .km-pane-wrapper .k-i-tick,.k-textbox:hover .km-pane-wrapper .k-insert,.k-textbox:hover .km-pane-wrapper .k-update,.k-button:active .km-pane-wrapper .k-i-tick,.k-button:active .km-pane-wrapper .k-insert,.k-button:active .km-pane-wrapper .k-update{background-position:-32px -32px}.km-pane-wrapper .k-check:checked,.km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.km-pane-wrapper .k-mobile-list .k-edit-field [type=radio]{background-position:-2em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-check:checked,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-state-hover>.km-pane-wrapper .k-check:checked,.k-state-hover>.km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-state-hover>.km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-state-hover>*>.km-pane-wrapper .k-check:checked,.k-state-hover>*>.km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-state-hover>*>.km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-check:checked,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-textbox:hover .km-pane-wrapper .k-check:checked,.k-textbox:hover .km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-textbox:hover .km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-button:active .km-pane-wrapper .k-check:checked,.k-button:active .km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-button:active .km-pane-wrapper .k-mobile-list .k-edit-field [type=radio]{background-position:-3em -2em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-check:checked,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-state-hover>.km-pane-wrapper .k-check:checked,.k-state-hover>.km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-state-hover>.km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-state-hover>*>.km-pane-wrapper .k-check:checked,.k-state-hover>*>.km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-state-hover>*>.km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-check:checked,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-textbox:hover .km-pane-wrapper .k-check:checked,.k-textbox:hover .km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-textbox:hover .km-pane-wrapper .k-mobile-list .k-edit-field [type=radio],.k-button:active .km-pane-wrapper .k-check:checked,.k-button:active .km-pane-wrapper .k-mobile-list .k-edit-field [type=checkbox],.k-button:active .km-pane-wrapper .k-mobile-list .k-edit-field [type=radio]{background-position:-32px -32px}.km-pane-wrapper .k-i-cancel,.km-pane-wrapper .k-cancel,.km-pane-wrapper .k-denied{background-position:-2em -3em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-cancel,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-cancel,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-denied,.k-state-hover>.km-pane-wrapper .k-i-cancel,.k-state-hover>.km-pane-wrapper .k-cancel,.k-state-hover>.km-pane-wrapper .k-denied,.k-state-hover>*>.km-pane-wrapper .k-i-cancel,.k-state-hover>*>.km-pane-wrapper .k-cancel,.k-state-hover>*>.km-pane-wrapper .k-denied,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-cancel,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-cancel,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-denied,.k-textbox:hover .km-pane-wrapper .k-i-cancel,.k-textbox:hover .km-pane-wrapper .k-cancel,.k-textbox:hover .km-pane-wrapper .k-denied,.k-button:active .km-pane-wrapper .k-i-cancel,.k-button:active .km-pane-wrapper .k-cancel,.k-button:active .km-pane-wrapper .k-denied{background-position:-3em -3em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-cancel,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-cancel,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-denied,.k-state-hover>.km-pane-wrapper .k-i-cancel,.k-state-hover>.km-pane-wrapper .k-cancel,.k-state-hover>.km-pane-wrapper .k-denied,.k-state-hover>*>.km-pane-wrapper .k-i-cancel,.k-state-hover>*>.km-pane-wrapper .k-cancel,.k-state-hover>*>.km-pane-wrapper .k-denied,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-cancel,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-cancel,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-denied,.k-textbox:hover .km-pane-wrapper .k-i-cancel,.k-textbox:hover .km-pane-wrapper .k-cancel,.k-textbox:hover .km-pane-wrapper .k-denied,.k-button:active .km-pane-wrapper .k-i-cancel,.k-button:active .km-pane-wrapper .k-cancel,.k-button:active .km-pane-wrapper .k-denied{background-position:-32px -48px}.km-pane-wrapper .k-i-plus,.km-pane-wrapper .k-add{background-position:-2em -4em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-plus,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-add,.k-state-hover>.km-pane-wrapper .k-i-plus,.k-state-hover>.km-pane-wrapper .k-add,.k-state-hover>*>.km-pane-wrapper .k-i-plus,.k-state-hover>*>.km-pane-wrapper .k-add,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-plus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-add,.k-textbox:hover .km-pane-wrapper .k-i-plus,.k-textbox:hover .km-pane-wrapper .k-add,.k-button:active .km-pane-wrapper .k-i-plus,.k-button:active .km-pane-wrapper .k-add{background-position:-3em -4em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-plus,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-add,.k-state-hover>.km-pane-wrapper .k-i-plus,.k-state-hover>.km-pane-wrapper .k-add,.k-state-hover>*>.km-pane-wrapper .k-i-plus,.k-state-hover>*>.km-pane-wrapper .k-add,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-plus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-add,.k-textbox:hover .km-pane-wrapper .k-i-plus,.k-textbox:hover .km-pane-wrapper .k-add,.k-button:active .km-pane-wrapper .k-i-plus,.k-button:active .km-pane-wrapper .k-add{background-position:-32px -64px}.km-pane-wrapper .k-i-funnel,.km-pane-wrapper .k-filter{background-position:-2em -5em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-funnel,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-filter,.k-state-hover>.km-pane-wrapper .k-i-funnel,.k-state-hover>.km-pane-wrapper .k-filter,.k-state-hover>*>.km-pane-wrapper .k-i-funnel,.k-state-hover>*>.km-pane-wrapper .k-filter,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-funnel,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-filter,.k-textbox:hover .km-pane-wrapper .k-i-funnel,.k-textbox:hover .km-pane-wrapper .k-filter,.k-button:active .km-pane-wrapper .k-i-funnel,.k-button:active .km-pane-wrapper .k-filter{background-position:-3em -5em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-funnel,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-filter,.k-state-hover>.km-pane-wrapper .k-i-funnel,.k-state-hover>.km-pane-wrapper .k-filter,.k-state-hover>*>.km-pane-wrapper .k-i-funnel,.k-state-hover>*>.km-pane-wrapper .k-filter,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-funnel,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-filter,.k-textbox:hover .km-pane-wrapper .k-i-funnel,.k-textbox:hover .km-pane-wrapper .k-filter,.k-button:active .km-pane-wrapper .k-i-funnel,.k-button:active .km-pane-wrapper .k-filter{background-position:-32px -80px}.km-pane-wrapper .k-i-funnel-clear,.km-pane-wrapper .k-clear-filter{background-position:-2em -6em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-funnel-clear,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-clear-filter,.k-state-hover>.km-pane-wrapper .k-i-funnel-clear,.k-state-hover>.km-pane-wrapper .k-clear-filter,.k-state-hover>*>.km-pane-wrapper .k-i-funnel-clear,.k-state-hover>*>.km-pane-wrapper .k-clear-filter,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-funnel-clear,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-clear-filter,.k-textbox:hover .km-pane-wrapper .k-i-funnel-clear,.k-textbox:hover .km-pane-wrapper .k-clear-filter,.k-button:active .km-pane-wrapper .k-i-funnel-clear,.k-button:active .km-pane-wrapper .k-clear-filter{background-position:-3em -6em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-funnel-clear,.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-clear-filter,.k-state-hover>.km-pane-wrapper .k-i-funnel-clear,.k-state-hover>.km-pane-wrapper .k-clear-filter,.k-state-hover>*>.km-pane-wrapper .k-i-funnel-clear,.k-state-hover>*>.km-pane-wrapper .k-clear-filter,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-funnel-clear,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-clear-filter,.k-textbox:hover .km-pane-wrapper .k-i-funnel-clear,.k-textbox:hover .km-pane-wrapper .k-clear-filter,.k-button:active .km-pane-wrapper .k-i-funnel-clear,.k-button:active .km-pane-wrapper .k-clear-filter{background-position:-32px -96px}.km-pane-wrapper .k-i-refresh{background-position:-2em -7em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-refresh,.k-state-hover>.km-pane-wrapper .k-i-refresh,.k-state-hover>*>.km-pane-wrapper .k-i-refresh,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-refresh,.k-textbox:hover .km-pane-wrapper .k-i-refresh,.k-button:active .km-pane-wrapper .k-i-refresh{background-position:-3em -7em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-refresh,.k-state-hover>.km-pane-wrapper .k-i-refresh,.k-state-hover>*>.km-pane-wrapper .k-i-refresh,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-refresh,.k-textbox:hover .km-pane-wrapper .k-i-refresh,.k-button:active .km-pane-wrapper .k-i-refresh{background-position:-32px -112px}.km-pane-wrapper .k-i-exception{background-position:-10em -19em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-exception,.k-state-hover>.km-pane-wrapper .k-i-exception,.k-state-hover>*>.km-pane-wrapper .k-i-exception,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-exception,.k-textbox:hover .km-pane-wrapper .k-i-exception,.k-button:active .km-pane-wrapper .k-i-exception{background-position:-11em -19em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-exception,.k-state-hover>.km-pane-wrapper .k-i-exception,.k-state-hover>*>.km-pane-wrapper .k-i-exception,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-exception,.k-textbox:hover .km-pane-wrapper .k-i-exception,.k-button:active .km-pane-wrapper .k-i-exception{background-position:-160px -304px}.km-pane-wrapper .k-i-restore{background-position:-2em -8em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-restore,.k-state-hover>.km-pane-wrapper .k-i-restore,.k-state-hover>*>.km-pane-wrapper .k-i-restore,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-restore,.k-textbox:hover .km-pane-wrapper .k-i-restore,.k-button:active .km-pane-wrapper .k-i-restore{background-position:-3em -8em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-restore,.k-state-hover>.km-pane-wrapper .k-i-restore,.k-state-hover>*>.km-pane-wrapper .k-i-restore,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-restore,.k-textbox:hover .km-pane-wrapper .k-i-restore,.k-button:active .km-pane-wrapper .k-i-restore{background-position:-32px -128px}.km-pane-wrapper .k-i-maximize{background-position:-2em -9em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-maximize,.k-state-hover>.km-pane-wrapper .k-i-maximize,.k-state-hover>*>.km-pane-wrapper .k-i-maximize,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-maximize,.k-textbox:hover .km-pane-wrapper .k-i-maximize,.k-button:active .km-pane-wrapper .k-i-maximize{background-position:-3em -9em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-maximize,.k-state-hover>.km-pane-wrapper .k-i-maximize,.k-state-hover>*>.km-pane-wrapper .k-i-maximize,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-maximize,.k-textbox:hover .km-pane-wrapper .k-i-maximize,.k-button:active .km-pane-wrapper .k-i-maximize{background-position:-32px -144px}.km-pane-wrapper .k-i-minimize{background-position:-4em -18em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-minimize,.k-state-hover>.km-pane-wrapper .k-i-minimize,.k-state-hover>*>.km-pane-wrapper .k-i-minimize,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-minimize,.k-textbox:hover .km-pane-wrapper .k-i-minimize,.k-button:active .km-pane-wrapper .k-i-minimize{background-position:-5em -18em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-minimize,.k-state-hover>.km-pane-wrapper .k-i-minimize,.k-state-hover>*>.km-pane-wrapper .k-i-minimize,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-minimize,.k-textbox:hover .km-pane-wrapper .k-i-minimize,.k-button:active .km-pane-wrapper .k-i-minimize{background-position:-64px -288px}.km-pane-wrapper .k-i-pin{background-position:-10em -16em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-pin,.k-state-hover>.km-pane-wrapper .k-i-pin,.k-state-hover>*>.km-pane-wrapper .k-i-pin,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-pin,.k-textbox:hover .km-pane-wrapper .k-i-pin,.k-button:active .km-pane-wrapper .k-i-pin{background-position:-11em -16em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-pin,.k-state-hover>.km-pane-wrapper .k-i-pin,.k-state-hover>*>.km-pane-wrapper .k-i-pin,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-pin,.k-textbox:hover .km-pane-wrapper .k-i-pin,.k-button:active .km-pane-wrapper .k-i-pin{background-position:-160px -256px}.km-pane-wrapper .k-i-unpin{background-position:-10em -17em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-unpin,.k-state-hover>.km-pane-wrapper .k-i-unpin,.k-state-hover>*>.km-pane-wrapper .k-i-unpin,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-unpin,.k-textbox:hover .km-pane-wrapper .k-i-unpin,.k-button:active .km-pane-wrapper .k-i-unpin{background-position:-11em -17em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-unpin,.k-state-hover>.km-pane-wrapper .k-i-unpin,.k-state-hover>*>.km-pane-wrapper .k-i-unpin,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-unpin,.k-textbox:hover .km-pane-wrapper .k-i-unpin,.k-button:active .km-pane-wrapper .k-i-unpin{background-position:-160px -272px}.km-pane-wrapper .k-resize-se{background-position:-2em -10em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-resize-se,.k-state-hover>.km-pane-wrapper .k-resize-se,.k-state-hover>*>.km-pane-wrapper .k-resize-se,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-resize-se,.k-textbox:hover .km-pane-wrapper .k-resize-se,.k-button:active .km-pane-wrapper .k-resize-se{background-position:-3em -10em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-resize-se,.k-state-hover>.km-pane-wrapper .k-resize-se,.k-state-hover>*>.km-pane-wrapper .k-resize-se,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-resize-se,.k-textbox:hover .km-pane-wrapper .k-resize-se,.k-button:active .km-pane-wrapper .k-resize-se{background-position:-32px -160px}.km-pane-wrapper .k-i-calendar{background-position:-2em -11em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-calendar,.k-state-hover>.km-pane-wrapper .k-i-calendar,.k-state-hover>*>.km-pane-wrapper .k-i-calendar,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-calendar,.k-textbox:hover .km-pane-wrapper .k-i-calendar,.k-button:active .km-pane-wrapper .k-i-calendar{background-position:-3em -11em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-calendar,.k-state-hover>.km-pane-wrapper .k-i-calendar,.k-state-hover>*>.km-pane-wrapper .k-i-calendar,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-calendar,.k-textbox:hover .km-pane-wrapper .k-i-calendar,.k-button:active .km-pane-wrapper .k-i-calendar{background-position:-32px -176px}.km-pane-wrapper .k-i-clock{background-position:-2em -12em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-clock,.k-state-hover>.km-pane-wrapper .k-i-clock,.k-state-hover>*>.km-pane-wrapper .k-i-clock,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-clock,.k-textbox:hover .km-pane-wrapper .k-i-clock,.k-button:active .km-pane-wrapper .k-i-clock{background-position:-3em -12em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-i-clock,.k-state-hover>.km-pane-wrapper .k-i-clock,.k-state-hover>*>.km-pane-wrapper .k-i-clock,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-i-clock,.k-textbox:hover .km-pane-wrapper .k-i-clock,.k-button:active .km-pane-wrapper .k-i-clock{background-position:-32px -192px}.km-pane-wrapper .k-si-plus{background-position:-2em -13em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-si-plus,.k-state-hover>.km-pane-wrapper .k-si-plus,.k-state-hover>*>.km-pane-wrapper .k-si-plus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-si-plus,.k-textbox:hover .km-pane-wrapper .k-si-plus,.k-button:active .km-pane-wrapper .k-si-plus{background-position:-3em -13em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-si-plus,.k-state-hover>.km-pane-wrapper .k-si-plus,.k-state-hover>*>.km-pane-wrapper .k-si-plus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-si-plus,.k-textbox:hover .km-pane-wrapper .k-si-plus,.k-button:active .km-pane-wrapper .k-si-plus{background-position:-32px -208px}.km-pane-wrapper .k-si-minus{background-position:-2em -14em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-si-minus,.k-state-hover>.km-pane-wrapper .k-si-minus,.k-state-hover>*>.km-pane-wrapper .k-si-minus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-si-minus,.k-textbox:hover .km-pane-wrapper .k-si-minus,.k-button:active .km-pane-wrapper .k-si-minus{background-position:-3em -14em}.k-link:not(.k-state-disabled):hover>.km-pane-wrapper .k-si-minus,.k-state-hover>.km-pane-wrapper .k-si-minus,.k-state-hover>*>.km-pane-wrapper .k-si-minus,.k-button:not(.k-state-disabled):hover .km-pane-wrapper .k-si-minus,.k-textbox:hover .km-pane-wrapper .k-si-minus,.k-button:active .km-pane-wrapper .k-si-minus{background-position:-32px -224px}}.km-pane-wrapper .km-pane .k-mobile-list input:not([type="checkbox"]):not([type="radio"]),.km-pane-wrapper .km-pane .k-mobile-list select:not([multiple]),.km-pane-wrapper .km-pane .k-mobile-list textarea,.km-pane-wrapper .k-mobile-list .k-widget,.km-pane-wrapper .k-edit-field>*:not([type="checkbox"]):not([type="radio"]):not(.k-button){text-indent:0;font-size:1em;line-height:1.6em;vertical-align:middle;height:auto;padding:0;border:0;margin:0;background:transparent;-webkit-box-shadow:none;box-shadow:none;border-radius:0}.km-pane-wrapper .k-mobile-list .k-widget{border:0;border-radius:0}.k-ie .km-pane-wrapper .k-mobile-list .k-widget{height:initial}.km-pane-wrapper .k-mobile-list .k-widget .k-input,.km-pane-wrapper .k-mobile-list .k-widget .k-state-default{border:0;background:transparent}.km-pane-wrapper *:not(.k-state-default)>input:not([type="checkbox"]):not([type="radio"]),.km-pane-wrapper .k-mobile-list select:not([multiple]),.km-pane-wrapper .k-mobile-list textarea,.km-pane-wrapper .k-mobile-list .k-widget,.km-pane-wrapper .k-edit-field>*:not([type="checkbox"]):not([type="radio"]):not(.k-button){width:80%;padding:.6em 0;margin:-0.5em 0}.km-pane-wrapper .km-pane .k-mobile-list input,.km-pane-wrapper .km-pane .k-mobile-list select:not([multiple]),.km-pane-wrapper .km-pane .k-mobile-list textarea,.km-pane-wrapper .k-mobile-list .k-widget,.km-pane-wrapper .k-mobile-list .k-edit-field>*{-webkit-appearance:none;-moz-appearance:none;appearance:none;float:right;z-index:1;position:relative}.km-pane-wrapper .k-scheduler-views{width:18em}.km-pane-wrapper .k-mobile-list .k-edit-field.k-scheduler-toolbar{background:transparent;border:0;-webkit-box-shadow:none;box-shadow:none;padding:.5em 1em}.km-pane-wrapper #recurrence .k-scheduler-navigation{width:100%}.km-pane-wrapper .k-scheduler-views,.km-pane-wrapper .k-mobile-list .k-scheduler-navigation{display:table;table-layout:fixed}.km-pane-wrapper .k-scheduler-views li,.km-pane-wrapper .k-mobile-list .k-scheduler-navigation li{display:table-cell;text-align:center}.km-pane-wrapper .k-scheduler-views li a,.km-pane-wrapper .k-mobile-list .k-scheduler-navigation li a{padding-left:0;padding-right:0;width:100%}.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-field .k-check{margin:0;padding-left:1em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-field .k-check:first-child{margin-top:-0.5em}.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-field .k-check:last-child{margin-bottom:-0.5em}.km-pane-wrapper .k-mobile-list .k-scheduler-timezones .k-edit-field label.k-check{text-indent:1em}.km-pane-wrapper .k-mobile-list .k-edit-field>.k-button{margin-left:20%;float:left}.km-pane-wrapper .k-mobile-list .k-picker-wrap,.km-pane-wrapper .k-mobile-list .k-numeric-wrap,.km-pane-wrapper .k-mobile-list .k-dropdown-wrap{position:static;-webkit-box-shadow:none;box-shadow:none}.km-pane-wrapper .k-mobile-list .k-datepicker .k-select,.km-pane-wrapper .k-mobile-list .k-datetimepicker .k-select,.km-pane-wrapper .k-mobile-list .k-numerictextbox .k-select{position:absolute;top:0;right:0;line-height:auto}.km-pane-wrapper .k-mobile-list .k-datepicker .k-select:before,.km-pane-wrapper .k-mobile-list .k-datetimepicker .k-select:before{content:"\a0";display:inline-block;width:0;height:100%;vertical-align:middle}.km-pane-wrapper .k-mobile-list .k-numerictextbox .k-link{height:50%}.km-pane-wrapper .k-grid .k-button,.km-pane-wrapper .k-edit-form-container .k-button{margin:0}.km-pane-wrapper .k-grid .k-button+.k-button,.km-pane-wrapper .k-edit-form-container .k-button+.k-button{margin:0 0 0 .18em}.km-pane-wrapper .k-pager-numbers .k-link,.km-pane-wrapper .k-pager-numbers .k-state-selected,.km-pane-wrapper .k-pager-wrap>.k-link{width:2.4em;height:2.4em;line-height:2.1em;border-radius:2em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.km-pane-wrapper .k-pager-numbers .k-link,.km-pane-wrapper .k-pager-numbers .k-state-selected{width:auto;line-height:2.2em;padding:0 .86em;min-width:.7em}.km-pane-wrapper .k-pager-wrap{line-height:2.4em}@media all and (max-width:699px),(-ms-high-contrast:active) and (-ms-high-contrast:none) and (max-width:800px){.km-pane-wrapper *:not(.k-state-default)>input:not([type="checkbox"]):not([type="radio"]),.km-pane-wrapper .k-mobile-list select:not([multiple]),.km-pane-wrapper .k-mobile-list textarea,.km-pane-wrapper .k-mobile-list .k-widget,.km-pane-wrapper .k-edit-field>*:not([type="checkbox"]):not([type="radio"]):not(.k-button){width:50%}.km-pane-wrapper .k-mobile-list .k-edit-field>.k-button{margin-left:50%}.km-pane-wrapper .k-mobile-list .k-edit-field>.k-timezone-button{margin-left:1em}.km-pane-wrapper .k-scheduler-views{width:15em}.km-pane-wrapper .k-nav-today a{padding-left:.6em;padding-right:.6em}.km-pane-wrapper li.k-nav-current{margin-left:0;margin-right:0}.km-pane-wrapper .k-pager-wrap{position:relative}.km-pane-wrapper .k-pager-numbers{width:auto;display:block;overflow:hidden;margin-right:5.5em;float:none;text-overflow:ellipsis;height:2.4em;text-align:center}.km-pane-wrapper .k-pager-numbers li{float:none;display:inline-block}.km-pane-wrapper .k-pager-nav{float:left}.km-pane-wrapper .k-pager-nav+.k-pager-nav ~ .k-pager-nav{position:absolute;right:.3em;top:.3em}.km-pane-wrapper .k-pager-wrap .k-pager-numbers+.k-pager-nav,.km-pane-wrapper .k-pager-nav:first-child+.k-pager-nav+.k-pager-nav{right:3em}.km-pane-wrapper .k-pager-info{display:none}}.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-field .k-check,.km-pane-wrapper .k-mobile-list .k-edit-field>*>select:not([multiple]),.km-pane-wrapper .k-mobile-list .k-scheduler-timezones .k-edit-field label.k-check{width:100%}.km-scroll-container{-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;-webkit-margin-collapse:separate;-webkit-transform:translatez(0)}.k-widget .km-scroll-wrapper{position:relative;padding-bottom:0}.km-touch-scrollbar{position:absolute;visibility:hidden;z-index:200000;height:.3em;width:.3em;background-color:rgba(0,0,0,0.7);opacity:0;-webkit-transition:opacity .3s linear;-moz-transition:opacity .3s linear;-o-transition:opacity .3s linear;transition:opacity .3s linear;-webkit-transition:"opacity 0.3s linear";-moz-transition:"opacity 0.3s linear";-ms-transition:"opacity 0.3s linear";-o-transition:"opacity 0.3s linear";transition:"opacity 0.3s linear"}.km-vertical-scrollbar{height:100%;right:2px;top:2px}.km-horizontal-scrollbar{width:100%;left:2px;bottom:2px}.k-fx-end .k-fx-next,.k-fx-end .k-fx-current{-webkit-transition:all 350ms ease-out;-moz-transition:all 350ms ease-out;-ms-transition:all 350ms ease-out;-o-transition:all 350ms ease-out;transition:all 350ms ease-out}.k-fx{position:relative}.k-fx .k-fx-current{z-index:0}.k-fx .k-fx-next{z-index:1}.k-fx-hidden,.k-fx-hidden *{visibility:hidden!important}.k-fx-reverse .k-fx-current{z-index:1}.k-fx-reverse .k-fx-next{z-index:0}.k-fx-zoom.k-fx-start .k-fx-next{-webkit-transform:scale(0)!important;-moz-transform:scale(0)!important;-ms-transform:scale(0)!important;-o-transform:scale(0)!important;transform:scale(0)!important}.k-fx-zoom.k-fx-end .k-fx-next{-webkit-transform:scale(1)!important;-moz-transform:scale(1)!important;-ms-transform:scale(1)!important;-o-transform:scale(1)!important;transform:scale(1)!important}.k-fx-zoom.k-fx-reverse.k-fx-start .k-fx-next,.k-fx-zoom.k-fx-reverse.k-fx-end .k-fx-next{-webkit-transform:scale(1)!important;-moz-transform:scale(1)!important;-ms-transform:scale(1)!important;-o-transform:scale(1)!important;transform:scale(1)!important}.k-fx-zoom.k-fx-reverse.k-fx-start .k-fx-current{-webkit-transform:scale(1)!important;-moz-transform:scale(1)!important;-ms-transform:scale(1)!important;-o-transform:scale(1)!important;transform:scale(1)!important}.k-fx-zoom.k-fx-reverse.k-fx-end .k-fx-current{-webkit-transform:scale(0)!important;-moz-transform:scale(0)!important;-ms-transform:scale(0)!important;-o-transform:scale(0)!important;transform:scale(0)!important}.k-fx-fade.k-fx-start .k-fx-next{will-change:opacity;opacity:0}.k-fx-fade.k-fx-end .k-fx-next{opacity:1}.k-fx-fade.k-fx-reverse.k-fx-start .k-fx-current{will-change:opacity;opacity:1}.k-fx-fade.k-fx-reverse.k-fx-end .k-fx-current{opacity:0}.k-fx-slide.k-fx-end .k-fx-next .km-content,.k-fx-slide.k-fx-end .k-fx-next .km-header,.k-fx-slide.k-fx-end .k-fx-next .km-footer,.k-fx-slide.k-fx-end .k-fx-current .km-content,.k-fx-slide.k-fx-end .k-fx-current .km-header,.k-fx-slide.k-fx-end .k-fx-current .km-footer{-webkit-transition:all 350ms ease-out;-moz-transition:all 350ms ease-out;-ms-transition:all 350ms ease-out;-o-transition:all 350ms ease-out;transition:all 350ms ease-out}.k-fx-slide.k-fx-start .k-fx-next .km-content{will-change:transform;-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-slide.k-fx-start .k-fx-next .km-header,.k-fx-slide.k-fx-start .k-fx-next .km-footer{will-change:opacity;opacity:0}.k-fx-slide.k-fx-end .k-fx-current .km-content{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-slide.k-fx-end .k-fx-next .km-header,.k-fx-slide.k-fx-end .k-fx-next .km-footer{opacity:1}.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-content{will-change:transform;-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-content{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-content{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-content{-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-header,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-footer{will-change:opacity;opacity:1}.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-header,.k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-footer{opacity:1}.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-header,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-footer{opacity:0}.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-header,.k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-footer{opacity:1}.k-fx-slide.k-fx-right.k-fx-start .k-fx-next .km-content{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-slide.k-fx-right.k-fx-end .k-fx-current .km-content{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current .km-content{-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current .km-content{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next .km-content{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-slide.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next .km-content{-webkit-transform:translatex(0%);-moz-transform:translatex(0%);-ms-transform:translatex(0%);-o-transform:translatex(0%);transform:translatex(0%)}.k-fx-tile.k-fx-start .k-fx-next{will-change:transform;-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-tile.k-fx-end .k-fx-current{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-tile.k-fx-reverse.k-fx-start .k-fx-current{will-change:transform;-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-tile.k-fx-reverse.k-fx-end .k-fx-current{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-tile.k-fx-reverse.k-fx-start .k-fx-next{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-tile.k-fx-reverse.k-fx-end .k-fx-next{-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-tile.k-fx-right.k-fx-start .k-fx-next{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-tile.k-fx-right.k-fx-end .k-fx-current{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current{-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next{-webkit-transform:translatex(0%);-moz-transform:translatex(0%);-ms-transform:translatex(0%);-o-transform:translatex(0%);transform:translatex(0%)}.k-fx-tile.k-fx-start .k-fx-next{will-change:transform;-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-tile.k-fx-end .k-fx-current{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-tile.k-fx-reverse.k-fx-start .k-fx-current{will-change:transform;-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-tile.k-fx-reverse.k-fx-end .k-fx-current{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-tile.k-fx-reverse.k-fx-start .k-fx-next{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-tile.k-fx-reverse.k-fx-end .k-fx-next{-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-tile.k-fx-right.k-fx-start .k-fx-next{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-tile.k-fx-right.k-fx-end .k-fx-current{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current{-webkit-transform:translatex(0);-moz-transform:translatex(0);-ms-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next{-webkit-transform:translatex(0%);-moz-transform:translatex(0%);-ms-transform:translatex(0%);-o-transform:translatex(0%);transform:translatex(0%)}.k-fx.k-fx-overlay.k-fx-start .k-fx-next,.k-fx.k-fx-overlay.k-fx-left.k-fx-start .k-fx-next{will-change:transform;-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx.k-fx-overlay.k-fx-right.k-fx-start .k-fx-next{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx.k-fx-overlay.k-fx-up.k-fx-start .k-fx-next{-webkit-transform:translatey(100%);-moz-transform:translatey(100%);-ms-transform:translatey(100%);-o-transform:translatey(100%);transform:translatey(100%)}.k-fx.k-fx-overlay.k-fx-down.k-fx-start .k-fx-next{-webkit-transform:translatey(-100%);-moz-transform:translatey(-100%);-ms-transform:translatey(-100%);-o-transform:translatey(-100%);transform:translatey(-100%)}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-start .k-fx-next{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-start .k-fx-current{will-change:transform;-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-end .k-fx-current,.k-fx.k-fx-overlay.k-fx-reverse.k-fx-left.k-fx-end .k-fx-current{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-ms-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-right.k-fx-end .k-fx-current{-webkit-transform:translatex(-100%);-moz-transform:translatex(-100%);-ms-transform:translatex(-100%);-o-transform:translatex(-100%);transform:translatex(-100%)}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-up.k-fx-end .k-fx-current{-webkit-transform:translatey(100%);-moz-transform:translatey(100%);-ms-transform:translatey(100%);-o-transform:translatey(100%);transform:translatey(100%)}.k-fx.k-fx-overlay.k-fx-reverse.k-fx-down.k-fx-end .k-fx-current{-webkit-transform:translatey(-100%);-moz-transform:translatey(-100%);-ms-transform:translatey(-100%);-o-transform:translatey(-100%);transform:translatey(-100%)}.k-virtual-wrap{position:relative}.k-virtual-wrap>.k-list{margin:0;padding:0}.k-virtual-list{overflow-y:scroll;-webkit-overflow-scrolling:touch;position:relative}.k-virtual-list>.k-virtual-content{position:absolute;top:0;width:100%;margin:0;padding:0;list-style-type:none}.k-virtual-option-label{width:100%;margin:0;padding:0;list-style-type:none}.k-virtual-wrap>.k-virtual-header{text-align:right}.k-virtual-list .k-virtual-item{position:absolute;width:100%;box-sizing:border-box}.k-popup .k-item.k-first{position:relative}.k-popup .k-item>.k-group{background:0;position:absolute;top:0;right:.3em}.k-popup .k-item.k-first,.k-virtual-item.k-first{border-bottom-style:solid;border-bottom-width:1px}.k-popup>.k-static-header{text-align:right}@font-face{font-family:"DejaVu Sans";src:url("fonts/DejaVu/DejaVuSans.ttf") format("truetype")}@font-face{font-family:"DejaVu Sans";font-weight:bold;src:url("fonts/DejaVu/DejaVuSans-Bold.ttf") format("truetype")}@font-face{font-family:"DejaVu Sans";font-style:italic;src:url("fonts/DejaVu/DejaVuSans-Oblique.ttf") format("truetype")}@font-face{font-family:"DejaVu Sans";font-weight:bold;font-style:italic;src:url("fonts/DejaVu/DejaVuSans-BoldOblique.ttf") format("truetype")}@font-face{font-family:"DejaVu Serif";src:url("fonts/DejaVu/DejaVuSerif.ttf") format("truetype")}@font-face{font-family:"DejaVu Serif";font-weight:bold;src:url("fonts/DejaVu/DejaVuSerif-Bold.ttf") format("truetype")}@font-face{font-family:"DejaVu Serif";font-style:italic;src:url("fonts/DejaVu/DejaVuSerif-Italic.ttf") format("truetype")}@font-face{font-family:"DejaVu Serif";font-weight:bold;font-style:italic;src:url("fonts/DejaVu/DejaVuSerif-BoldItalic.ttf") format("truetype")}@font-face{font-family:"DejaVu Mono";src:url("fonts/DejaVu/DejaVuSansMono.ttf") format("truetype")}@font-face{font-family:"DejaVu Mono";font-weight:bold;src:url("fonts/DejaVu/DejaVuSansMono-Bold.ttf") format("truetype")}@font-face{font-family:"DejaVu Mono";font-style:italic;src:url("fonts/DejaVu/DejaVuSansMono-Oblique.ttf") format("truetype")}@font-face{font-family:"DejaVu Mono";font-weight:bold;font-style:italic;src:url("fonts/DejaVu/DejaVuSansMono-BoldOblique.ttf") format("truetype")}.k-grid .k-header,.k-gantt .k-grid-header,.k-calendar .k-header,.k-calendar .k-content thead,.k-calendar .k-footer,.k-tabstrip-items,.k-scheduler-header .k-scheduler-table{text-transform:uppercase}.k-scheduler-table th{font-weight:normal}.k-scheduler-header th{text-align:left}.k-event-actions .k-icon:first-child{margin-left:4px}.k-scheduler .k-scheduler-toolbar .k-nav-current{vertical-align:middle}.k-scheduler-toolbar .k-i-calendar{display:none}.k-scheduler-toolbar .k-scheduler-views,.k-scheduler-toolbar .k-nav-today,.k-gantt-toolbar .k-gantt-views{text-transform:lowercase}.k-webkit .k-combobox .k-dropdown-wrap:before,.k-webkit .k-picker-wrap:before,.k-webkit .k-numeric-wrap:before{padding-bottom:.3em}.k-button{line-height:1.143em;padding:.429em .714em}.k-filter-row .k-button{line-height:1.14em}.k-textbox>input,span.k-autocomplete .k-input,span.k-picker-wrap .k-input,span.k-numeric-wrap .k-input,span.k-dropdown-wrap .k-input,span.k-selectbox .k-input{padding:.143em 0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{line-height:1.928em}input.k-textbox{height:2.143em}.k-multiselect-wrap{min-height:2em}.k-multiselect-wrap>ul{padding-top:1px}.k-multiselect-wrap li{font-size:.857em;line-height:1.333em;padding:.167em .5em;margin:2px 0 2px 2px}.k-popup.k-list-container,.k-popup.k-calendar-container{padding:0}.k-popup .k-list .k-item,.k-fieldselector .k-list .k-item{min-height:2em;line-height:2em}.k-popup .k-list .k-item,.k-fieldselector .k-list .k-item,.k-list-optionlabel,.k-popup>.k-static-header{padding:1px 7px 1px 7px}.k-popup .k-list .k-state-hover,.k-popup .k-list .k-state-focused,.k-popup .k-list .k-state-selected,.k-overflow-container .k-state-hover,.k-overflow-container .k-state-focused,.k-overflow-container .k-state-selected,.k-fieldselector .k-list .k-item,.k-list-optionlabel.k-state-focused,.k-list-optionlabel.k-state-selected{padding:0 6px}.k-notification-wrap{padding:1.75em}.k-notification-time{padding:1.250em}.k-calendar .k-content{height:19.36em}.k-calendar{width:20em}.k-calendar th{padding:.5em .75em .5em .45em}.k-calendar td{padding:.08333em .286em}.k-calendar .k-content .k-link{min-height:2.714em;line-height:2.714em;padding:0 .857em 0 .714em}.k-calendar .k-meta-view .k-link{padding:.357em .857em .357em .714em}.k-widget.k-calendar .k-nav-fast{height:2.429em;line-height:2.429em;margin:.214em -0.08333em .357em 0}.k-calendar .k-header .k-link.k-nav-prev,.k-calendar .k-header .k-link.k-nav-next{height:2.429em;line-height:2.429em;width:2.429em;top:.214em}.k-calendar .k-footer{border-top-width:1px;border-top-style:solid}.k-calendar .k-footer .k-nav-today{padding:.8em 0 .7em}.k-numerictextbox .k-link .k-i-arrow-n{vertical-align:bottom}.k-numerictextbox .k-link .k-i-arrow-s{vertical-align:top}.k-treeview .k-in{line-height:1.143em;padding:.429em .571em}div.k-tooltip{border-radius:3px;padding:1.167em}span.k-tooltip{padding:.643em 1.214em}.k-tooltip .k-callout{display:none}.k-ghost-splitbar-vertical,.k-splitbar-vertical{height:6px}.k-splitter .k-ghost-splitbar-horizontal,.k-splitter .k-splitbar-horizontal{width:6px}.k-grouping-header,.k-grid-toolbar{padding:.429em}.k-grouping-header{line-height:2.6}.k-grouping-header .k-group-indicator{padding:.21em .357em .21em .643em;line-height:1.58em;margin:0}.k-grid-header th.k-header{padding-left:1.286em}.k-grid .k-grouping-row td{padding:.6em .6em .643em;font-weight:normal;font-size:1.143em}.k-grouping-row .k-icon{margin:-3px 14px 0 6px}.k-grouping-header a,.k-grouping-header .k-button{vertical-align:baseline}.k-grid-header th.k-header>.k-link{padding:0;margin:0;min-height:16px;line-height:1.143em}.k-grid td{padding:.286em 1.286em}.k-grid tr td{border-width:0 0 0 1px;border-style:solid}.k-grid>table tr:first-child td,.k-grid-content table tr:first-child td,.k-grid-content-locked table tr:first-child td{border-top:0}.k-pager-wrap{padding:.357em 0 .357em .250em}.k-pager-numbers .k-link{border-width:2px 0 0}.k-pager-numbers .k-state-selected{margin-top:-0.35em;padding-top:.35em;border-width:2px 0 0}.k-filter-menu{padding:6px 15px 15px}.k-filter-help-text,.k-filter-menu .k-widget,.k-filter-menu .k-textbox{margin:.429em 0 0}.k-filter-menu .k-button{margin:.5em 0 0}.k-filter-menu .k-primary{float:right}.k-fieldselector .k-list li.k-item{line-height:1.231em;padding:.192em 3.9em .192em 0}.k-pivot-toolbar .k-button{padding:.5em 5em .5em .308em}.k-pivot-layout>tbody>tr:first-child>td:first-child{border-bottom-width:1px;border-bottom-style:solid}.k-field-actions{right:4px;top:6px}.k-pivot-configurator-settings .k-field-actions{right:2px;top:2px}.k-gantt-toolbar{line-height:2.071em;padding:.357em}.k-gantt-timeline .k-grid-header tr{height:2.143em}.k-gantt-treelist .k-grid-header tr{height:4.286em}.k-gantt .k-task{border-width:0}.k-gantt .k-task-template{padding:.357em 1.4em .357em .6em}.k-gantt .k-task-milestone{width:17px;height:17px}.k-gantt .k-task-draghandle{border-width:6px;border-radius:0;border-style:solid;bottom:-1px}.k-gantt .k-gantt-timeline th{text-align:left}.k-tabstrip.k-header{border:0}.k-tabstrip .k-tabstrip-items{padding:0}.k-tabstrip>.k-content{margin:0}.k-panelbar .k-tabstrip-items .k-link{padding:.5em .786em}.k-tabstrip-items .k-link{font-size:.857em;padding:.667em .786em}.k-panel>.k-item>.k-link{font-size:1em;line-height:3.5em}.k-panelbar>.k-item>.k-header{font-size:1.429em;line-height:2.5em}.k-panelbar-expand,.k-panelbar-collapse{right:14px}.k-menu .k-item>.k-link{padding:.786em 1.071em .786em 1.714em}.k-menu .k-item>.k-link>.k-icon{margin-left:5px}.k-context-menu.k-menu-vertical>.k-item>.k-link,.k-menu .k-menu-group .k-item>.k-link{padding:.786em 4.929em .786em 1.714em}.k-menu .k-item>.k-link>.k-i-arrow-e{right:.7rem}.k-toolbar,.k-editor-toolbar{line-height:2.86em}.k-toolbar .k-button{padding:.143em 1em}.k-toolbar .k-split-button-arrow{padding:.143em .4em}.k-toolbar .k-overflow-anchor{width:2.143em;height:2.143em;border-width:1px;padding:0;margin:5px;line-height:inherit}.k-toolbar .k-button-group .k-button{padding:.143em;margin-right:.143em}.k-toolbar .k-button .k-icon{margin-top:-10px;margin-bottom:-4px}.k-toolbar .k-split-button-arrow .k-i-arrow-s{margin-top:-7px}.k-toolbar .k-overflow-anchor .k-icon{margin-top:-15px;margin-bottom:0}table.k-editor{border-spacing:0}.k-editor .k-editor-toolbar-wrap,.k-editor .k-editable-area{border-width:1px 0 0}.k-editor .k-editor-toolbar-wrap{padding-left:4px}.k-editor .k-editable-area{padding-left:25px}.k-progressbar,.k-progressbar-horizontal>.k-state-selected,.k-rtl .k-progressbar-horizontal.k-progressbar-reverse>.k-state-selected,.k-progressbar>.k-reset,.k-progressbar-horizontal .k-first,.k-rtl .k-progressbar-horizontal .k-last,.k-rtl .k-progressbar-horizontal.k-progressbar-reverse .k-last,.k-progressbar-horizontal .k-last,.k-rtl .k-progressbar-horizontal .k-first,.k-progressbar-vertical .k-last,.k-progressbar>.k-state-selected,.k-progressbar-vertical .k-first,.k-progressbar>.k-state-selected.k-complete,.k-rtl .k-progressbar>.k-state-selected.k-complete{border-radius:0}.k-rtl .k-dropdown-wrap,.k-rtl .k-picker-wrap,.k-rtl .k-numeric-wrap{padding-left:2em}.k-progressbar-horizontal{height:1em}.k-progressbar-vertical{width:1em}.k-progress-status-wrap{line-height:1em}.k-slider-track{border-width:0}.k-slider-horizontal .k-slider-track,.k-slider-horizontal .k-slider-selection{height:2px;margin-top:-1px}.k-slider-vertical .k-slider-track,.k-slider-vertical .k-slider-selection{width:2px;margin-left:-1px}.k-slider-horizontal .k-draghandle,.k-flatcolorpicker .k-transparency-slider .k-draghandle{width:6px;height:18px;top:-9px}.k-flatcolorpicker .k-hue-slider .k-draghandle{width:2px;height:14px;top:-7px;border-width:2px}.k-flatcolorpicker .k-hue-slider .k-draghandle:hover,.k-flatcolorpicker .k-transparency-slider .k-draghandle:hover,.k-flatcolorpicker .k-hue-slider .k-draghandle:focus,.k-flatcolorpicker .k-transparency-slider .k-draghandle:focus{padding:0}.k-flatcolorpicker .k-selected-color input.k-color-value{border-left-width:1px;border-left-style:solid}.k-flatcolorpicker .k-hsv-rectangle{border-top-width:1px;border-top-style:solid}.k-slider-vertical .k-draghandle{width:18px;height:6px;left:-9px}.k-widget.k-slider .k-slider-buttons .k-button{border-width:0;background:transparent}.k-slider .k-button .k-icon{margin-top:4px}.k-widget.k-flatcolorpicker .k-hue-slider .k-draghandle{margin-top:-1px;box-shadow:none}.k-window-titlebar{padding:.857em 0}div.k-window-content{padding:.231em .857em}.editorToolbarWindow{padding:3px .857em}.k-editortoolbar-dragHandle{line-height:2em}.k-window-title{left:.857em}.k-window-titlebar .k-window-actions{padding-top:.7em;right:.857em}.k-nav-current>.k-link span+span{font-size:1.786em}.k-scheduler-table td,.k-scheduler-table th{height:1.286em}.k-scheduler-toolbar,.k-scheduler-footer{line-height:2.357em}.k-scheduler-toolbar .k-link,.k-scheduler-footer .k-link{padding:0 .36em}.k-scheduler-times th{text-align:left}.k-scheduler-footer .k-i-clock{display:none}.k-upload-sync .k-upload-button,.k-ie7 .k-upload-button,.k-ie8 .k-upload-button,.k-ie9 .k-upload-button{margin:.36em}.k-file{line-height:1.143em;padding:.43em .17em .43em 1.14em}.k-upload-status{line-height:1.29em;top:auto}.k-widget.k-state-border-down .k-select .k-i-arrow-s,.k-widget.k-state-border-up .k-select .k-i-arrow-s{background-position:-16px 0}.k-widget.k-state-border-down .k-select .k-i-calendar,.k-widget.k-state-border-up .k-select .k-i-calendar{background-position:-48px -176px}.k-widget.k-state-border-down .k-select .k-i-clock,.k-widget.k-state-border-up .k-select .k-i-clock{background-position:-48px -192px}.k-numerictextbox .k-select .k-link span.k-i-arrow-n,.k-numerictextbox .k-state-hover .k-link span.k-i-arrow-n{background-position:0 -2px}.k-numerictextbox .k-select .k-link span.k-i-arrow-s,.k-numerictextbox .k-state-hover .k-link span.k-i-arrow-s{background-position:0 -35px}.k-numerictextbox .k-link.k-state-selected span.k-i-arrow-n{background-position:-16px -2px}.k-numerictextbox .k-link.k-state-selected span.k-i-arrow-s{background-position:-16px -35px}.k-splitbar-horizontal-hover .k-resize-handle{background-position:-165px -6px}.k-splitbar-horizontal-hover .k-collapse-next{background-position:-5px -142px}.k-splitbar-horizontal-hover .k-collapse-prev{background-position:-6px -174px}.k-splitbar-vertical-hover .k-resize-handle{background-position:-38px -309px}.k-splitbar-vertical-hover .k-collapse-next{background-position:2px -165px}.k-splitbar-vertical-hover .k-collapse-prev{background-position:2px -134px}.k-splitbar-horizontal.k-state-focused .k-resize-handle{background-position:-181px -6px}.k-splitbar-horizontal.k-state-focused .k-collapse-next{background-position:-21px -142px}.k-splitbar-horizontal.k-state-focused .k-collapse-prev{background-position:-22px -174px}.k-splitbar-vertical.k-state-focused .k-resize-handle{background-position:-70px -309px}.k-splitbar-vertical.k-state-focused .k-collapse-next{background-position:-14px -165px}.k-splitbar-vertical.k-state-focused .k-collapse-prev{background-position:-14px -134px}.k-multiselect .k-delete,.k-multiselect .k-state-hover .k-delete,.k-multiselect .k-button:not(.k-state-disabled):hover>.k-delete{background-position:-160px -80px}.k-multiselect.k-state-focused.k-state-border-up .k-delete,.k-multiselect.k-state-focused.k-state-border-down .k-delete,.k-multiselect.k-state-focused.k-state-border-up .k-state-hover .k-delete,.k-multiselect.k-state-focused.k-state-border-down .k-state-hover .k-delete,.k-multiselect.k-state-focused.k-state-border-up .k-button:not(.k-state-disabled):hover>.k-delete,.k-multiselect.k-state-focused.k-state-border-down .k-button:not(.k-state-disabled):hover>.k-delete{background-position:-176px -80px}.k-window-titlebar .k-state-hover>.k-i-custom,.k-window-titlebar .k-link:not(.k-state-disabled):hover>.k-i-custom{background-position:-115px -113px}.k-calendar .k-i-arrow-w,.k-calendar .k-link:not(.k-state-disabled):hover>.k-i-arrow-w{background-position:0 -240px}.k-calendar .k-i-arrow-e,.k-calendar .k-link:not(.k-state-disabled):hover>.k-i-arrow-e{background-position:0 -208px}.k-panelbar .k-i-arrow-n,.k-pivot .k-i-arrow-n,.k-panelbar .k-link:not(.k-state-disabled):hover>.k-i-arrow-n,.k-pivot .k-link:not(.k-state-disabled):hover>.k-i-arrow-n{background-position:0 -192px}.k-panelbar .k-i-arrow-s,.k-pivot .k-i-arrow-s,.k-panelbar .k-link:not(.k-state-disabled):hover>.k-i-arrow-s,.k-pivot .k-link:not(.k-state-disabled):hover>.k-i-arrow-s{background-position:0 -224px}.k-panelbar .k-i-arrow-e,.k-pivot .k-i-arrow-e,.k-panelbar .k-link.k-state-selected .k-i-arrow-e,.k-pivot .k-link.k-state-selected .k-i-arrow-e,.k-panelbar .k-link:not(.k-state-disabled):hover>.k-i-arrow-e,.k-pivot .k-link:not(.k-state-disabled):hover>.k-i-arrow-e{background-position:0 -192px}.k-panelbar li .k-link.k-state-selected .k-i-arrow-s,.k-panelbar li .k-link.k-state-selected.k-state-hover .k-i-arrow-s{background-position:0 -224px}.k-panelbar>li>.k-link.k-state-selected .k-i-arrow-s,.k-panelbar>li>.k-link.k-state-selected.k-state-hover .k-i-arrow-s{background-position:-16px -224px}.k-panelbar li .k-link.k-state-selected .k-i-arrow-n,.k-panelbar li .k-link.k-state-selected.k-state-hover .k-i-arrow-n{background-position:0 -192px}.k-panelbar>li>.k-link.k-state-selected .k-i-arrow-n,.k-panelbar>li>.k-link.k-state-selected.k-state-hover .k-i-arrow-n{background-position:-16px -192px}.k-pivot-toolbar .k-button:active .k-i-sort-asc{background-position:-128px -240px}.k-pivot-toolbar .k-button:active .k-i-sort-desc{background-position:-128px -256px}.k-pivot-toolbar .k-button:active .k-setting-fieldmenu{background-position:-16px -288px}.k-pivot-toolbar .k-button:active .k-setting-delete{background-position:-176px -80px}.k-treeview .k-minus{background-position:0 -32px}.k-treeview .k-plus{background-position:0 -16px}.k-header>.k-link>.k-i-arrow-n,.k-header>.k-link>.k-link:not(.k-state-disabled):hover>.k-i-arrow-n,.k-grid-header th>.k-link:hover span.k-i-arrow-n{background-position:0 -256px}.k-header>.k-link>.k-i-arrow-s,.k-header>.k-link>.k-link:not(.k-state-disabled):hover>.k-i-arrow-s,.k-grid-header th>.k-link:hover span.k-i-arrow-s{background-position:0 -288px}.k-grid-header .k-header-column-menu .k-i-arrowhead-s{background-position:-64px -32px}.k-edit-form-container .k-update,.k-edit-form-container .k-button:not(.k-state-disabled):hover .k-update{background-position:-48px -32px}.k-edit-form-container .k-button:active .k-cancel{background-position:-48px -48px}.k-primary .k-update,.k-primary:not(.k-state-disabled):hover .k-update,.k-button:active:hover .k-update{background-position:-48px -32px}.k-button:active .k-add,.k-button:active:hover .k-add{background-position:-48px -64px}.k-button:active .k-edit,.k-button:active:hover .k-edit{background-position:-48px 0}.k-button:active .k-cancel,.k-button:active:hover .k-cancel{background-position:-48px -48px}.k-button:active .k-delete,.k-button:active:hover .k-delete{background-position:-48px -16px}.k-button:active .k-i-excel,.k-button:active:hover .k-i-excel{background-position:-80px -96px}.k-button:active .k-i-pdf,.k-button:active:hover .k-i-pdf{background-position:-80px -80px}.k-button:active:not(.k-state-disabled):hover .k-i-plus{background-position:-48px -64px}.k-button:active:not(.k-state-disabled):hover .k-i-pdf{background-position:-80px -80px}.k-grouping-header .k-si-arrow-n,.k-grouping-header .k-link:hover>.k-icon.k-si-arrow-n{background-position:0 -288px}.k-grouping-header .k-si-arrow-s,.k-grouping-header .k-link:hover>.k-icon.k-si-arrow-s{background-position:0 -256px}.k-pivot .k-i-arrow-n,.k-pivot .k-link.k-state-selected .k-i-arrow-n,.k-pivot .k-link:not(.k-state-disabled):hover>.k-i-arrow-n{background-position:0 -192px}.k-pivot .k-i-arrow-s,.k-pivot .k-link.k-state-selected .k-i-arrow-s,.k-pivot .k-link:not(.k-state-disabled):hover>.k-i-arrow-s{background-position:0 -224px}.k-gantt .k-link:hover>.k-icon.k-si-arrow-n{background-position:-48px -64px}.k-gantt .k-i-collapse{background-position:0 -32px}.k-gantt .k-i-expand{background-position:0 0}.k-scheduler .k-i-arrow-e,.k-scheduler .k-state-hover .k-link .k-i-arrow-e{background-position:0 -208px}.k-scheduler .k-i-arrow-w,.k-scheduler .k-state-hover .k-link .k-i-arrow-w{background-position:0 -240px}.k-scheduler .k-si-close,.k-scheduler .k-link:not(.k-state-disabled):hover>.k-si-close{background-position:-176px -80px}.k-toolbar .k-state-active:hover .k-i-more{background-position:-80px -32px}.k-toolbar .k-split-button-arrow.k-state-active .k-i-arrow-s{background-position:-16px -32px}.k-toolbar .k-overflow-anchor.k-state-border-down .k-i-more,.k-toolbar .k-overflow-anchor.k-state-border-up .k-i-more{background-position:-80px -32px}.k-treelist .k-i-collapse{background-position:0 -32px}.k-treelist .k-i-expand{background-position:0 0}.k-filter-row .k-state-active .k-filter{background-position:-48px -80px}.k-filter-row .k-button:active .k-i-close{background-position:-48px -16px}.k-checkbox-label,.k-radio-label{line-height:normal;padding-left:2em}.k-checkbox-label:before,.k-checkbox-label:after,.k-checkbox:checked+.k-checkbox-label:after{width:1.357em;height:1.357em}.k-radio-label:before{width:19px;height:19px}.k-radio:checked+.k-radio-label:after{width:11px;height:11px;top:5px;left:5px}.k-filter-menu:after{content:"";display:block;close:both}.k-rtl .k-calendar .k-icon.k-i-arrow-w,.k-rtl .k-calendar .k-link:not(.k-state-disabled):hover>.k-i-arrow-w,.k-rtl .k-scheduler .k-i-arrow-w,.k-rtl .k-scheduler .k-link:not(.k-state-disabled):hover>.k-i-arrow-w,.k-rtl .k-scheduler .k-state-hover .k-link .k-i-arrow-w{background-position:0 -208px}.k-rtl .k-calendar .k-icon.k-i-arrow-e,.k-rtl .k-calendar .k-link:not(.k-state-disabled):hover>.k-i-arrow-e,.k-rtl .k-scheduler .k-i-arrow-e,.k-rtl .k-scheduler .k-link:not(.k-state-disabled):hover>.k-i-arrow-e,.k-rtl .k-scheduler .k-state-hover .k-link .k-i-arrow-e{background-position:0 -240px}.k-rtl .k-widget.k-datetimepicker .k-picker-wrap .k-icon{margin:0 2px} \ No newline at end of file diff --git a/KendoUISharepoint/Content/kendo.dataviz.min.css b/KendoUISharepoint/Content/kendo.dataviz.min.css new file mode 100644 index 0000000..da76f3a --- /dev/null +++ b/KendoUISharepoint/Content/kendo.dataviz.min.css @@ -0,0 +1 @@ +.k-chart,.k-gauge,.k-sparkline,.k-stockchart{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-chart,.k-stockchart{height:400px}div.k-chart,div.k-gauge,span.k-sparkline,.k-stockchart{background-color:transparent}.k-gauge{text-align:left;position:relative}.k-baseline-marker{zoom:1;*display:inline}.k-chart-tooltip{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;padding:6px;white-space:nowrap;z-index:12000;line-height:normal;background-repeat:repeat-x;background-position:0 0;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWCAYAAADAQbwGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADNJREFUeNpi/P//vwMDFQELEP8beQb+HTWQYgP/DHoD/466cAR4edRAyg38P6hLbIAAAwCnWhhVsxvdCAAAAABJRU5ErkJggg==);color:#fff}.k-chart-tooltip-inverse{color:#000}.k-chart-tooltip table{border-spacing:0;border-collapse:collapse}.k-chart-tooltip th{width:auto;text-align:center;padding:1px}.k-chart-tooltip td{width:auto;text-align:left;padding:.1em .2em}.k-selector{position:absolute;-webkit-transform:translateZ(0)}.k-selection{position:absolute;border-width:1px;border-style:solid;border-color:#d2d2d2;border-bottom:0;height:100%}.k-selection-bg{position:absolute;width:100%;height:100%;background-color:#fff;background-color:rgba(255,255,255,0.01);filter:alpha(opacity=1)}.k-handle{background:#d2d2d2;width:7px;height:26px;cursor:e-resize;z-index:1;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;position:absolute}.k-handle div{width:100%;height:100%;background-color:transparent}.k-leftHandle{left:-4px}.k-rightHandle{right:-4px}.k-leftHandle div{margin:-20px 0 0 -15px;padding:40px 30px 0 0}.k-rightHandle div{margin:-20px 0 0 -15px;padding:40px 0 0 30px}.k-mask{position:absolute;height:100%;background-color:#fff;filter:alpha(opacity=80);-moz-opacity:.80;opacity:.80}.k-border{background:#d2d2d2;width:1px;height:100%;position:absolute}.k-navigator-hint div{position:absolute}.k-navigator-hint .k-scroll{position:absolute;height:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background:#d2d2d2}.k-navigator-hint .k-tooltip{margin-top:20px;min-width:160px;opacity:1;text-align:center;border:0;box-shadow:0 1px 2px rgba(0,0,0,0.5);background:#fff}.k-sparkline,.k-sparkline span{display:inline-block;*display:inline;zoom:1;vertical-align:top}.k-sparkline span{height:100%;width:100%}.k-map,.k-diagram{height:600px}.k-map .km-scroll-wrapper,.k-diagram .km-scroll-wrapper{padding-bottom:0;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.k-map .km-scroll-wrapper,.k-diagram .km-scroll-wrapper,.k-map .km-scroll-container,.k-diagram .km-scroll-container{position:absolute;width:100%;height:100%}.k-map .k-layer,.k-diagram .k-layer{position:absolute;left:0;top:0}.k-map .km-touch-scrollbar,.k-diagram .km-touch-scrollbar{display:none}.k-map .k-marker{position:absolute;width:28px;height:40px;margin:-40px 0 0 -14px;cursor:pointer}.k-map .k-marker-pin{background-position:0 40px}.k-map .k-marker-pin-target{background-position:0 0}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){.k-map .k-marker{width:56px;height:80px;margin:-80px 0 0 -28px}.k-map .k-marker-pin{background-position:0 80px}}.k-map .k-pos-top{top:0}.k-map .k-pos-bottom{bottom:0}.k-map .k-pos-left{left:0}.k-map .k-pos-right{right:0}.k-map-controls{position:absolute}.k-map-controls.k-pos-left .k-widget:first-child{margin-right:0}.k-map-controls.k-pos-right .k-widget:first-child{margin-left:0}.k-navigator{width:50px;height:50px;margin:20px;border-radius:80px;position:relative;display:inline-block;vertical-align:middle}.k-ie7 .k-navigator{zoom:1;display:inline}.k-pdf-export .k-navigator{display:none}.k-navigator>button{border-color:transparent;background:0}.k-ie7 .k-navigator>button{border-width:0;display:block}.k-ie7 .k-navigator>button>span{vertical-align:top;display:block}div.k-navigator>.k-button{margin:0;padding:0;line-height:10px;border-radius:16px;position:absolute;font-size:1px;line-height:1px}div.k-navigator .k-navigator-n{top:2px;left:50%;margin-left:-9px}div.k-navigator .k-navigator-e{right:2px;top:50%;margin-top:-9px}div.k-navigator .k-navigator-s{bottom:2px;left:50%;margin-left:-9px}div.k-navigator .k-navigator-w{left:2px;top:50%;margin-top:-9px}.k-ie7 div.k-navigator .k-navigator-n,.k-ie7 div.k-navigator .k-navigator-s{margin-left:-8px}.k-ie7 div.k-navigator .k-navigator-w,.k-ie7 div.k-navigator .k-navigator-e{margin-top:-8px}.k-map .k-attribution{background-color:rgba(255,255,255,0.8);font-size:10px;padding:2px 4px;z-index:1000}.k-zoom-control{margin:14px;vertical-align:middle}.k-pdf-export .k-zoom-control{display:none}.k-button-wrap{border-radius:4px;display:inline-block}.k-ie7 .k-button-wrap{zoom:1;display:inline}.k-button-wrap .k-button{position:relative;font:bold 17px/1.18 monospace}.k-ie7 .k-button-wrap .k-button{margin:0}.k-buttons-horizontal :first-child{border-radius:4px 0 0 4px}.k-buttons-horizontal :first-child+.k-zoom-in{border-radius:0;margin-left:-1px}.k-buttons-horizontal .k-zoom-out{border-radius:0 4px 4px 0;margin-left:-1px}.k-button-wrap .k-button:hover{z-index:1}.k-buttons-vertical .k-button{display:block}.k-buttons-vertical :first-child{border-radius:4px 4px 0 0}.k-buttons-vertical .k-zoom-out{border-radius:0 0 4px 4px;margin-top:-1px}.k-zoom-text{margin:0;width:4.3em;vertical-align:top}.k-rtl .k-buttons-horizontal :first-child{border-radius:0 4px 4px 0}.k-rtl .k-buttons-horizontal :first-child+.k-zoom-in{border-radius:0;margin-left:0;margin-right:-1px}.k-rtl .k-buttons-horizontal .k-zoom-out{border-radius:4px 0 0 4px;margin-left:0;margin-right:-1px}.k-diagram{height:600px}.k-diagram .km-scroll-wrapper{width:100%;height:100%;position:relative}.k-diagram .km-scroll-wrapper{width:100%;height:100%;position:relative}.k-canvas-container{width:100%;height:100%}.k-diagram img{box-sizing:content-box}.k-treemap{overflow:hidden;height:400px}.k-treemap-tile{box-sizing:border-box;border-style:solid;border-width:1px;position:absolute;margin:-1px 0 0 -1px;overflow:hidden}.k-treemap-tile.k-leaf{padding:.6em}.k-treemap-wrap.k-last>.k-treemap-tile{padding:.3em}.k-treemap-tile.k-state-hover{z-index:2;background-image:none}.k-ie7 .k-treemap .k-treemap-tile{border-width:0;padding:0}.k-ie7 .k-treemap .k-leaf>div{padding:7px}.k-ie7 .k-treemap .k-leaf.k-state-hover{border-width:1px}.k-ie7 .k-treemap .k-leaf.k-state-hover>div{padding:6px}.k-treemap>.k-treemap-tile{position:relative;height:100%}.k-treemap-title{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;line-height:2.42em;height:2.42em;padding:0 .6em;white-space:nowrap}.k-treemap-wrap .k-treemap-title{border-width:0 0 1px;border-style:solid}.k-treemap-wrap{position:absolute;top:0;left:0;bottom:0;right:0}.k-treemap-title+.k-treemap-wrap{top:2.42em}.k-treemap-title-vertical{box-sizing:border-box;text-overflow:ellipsis;position:absolute;top:0;bottom:0;width:2.42em;line-height:2.42em;overflow:hidden;padding:.6em 0;white-space:nowrap}.k-treemap-title-vertical>div{position:absolute;top:0;right:1.23em;transform-origin:right;-webkit-transform-origin:right;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.k-treemap-title-vertical+.k-treemap-wrap{left:2.42em} \ No newline at end of file diff --git a/KendoUISharepoint/Content/kendo.dataviz.office365.min.css b/KendoUISharepoint/Content/kendo.dataviz.office365.min.css new file mode 100644 index 0000000..0babf79 --- /dev/null +++ b/KendoUISharepoint/Content/kendo.dataviz.office365.min.css @@ -0,0 +1 @@ +.k-chart .k-mask{background-color:#fff;filter:alpha(opacity=68);-moz-opacity:.68;opacity:.68}.k-chart .k-selection{border-color:#e5e5e5}.k-chart .k-handle{width:15px;height:15px;background-color:#00b0ff;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}.k-chart .k-leftHandle{left:-8px}.k-chart .k-rightHandle{right:-8px}.k-chart .k-handle:hover{background-color:#00b0ff;border-color:#00b0ff}.k-chart .k-navigator-hint .k-tooltip{border:3px solid #fff;-moz-box-shadow:0 0 0 3px rgba(0,0,0,0.2);-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.2);box-shadow:0 0 0 3px rgba(0,0,0,0.2);background:#fff;color:#242424}.k-chart .k-navigator-hint .k-scroll{background:#3f51b5;height:4px}.k-chart-tooltip{background-image:none}.k-map .k-marker{background-image:url("Default/markers.png")}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){.k-map .k-marker{background-image:url("Default/markers_2x.png")}}.k-map .k-attribution{color:#666} \ No newline at end of file diff --git a/KendoUISharepoint/Content/kendo.office365.min.css b/KendoUISharepoint/Content/kendo.office365.min.css new file mode 100644 index 0000000..7574ce5 --- /dev/null +++ b/KendoUISharepoint/Content/kendo.office365.min.css @@ -0,0 +1 @@ +.k-in,.k-item,.k-window-action{border-color:transparent}.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-filter-row>th,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header,.k-grid-header-wrap,.k-grid-header-locked,.k-grid-footer-locked,.k-grid-content-locked,.k-grid td,.k-grid td.k-state-selected,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-treemap-tile,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-tiles,.k-toolbar,.k-tooltip,.k-button-group .k-tool,.k-upload-files{border-color:#c8c8c8}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-calendar th,.k-dropzone-hovered,.k-widget.k-popup{background-color:#fff}.k-grouping-row td,td.k-group-cell,.k-resize-handle-inner{background-color:#fff}.k-list-container{border-color:#c8c8c8;background-color:#fff}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator,.k-resource.k-alt,.k-pivot-layout>tbody>tr:first-child>td:first-child{background-color:#fff}.k-pivot-rowheaders .k-alt .k-alt,.k-header.k-alt{background-color:#ebebeb}.k-textbox,.k-autocomplete.k-header,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-numeric-wrap.k-state-active{border-color:#c8c8c8;background-color:#0072c6}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#c8c8c8}input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background:0}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input,.k-multiselect-wrap{background-color:#fff;color:#333}.k-input[readonly]{background-color:#fff;color:#333}.k-block,.k-widget,.k-popup,.k-content,.k-toolbar,.k-dropdown .k-input{color:#333}.k-inverse{color:#fff}.k-block{color:#333}.k-link:link,.k-link:visited,.k-nav-current.k-state-hover .k-link{color:#0072c6}.k-tabstrip-items .k-link,.k-panelbar>li>.k-link{color:#333}.k-header,.k-treemap-title,.k-grid-header .k-header>.k-link{color:#333}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-grouping-header,.k-pager-wrap,.k-textbox,.k-button,.k-progressbar,.k-draghandle,.k-autocomplete,.k-state-highlight,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.km-pane-wrapper>.km-pane>.km-view>.km-content{background-image:none;background-position:50% 50%;background-color:#fff}.k-widget.k-tooltip{background-image:none}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-button,.k-draghandle,.k-treemap-tile,html .km-pane-wrapper .k-header{background-color:#fff}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite,.k-pager-numbers .k-current-page .k-link:hover:after,.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view.k-state-hover>.k-link:after{opacity:1}.k-icon,.k-state-disabled .k-icon,.k-column-menu .k-sprite,.k-pager-numbers .k-current-page .k-link:after,.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link:after{opacity:.6}.k-mobile-list .k-check:checked,.k-mobile-list .k-edit-field [type=checkbox]:checked,.k-mobile-list .k-edit-field [type=radio]:checked{opacity:.6}.k-tool{border-color:transparent}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-column-menu .k-sprite,.k-grid-mobile .k-resize-handle-inner:before,.k-grid-mobile .k-resize-handle-inner:after,.k-pager-numbers .k-current-page .k-link:after,.k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link:after{background-image:url('Office365/sprite.png');border-color:transparent}.k-mobile-list .k-check:checked,.k-mobile-list .k-edit-field [type=checkbox]:checked,.k-mobile-list .k-edit-field [type=radio]:checked{background-image:url('Office365/sprite.png');border-color:transparent}.k-loading,.k-state-hover .k-loading{background-image:url('Office365/loading.gif');background-position:50% 50%}.k-loading-image{background-image:url('Office365/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#333;border-color:#f4f4f4;background-color:#f4f4f4}.k-draghandle{border-color:#0072c6;background-color:#0072c6;-webkit-box-shadow:none;box-shadow:none}.k-draghandle:hover{border-color:#0072c6;background-color:#0072c6;-webkit-box-shadow:none;box-shadow:none}.k-scheduler{color:#333;background-color:#fff}.k-scheduler-layout{color:#333}.k-scheduler-datecolumn,.k-scheduler-groupcolumn{background-color:#fff;color:#333}.k-scheduler-times tr,.k-scheduler-times th,.k-scheduler-table td,.k-scheduler-header th,.k-scheduler-header-wrap,.k-scheduler-times{border-color:#c8c8c8}.k-nonwork-hour{background-color:#fff}.k-gantt .k-nonwork-hour{background-color:rgba(0,0,0,0.02)}.k-gantt .k-header.k-nonwork-hour{background-color:rgba(0,0,0,0.2)}.k-scheduler-table .k-today,.k-today>.k-scheduler-datecolumn,.k-today>.k-scheduler-groupcolumn{background-color:#fff}.k-scheduler-now-arrow{border-left-color:#eed3d7}.k-scheduler-now-line{background-color:#eed3d7}.k-event,.k-task-complete{border-color:#5db2ff;background:#5db2ff 0 -257px none repeat-x;color:#333}.k-event-inverse{color:#333}.k-event.k-state-selected{background-position:0 0}.k-ie7 .k-event .k-resize-handle,.k-event .k-resize-handle:after,.k-ie7 .k-task-single .k-resize-handle,.k-task-single .k-resize-handle:after{background-color:#fff}.k-scheduler-marquee:before,.k-scheduler-marquee:after{border-color:#cde6f7}.k-panelbar .k-content,.k-panelbar .k-panel,.k-panelbar .k-item{background-color:#fff;color:#333;border-color:#c8c8c8}.k-panelbar>li>.k-link{color:#333}.k-panelbar>.k-item>.k-link{border-color:#c8c8c8}.k-panel>li.k-item{background-color:#fff}.k-state-active,.k-state-active:hover,.k-active-filter,.k-tabstrip .k-state-active{background-color:#fff;border-color:#0072c6;color:#333}.k-fieldselector .k-list-container{background-color:#fff}.k-button:focus,.k-button.k-state-focused{border-color:#0072c6}.k-button:hover,.k-button.k-state-hover{color:#333;border-color:#eaeaea;background-color:#eaeaea}.k-button:active,.k-button.k-state-active{color:#333;background-color:#0072c6;border-color:#0072c6}.k-button:active:hover,.k-button.k-state-active:hover{color:#fff;border-color:#005a9e;background-color:#005a9e}.k-button[disabled],.k-button.k-state-disabled,.k-state-disabled .k-button,.k-state-disabled .k-button:hover,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:active,.k-button.k-state-disabled:active{color:#a6a6a6;border-color:#f4f4f4;background-color:#f4f4f4;background-image:none}.k-button:focus:not(.k-state-disabled):not([disabled]){-webkit-box-shadow:none;box-shadow:none}.k-button:focus:active:not(.k-state-disabled):not([disabled]){-webkit-box-shadow:none;box-shadow:none}.k-menu .k-state-hover>.k-state-active{background-color:transparent}.k-state-highlight{background:#fff;color:#333}.k-state-focused,.k-grouping-row .k-state-focused{border-color:#0072c6}.k-calendar .k-link{color:#333}.k-calendar .k-footer{padding:0}.k-calendar .k-footer .k-nav-today{color:#333;text-decoration:none;background-color:#fff}.k-calendar .k-footer .k-nav-today:hover,.k-calendar .k-footer .k-nav-today.k-state-hover{background-color:#fff;text-decoration:underline}.k-calendar .k-footer .k-nav-today:active{background-color:#fff}.k-calendar .k-link.k-nav-fast{color:#333}.k-calendar .k-nav-fast.k-state-hover{text-decoration:none;background-color:#f4f4f4;color:#000}.k-calendar .k-link.k-state-hover,.k-window-titlebar .k-link{border-radius:0}.k-calendar .k-footer .k-link{border-radius:0}.k-calendar th{background-color:#fff}.k-calendar-container.k-group{border-color:#c8c8c8}.k-state-selected,.k-state-selected:link,.k-state-selected:visited,.k-list>.k-state-selected,.k-list>.k-state-highlight,.k-panel>.k-state-selected,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover,.k-scheduler .k-scheduler-toolbar .k-state-selected,.k-scheduler .k-today.k-state-selected,.k-marquee-color{color:#333;background-color:#cde6f7;border-color:#cde6f7}.k-virtual-item.k-first,.k-list>.k-item.k-first{border-bottom-color:#a6a6a6}.k-marquee-text{color:#333}.k-state-focused,.k-list>.k-state-focused,.k-listview>.k-state-focused,.k-grid-header th.k-state-focused,td.k-state-focused,.k-button.k-state-focused{-webkit-box-shadow:none;box-shadow:none}.k-state-focused.k-state-selected,.k-list>.k-state-focused.k-state-selected,.k-listview>.k-state-focused.k-state-selected,td.k-state-focused.k-state-selected{-webkit-box-shadow:none;box-shadow:none}.k-ie8 .k-panelbar span.k-state-focused,.k-ie8 .k-menu li.k-state-focused,.k-ie8 .k-listview>.k-state-focused,.k-ie8 .k-grid-header th.k-state-focused,.k-ie8 td.k-state-focused,.k-ie8 .k-tool.k-state-hover,.k-ie8 .k-button:focus,.k-ie8 .k-button.k-state-focused,.k-ie7 .k-panelbar span.k-state-focused,.k-ie7 .k-menu li.k-state-focused,.k-ie7 .k-listview>.k-state-focused,.k-ie7 .k-grid-header th.k-state-focused,.k-ie7 td.k-state-focused,.k-ie7 .k-tool.k-state-hover,.k-ie7 .k-button:focus,.k-ie7 .k-button.k-state-focused{background-color:#f4f4f4}.k-list>.k-state-selected.k-state-focused,.k-list-optionlabel.k-state-selected.k-state-focused{-webkit-box-shadow:none;box-shadow:none}.k-state-selected>.k-link,.k-panelbar>li>.k-state-selected,.k-panelbar>li.k-state-default>.k-link.k-state-selected{color:#333}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-scheduler .k-scheduler-toolbar ul li.k-state-hover,.k-pager-wrap .k-link:hover,.k-dropdown .k-state-focused,.k-filebrowser-dropzone,.k-mobile-list .k-item>.k-link:active,.k-mobile-list .k-item>.k-label:active,.k-mobile-list .k-edit-label.k-check:active,.k-mobile-list .k-recur-view .k-check:active{color:#000;background-color:#f4f4f4;border-color:#8f8f8f}.k-mobile-list .k-scheduler-timezones .k-edit-field:nth-child(2):active{color:#000;background-color:#f4f4f4;border-color:#8f8f8f}.k-ie7 .k-window-titlebar .k-state-hover,.k-ie8 .k-window-titlebar .k-state-hover{border-color:#8f8f8f}.k-state-hover>.k-select,.k-state-focused>.k-select{border-color:#8f8f8f}.k-button:hover,.k-button.k-state-hover,.k-button:focus,.k-button.k-state-focused,.k-textbox:hover,.k-state-hover,.k-state-hover:hover,.k-pager-wrap .k-link:hover,.k-other-month.k-state-hover .k-link,div.k-filebrowser-dropzone em,.k-draghandle:hover{background-image:none}.k-pager-wrap{background-color:#fff;color:#333}.k-autocomplete.k-state-active,.k-picker-wrap.k-state-active,.k-numeric-wrap.k-state-active,.k-dropdown-wrap.k-state-active,.k-state-active,.k-state-active:hover,.k-state-active>.k-link,.k-button:active,.k-panelbar>.k-item>.k-state-focused{background-image:none}.k-state-selected,.k-button:active,.k-button.k-state-active,.k-draghandle.k-state-selected:hover{background-image:none}.k-button:active,.k-button.k-state-active,.k-draghandle.k-state-selected:hover{background-position:50% 50%}.k-tool-icon{background-image:url('Office365/sprite.png')}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link,div.k-filebrowser-dropzone em{color:#000}.k-autocomplete.k-state-hover,.k-autocomplete.k-state-focused,.k-picker-wrap.k-state-hover,.k-picker-wrap.k-state-focused,.k-numeric-wrap.k-state-hover,.k-numeric-wrap.k-state-focused,.k-dropdown-wrap.k-state-hover,.k-dropdown-wrap.k-state-focused{background-color:#eaeaea;background-image:none;background-position:50% 50%;border-color:#0072c6}.km-pane-wrapper .k-mobile-list input:not([type="checkbox"]):not([type="radio"]),.km-pane-wrapper .km-pane .k-mobile-list select:not([multiple]),.km-pane-wrapper .k-mobile-list textarea,.k-dropdown .k-state-focused .k-input{color:#333}.k-dropdown .k-state-hover .k-input{color:#000}.k-state-error{border-color:#eed3d7;background-color:#f2dede;color:#b94a48}.k-state-disabled{opacity:.7}.k-ie7 .k-state-disabled,.k-ie8 .k-state-disabled{filter:alpha(opacity=70)}.k-tile-empty.k-state-selected,.k-loading-mask.k-state-selected{border-width:0;background-image:none;background-color:transparent}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month,.k-other-month .k-link,.k-dropzone em,.k-dropzone .k-upload-status,.k-tile-empty strong,.k-slider .k-draghandle{color:#a6a6a6}.k-progressbar-indeterminate{background:url('Office365/indeterminate.gif')}.k-progressbar-indeterminate .k-progress-status-wrap,.k-progressbar-indeterminate .k-state-selected{display:none}.k-slider-track{background-color:#c8c8c8}.k-slider-selection{background-color:#cde6f7}.k-slider-horizontal .k-tick{background-image:url('Office365/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Office365/slider-v.gif')}.k-widget.k-tooltip{border-color:#c8c8c8;background-color:#fff;color:#333}.k-widget.k-tooltip-validation{border-color:#fff19d;background-color:#fff19d;color:#4c4c4c}.input-prepend .k-tooltip-validation,.input-append .k-tooltip-validation{font-size:12px;position:relative;top:3px}.k-callout-n{border-bottom-color:#c8c8c8}.k-callout-w{border-right-color:#c8c8c8}.k-callout-s{border-top-color:#c8c8c8}.k-callout-e{border-left-color:#c8c8c8}.k-tooltip-validation .k-callout-n{border-bottom-color:#fff19d}.k-tooltip-validation .k-callout-w{border-right-color:#fff19d}.k-tooltip-validation .k-callout-s{border-top-color:#fff19d}.k-tooltip-validation .k-callout-e{border-left-color:#fff19d}.k-splitbar{background-color:#f4f4f4}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#b94a48}.k-file{background-color:#fff;border-color:#c8c8c8}.k-file-progress{color:#fff}.k-file-progress .k-progress{background-color:#0072c6}.k-file-success{color:#333}.k-file-success .k-progress{background-color:#fce68d}.k-file-error{color:#333}.k-file-error .k-progress{background-color:#fce68d}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#8f8f8f}.k-tiles li.k-state-selected{border-color:#cde6f7}.k-filebrowser .k-tile .k-folder,.k-filebrowser .k-tile .k-file{background-image:url('Office365/imagebrowser.png');background-size:auto auto}.k-leaf,.k-leaf.k-state-hover:hover{color:#fff}.k-leaf.k-inverse,.k-leaf.k-inverse.k-state-hover:hover{color:#000}.k-widget,.k-button{-webkit-box-shadow:none;box-shadow:none}.k-slider,.k-treeview,.k-upload{-webkit-box-shadow:none;box-shadow:none}.k-state-hover{-webkit-box-shadow:none;box-shadow:none}.k-autocomplete.k-state-focused,.k-dropdown-wrap.k-state-focused,.k-picker-wrap.k-state-focused,.k-numeric-wrap.k-state-focused{-webkit-box-shadow:none;box-shadow:none}.k-state-selected{-webkit-box-shadow:none;box-shadow:none}.k-state-active{-webkit-box-shadow:none;box-shadow:none}.k-grid td.k-state-selected.k-state-focused{background-color:#daedf9}.k-popup,.k-menu .k-menu-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-multiselect.k-state-focused,.k-filebrowser .k-image,.k-tooltip{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.18);box-shadow:0 2px 2px 0 rgba(0,0,0,0.18)}.k-treemap-tile.k-state-hover{-webkit-box-shadow:inset 0 0 0 3px #c8c8c8;box-shadow:inset 0 0 0 3px #c8c8c8}.k-window{border-color:rgba(0,0,0,0.18);-webkit-box-shadow:1px 1px 7px 1px rgba(128,128,128,0.18);box-shadow:1px 1px 7px 1px rgba(128,128,128,0.18);background-color:#fff}.k-window.k-state-focused{border-color:rgba(0,0,0,0.18);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.18);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.18)}.k-window.k-window-maximized,.k-window-maximized .k-window-titlebar,.k-window-maximized .k-window-content{border-radius:0}.k-shadow{-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.18);box-shadow:0 1px 2px 0 rgba(0,0,0,0.18)}.k-inset{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.18);box-shadow:inset 0 1px 1px rgba(0,0,0,0.18)}.k-editor-inline ::selection{background-color:#cde6f7;text-shadow:none;color:#fff}.k-editor-inline ::-moz-selection{background-color:#cde6f7;text-shadow:none;color:#fff}.k-widget.k-notification.k-notification-info{background-color:#bbdefb;color:#4c4c4c;border-color:#bbdefb}.k-widget.k-notification.k-notification-success{background-color:#c8e6c9;color:#4c4c4c;border-color:#c8e6c9}.k-widget.k-notification.k-notification-warning{background-color:#fff19d;color:#4c4c4c;border-color:#fff19d}.k-widget.k-notification.k-notification-error{background-color:#ffcdd2;color:#4c4c4c;border-color:#ffcdd2}.k-gantt .k-treelist{background:#fff}.k-gantt .k-treelist .k-alt{background-color:#e6e6e6}.k-gantt .k-treelist .k-state-selected,.k-gantt .k-treelist .k-state-selected td,.k-gantt .k-treelist .k-alt.k-state-selected,.k-gantt .k-treelist .k-alt.k-state-selected>td{background-color:#cde6f7}.k-task-dot:after{background-color:#333;border-color:#333}.k-task-dot:hover:after{background-color:#fff}.k-task-summary{border-color:#cdd3d5;background:#cdd3d5}.k-task-milestone,.k-task-summary-complete{border-color:#333;background:#333}.k-state-selected.k-task-summary{border-color:#000;background:#000}.k-state-selected.k-task-milestone,.k-state-selected .k-task-summary-complete{border-color:#cde6f7;background:#cde6f7}.k-task-single{background-color:#81c3ff;border-color:#5db2ff;color:#333}.k-state-selected.k-task-single{border-color:#cde6f7}.k-line{background-color:#333;color:#333}.k-state-selected.k-line{background-color:#cde6f7;color:#cde6f7}.k-resource{background-color:#fff}.k-i-kpi-decrease,.k-i-kpi-denied,.k-i-kpi-equal,.k-i-kpi-hold,.k-i-kpi-increase,.k-i-kpi-open{background-image:url('Office365/sprite_kpi.png')}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-multiselect,.k-combobox,.k-dropdown,.k-dropdown-wrap,.k-datepicker,.k-timepicker,.k-colorpicker,.k-datetimepicker,.k-notification,.k-numerictextbox,.k-picker-wrap,.k-numeric-wrap,.k-colorpicker,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-in,.k-editor-inline,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection,.k-upload{border-radius:0}.k-tool{text-align:center;vertical-align:middle}.k-tool.k-group-start,.k-toolbar .k-split-button .k-button,.k-toolbar .k-button-group .k-group-start{border-radius:0}.k-rtl .k-tool.k-group-start{border-radius:0}.k-tool.k-group-end,.k-toolbar .k-button-group .k-group-end,.k-toolbar .k-split-button .k-split-button-arrow{border-radius:0}.k-rtl .k-tool.k-group-end{border-radius:0}.k-group-start.k-group-end.k-tool{border-radius:0}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-multiselect.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{border-radius:0}.k-autocomplete.k-state-border-up .k-input,.k-dropdown-wrap.k-state-border-up .k-input,.k-picker-wrap.k-state-border-up .k-input,.k-picker-wrap.k-state-border-up .k-selected-color,.k-numeric-wrap.k-state-border-up .k-input{border-radius:0}.k-multiselect.k-state-border-up .k-multiselect-wrap{border-radius:0}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-multiselect.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{border-radius:0}.k-split-button.k-state-border-down>.k-button{border-radius:0}.k-split-button.k-state-border-up>.k-button{border-radius:0}.k-split-button.k-state-border-down>.k-split-button-arrow{border-radius:0}.k-split-button.k-state-border-up>.k-split-button-arrow{border-radius:0}.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input{border-radius:0}.k-rtl .k-dropdown-wrap .k-input,.k-rtl .k-picker-wrap .k-input,.k-rtl .k-numeric-wrap .k-input{border-radius:0}.k-numeric-wrap .k-link{border-radius:0}.k-numeric-wrap .k-link+.k-link{border-radius:0}.k-colorpicker .k-selected-color{border-radius:0}.k-rtl .k-colorpicker .k-selected-color{border-radius:0}.k-autocomplete.k-state-border-down .k-input{border-radius:0}.k-dropdown-wrap.k-state-border-down .k-input,.k-picker-wrap.k-state-border-down .k-input,.k-picker-wrap.k-state-border-down .k-selected-color,.k-numeric-wrap.k-state-border-down .k-input{border-radius:0}.k-numeric-wrap .k-link.k-state-selected{background-color:#0072c6}.k-multiselect.k-state-border-down .k-multiselect-wrap{border-radius:0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-list-container.k-state-border-right{border-radius:0}.k-rtl .k-dropdown-wrap .k-select,.k-rtl .k-picker-wrap .k-select,.k-rtl .k-numeric-wrap .k-select,.k-rtl .k-datetimepicker .k-select+.k-select,.k-rtl .k-list-container.k-state-border-right{border-radius:0}.k-numeric-wrap.k-expand-padding .k-input{border-radius:0}.k-textbox>input,.k-autocomplete .k-input,.k-multiselect-wrap{border-radius:0}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-highlight,.k-list .k-state-selected,.k-fieldselector .k-list .k-item,.k-list-optionlabel,.k-dropzone{border-radius:0}.k-slider .k-button,.k-grid .k-slider .k-button{border-radius:0}.k-draghandle{border-radius:0}.k-scheduler-toolbar>ul li:first-child,.k-scheduler-toolbar>ul li:first-child .k-link,.k-scheduler-toolbar>ul.k-scheduler-views li:first-child+li,.k-scheduler-toolbar>ul.k-scheduler-views li:first-child+li .k-link{border-radius:0}.k-rtl .k-scheduler-toolbar>ul li:first-child,.k-rtl .k-scheduler-toolbar>ul li:first-child .k-link,.k-rtl .k-scheduler-toolbar>ul.k-scheduler-views li:first-child+li,.k-rtl .k-scheduler-toolbar>ul.k-scheduler-views li:first-child+li .k-link,.km-view.k-popup-edit-form .k-scheduler-toolbar>ul li:last-child,.km-view.k-popup-edit-form .k-scheduler-toolbar>ul li:last-child .k-link{border-radius:0}.k-scheduler-phone .k-scheduler-toolbar>ul li.k-nav-today,.k-scheduler-phone .k-scheduler-toolbar>ul li.k-nav-today .k-link,.k-edit-field>.k-scheduler-navigation{border-radius:0}.k-scheduler-toolbar .k-nav-next,.k-scheduler-toolbar ul+ul li:last-child,.k-scheduler-toolbar .k-nav-next .k-link,.k-scheduler-toolbar ul+ul li:last-child .k-link{border-top-right-radius:0;border-bottom-right-radius:0}.k-rtl .k-scheduler-toolbar .k-nav-next,.k-rtl .k-scheduler-toolbar ul+ul li:last-child,.k-rtl .k-scheduler-toolbar .k-nav-next .k-link,.k-rtl .k-scheduler-toolbar ul+ul li:last-child .k-link{border-radius:0}.k-scheduler div.k-scheduler-footer ul li,.k-scheduler div.k-scheduler-footer .k-link{border-radius:0}.k-more-events,.k-event,.k-task-single,.k-task-complete,.k-event .k-link{border-radius:0}.k-scheduler-mobile .k-event{border-radius:-1}.k-grid-mobile .k-column-active+th.k-header{border-left-color:#333}html .km-pane-wrapper .km-widget,.k-ie .km-pane-wrapper .k-widget,.k-ie .km-pane-wrapper .k-group,.k-ie .km-pane-wrapper .k-content,.k-ie .km-pane-wrapper .k-header,.k-ie .km-pane-wrapper .k-popup-edit-form .k-edit-field .k-button,.km-pane-wrapper .k-mobile-list .k-item,.km-pane-wrapper .k-mobile-list .k-edit-label,.km-pane-wrapper .k-mobile-list .k-edit-field{color:#333}@media screen and (-ms-high-contrast:active) and (-ms-high-contrast:none){div.km-pane-wrapper a{color:#333}.km-pane-wrapper .k-icon{background-image:url('Office365/sprite_2x.png');background-size:21.2em 21em}}.km-pane-wrapper .k-mobile-list .k-item,.km-pane-wrapper .k-mobile-list .k-edit-field,.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-field .k-check{background-color:#fff;border-top:1px solid #c8c8c8}.km-pane-wrapper .k-mobile-list .k-edit-field textarea{outline-width:0}.km-pane-wrapper .k-mobile-list .k-item.k-state-selected{background-color:#cde6f7;border-top-color:#cde6f7}.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-field .k-check:first-child{border-top-color:transparent}.km-pane-wrapper .k-mobile-list .k-item:last-child{-webkit-box-shadow:inset 0 -1px 0 #c8c8c8;box-shadow:inset 0 -1px 0 #c8c8c8}.km-pane-wrapper .k-mobile-list>ul>li>.k-link,.km-pane-wrapper .k-mobile-list .k-recur-view>.k-edit-label:nth-child(3),.km-pane-wrapper #recurrence .km-scroll-container>.k-edit-label:first-child{color:#7c7c7c}.km-pane-wrapper .k-mobile-list>ul>li>.k-link{border-bottom:1px solid #c8c8c8}.km-pane-wrapper .k-mobile-list .k-edit-field{-webkit-box-shadow:0 1px 1px #c8c8c8;box-shadow:0 1px 1px #c8c8c8}.km-actionsheet .k-grid-delete,.km-actionsheet .k-scheduler-delete,.km-pane-wrapper .k-scheduler-delete,.km-pane-wrapper .k-filter-menu .k-button[type=reset]{color:#fff;border-color:#eed3d7;background-color:red;background-image:-webkit-gradient(linear,50% 0,50% 100%,from(rgba(255,255,255,.3)),to(rgba(255,255,255,.15)));background-image:-webkit-linear-gradient(top,rgba(255,255,255,.3),rgba(255,255,255,.15));background-image:-moz-linear-gradient(top,rgba(255,255,255,.3),rgba(255,255,255,.15));background-image:-ms-linear-gradient(top,rgba(255,255,255,.3),rgba(255,255,255,.15));background-image:linear-gradient(to bottom,rgba(255,255,255,.3),rgba(255,255,255,.15))}.km-actionsheet .k-grid-delete:active,.km-actionsheet .k-scheduler-delete:active,.km-pane-wrapper .k-scheduler-delete:active,.km-pane-wrapper .k-filter-menu .k-button[type=reset]:active{background-color:#900}.k-autocomplete.k-state-default,.k-picker-wrap.k-state-default,.k-numeric-wrap.k-state-default,.k-dropdown-wrap.k-state-default{background-image:none;background-position:50% 50%;background-color:#fff;border-color:#bababa}.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#eaeaea;background-image:none;background-position:50% 50%;border-color:#8f8f8f}.k-multiselect.k-header{border-color:#bababa}.k-multiselect.k-header.k-state-hover{border-color:#8f8f8f}.k-autocomplete.k-state-focused,.k-picker-wrap.k-state-focused,.k-numeric-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused,.k-multiselect.k-header.k-state-focused{background-color:#eaeaea;background-image:none;background-position:50% 50%;border-color:#0072c6;-webkit-box-shadow:none;box-shadow:none}.k-list-container{color:#333}.k-dropdown .k-input,.k-dropdown .k-state-focused .k-input,.k-menu .k-popup{color:#333}.k-state-default>.k-select{border-color:#bababa}.k-state-hover>.k-select{border-color:#8f8f8f}.k-state-focused>.k-select{border-color:#0072c6}.k-tabstrip:focus{-webkit-box-shadow:none;box-shadow:none}.k-tabstrip-items .k-state-default .k-link,.k-panelbar>li.k-state-default>.k-link{color:#333}.k-tabstrip-items .k-state-hover .k-link,.k-panelbar>li.k-state-hover>.k-link,.k-panelbar>li.k-state-default>.k-link.k-state-hover{color:#000}.k-panelbar .k-state-focused.k-state-hover{background:#f4f4f4;-webkit-box-shadow:none;box-shadow:none}.k-tabstrip-items .k-state-default,.k-ie7 .k-tabstrip-items .k-state-default .k-loading{border-color:transparent}.k-tabstrip-items .k-state-hover,.k-ie7 .k-tabstrip-items .k-state-hover .k-loading{border-color:#8f8f8f}.k-tabstrip-items .k-state-active,.k-panelbar .k-tabstrip-items .k-state-active,.k-ie7 .k-tabstrip-items .k-state-active .k-loading{background-color:#fff;background-image:none;border-color:#0072c6}.k-tabstrip .k-content.k-state-active{background-color:#fff;color:#333}.k-menu.k-header,.k-menu .k-item{border-color:#fff}.k-column-menu,.k-column-menu .k-item,.k-overflow-container .k-overflow-group{border-color:#c8c8c8}.k-overflow-container .k-overflow-group{box-shadow:inset 0 1px 0 #fff,0 1px 0 #fff}.k-toolbar-first-visible.k-overflow-group,.k-overflow-container .k-overflow-group+.k-overflow-group{box-shadow:0 1px 0 #fff}.k-toolbar-last-visible.k-overflow-group{box-shadow:inset 0 1px 0 #fff}.k-column-menu .k-separator{border-color:#c8c8c8;background-color:transparent}.k-menu .k-group{border-color:#c8c8c8}.k-grid-filter.k-state-active{background-color:#fff}.k-grouping-row td,.k-group-footer td,.k-grid-footer td{color:#333;border-color:#c8c8c8;font-weight:bold}.k-grouping-header{color:#333}.k-grid td.k-state-focused{-webkit-box-shadow:inset 0 0 0 1px none;box-shadow:inset 0 0 0 1px none}.k-header,.k-grid-header-wrap,.k-grid .k-grouping-header,.k-grid-header,.k-pager-wrap,.k-pager-wrap .k-textbox,.k-pager-wrap .k-link,.k-grouping-header .k-group-indicator,.k-gantt-toolbar .k-state-default{border-color:#c8c8c8}.k-primary,.k-overflow-container .k-primary{color:#fff;border-color:#0072c6;background-image:none;background-position:50% 50%;background-color:#0072c6;-webkit-box-shadow:none;box-shadow:none}.k-primary:focus,.k-primary.k-state-focused{color:#fff;border-color:#004578;background-image:none;-webkit-box-shadow:none;box-shadow:none}.k-primary:hover{color:#fff;border-color:#005a9e;background-image:none;background-color:#005a9e;-webkit-box-shadow:none;box-shadow:none}.k-primary:focus:active:not(.k-state-disabled):not([disabled]),.k-primary:focus:not(.k-state-disabled):not([disabled]){-webkit-box-shadow:none;box-shadow:none}.k-primary:active{color:#fff;border-color:#283593;background-image:none;background-color:#283593;-webkit-box-shadow:none;box-shadow:none}.k-primary.k-state-disabled,.k-state-disabled .k-primary,.k-primary.k-state-disabled:hover,.k-state-disabled .k-primary:hover,.k-primary.k-state-disabled:hover,.k-state-disabled .k-primary:active,.k-primary.k-state-disabled:active{color:#888;border-color:#e4e4e4;background-color:#e4e4e4;background-image:none;-webkit-box-shadow:none;box-shadow:none}.k-pager-numbers .k-link,.k-treeview .k-in{border-color:transparent}.k-treeview .k-icon,.k-scheduler-table .k-icon,.k-grid .k-hierarchy-cell .k-icon{background-color:transparent;border-radius:0}.k-scheduler-table .k-state-hover .k-icon{background-color:transparent}.k-button:focus{outline:0}.k-editor .k-tool:focus{outline:0;border-color:#0072c6;-webkit-box-shadow:none;box-shadow:none}.k-checkbox-label:before{border-color:transparent;border-radius:1px}.k-checkbox-label:after{border-color:#666;background:#fff;border-radius:1px}.k-checkbox-label:hover:after,.k-checkbox:checked+.k-checkbox-label:hover:after{border-color:#212121;box-shadow:none}.k-checkbox:checked+.k-checkbox-label:after{background-color:#fff;border-color:#666;border-radius:1px;color:#333}.k-checkbox-label:active:before{box-shadow:none;border-color:transparent;border-radius:50%}.k-checkbox-label:active:after{border-color:#212121;border-radius:1px}.k-checkbox:checked+.k-checkbox-label:active:after{border-color:#212121}.k-checkbox:checked+.k-checkbox-label:active:before{box-shadow:none;border-radius:50%}.k-checkbox:disabled+.k-checkbox-label{color:a6a6a6}.k-checkbox:disabled+.k-checkbox-label:hover:after,.k-checkbox:disabled+.k-checkbox-label:active:before{box-shadow:none}.k-checkbox:checked:disabled+.k-checkbox-label:after{background:#fff;color:#a6a6a6}.k-checkbox:disabled+.k-checkbox-label:after,.k-checkbox:checked:disabled+.k-checkbox-label:active:after,.k-checkbox:disabled+.k-checkbox-label:hover:before,.k-checkbox:checked:disabled+.k-checkbox-label:hover:after{background:#fff;border-color:#a6a6a6;border-radius:1px}.k-radio-label:before{border-color:#666;border-radius:50%;background-color:#fff;border-width:1px}.k-radio-label:hover:before,.k-radio:checked+.k-radio-label:hover:before{border-color:#212121;box-shadow:none}.k-radio:checked+.k-radio-label:before{border-color:#212121}.k-radio:checked+.k-radio-label:after{background-color:#212121;border-radius:50%}.k-radio-label:active:before{box-shadow:none;border-radius:50%;border-color:#666}.k-radio:checked+.k-radio-label:active:before{box-shadow:none;border-radius:50%;border-color:#212121}.k-radio:disabled+.k-radio-label{color:#a6a6a6}.k-radio:disabled+.k-radio-label:before{border-color:#bfbfbf}.k-radio:disabled+.k-radio-label:active:before{box-shadow:none;background:#fff}.k-radio:disabled+.k-radio-label:before{background:#fff}.k-radio:disabled+.k-radio-label:hover:after,.k-radio:disabled+.k-radio-label:hover:before{box-shadow:none}.k-checkbox:focus+.k-checkbox-label:after,.k-radio:focus+.k-radio-label:before{border-color:#212121;box-shadow:none}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-device-pixel-ratio:2){.k-icon:not(.k-loading),.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-tool-icon,.k-state-hover .k-tool-icon,.k-state-active .k-tool-icon,.k-state-active.k-state-hover .k-tool-icon,.k-state-selected .k-tool-icon,.k-state-selected.k-state-hover .k-tool-icon,.k-column-menu .k-sprite,.k-mobile-list .k-check:checked,.k-mobile-list .k-edit-field [type=checkbox]:checked,.k-mobile-list .k-edit-field [type=radio]:checked{background-image:url('Office365/sprite_2x.png');background-size:340px 336px}.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input{border-radius:0}.k-i-kpi-decrease,.k-i-kpi-denied,.k-i-kpi-equal,.k-i-kpi-hold,.k-i-kpi-increase,.k-i-kpi-open{background-image:url('Office365/sprite_kpi_2x.png');background-size:96px 16px}}@media screen and (-ms-high-contrast:active){.k-editor-toolbar-wrap .k-dropdown-wrap.k-state-focused,.k-editor-toolbar-wrap .k-button-group .k-tool:focus{border-color:#fff}}.ktb-checkbox-label-after{border-color:#666;background:#fff}.ktb-checkbox-label-hover-after,.ktb-checkbox-checked+.ktb-checkbox-label-hover-after{border-color:#212121}.ktb-checkbox-checked+.ktb-checkbox-label-after{background-color:#fff;border-color:#666;color:#333}.ktb-checkbox-label-hover-after,.ktb-checkbox-checked+.ktb-checkbox-label-hover-after{border-color:#212121}.ktb-checkbox-label-active-after{border-color:#212121}.ktb-checkbox-checked-disabled+.ktb-checkbox-label-after,.ktb-checkbox-disabled+.ktb-checkbox-label-after,.ktb-checkbox-checked-disabled+.ktb-checkbox-label-active-after,.ktb-checkbox-disabled+.ktb-checkbox-label-hover-before,.ktb-checkbox-checked-disabled+.ktb-checkbox-label-hover-after{background:#fff;color:#a6a6a6;border-color:#a6a6a6}.ktb-radio-label-before{border-color:#666;background-color:#fff}.ktb-radio-checked+.ktb-radio-label-after{background-color:#212121}.ktb-radio-checked+.ktb-radio-label-before{border-color:#212121}.ktb-radio-label-hover-before,.ktb-radio-checked+.ktb-radio-label-hover-before{border-color:#212121}.ktb-radio-label-active-before{border-color:#666}.ktb-radio-checked+.ktb-radio-label-after{background-color:#212121}.ktb-radio-disabled+.ktb-radio-label-before,.ktb-radio-disabled+.ktb-radio-label-active-before{background:#fff;border-color:#a6a6a6}@media only screen and (max-width:1024px){.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-webkit .k-pager-numbers .k-current-page .k-link,.k-ff .k-pager-numbers .k-current-page .k-link,.k-ie11 .k-pager-numbers .k-current-page .k-link{background-image:none;background-position:50% 50%;background-color:#fff;border-color:#c8c8c8}.k-webkit .k-pager-numbers .k-current-page .k-link,.k-ff .k-pager-numbers .k-current-page .k-link,.k-ie11 .k-pager-numbers .k-current-page .k-link{border-color:#c8c8c8}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view{border-radius:0}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li{border-radius:0}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li.k-current-view,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li.k-current-view,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li.k-current-view{border-radius:0}.k-webkit .k-scheduler-toolbar>ul li:first-child,.k-ff .k-scheduler-toolbar>ul li:first-child,.k-ie11 .k-scheduler-toolbar>ul li:first-child,.k-webkit .k-scheduler-toolbar>ul li:first-child .k-link,.k-ff .k-scheduler-toolbar>ul li:first-child .k-link,.k-ie11 .k-scheduler-toolbar>ul li:first-child .k-link,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views li,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views li,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views li,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views li .k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views li .k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views li .k-link{border-radius:0}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views li:last-child,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views li:last-child,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views li:last-child,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views li:last-child .k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views li:last-child .k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views li:last-child .k-link{border-radius:0}.k-webkit .k-pager-numbers .k-current-page .k-link:hover,.k-ff .k-pager-numbers .k-current-page .k-link:hover,.k-ie11 .k-pager-numbers .k-current-page .k-link:hover,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover{border-color:#8f8f8f;background-image:none;background-color:#f4f4f4}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link{color:#333;min-width:75px}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover>.k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover>.k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover>.k-link{color:#000}.k-webkit .k-pager-numbers .k-current-page .k-link:after,.k-ff .k-pager-numbers .k-current-page .k-link:after,.k-ie11 .k-pager-numbers .k-current-page .k-link:after,.k-webkit .k-scheduler-views>li.k-state-selected>.k-link:after,.k-ff .k-scheduler-views>li.k-state-selected>.k-link:after,.k-ie11 .k-scheduler-views>li.k-state-selected>.k-link:after{display:block;content:"";position:absolute;top:50%;margin-top:-0.5em;right:.333em;width:1.333em;height:1.333em}.k-webkit .k-pager-numbers.k-state-expanded,.k-ff .k-pager-numbers.k-state-expanded,.k-ie11 .k-pager-numbers.k-state-expanded,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded{border-width:1px 1px 0 1px;border-style:solid;border-color:#c8c8c8;background-color:#fff;border-radius:0;-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.18);box-shadow:0 2px 2px 0 rgba(0,0,0,0.18)}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded{border-width:1px;background-image:none;border-radius:0}.k-webkit .k-pager-numbers .k-state-selected,.k-ff .k-pager-numbers .k-state-selected,.k-ie11 .k-pager-numbers .k-state-selected,.k-webkit .k-pager-numbers .k-link,.k-ff .k-pager-numbers .k-link,.k-ie11 .k-pager-numbers .k-link{border-radius:0}}.k-button:hover .k-icon,.k-tool-icon:hover,.k-state-hover .k-tool-icon,.k-state-selected .k-tool-icon,.k-state-focused .k-tool-icon,.k-button:hover .k-tool-icon,.k-splitbar.k-splitbar-horizontal-hover .k-icon,.k-splitbar.k-splitbar-vertical-hover .k-icon,div.k-splitbar.k-state-focused .k-icon,.k-textbox:hover>.k-icon,.k-grouping-header .k-group-delete,.k-grouping-header .k-button-icon:hover>.k-icon.k-group-delete,.k-grouping-header .k-si-arrow-n,.k-grouping-header .k-link:hover>.k-icon.k-si-arrow-n,.k-grouping-header .k-si-arrow-s,.k-grouping-header .k-link:hover>.k-icon.k-si-arrow-s,.k-grid-toolbar .k-i-pdf,.k-grid-toolbar .k-button:hover>.k-i-pdf,.k-grid-toolbar .k-i-excel,.k-grid-toolbar .k-button:hover>.k-i-excel,.k-grid-toolbar .k-icon,.k-scheduler-toolbar .k-icon,.k-scheduler-footer .k-icon,.k-scheduler-content .k-icon,.k-gantt-toolbar .k-icon,.k-field-actions .k-icon,.k-notification .k-icon,.k-pivot-configurator-settings .k-icon:hover{opacity:.8}.k-state-disabled .k-icon,.k-button.k-state-disabled .k-icon{opacity:.3}.k-button:active,.k-button.k-state-active{color:#fff}.k-button:active:hover,.k-button.k-state-active:hover{color:#fff;border-color:#0072c6;background-color:#0072c6}.k-button:focus,.k-button.k-state-focused{background-color:#eaeaea}.k-button:focus:hover,.k-button.k-state-focused:hover{border-color:#0072c6}.k-primary.k-grid-update{color:#fff}.k-primary:active,.k-primary:focus,.k-primary.k-state-focused,.k-primary:active:hover,.k-primary.k-state-active:hover,.k-primary:focus:hover,.k-primary.k-state-focused:hover{background-color:#005a9e;border-color:#004578}.k-button[disabled],.k-button.k-state-disabled,.k-state-disabled .k-button,.k-state-disabled .k-button:hover,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:active,.k-button.k-state-disabled:active{color:#a6a6a6;border-color:#f4f4f4;background-color:#f4f4f4;background-image:none}.k-primary.k-state-disabled,.k-state-disabled .k-primary,.k-primary.k-state-disabled:hover,.k-state-disabled .k-primary:hover,.k-primary.k-state-disabled:hover,.k-state-disabled .k-primary:active,.k-primary.k-state-disabled:active{color:#888;background-color:#e4e4e4}.k-numerictextbox .k-select,.k-combobox .k-select,.k-picker-wrap .k-select{border-color:#fff}.k-autocomplete.k-state-focused,.k-picker-wrap.k-state-focused,.k-numeric-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused,.k-multiselect.k-header.k-state-focused{background-color:#fff}.k-textbox.k-state-disabled,.k-state-disabled .k-picker-wrap,.k-autocomplete.k-state-disabled,.k-dropdown-wrap.k-state-disabled,.k-picker-wrap.k-state-disabled,.k-multiselect.k-state-disabled,.k-numeric-wrap.k-state-disabled{border-color:#e4e4e4}.k-autocomplete.k-state-border-down{border-bottom-width:1px;border-bottom-style:solid;padding-bottom:0}input.k-textbox:focus{border-color:#0072c6}.k-multiselect.k-header.k-state-hover .k-button,.k-multiselect.k-header.k-state-focused .k-button{background-color:#eaeaea}.k-multiselect .k-button:hover,.k-multiselect .k-button.k-state-hover{color:#333;border-color:#eaeaea;background-color:#eaeaea}.k-multiselect.k-header.k-state-focused .k-button{border-color:#0072c6}.k-multiselect.k-state-focused.k-state-border-up .k-button,.k-multiselect.k-state-focused.k-state-border-down .k-button{color:#fff;background-color:#0072c6;border-color:#0072c6}.k-dropdown-wrap.k-state-default.k-state-active,.k-picker-wrap.k-state-default.k-state-active{background-color:#0072c6;border-color:#0072c6}.k-picker-wrap.k-state-default.k-state-active .k-select,.k-dropdown-wrap.k-state-default.k-state-active .k-select{border-color:#0072c6}.k-dropdown .k-state-default.k-state-active .k-input,.k-state-selected .k-progress-status{color:#fff}.k-list>.k-state-hover{border-color:#f4f4f4}.k-list>.k-state-selected{background-color:#cde6f7;border-color:#cde6f7}.k-popup{-webkit-box-shadow:0 0 5px 2px rgba(0,0,0,0.18);box-shadow:0 0 5px 2px rgba(0,0,0,0.18)}.k-calendar .k-state-selected .k-link{color:#fff}.k-calendar .k-state-selected,.k-calendar .k-state-selected.k-state-hover{background-color:#005a9e;border-color:#005a9e}.k-calendar .k-nav-fast.k-state-hover,.k-calendar .k-nav-prev.k-state-hover,.k-calendar .k-nav-next.k-state-hover{background-color:#fff}.k-calendar .k-footer .k-nav-today{color:#0072c6}.k-calendar .k-footer{border-color:#c8c8c8}.k-menu>.k-item>.k-state-active,.k-popup.k-context-menu.k-group .k-state-hover{color:#0072c6;background-color:#fff}.k-menu .k-state-active{background-color:#cde6f7}.k-splitbar{border-color:#f4f4f4}.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover{background-color:#eaeaea;border-color:#eaeaea}.k-splitbar.k-state-focused{background-color:#0072c6;border-color:#0072c6}.k-marquee-color{background-color:#0072c6}.k-grid .k-state-selected,.k-grid td.k-state-selected.k-state-focused{background-color:#cde6f7}.k-grid-content tr:hover,.k-gantt .k-treelist tr:hover{background-color:#f4f4f4}.k-gantt .k-treelist .k-alt,.k-gantt .k-header.k-nonwork-hour{background-color:#fff}.k-grid td.k-state-focused{-webkit-box-shadow:inset 0 0 0 1px #0072c6;box-shadow:inset 0 0 0 1px #0072c6}.k-grid-header th.k-header,.k-grid td,.k-grid .k-grouping-header,.k-grid .k-group-cell,.k-header.k-grid-toolbar,.k-grid-header-wrap{border-color:transparent}.k-pivot .k-grid-header th.k-header,.k-pivot-layout>tbody>tr:first-child>td:first-child{border-color:#c8c8c8}.k-group-footer td{border-top-color:#c8c8c8}.k-grouping-header,.k-pager-info{color:#a6a6a6}.k-grouping-header .k-group-indicator{background-color:#f4f4f4;border-color:#f4f4f4}.k-grouping-header .k-group-indicator .k-link{color:#333}.k-pager-wrap>.k-link,.k-pager-numbers .k-link,.k-pager-numbers .k-link:hover,.k-pager-numbers .k-state-selected{background:0;border-radius:0}.k-pager-wrap>.k-link,.k-pager-wrap>.k-link.k-state-disabled:hover,.k-pager-wrap>.k-link:hover,.k-pager-numbers .k-link:hover{border-radius:0;border-color:transparent;background:0}.k-pager-numbers .k-link{border-color:transparent;color:#333}.k-pager-numbers .k-state-selected{color:#0072c6;border-color:#0072c6}.k-progressbar{background-color:#e4e4e4;border-color:#e4e4e4}.k-progressbar .k-state-default{border-color:#e4e4e4 #ffffff #e4e4e4}.k-progressbar .k-state-selected{background-color:#0072c6;border-color:#0072c6}.k-progressbar.k-progressbar-vertical .k-state-selected{border-color:#0072c6}.k-toolbar .k-toggle-button{background-color:#fff;border-color:#fff}.k-toolbar .k-toggle-button:hover{background-color:#f4f4f4;border-color:#f4f4f4}.k-toolbar .k-toggle-button.k-state-active,.k-toolbar .k-toggle-button:active,.k-toolbar .k-toggle-button:active:hover{background-color:#cde6f7;border-color:#cde6f7}.k-toolbar .k-toggle-button:active,.k-toolbar .k-toggle-button.k-state-active,.k-toolbar .k-toggle-button:active:hover,.k-toolbar .k-toggle-button.k-state-active:hover{color:#333}.k-toolbar .k-overflow-anchor{background-color:#fff;border-color:#c8c8c8}.k-toolbar .k-overflow-anchor:hover{background-color:#eaeaea;border-color:#eaeaea}.k-toolbar .k-overflow-anchor.k-state-active{border-color:#eaeaea}.k-toolbar .k-overflow-anchor.k-state-border-down,.k-toolbar .k-overflow-anchor.k-state-border-up{background-color:#0072c6;border-color:#0072c6}.k-tabstrip.k-header{background-color:#f4f4f4}.k-tabstrip .k-item{background-color:#f4f4f4;border-color:#f4f4f4}.k-tabstrip .k-item.k-state-active{background-color:#fff;border-color:#fff}.k-tabstrip .k-item.k-state-hover .k-link,.k-tabstrip .k-item.k-state-active .k-link{color:#0072c6}.k-tabstrip .k-content{border-color:transparent}.k-slider-track{background-color:#bababa}.k-slider-selection{background-color:#0072c6}.k-draghandle{background-color:#0072c6;border-color:#0072c6}.k-draghandle:hover,.k-draghandle.k-state-selected,.k-draghandle.k-state-selected:hover{background-color:#005a9e;border-color:#005a9e}.k-flatcolorpicker .k-selected-color input.k-color-value,.k-flatcolorpicker .k-hsv-rectangle{border-color:#c8c8c8}.k-flatcolorpicker .k-hue-slider .k-draghandle,.k-flatcolorpicker .k-transparency-slider .k-draghandle,.k-flatcolorpicker .k-hue-slider .k-draghandle:hover,.k-flatcolorpicker .k-transparency-slider .k-draghandle:hover,.k-flatcolorpicker .k-hue-slider .k-draghandle:focus,.k-flatcolorpicker .k-transparency-slider .k-draghandle:focus{background-color:#666;border-color:#666}.k-flatcolorpicker .k-slider-horizontal .k-slider-track{-webkit-box-shadow:none;box-shadow:none}.k-treeview .k-state-selected{color:#0072c6;background-color:#fff}.k-scheduler-toolbar .k-link,.k-gantt-toolbar .k-link{color:#333}.k-scheduler-toolbar .k-state-selected .k-link,.k-gantt-toolbar .k-state-selected .k-link{color:#0072c6}.k-scheduler-toolbar .k-nav-current .k-link,.k-gantt-toolbar .k-nav-current .k-link{color:#0072c6}.k-scheduler .k-scheduler-toolbar ul li,.k-gantt .k-gantt-toolbar ul li,.k-scheduler .k-scheduler-toolbar ul li.k-state-hover,.k-gantt .k-gantt-toolbar ul li.k-state-hover,.k-scheduler .k-scheduler-toolbar ul li.k-state-selected,.k-gantt .k-gantt-toolbar ul li.k-state-selected{background-color:#fff;border-color:transparent}.k-fieldselector .k-item.k-header{border-color:#f4f4f4;background-color:#f4f4f4}.k-fieldselector .k-item.k-header.k-state-hover{border-color:#eaeaea;background-color:#eaeaea}.k-scheduler-footer ul li{border-color:transparent}.k-scheduler .k-event-template,.k-scheduler .k-event-inverse{color:#fff}.k-scheduler .k-nonwork-hour{background-color:#e3f1fb}.k-scheduler-content .k-event{box-shadow:inset 4px 0 0 0 rgba(255,255,255,0.5)}.k-scheduler-times tr,.k-scheduler-times th,.k-scheduler-table td,.k-scheduler-header th,.k-scheduler-header-wrap,.k-scheduler-times{border-left-color:transparent;border-right-color:transparent}.k-gantt .k-gantt-timeline tr:first-child th{border-color:#c8c8c8}.k-gantt .k-treelist .k-alt{background-color:#fff}.k-panelbar .k-state-selected.k-state-hover{background-color:#cde6f7}.k-panelbar>li>.k-state-selected,.k-panelbar>li>.k-state-selected.k-state-hover,.k-panelbar>li.k-state-default>.k-link.k-state-selected,.k-panelbar>li>.k-state-focused.k-state-hover{color:#fff;background-color:#0072c6}.k-panelbar.k-header,.k-panelbar .k-content,.k-panelbar .k-panel,.k-panelbar .k-item,.k-panelbar>.k-item>.k-link{border-color:#fff}.k-window .k-header{border-color:transparent}.k-window-titlebar .k-state-hover{background-color:transparent;border-color:transparent}.k-tooltip-validation,.k-notification{-webkit-box-shadow:none;box-shadow:none}.k-editor .k-tool{border-color:#fff}.k-editor .k-tool.k-state-selected{border-color:#cde6f7}.k-editor .k-tool.k-state-hover{border-color:#f4f4f4}.k-webkit .k-nav-current>.k-link span+span,.k-ff .k-nav-current>.k-link span+span,.k-ie11 .k-nav-current>.k-link span+span{max-width:400px}@media only screen and (max-width:1420px){.k-webkit .k-nav-current>.k-link span+span,.k-ff .k-nav-current>.k-link span+span,.k-ie11 .k-nav-current>.k-link span+span{max-width:200px}}@media only screen and (max-width:1024px){.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover{background-image:none;background-position:50% 50%;background-color:transparent;border-color:#c8c8c8;border-radius:0;text-align:right}.k-webkit .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ff .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view,.k-ie11 .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view{text-align:left}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li{border-radius:0}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li.k-current-view,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li.k-current-view,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded>li.k-current-view{border-radius:0}.k-webkit .k-scheduler-toolbar>ul li:first-child,.k-ff .k-scheduler-toolbar>ul li:first-child,.k-ie11 .k-scheduler-toolbar>ul li:first-child,.k-webkit .k-scheduler-toolbar>ul li:first-child .k-link,.k-ff .k-scheduler-toolbar>ul li:first-child .k-link,.k-ie11 .k-scheduler-toolbar>ul li:first-child .k-link,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views li,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views li,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views li,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views li .k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views li .k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views li .k-link{border-radius:0;padding-top:0}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views li:last-child,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views li:last-child,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views li:last-child,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views li:last-child .k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views li:last-child .k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views li:last-child .k-link{border-radius:0}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover{border-color:#8f8f8f;background-image:none;background-color:#f4f4f4}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view>.k-link,.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover>.k-link,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover>.k-link,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views>li.k-current-view:hover>.k-link{color:#333;min-width:20px}.k-webkit .k-scheduler-views>li.k-state-selected>.k-link:after,.k-ff .k-scheduler-views>li.k-state-selected>.k-link:after,.k-ie11 .k-scheduler-views>li.k-state-selected>.k-link:after{display:block;content:"";position:absolute;top:50%;margin-top:-0.5em;right:.333em;width:16px;height:16px}.k-webkit .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ff .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ie11 .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded{border-width:1px 1px 0 1px;border-style:solid;border-color:#c8c8c8;background-color:#fff;border-radius:0;border-width:1px;background-image:none;-webkit-box-shadow:0 0 5px 2px rgba(0,0,0,0.18);box-shadow:0 0 5px 2px rgba(0,0,0,0.18)}.k-webkit .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ff .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded,.k-ie11 .k-rtl .k-scheduler-toolbar>ul.k-scheduler-views.k-state-expanded{text-align:left}.k-webkit .k-pager-wrap .k-pager-nav,.k-ff .k-pager-wrap .k-pager-nav,.k-ie11 .k-pager-wrap .k-pager-nav,.k-webkit .k-pager-input,.k-ff .k-pager-input,.k-ie11 .k-pager-input{float:none;display:inline-block;vertical-align:top}.k-webkit .k-pager-numbers,.k-ff .k-pager-numbers,.k-ie11 .k-pager-numbers,.k-webkit .k-grid .k-pager-numbers,.k-ff .k-grid .k-pager-numbers,.k-ie11 .k-grid .k-pager-numbers{position:absolute;left:5em;display:-moz-inline-flex;display:-webkit-inline-flex;display:inline-flex;-webkit-flex-direction:column-reverse;flex-direction:column-reverse;-webkit-transform:translatey(-100%);-moz-transform:translatey(-100%);transform:translatey(-100%)}.k-webkit .k-rtl .k-pager-numbers,.k-ff .k-rtl .k-pager-numbers,.k-ie11 .k-rtl .k-pager-numbers,.k-webkit .k-rtl .k-grid .k-pager-numbers,.k-ff .k-rtl .k-grid .k-pager-numbers,.k-ie11 .k-rtl .k-grid .k-pager-numbers{right:5em;width:5.15em}.k-webkit .k-pager-numbers .k-current-page,.k-ff .k-pager-numbers .k-current-page,.k-ie11 .k-pager-numbers .k-current-page,.k-webkit .k-grid .k-pager-numbers .k-current-page,.k-ff .k-grid .k-pager-numbers .k-current-page,.k-ie11 .k-grid .k-pager-numbers .k-current-page{display:block;border-left:0;-webkit-transform:translatey(100%);-moz-transform:translatey(100%);transform:translatey(100%)}.k-webkit .k-pager-numbers li:not(.k-current-page),.k-ff .k-pager-numbers li:not(.k-current-page),.k-ie11 .k-pager-numbers li:not(.k-current-page){display:none}.k-webkit .k-pager-wrap .k-pager-numbers .k-current-page .k-link,.k-ff .k-pager-wrap .k-pager-numbers .k-current-page .k-link,.k-ie11 .k-pager-wrap .k-pager-numbers .k-current-page .k-link{width:3.8em;line-height:1.429em;padding:.3em .429em .3em .8em;border-radius:0;background-image:none;background-position:50% 50%;background-color:#fff;border:1px solid #c8c8c8}.k-webkit .k-pager-numbers .k-current-page:hover .k-link,.k-ff .k-pager-numbers .k-current-page:hover .k-link,.k-ie11 .k-pager-numbers .k-current-page:hover .k-link{border-radius:0;background-color:#f4f4f4;border:1px solid #8f8f8f}.k-webkit .k-pager-numbers .k-current-page .k-link:after,.k-ff .k-pager-numbers .k-current-page .k-link:after,.k-ie11 .k-pager-numbers .k-current-page .k-link:after{display:block;content:"";position:absolute;top:50%;margin-top:-0.6em;right:.6em;width:16px;height:16px}.k-webkit .k-pager-numbers+.k-link,.k-ff .k-pager-numbers+.k-link,.k-ie11 .k-pager-numbers+.k-link{margin-left:5.7em}.k-webkit .k-rtl .k-pager-numbers+.k-link,.k-ff .k-rtl .k-pager-numbers+.k-link,.k-ie11 .k-rtl .k-pager-numbers+.k-link{margin-right:6em;margin-left:0}.k-webkit .k-pager-wrap .k-pager-numbers .k-state-selected,.k-ff .k-pager-wrap .k-pager-numbers .k-state-selected,.k-ie11 .k-pager-wrap .k-pager-numbers .k-state-selected,.k-webkit .k-pager-wrap .k-pager-numbers .k-link,.k-ff .k-pager-wrap .k-pager-numbers .k-link,.k-ie11 .k-pager-wrap .k-pager-numbers .k-link{display:block;margin-top:0;margin-right:0;padding:1px 5px 1px .8em;text-align:left;border-width:0}.k-webkit .k-pager-wrap .k-pager-numbers .k-state-selected,.k-ff .k-pager-wrap .k-pager-numbers .k-state-selected,.k-ie11 .k-pager-wrap .k-pager-numbers .k-state-selected{background-color:#cde6f7}.k-webkit .k-pager-wrap .k-pager-numbers li:not(.k-current-page) .k-link:hover,.k-ff .k-pager-wrap .k-pager-numbers li:not(.k-current-page) .k-link:hover,.k-ie11 .k-pager-wrap .k-pager-numbers li:not(.k-current-page) .k-link:hover{background-color:#f4f4f4}.k-webkit .k-pager-numbers.k-state-expanded,.k-ff .k-pager-numbers.k-state-expanded,.k-ie11 .k-pager-numbers.k-state-expanded{box-sizing:border-box;padding:0;border-style:solid;border-color:#c8c8c8;background-color:#fff;border-radius:0;-webkit-box-shadow:0 0 5px 2px rgba(0,0,0,0.18);box-shadow:0 0 5px 2px rgba(0,0,0,0.18)}.k-webkit .k-pager-numbers.k-state-expanded .k-current-page,.k-ff .k-pager-numbers.k-state-expanded .k-current-page,.k-ie11 .k-pager-numbers.k-state-expanded .k-current-page{margin:-2.2em -1px 0;padding:0}.k-webkit .k-pager-numbers.k-state-expanded .k-current-page .k-link,.k-ff .k-pager-numbers.k-state-expanded .k-current-page .k-link,.k-ie11 .k-pager-numbers.k-state-expanded .k-current-page .k-link{border-radius:0;background-color:#0072c6;border:1px solid #0072c6;border-top-color:#c8c8c8;color:#fff}.k-webkit .k-pager-numbers.k-state-expanded .k-current-page .k-link:after,.k-ff .k-pager-numbers.k-state-expanded .k-current-page .k-link:after,.k-ie11 .k-pager-numbers.k-state-expanded .k-current-page .k-link:after{background-position:0 0;opacity:1}.k-webkit .k-pager-numbers.k-state-expanded li,.k-ff .k-pager-numbers.k-state-expanded li,.k-ie11 .k-pager-numbers.k-state-expanded li{display:inline-block}}@media only screen and (max-width:640px){.k-webkit .k-pager-info,.k-ff .k-pager-info,.k-ie11 .k-pager-info{display:none}}@media only screen and (max-width:480px){.k-webkit .k-pager-sizes,.k-ff .k-pager-sizes,.k-ie11 .k-pager-sizes{display:none}.k-webkit .k-scheduler-toolbar .k-i-calendar,.k-ff .k-scheduler-toolbar .k-i-calendar,.k-ie11 .k-scheduler-toolbar .k-i-calendar{display:inline-block}} \ No newline at end of file diff --git a/KendoUISharepoint/Features/Feature1/Feature1.Template.xml b/KendoUISharepoint/Features/Feature1/Feature1.Template.xml new file mode 100644 index 0000000..ac9c3e5 --- /dev/null +++ b/KendoUISharepoint/Features/Feature1/Feature1.Template.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/KendoUISharepoint/Features/Feature1/Feature1.feature b/KendoUISharepoint/Features/Feature1/Feature1.feature new file mode 100644 index 0000000..6f7ab14 --- /dev/null +++ b/KendoUISharepoint/Features/Feature1/Feature1.feature @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Images/180.png b/KendoUISharepoint/Images/180.png new file mode 100644 index 0000000..53f0819 Binary files /dev/null and b/KendoUISharepoint/Images/180.png differ diff --git a/KendoUISharepoint/Images/180x64.png b/KendoUISharepoint/Images/180x64.png new file mode 100644 index 0000000..5ea54b2 Binary files /dev/null and b/KendoUISharepoint/Images/180x64.png differ diff --git a/KendoUISharepoint/Images/AppIcon.png b/KendoUISharepoint/Images/AppIcon.png new file mode 100644 index 0000000..0d74b9b Binary files /dev/null and b/KendoUISharepoint/Images/AppIcon.png differ diff --git a/KendoUISharepoint/Images/Elements.xml b/KendoUISharepoint/Images/Elements.xml new file mode 100644 index 0000000..70a876f --- /dev/null +++ b/KendoUISharepoint/Images/Elements.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Images/SharePointProjectItem.spdata b/KendoUISharepoint/Images/SharePointProjectItem.spdata new file mode 100644 index 0000000..29de950 --- /dev/null +++ b/KendoUISharepoint/Images/SharePointProjectItem.spdata @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/KendoUISharepoint.csproj b/KendoUISharepoint/KendoUISharepoint.csproj new file mode 100644 index 0000000..07cf32c --- /dev/null +++ b/KendoUISharepoint/KendoUISharepoint.csproj @@ -0,0 +1,133 @@ + + + + + Debug + AnyCPU + {C6A9FB33-4C07-4B47-89F2-0E5750736984} + Library + Properties + KendoUISharepoint + KendoUISharepoint + v4.5 + 15.0 + 512 + {C1CDDADD-2546-481F-9697-4EA41081F2FC};{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False + SharePointApp + {d480547e-49dd-471d-ad09-d3abf8ef1f01} + {cf3a559f-c64c-4b68-9535-d1569139a4c5} + {19484f02-33f4-4c6b-bc44-070a277daaf1} + {d0c58dbe-c680-426f-98df-a82747bdfeb6} + {f3d14cef-d552-4183-8113-e5ae8f73e6a3} + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + + + + + + + + + + + + + {fa2a956c-8362-4bed-ab41-690d583221b0} + + + {c8472ae4-5a4b-4ebb-b50f-814cbbf4d630} + + + + {de103f61-c75c-4806-a54d-6f88a22b9d12} + + + + + + + + + + {016de1ea-7331-4479-b81d-70fff4b53ebe} + + + {4c981345-9122-48a4-9099-337a265e24a0} + + + + + + {f3d14cef-d552-4183-8113-e5ae8f73e6a3} + + + + + + + + + + + + {52e646de-bf4a-41a9-8478-ebb4bca7bf4d} + + + + + + + manifest-icon + + + + {eae8e8c3-ac96-41ad-828c-d4e39ed89e86} + + + + + {b4f11268-da3a-479f-92da-2135831fcb18} + + + Package.package + + + {efd7b186-2303-4274-bc50-e2865726bea9} + + + Feature1.feature + + + + + Designer + + + + + 11.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + \ No newline at end of file diff --git a/KendoUISharepoint/KendoUISharepoint.csproj.user b/KendoUISharepoint/KendoUISharepoint.csproj.user new file mode 100644 index 0000000..0b7581a --- /dev/null +++ b/KendoUISharepoint/KendoUISharepoint.csproj.user @@ -0,0 +1,6 @@ + + + + https://kendosharepoint.sharepoint.com/ + + \ No newline at end of file diff --git a/KendoUISharepoint/KendoUISharepoint.user b/KendoUISharepoint/KendoUISharepoint.user new file mode 100644 index 0000000..89903cd --- /dev/null +++ b/KendoUISharepoint/KendoUISharepoint.user @@ -0,0 +1,17 @@ + + + + https://sharep.sharepoint.com/ + ShowAllFiles + + + + + + 2015-04-02T08:23:48.2988244Z + 93ab50b2-0e58-4a8c-9d3f-436f631f8474 + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Leaves/Elements.xml b/KendoUISharepoint/Leaves/Elements.xml new file mode 100644 index 0000000..edf01fe --- /dev/null +++ b/KendoUISharepoint/Leaves/Elements.xml @@ -0,0 +1,14 @@ + + + + + diff --git a/KendoUISharepoint/Leaves/LeavesInstance/Elements.xml b/KendoUISharepoint/Leaves/LeavesInstance/Elements.xml new file mode 100644 index 0000000..6bcd7b0 --- /dev/null +++ b/KendoUISharepoint/Leaves/LeavesInstance/Elements.xml @@ -0,0 +1,217 @@ + + + + + + + 1 + 2015-01-01 + 2015-01-03 + true + Kendo UI + 1 + Margaret Peacock + 20 + 5 + 1 + Sales Representative + + + 1 + 2015-03-20 + 2015-03-22 + true + Kendo UI + 1 + Margaret Peacock + 20 + 5 + 1 + Sales Representative + + + 1 + 2015-04-01 + 2015-04-03 + true + Kendo UI + 1 + Margaret Peacock + 20 + 5 + 2 + Sales Representative + + + 1 + 2015-10-01 + 2015-10-03 + true + Kendo UI + 1 + Margaret Peacock + 20 + 5 + 1 + Sales Representative + + + 1 + 2015-06-11 + 2015-06-12 + true + Kendo UI + 1 + Margaret Peacock + 20 + 5 + 2 + Sales Representative + + + 1 + 2015-04-17 + 2015-04-20 + true + Kendo UI + 1 + Margaret Peacock + 20 + 5 + 1 + Sales Representative + + + 1 + 2015-09-17 + 2015-09-19 + true + Kendo UI + 1 + Margaret Peacock + 20 + 5 + 1 + Sales Representative + + + 1 + 2015-08-17 + 2015-08-19 + true + Kendo UI + 1 + Margaret Peacock + 20 + 5 + 1 + Sales Representative + + + 2 + 2015-04-03 + 2015-04-07 + true + Kendo UI + 1 + Steven Buchanan + 20 + 0 + 1 + Sales Manager + + + 3 + 2015-04-21 + 2015-04-24 + true + Kendo UI + 1 + Michael Suyama + 20 + 0 + 1 + Sales Representative + + + 4 + 2015-04-13 + 2015-04-17 + true + Kendo UI + 1 + Robert King + 20 + 0 + 2 + Sales Representative + + + 5 + 2015-04-15 + 2015-04-17 + true + Kendo UI + 1 + Laura Callahan + 20 + 0 + 2 + Inside Sales Coordinator + + + 6 + 2015-04-04 + 2015-04-06 + true + Telerik Platform + 2 + Anne Dodsworth + 20 + 5 + 2 + Sales Representative + + + 7 + 2015-04-21 + 2015-04-26 + true + Telerik Platform + 2 + Janet Leverling + 20 + 0 + 2 + Sales Representative + + + 8 + 2015-04-01 + 2015-04-02 + true + Telerik Platform + 2 + Andrew Fuller + 20 + 5 + 1 + Vice President, Sales + + + 9 + 2015-04-10 + 2015-04-15 + true + Telerik Platform + 2 + Nancy Davolio + 20 + 5 + 1 + Sales Representative + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Leaves/LeavesInstance/SharePointProjectItem.spdata b/KendoUISharepoint/Leaves/LeavesInstance/SharePointProjectItem.spdata new file mode 100644 index 0000000..8103fa3 --- /dev/null +++ b/KendoUISharepoint/Leaves/LeavesInstance/SharePointProjectItem.spdata @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Leaves/Schema.xml b/KendoUISharepoint/Leaves/Schema.xml new file mode 100644 index 0000000..6559ab7 --- /dev/null +++ b/KendoUISharepoint/Leaves/Schema.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + main.xsl + 30 + + + + + + + + + + + + + + + + main.xsl + clienttemplates.js + 30 + + + + + + + + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Leaves/SharePointProjectItem.spdata b/KendoUISharepoint/Leaves/SharePointProjectItem.spdata new file mode 100644 index 0000000..d36c773 --- /dev/null +++ b/KendoUISharepoint/Leaves/SharePointProjectItem.spdata @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Legis/Elements.xml b/KendoUISharepoint/Legis/Elements.xml new file mode 100644 index 0000000..26c84e5 --- /dev/null +++ b/KendoUISharepoint/Legis/Elements.xml @@ -0,0 +1,14 @@ + + + + + diff --git a/KendoUISharepoint/Legis/LegisInstance/Elements.xml b/KendoUISharepoint/Legis/LegisInstance/Elements.xml new file mode 100644 index 0000000..82dc8b3 --- /dev/null +++ b/KendoUISharepoint/Legis/LegisInstance/Elements.xml @@ -0,0 +1,15 @@ + + + + + + + diff --git a/KendoUISharepoint/Legis/LegisInstance/SharePointProjectItem.spdata b/KendoUISharepoint/Legis/LegisInstance/SharePointProjectItem.spdata new file mode 100644 index 0000000..3aff320 --- /dev/null +++ b/KendoUISharepoint/Legis/LegisInstance/SharePointProjectItem.spdata @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Legis/Schema.xml b/KendoUISharepoint/Legis/Schema.xml new file mode 100644 index 0000000..3ac7178 --- /dev/null +++ b/KendoUISharepoint/Legis/Schema.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + main.xsl + 30 + + + + + + + + + + + + + + + + + main.xsl + clienttemplates.js + 30 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Legis/SharePointProjectItem.spdata b/KendoUISharepoint/Legis/SharePointProjectItem.spdata new file mode 100644 index 0000000..f0481b4 --- /dev/null +++ b/KendoUISharepoint/Legis/SharePointProjectItem.spdata @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Legislation/Elements.xml b/KendoUISharepoint/Legislation/Elements.xml new file mode 100644 index 0000000..222b040 --- /dev/null +++ b/KendoUISharepoint/Legislation/Elements.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Legislation/SharePointProjectItem.spdata b/KendoUISharepoint/Legislation/SharePointProjectItem.spdata new file mode 100644 index 0000000..757dfed --- /dev/null +++ b/KendoUISharepoint/Legislation/SharePointProjectItem.spdata @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Package/Package.Template.xml b/KendoUISharepoint/Package/Package.Template.xml new file mode 100644 index 0000000..8740d4d --- /dev/null +++ b/KendoUISharepoint/Package/Package.Template.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/KendoUISharepoint/Package/Package.package b/KendoUISharepoint/Package/Package.package new file mode 100644 index 0000000..84db564 --- /dev/null +++ b/KendoUISharepoint/Package/Package.package @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Pages/Default.aspx b/KendoUISharepoint/Pages/Default.aspx new file mode 100644 index 0000000..9a25ca5 --- /dev/null +++ b/KendoUISharepoint/Pages/Default.aspx @@ -0,0 +1,114 @@ +<%-- The following 4 lines are ASP.NET directives needed when using SharePoint components --%> + +<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %> + +<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> +<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> +<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> + +<%-- The markup and script in the following Content element will be placed in the of the page --%> + + + + + <%----%> + + + + + + + + + + + + + +<%-- The markup in the following Content element will be placed in the TitleArea of the page --%> + + + +<%-- The markup and script in the following Content element will be placed in the of the page --%> + + +
+
+

My leaves

+
+
+
+

Leaves per month

+
+
+

Leaves Schedule

+
+ new leave request +
+ Select a team: +
+
+
+
+ + + + +
+ + + + diff --git a/KendoUISharepoint/Pages/Elements.xml b/KendoUISharepoint/Pages/Elements.xml new file mode 100644 index 0000000..7d775df --- /dev/null +++ b/KendoUISharepoint/Pages/Elements.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/KendoUISharepoint/Pages/SharePointProjectItem.spdata b/KendoUISharepoint/Pages/SharePointProjectItem.spdata new file mode 100644 index 0000000..2b51cf6 --- /dev/null +++ b/KendoUISharepoint/Pages/SharePointProjectItem.spdata @@ -0,0 +1,7 @@ + + + + + + + diff --git a/KendoUISharepoint/Scripts/Elements.xml b/KendoUISharepoint/Scripts/Elements.xml new file mode 100644 index 0000000..5440208 --- /dev/null +++ b/KendoUISharepoint/Scripts/Elements.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Scripts/SharePointProjectItem.spdata b/KendoUISharepoint/Scripts/SharePointProjectItem.spdata new file mode 100644 index 0000000..12765ae --- /dev/null +++ b/KendoUISharepoint/Scripts/SharePointProjectItem.spdata @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/KendoUISharepoint/Scripts/_references.js b/KendoUISharepoint/Scripts/_references.js new file mode 100644 index 0000000..cd7c42b --- /dev/null +++ b/KendoUISharepoint/Scripts/_references.js @@ -0,0 +1,7 @@ +/// +/// +/// +/// +/// +/// +/// diff --git a/KendoUISharepoint/Scripts/app.js b/KendoUISharepoint/Scripts/app.js new file mode 100644 index 0000000..347480c --- /dev/null +++ b/KendoUISharepoint/Scripts/app.js @@ -0,0 +1,373 @@ +$(document).ready(function () { + + var origin = document.location.origin; + var leavesUrl = "/KendoUI/_api/web/lists/GetByTitle('Leaves')/items"; + var teamsUrl = "/KendoUI/_api/web/lists/GetByTitle('Teams')/items"; + var username = null; + var teamId = null + var user = null; + var employeeId = null; + + $.ajax({ + url: origin + "/KendoUI/_api/web/lists/GetByTitle('Leaves')/items?$filter=substringof('Margaret Peacock',Person)", + dataType: "json", + headers: { + "accept": "application/json; odata=verbose" + }, + success: function (data) { + username = data.d.results[0].Person; + teamId = data.d.results[0].TeamID; + user = data.d.results[0]; + employeeId = data.d.results[0].EmployeeID; + init(); + } + }) + updateLogo(); + + function init() { + initChart(); + initScheduler(); + + $("#new-request").on("click", function () { + var scheduler = $("#scheduler").data("kendoScheduler"); + scheduler.addEvent(); + }) + $("#dropdown").kendoDropDownList({ + change: function () { + var value = parseInt(this.value()) + var scheduler = $("#scheduler").data("kendoScheduler"); + scheduler.dataSource.filter({ field: "teamId", operator: "eq", value: value }); + scheduler.resources[0].dataSource.filter({ field: "teamId", operator: "eq", value: value }); + scheduler.view(scheduler.view().name); + }, + dataSource: { + schema: { + data: function (data) { + return data.d.results + } + }, + transport: { + read: { + dataType: "json", + headers: { + "accept": "application/json; odata=verbose" + }, + url: origin + teamsUrl + } + } + }, + dataTextField: "Team", + dataValueField: "TeamID" + }) + } + + function initScheduler() { + $("#scheduler").kendoScheduler({ + dataBound: onSchedulerDataBound, + save: redrawCharts, + remove: redrawCharts, + date: new Date(), + views: [{ + type: "timelineMonth", + selected: true, + columnWidth: 20, + eventHeight: 50, + workDayStart: new Date("2001/01/01 00:00"), + workDayEnd: new Date("2001/01/01 23:59") + }, "month", "day", "week" ], + eventTemplate: function (data) { + return data.person + }, + groupHeaderTemplate: function (data) { + var jobTitle = getJobTitle(data.value); + return "
" + data.text + "" + jobTitle + "
" + }, + editable: { + template: $("#customEditorTemplate").html(), + }, + dateHeaderTemplate: function (data) { + return data.date.getDate(); + }, + group: { + resources: ["employeeId"], + orientation: "vertical" + }, + dataSource: { + filter: { + field: "teamId", + operator: "eq", + value: 1 + }, + schema: { + model: { + id: "Id", + fields: { + title: { from: "EventTitle" }, + employeeId: { from: "EmployeeID", defaultValue: employeeId }, + start: { type: "date", from: "StartTime", defaultValue: new Date() }, + end: { type: "date", from: "EndTime", defaultValue: new Date() }, + isAllDay: { type: "boolean", from: "AllDay", defaultValue: true }, + person: { from: "Person", defaultValue: username }, + team: { from: "Team", defaultValue: "Kendo UI" }, + teamId: { from: "TeamID", defaultValue: teamId }, + vacationType: { from: "VacationType", defaultValue: 1 } + } + }, + data: function (data) { + return data.d && data.d.results ? data.d.results : [data.d]; + } + }, + transport: { + parameterMap: function (data, type) { + if (type != "read") { + return kendo.stringify({ + EventTitle: data.EventTitle, + StartTime: data.StartTime, + EndTime: data.EndTime, + Team: data.Team, + TeamID: data.TeamID, + Person: data.Person, + VacationType: data.VacationType, + EmployeeID: data.EmployeeID, + Id: type != "create" ? data.Id : undefined, + __metadata: type == "create" ? { type: GetItemTypeForListName("Leaves") } : undefined + + }); + } + return kendo.data.transports["odata"].parameterMap.apply(this, arguments); + }, + read: { + dataType: "json", + headers: { + "accept": "application/json; odata=verbose" + }, + url: origin + leavesUrl + }, + create: { + headers: { + "X-RequestDigest": $("#__REQUESTDIGEST").val(), + "accept": "application/json; odata=verbose" + }, + type: "POST", + contentType: "application/json;odata=verbose", + url: origin + leavesUrl + }, + update: { + headers: { + "accept": "application/json; odata=verbose", + "X-RequestDigest": $("#__REQUESTDIGEST").val(), + "X-HTTP-Method": "MERGE", + "If-Match": "*" + }, + contentType: "application/json; charset=utf-8", + type: "POST", + url: function (model) { + return origin + leavesUrl + "(" + model.Id + ")" + } + }, + destroy: { + headers: { + "X-RequestDigest": $("#__REQUESTDIGEST").val(), + "X-Http-Method": "DELETE", + "If-Match": "*" + }, + type: "POST", + url: function (model) { + return origin + leavesUrl + "(" + model.Id + ")" + } + } + } + }, + resources: [ + { + field: "employeeId", + dataSource: { + data: [ + { value: 1, teamId: 1, text: "Margaret Peacock", color: "#e03163" }, + { value: 2, teamId: 1, text: "Steven Buchanan", color: "#6544b4" }, + { value: 3, teamId: 1, text: "Michael Suyama", color: "#3a97f1" }, + { value: 4, teamId: 1, text: "Robert King", color: "#3abad2" }, + { value: 5, teamId: 1, text: "Laura Callahan", color: "#59ab54" }, + { value: 6, teamId: 2, text: "Anne Dodsworth", color: "#cdd846" }, + { value: 7, teamId: 2, text: "Janet Leverling", color: "#f6cb32" }, + { value: 8, teamId: 2, text: "Andrew Fuller", color: "#f75b2c" }, + { value: 9, teamId: 2, text: "Nancy Davolio", color: "#af2923" } + ], + filter: { field: "teamId", operator: "eq", value: 1 } + }, + title: "Person", + name: "employeeId" + } + ] + }) + } + + function initChart() { + $("#chart").kendoChart({ + dataSource: { + group: { + field: "type" + }, + transport: { + read: { + url: origin + "/KendoUI/_api/web/lists/GetByTitle('Leaves')/items?$filter=substringof('Margaret Peacock',Person)", + dataType: "json", + headers: { + "accept": "application/json; odata=verbose" + } + } + }, + schema: { + parse: function (response) { + var result = []; + for (var i = 0; i < response.d.results.length; i++) { + var item = {}; + var date = new Date(response.d.results[i].StartTime); + date.setHours(0, 0, 0, 0); + date.setDate(1); + item.type = response.d.results[i].VacationType; + item.month = date + item.days = Math.floor((Date.parse(response.d.results[i].EndTime) - Date.parse(response.d.results[i].StartTime)) / 86400000) + 1; + result.push(item); + } + return result + } + } + }, + chartArea: { + background: "transparent" + }, + seriesColors: ["#0072c6", "#ec236a"], + series: [{ + stack: true, + field: "days", + categoryField: "month", + gap: 0.2, + spacing: 0, + overlay: { + gradient: "none" + } + }], + valueAxis: [{ + labels: { + format: "{0}" + }, + line: { + visible: false + }, + majorTicks: { + visible: false + } + }], + categoryAxis: [{ + majorTicks: { + visible: false + }, + labels: { + format: "{0:MMM}" + }, + min: new Date("2015/01/01"), + max: new Date("2015/12/01") + }], + legend: { + visible: false + }, + tooltip: { + visible: true, + template: "#:kendo.toString(category, 'MMM')#: #:value# day#:value > 1 ? 's': ''# off" + } + }) + + $.ajax({ + url: origin + "/KendoUI/_api/web/lists/GetByTitle('Leaves')/items?$filter=substringof('Margaret Peacock',Person)", + dataType: "json", + headers: { + "accept": "application/json; odata=verbose" + }, + success: function (data) { + var data = parseLeavesData(data.d.results); + initLeavesChart(data); + } + }) + } + + function initLeavesChart(data) { + $("#chart-totals").kendoChart({ + legend: { + visible: false + }, + chartArea: { + background: "transparent" + }, + seriesColors: ["#0072c6", "#ec236a"], + seriesDefaults: { + type: "bar", + stack: true, + overlay: { + gradient: "none" + } + }, + series: [{ + name: "Paid", + data: [data.paidTotal, data.paidUsed, data.paidLeft] + }, { + name: "Bonus", + data: [data.bonusTotal, data.bonusUsed, data.bonusLeft] + }], + valueAxis: { + labels: { + format: "{0}" + }, + line: { + visible: false + }, + majorTicks: { + visible: false + } + }, + categoryAxis: { + categories: ["Entitled", "Used", "Remaining"], + majorTicks: { + visible: false + }, + line: { + visible: false + } + }, + tooltip: { + visible: true, + format: "{0}%", + template: "#= series.name #: #= value #" + } + }); + } + + function onSchedulerDataBound(e) { + var data = this.dataSource.data(); + var days = 0; + var remaining = 0; + var vacation = 0; + var bonus = 0; + for (var i = 0; i < data.length; i++) { + if (data[i].employeeId == employeeId) { + var from = new Date(data[i].start); + var to = new Date(data[i].end); + + if (data[i].vacationType == 1) { + vacation += calculateWorkDays(from, to); + } else { + bonus += calculateWorkDays(from, to); + } + } + } + remaining = user.VacationDays + user.BonusDays - (vacation + bonus); + $("#remaining-days").html(remaining + " days left"); + setDaysTotal(user.VacationDays - vacation, user.BonusDays - bonus); + } + + function redrawCharts() { + $("#chart").data("kendoChart").dataSource.read(); + $("#chart-totals").data("kendoChart").dataSource.read(); + } +}); + diff --git a/KendoUISharepoint/Scripts/grid.js b/KendoUISharepoint/Scripts/grid.js new file mode 100644 index 0000000..a942a54 --- /dev/null +++ b/KendoUISharepoint/Scripts/grid.js @@ -0,0 +1,77 @@ +function initGrid() { + $("#grid").kendoGrid({ + toolbar: ["add"], + editable: "popup", + columns: [ + { field: "FirstName" }, + { field: "FullName" }, + { field: "Twitter" }, + { command: ["edit", "destroy"] } + ], + filterable: true, + sortable: true, + pageable: true, + dataSource: { + serverFiltering: true, + serverSprting: true, + type: "odata", + schema: { + model: { + id: "Id" + }, + data: function (data) { + return data.d && data.d.results ? data.d.results : []; + } + }, + transport: { + parameterMap: function (data, type) { + if (type != "read") { + return kendo.stringify({ + FirstName: data.FirstName, + FullName: data.FullName, + Twitter: data.Twitter, + Id: type != "create" ? data.Id : undefined + }); + } + return kendo.data.transports["odata"].parameterMap.apply(this, arguments); + }, + read: { + dataType: "json", + headers: { + "accept": "application/json; odata=verbose" + }, + url: origin + "/SPGrid2/_api/web/lists/GetByTitle('MyList')/items" + }, + update: { + headers: { + "X-RequestDigest": $("#__REQUESTDIGEST").val(), + "X-HTTP-Method": "MERGE", + "If-Match": "*" + }, + type: "POST", + url: function (model) { + return origin + "/SPGrid2/_api/web/lists/GetByTitle('MyList')/items(" + model.Id + ")" + } + }, + create: { + headers: { + "X-RequestDigest": $("#__REQUESTDIGEST").val() + }, + type: "POST", + url: origin + "/SPGrid2/_api/web/lists/GetByTitle('MyList')/items" + }, + destroy: { + headers: { + "X-RequestDigest": $("#__REQUESTDIGEST").val(), + "X-Http-Method": "DELETE", + "If-Match": "*" + }, + type: "POST", + url: function (model) { + return origin + "/SPGrid2/_api/web/lists/GetByTitle('MyList')/items(" + model.Id + ")" + } + } + } + } + }) +} \ No newline at end of file diff --git a/KendoUISharepoint/Scripts/jquery-1.10.2.intellisense.js b/KendoUISharepoint/Scripts/jquery-1.10.2.intellisense.js new file mode 100644 index 0000000..5757b20 --- /dev/null +++ b/KendoUISharepoint/Scripts/jquery-1.10.2.intellisense.js @@ -0,0 +1,2671 @@ +/* NUGET: BEGIN LICENSE TEXT + * + * Microsoft grants you the right to use these script files for the sole + * purpose of either: (i) interacting through your browser with the Microsoft + * website or online service, subject to the applicable licensing or use + * terms; or (ii) using the files as included with a Microsoft product subject + * to that product's license terms. Microsoft reserves all other rights to the + * files not expressly granted by Microsoft, whether by implication, estoppel + * or otherwise. Insofar as a script file is dual licensed under GPL, + * Microsoft neither took the code under GPL nor distributes it thereunder but + * under the terms set out in this paragraph. All notices and licenses + * below are for informational purposes only. + * + * NUGET: END LICENSE TEXT */ +intellisense.annotate(jQuery, { + 'ajax': function() { + /// + /// Perform an asynchronous HTTP (Ajax) request. + /// A string containing the URL to which the request is sent. + /// A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). See jQuery.ajax( settings ) below for a complete list of all settings. + /// + /// + /// + /// Perform an asynchronous HTTP (Ajax) request. + /// A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). + /// + /// + }, + 'ajaxPrefilter': function() { + /// + /// Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax(). + /// An optional string containing one or more space-separated dataTypes + /// A handler to set default values for future Ajax requests. + /// + }, + 'ajaxSetup': function() { + /// + /// Set default values for future Ajax requests. + /// A set of key/value pairs that configure the default Ajax request. All options are optional. + /// + }, + 'ajaxTransport': function() { + /// + /// Creates an object that handles the actual transmission of Ajax data. + /// A string identifying the data type to use + /// A handler to return the new transport object to use with the data type provided in the first argument. + /// + }, + 'boxModel': function() { + /// Deprecated in jQuery 1.3 (see jQuery.support). States if the current page, in the user's browser, is being rendered using the W3C CSS Box Model. + /// + }, + 'browser': function() { + /// Contains flags for the useragent, read from navigator.userAgent. We recommend against using this property; please try to use feature detection instead (see jQuery.support). jQuery.browser may be moved to a plugin in a future release of jQuery. + /// + }, + 'browser.version': function() { + /// The version number of the rendering engine for the user's browser. + /// + }, + 'Callbacks': function() { + /// + /// A multi-purpose callbacks list object that provides a powerful way to manage callback lists. + /// An optional list of space-separated flags that change how the callback list behaves. + /// + /// + }, + 'contains': function() { + /// + /// Check to see if a DOM element is a descendant of another DOM element. + /// The DOM element that may contain the other element. + /// The DOM element that may be contained by (a descendant of) the other element. + /// + /// + }, + 'cssHooks': function() { + /// Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties. + /// + }, + 'data': function() { + /// + /// Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element. + /// The DOM element to query for the data. + /// Name of the data stored. + /// + /// + /// + /// Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element. + /// The DOM element to query for the data. + /// + /// + }, + 'Deferred': function() { + /// + /// A constructor function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function. + /// A function that is called just before the constructor returns. + /// + /// + }, + 'dequeue': function() { + /// + /// Execute the next function on the queue for the matched element. + /// A DOM element from which to remove and execute a queued function. + /// A string containing the name of the queue. Defaults to fx, the standard effects queue. + /// + }, + 'each': function() { + /// + /// A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. + /// The object or array to iterate over. + /// The function that will be executed on every object. + /// + /// + }, + 'error': function() { + /// + /// Takes a string and throws an exception containing it. + /// The message to send out. + /// + }, + 'extend': function() { + /// + /// Merge the contents of two or more objects together into the first object. + /// An object that will receive the new properties if additional objects are passed in or that will extend the jQuery namespace if it is the sole argument. + /// An object containing additional properties to merge in. + /// Additional objects containing properties to merge in. + /// + /// + /// + /// Merge the contents of two or more objects together into the first object. + /// If true, the merge becomes recursive (aka. deep copy). + /// The object to extend. It will receive the new properties. + /// An object containing additional properties to merge in. + /// Additional objects containing properties to merge in. + /// + /// + }, + 'get': function() { + /// + /// Load data from the server using a HTTP GET request. + /// A string containing the URL to which the request is sent. + /// A plain object or string that is sent to the server with the request. + /// A callback function that is executed if the request succeeds. + /// The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html). + /// + /// + }, + 'getJSON': function() { + /// + /// Load JSON-encoded data from the server using a GET HTTP request. + /// A string containing the URL to which the request is sent. + /// A plain object or string that is sent to the server with the request. + /// A callback function that is executed if the request succeeds. + /// + /// + }, + 'getScript': function() { + /// + /// Load a JavaScript file from the server using a GET HTTP request, then execute it. + /// A string containing the URL to which the request is sent. + /// A callback function that is executed if the request succeeds. + /// + /// + }, + 'globalEval': function() { + /// + /// Execute some JavaScript code globally. + /// The JavaScript code to execute. + /// + }, + 'grep': function() { + /// + /// Finds the elements of an array which satisfy a filter function. The original array is not affected. + /// The array to search through. + /// The function to process each item against. The first argument to the function is the item, and the second argument is the index. The function should return a Boolean value. this will be the global window object. + /// If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true. If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false. + /// + /// + }, + 'hasData': function() { + /// + /// Determine whether an element has any jQuery data associated with it. + /// A DOM element to be checked for data. + /// + /// + }, + 'holdReady': function() { + /// + /// Holds or releases the execution of jQuery's ready event. + /// Indicates whether the ready hold is being requested or released + /// + }, + 'inArray': function() { + /// + /// Search for a specified value within an array and return its index (or -1 if not found). + /// The value to search for. + /// An array through which to search. + /// The index of the array at which to begin the search. The default is 0, which will search the whole array. + /// + /// + }, + 'isArray': function() { + /// + /// Determine whether the argument is an array. + /// Object to test whether or not it is an array. + /// + /// + }, + 'isEmptyObject': function() { + /// + /// Check to see if an object is empty (contains no enumerable properties). + /// The object that will be checked to see if it's empty. + /// + /// + }, + 'isFunction': function() { + /// + /// Determine if the argument passed is a Javascript function object. + /// Object to test whether or not it is a function. + /// + /// + }, + 'isNumeric': function() { + /// + /// Determines whether its argument is a number. + /// The value to be tested. + /// + /// + }, + 'isPlainObject': function() { + /// + /// Check to see if an object is a plain object (created using "{}" or "new Object"). + /// The object that will be checked to see if it's a plain object. + /// + /// + }, + 'isWindow': function() { + /// + /// Determine whether the argument is a window. + /// Object to test whether or not it is a window. + /// + /// + }, + 'isXMLDoc': function() { + /// + /// Check to see if a DOM node is within an XML document (or is an XML document). + /// The DOM node that will be checked to see if it's in an XML document. + /// + /// + }, + 'makeArray': function() { + /// + /// Convert an array-like object into a true JavaScript array. + /// Any object to turn into a native Array. + /// + /// + }, + 'map': function() { + /// + /// Translate all items in an array or object to new array of items. + /// The Array to translate. + /// The function to process each item against. The first argument to the function is the array item, the second argument is the index in array The function can return any value. Within the function, this refers to the global (window) object. + /// + /// + /// + /// Translate all items in an array or object to new array of items. + /// The Array or Object to translate. + /// The function to process each item against. The first argument to the function is the value; the second argument is the index or key of the array or object property. The function can return any value to add to the array. A returned array will be flattened into the resulting array. Within the function, this refers to the global (window) object. + /// + /// + }, + 'merge': function() { + /// + /// Merge the contents of two arrays together into the first array. + /// The first array to merge, the elements of second added. + /// The second array to merge into the first, unaltered. + /// + /// + }, + 'noConflict': function() { + /// + /// Relinquish jQuery's control of the $ variable. + /// A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself). + /// + /// + }, + 'noop': function() { + /// An empty function. + }, + 'now': function() { + /// Return a number representing the current time. + /// + }, + 'param': function() { + /// + /// Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. + /// An array or object to serialize. + /// + /// + /// + /// Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. + /// An array or object to serialize. + /// A Boolean indicating whether to perform a traditional "shallow" serialization. + /// + /// + }, + 'parseHTML': function() { + /// + /// Parses a string into an array of DOM nodes. + /// HTML string to be parsed + /// DOM element to serve as the context in which the HTML fragment will be created + /// A Boolean indicating whether to include scripts passed in the HTML string + /// + /// + }, + 'parseJSON': function() { + /// + /// Takes a well-formed JSON string and returns the resulting JavaScript object. + /// The JSON string to parse. + /// + /// + }, + 'parseXML': function() { + /// + /// Parses a string into an XML document. + /// a well-formed XML string to be parsed + /// + /// + }, + 'post': function() { + /// + /// Load data from the server using a HTTP POST request. + /// A string containing the URL to which the request is sent. + /// A plain object or string that is sent to the server with the request. + /// A callback function that is executed if the request succeeds. + /// The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html). + /// + /// + }, + 'proxy': function() { + /// + /// Takes a function and returns a new one that will always have a particular context. + /// The function whose context will be changed. + /// The object to which the context (this) of the function should be set. + /// + /// + /// + /// Takes a function and returns a new one that will always have a particular context. + /// The object to which the context of the function should be set. + /// The name of the function whose context will be changed (should be a property of the context object). + /// + /// + /// + /// Takes a function and returns a new one that will always have a particular context. + /// The function whose context will be changed. + /// The object to which the context (this) of the function should be set. + /// Any number of arguments to be passed to the function referenced in the function argument. + /// + /// + /// + /// Takes a function and returns a new one that will always have a particular context. + /// The object to which the context of the function should be set. + /// The name of the function whose context will be changed (should be a property of the context object). + /// Any number of arguments to be passed to the function named in the name argument. + /// + /// + }, + 'queue': function() { + /// + /// Manipulate the queue of functions to be executed on the matched element. + /// A DOM element where the array of queued functions is attached. + /// A string containing the name of the queue. Defaults to fx, the standard effects queue. + /// An array of functions to replace the current queue contents. + /// + /// + /// + /// Manipulate the queue of functions to be executed on the matched element. + /// A DOM element on which to add a queued function. + /// A string containing the name of the queue. Defaults to fx, the standard effects queue. + /// The new function to add to the queue. + /// + /// + }, + 'removeData': function() { + /// + /// Remove a previously-stored piece of data. + /// A DOM element from which to remove data. + /// A string naming the piece of data to remove. + /// + /// + }, + 'sub': function() { + /// Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object. + /// + }, + 'support': function() { + /// A collection of properties that represent the presence of different browser features or bugs. Primarily intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally to improve page startup performance. + /// + }, + 'trim': function() { + /// + /// Remove the whitespace from the beginning and end of a string. + /// The string to trim. + /// + /// + }, + 'type': function() { + /// + /// Determine the internal JavaScript [[Class]] of an object. + /// Object to get the internal JavaScript [[Class]] of. + /// + /// + }, + 'unique': function() { + /// + /// Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers. + /// The Array of DOM elements. + /// + /// + }, + 'when': function() { + /// + /// Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events. + /// One or more Deferred objects, or plain JavaScript objects. + /// + /// + }, +}); + +var _1228819969 = jQuery.Callbacks; +jQuery.Callbacks = function(flags) { +var _object = _1228819969(flags); +intellisense.annotate(_object, { + 'add': function() { + /// + /// Add a callback or a collection of callbacks to a callback list. + /// A function, or array of functions, that are to be added to the callback list. + /// + /// + }, + 'disable': function() { + /// Disable a callback list from doing anything more. + /// + }, + 'disabled': function() { + /// Determine if the callbacks list has been disabled. + /// + }, + 'empty': function() { + /// Remove all of the callbacks from a list. + /// + }, + 'fire': function() { + /// + /// Call all of the callbacks with the given arguments + /// The argument or list of arguments to pass back to the callback list. + /// + /// + }, + 'fired': function() { + /// Determine if the callbacks have already been called at least once. + /// + }, + 'fireWith': function() { + /// + /// Call all callbacks in a list with the given context and arguments. + /// A reference to the context in which the callbacks in the list should be fired. + /// An argument, or array of arguments, to pass to the callbacks in the list. + /// + /// + }, + 'has': function() { + /// + /// Determine whether a supplied callback is in a list + /// The callback to search for. + /// + /// + }, + 'lock': function() { + /// Lock a callback list in its current state. + /// + }, + 'locked': function() { + /// Determine if the callbacks list has been locked. + /// + }, + 'remove': function() { + /// + /// Remove a callback or a collection of callbacks from a callback list. + /// A function, or array of functions, that are to be removed from the callback list. + /// + /// + }, +}); + +return _object; +}; +intellisense.redirectDefinition(jQuery.Callbacks, _1228819969); + +var _731531622 = jQuery.Deferred; +jQuery.Deferred = function(func) { +var _object = _731531622(func); +intellisense.annotate(_object, { + 'always': function() { + /// + /// Add handlers to be called when the Deferred object is either resolved or rejected. + /// A function, or array of functions, that is called when the Deferred is resolved or rejected. + /// Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected. + /// + /// + }, + 'done': function() { + /// + /// Add handlers to be called when the Deferred object is resolved. + /// A function, or array of functions, that are called when the Deferred is resolved. + /// Optional additional functions, or arrays of functions, that are called when the Deferred is resolved. + /// + /// + }, + 'fail': function() { + /// + /// Add handlers to be called when the Deferred object is rejected. + /// A function, or array of functions, that are called when the Deferred is rejected. + /// Optional additional functions, or arrays of functions, that are called when the Deferred is rejected. + /// + /// + }, + 'isRejected': function() { + /// Determine whether a Deferred object has been rejected. + /// + }, + 'isResolved': function() { + /// Determine whether a Deferred object has been resolved. + /// + }, + 'notify': function() { + /// + /// Call the progressCallbacks on a Deferred object with the given args. + /// Optional arguments that are passed to the progressCallbacks. + /// + /// + }, + 'notifyWith': function() { + /// + /// Call the progressCallbacks on a Deferred object with the given context and args. + /// Context passed to the progressCallbacks as the this object. + /// Optional arguments that are passed to the progressCallbacks. + /// + /// + }, + 'pipe': function() { + /// + /// Utility method to filter and/or chain Deferreds. + /// An optional function that is called when the Deferred is resolved. + /// An optional function that is called when the Deferred is rejected. + /// + /// + /// + /// Utility method to filter and/or chain Deferreds. + /// An optional function that is called when the Deferred is resolved. + /// An optional function that is called when the Deferred is rejected. + /// An optional function that is called when progress notifications are sent to the Deferred. + /// + /// + }, + 'progress': function() { + /// + /// Add handlers to be called when the Deferred object generates progress notifications. + /// A function, or array of functions, that is called when the Deferred generates progress notifications. + /// + /// + }, + 'promise': function() { + /// + /// Return a Deferred's Promise object. + /// Object onto which the promise methods have to be attached + /// + /// + }, + 'reject': function() { + /// + /// Reject a Deferred object and call any failCallbacks with the given args. + /// Optional arguments that are passed to the failCallbacks. + /// + /// + }, + 'rejectWith': function() { + /// + /// Reject a Deferred object and call any failCallbacks with the given context and args. + /// Context passed to the failCallbacks as the this object. + /// An optional array of arguments that are passed to the failCallbacks. + /// + /// + }, + 'resolve': function() { + /// + /// Resolve a Deferred object and call any doneCallbacks with the given args. + /// Optional arguments that are passed to the doneCallbacks. + /// + /// + }, + 'resolveWith': function() { + /// + /// Resolve a Deferred object and call any doneCallbacks with the given context and args. + /// Context passed to the doneCallbacks as the this object. + /// An optional array of arguments that are passed to the doneCallbacks. + /// + /// + }, + 'state': function() { + /// Determine the current state of a Deferred object. + /// + }, + 'then': function() { + /// + /// Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. + /// A function that is called when the Deferred is resolved. + /// An optional function that is called when the Deferred is rejected. + /// An optional function that is called when progress notifications are sent to the Deferred. + /// + /// + /// + /// Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. + /// A function, or array of functions, called when the Deferred is resolved. + /// A function, or array of functions, called when the Deferred is rejected. + /// + /// + /// + /// Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. + /// A function, or array of functions, called when the Deferred is resolved. + /// A function, or array of functions, called when the Deferred is rejected. + /// A function, or array of functions, called when the Deferred notifies progress. + /// + /// + }, +}); + +return _object; +}; +intellisense.redirectDefinition(jQuery.Callbacks, _731531622); + +intellisense.annotate(jQuery.Event.prototype, { + 'currentTarget': function() { + /// The current DOM element within the event bubbling phase. + /// + }, + 'data': function() { + /// An optional object of data passed to an event method when the current executing handler is bound. + /// + }, + 'delegateTarget': function() { + /// The element where the currently-called jQuery event handler was attached. + /// + }, + 'isDefaultPrevented': function() { + /// Returns whether event.preventDefault() was ever called on this event object. + /// + }, + 'isImmediatePropagationStopped': function() { + /// Returns whether event.stopImmediatePropagation() was ever called on this event object. + /// + }, + 'isPropagationStopped': function() { + /// Returns whether event.stopPropagation() was ever called on this event object. + /// + }, + 'metaKey': function() { + /// Indicates whether the META key was pressed when the event fired. + /// + }, + 'namespace': function() { + /// The namespace specified when the event was triggered. + /// + }, + 'pageX': function() { + /// The mouse position relative to the left edge of the document. + /// + }, + 'pageY': function() { + /// The mouse position relative to the top edge of the document. + /// + }, + 'preventDefault': function() { + /// If this method is called, the default action of the event will not be triggered. + }, + 'relatedTarget': function() { + /// The other DOM element involved in the event, if any. + /// + }, + 'result': function() { + /// The last value returned by an event handler that was triggered by this event, unless the value was undefined. + /// + }, + 'stopImmediatePropagation': function() { + /// Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree. + }, + 'stopPropagation': function() { + /// Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. + }, + 'target': function() { + /// The DOM element that initiated the event. + /// + }, + 'timeStamp': function() { + /// The difference in milliseconds between the time the browser created the event and January 1, 1970. + /// + }, + 'type': function() { + /// Describes the nature of the event. + /// + }, + 'which': function() { + /// For key or mouse events, this property indicates the specific key or button that was pressed. + /// + }, +}); + +intellisense.annotate(jQuery.fn, { + 'add': function() { + /// + /// Add elements to the set of matched elements. + /// A string representing a selector expression to find additional elements to add to the set of matched elements. + /// + /// + /// + /// Add elements to the set of matched elements. + /// One or more elements to add to the set of matched elements. + /// + /// + /// + /// Add elements to the set of matched elements. + /// An HTML fragment to add to the set of matched elements. + /// + /// + /// + /// Add elements to the set of matched elements. + /// An existing jQuery object to add to the set of matched elements. + /// + /// + /// + /// Add elements to the set of matched elements. + /// A string representing a selector expression to find additional elements to add to the set of matched elements. + /// The point in the document at which the selector should begin matching; similar to the context argument of the $(selector, context) method. + /// + /// + }, + 'addBack': function() { + /// + /// Add the previous set of elements on the stack to the current set, optionally filtered by a selector. + /// A string containing a selector expression to match the current set of elements against. + /// + /// + }, + 'addClass': function() { + /// + /// Adds the specified class(es) to each of the set of matched elements. + /// One or more space-separated classes to be added to the class attribute of each matched element. + /// + /// + /// + /// Adds the specified class(es) to each of the set of matched elements. + /// A function returning one or more space-separated class names to be added to the existing class name(s). Receives the index position of the element in the set and the existing class name(s) as arguments. Within the function, this refers to the current element in the set. + /// + /// + }, + 'after': function() { + /// + /// Insert content, specified by the parameter, after each element in the set of matched elements. + /// HTML string, DOM element, or jQuery object to insert after each element in the set of matched elements. + /// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements. + /// + /// + /// + /// Insert content, specified by the parameter, after each element in the set of matched elements. + /// A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + /// + /// + }, + 'ajaxComplete': function() { + /// + /// Register a handler to be called when Ajax requests complete. This is an AjaxEvent. + /// The function to be invoked. + /// + /// + }, + 'ajaxError': function() { + /// + /// Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. + /// The function to be invoked. + /// + /// + }, + 'ajaxSend': function() { + /// + /// Attach a function to be executed before an Ajax request is sent. This is an Ajax Event. + /// The function to be invoked. + /// + /// + }, + 'ajaxStart': function() { + /// + /// Register a handler to be called when the first Ajax request begins. This is an Ajax Event. + /// The function to be invoked. + /// + /// + }, + 'ajaxStop': function() { + /// + /// Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. + /// The function to be invoked. + /// + /// + }, + 'ajaxSuccess': function() { + /// + /// Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event. + /// The function to be invoked. + /// + /// + }, + 'all': function() { + /// Selects all elements. + }, + 'andSelf': function() { + /// Add the previous set of elements on the stack to the current set. + /// + }, + 'animate': function() { + /// + /// Perform a custom animation of a set of CSS properties. + /// An object of CSS properties and values that the animation will move toward. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + /// + /// Perform a custom animation of a set of CSS properties. + /// An object of CSS properties and values that the animation will move toward. + /// A map of additional options to pass to the method. + /// + /// + }, + 'animated': function() { + /// Select all elements that are in the progress of an animation at the time the selector is run. + }, + 'append': function() { + /// + /// Insert content, specified by the parameter, to the end of each element in the set of matched elements. + /// DOM element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements. + /// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements. + /// + /// + /// + /// Insert content, specified by the parameter, to the end of each element in the set of matched elements. + /// A function that returns an HTML string, DOM element(s), or jQuery object to insert at the end of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set. + /// + /// + }, + 'appendTo': function() { + /// + /// Insert every element in the set of matched elements to the end of the target. + /// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter. + /// + /// + }, + 'attr': function() { + /// + /// Set one or more attributes for the set of matched elements. + /// The name of the attribute to set. + /// A value to set for the attribute. + /// + /// + /// + /// Set one or more attributes for the set of matched elements. + /// An object of attribute-value pairs to set. + /// + /// + /// + /// Set one or more attributes for the set of matched elements. + /// The name of the attribute to set. + /// A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old attribute value as arguments. + /// + /// + }, + 'attributeContains': function() { + /// + /// Selects elements that have the specified attribute with a value containing the a given substring. + /// An attribute name. + /// An attribute value. Can be either an unquoted single word or a quoted string. + /// + }, + 'attributeContainsPrefix': function() { + /// + /// Selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-). + /// An attribute name. + /// An attribute value. Can be either an unquoted single word or a quoted string. + /// + }, + 'attributeContainsWord': function() { + /// + /// Selects elements that have the specified attribute with a value containing a given word, delimited by spaces. + /// An attribute name. + /// An attribute value. Can be either an unquoted single word or a quoted string. + /// + }, + 'attributeEndsWith': function() { + /// + /// Selects elements that have the specified attribute with a value ending exactly with a given string. The comparison is case sensitive. + /// An attribute name. + /// An attribute value. Can be either an unquoted single word or a quoted string. + /// + }, + 'attributeEquals': function() { + /// + /// Selects elements that have the specified attribute with a value exactly equal to a certain value. + /// An attribute name. + /// An attribute value. Can be either an unquoted single word or a quoted string. + /// + }, + 'attributeHas': function() { + /// + /// Selects elements that have the specified attribute, with any value. + /// An attribute name. + /// + }, + 'attributeMultiple': function() { + /// + /// Matches elements that match all of the specified attribute filters. + /// An attribute filter. + /// Another attribute filter, reducing the selection even more + /// As many more attribute filters as necessary + /// + }, + 'attributeNotEqual': function() { + /// + /// Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value. + /// An attribute name. + /// An attribute value. Can be either an unquoted single word or a quoted string. + /// + }, + 'attributeStartsWith': function() { + /// + /// Selects elements that have the specified attribute with a value beginning exactly with a given string. + /// An attribute name. + /// An attribute value. Can be either an unquoted single word or a quoted string. + /// + }, + 'before': function() { + /// + /// Insert content, specified by the parameter, before each element in the set of matched elements. + /// HTML string, DOM element, or jQuery object to insert before each element in the set of matched elements. + /// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements. + /// + /// + /// + /// Insert content, specified by the parameter, before each element in the set of matched elements. + /// A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + /// + /// + }, + 'bind': function() { + /// + /// Attach a handler to an event for the elements. + /// A string containing one or more DOM event types, such as "click" or "submit," or custom event names. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Attach a handler to an event for the elements. + /// A string containing one or more DOM event types, such as "click" or "submit," or custom event names. + /// An object containing data that will be passed to the event handler. + /// Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true. + /// + /// + /// + /// Attach a handler to an event for the elements. + /// An object containing one or more DOM event types and functions to execute for them. + /// + /// + }, + 'blur': function() { + /// + /// Bind an event handler to the "blur" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "blur" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'button': function() { + /// Selects all button elements and elements of type button. + }, + 'change': function() { + /// + /// Bind an event handler to the "change" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "change" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'checkbox': function() { + /// Selects all elements of type checkbox. + }, + 'checked': function() { + /// Matches all elements that are checked. + }, + 'child': function() { + /// + /// Selects all direct child elements specified by "child" of elements specified by "parent". + /// Any valid selector. + /// A selector to filter the child elements. + /// + }, + 'children': function() { + /// + /// Get the children of each element in the set of matched elements, optionally filtered by a selector. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'class': function() { + /// + /// Selects all elements with the given class. + /// A class to search for. An element can have multiple classes; only one of them must match. + /// + }, + 'clearQueue': function() { + /// + /// Remove from the queue all items that have not yet been run. + /// A string containing the name of the queue. Defaults to fx, the standard effects queue. + /// + /// + }, + 'click': function() { + /// + /// Bind an event handler to the "click" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "click" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'clone': function() { + /// + /// Create a deep copy of the set of matched elements. + /// A Boolean indicating whether event handlers should be copied along with the elements. As of jQuery 1.4, element data will be copied as well. + /// + /// + /// + /// Create a deep copy of the set of matched elements. + /// A Boolean indicating whether event handlers and data should be copied along with the elements. The default value is false. *In jQuery 1.5.0 the default value was incorrectly true; it was changed back to false in 1.5.1 and up. + /// A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument's value (which defaults to false). + /// + /// + }, + 'closest': function() { + /// + /// For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + /// A string containing a selector expression to match elements against. + /// + /// + /// + /// For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + /// A string containing a selector expression to match elements against. + /// A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead. + /// + /// + /// + /// For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + /// A jQuery object to match elements against. + /// + /// + /// + /// For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. + /// An element to match elements against. + /// + /// + }, + 'contains': function() { + /// + /// Select all elements that contain the specified text. + /// A string of text to look for. It's case sensitive. + /// + }, + 'contents': function() { + /// Get the children of each element in the set of matched elements, including text and comment nodes. + /// + }, + 'context': function() { + /// The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document. + /// + }, + 'css': function() { + /// + /// Set one or more CSS properties for the set of matched elements. + /// A CSS property name. + /// A value to set for the property. + /// + /// + /// + /// Set one or more CSS properties for the set of matched elements. + /// A CSS property name. + /// A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments. + /// + /// + /// + /// Set one or more CSS properties for the set of matched elements. + /// An object of property-value pairs to set. + /// + /// + }, + 'data': function() { + /// + /// Store arbitrary data associated with the matched elements. + /// A string naming the piece of data to set. + /// The new data value; it can be any Javascript type including Array or Object. + /// + /// + /// + /// Store arbitrary data associated with the matched elements. + /// An object of key-value pairs of data to update. + /// + /// + }, + 'dblclick': function() { + /// + /// Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'delay': function() { + /// + /// Set a timer to delay execution of subsequent items in the queue. + /// An integer indicating the number of milliseconds to delay execution of the next item in the queue. + /// A string containing the name of the queue. Defaults to fx, the standard effects queue. + /// + /// + }, + 'delegate': function() { + /// + /// Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. + /// A selector to filter the elements that trigger the event. + /// A string containing one or more space-separated JavaScript event types, such as "click" or "keydown," or custom event names. + /// A function to execute at the time the event is triggered. + /// + /// + /// + /// Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. + /// A selector to filter the elements that trigger the event. + /// A string containing one or more space-separated JavaScript event types, such as "click" or "keydown," or custom event names. + /// An object containing data that will be passed to the event handler. + /// A function to execute at the time the event is triggered. + /// + /// + /// + /// Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. + /// A selector to filter the elements that trigger the event. + /// A plain object of one or more event types and functions to execute for them. + /// + /// + }, + 'dequeue': function() { + /// + /// Execute the next function on the queue for the matched elements. + /// A string containing the name of the queue. Defaults to fx, the standard effects queue. + /// + /// + }, + 'descendant': function() { + /// + /// Selects all elements that are descendants of a given ancestor. + /// Any valid selector. + /// A selector to filter the descendant elements. + /// + }, + 'detach': function() { + /// + /// Remove the set of matched elements from the DOM. + /// A selector expression that filters the set of matched elements to be removed. + /// + /// + }, + 'die': function() { + /// + /// Remove event handlers previously attached using .live() from the elements. + /// A string containing a JavaScript event type, such as click or keydown. + /// The function that is no longer to be executed. + /// + /// + /// + /// Remove event handlers previously attached using .live() from the elements. + /// A plain object of one or more event types, such as click or keydown and their corresponding functions that are no longer to be executed. + /// + /// + }, + 'disabled': function() { + /// Selects all elements that are disabled. + }, + 'each': function() { + /// + /// Iterate over a jQuery object, executing a function for each matched element. + /// A function to execute for each matched element. + /// + /// + }, + 'element': function() { + /// + /// Selects all elements with the given tag name. + /// An element to search for. Refers to the tagName of DOM nodes. + /// + }, + 'empty': function() { + /// Select all elements that have no children (including text nodes). + }, + 'enabled': function() { + /// Selects all elements that are enabled. + }, + 'end': function() { + /// End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. + /// + }, + 'eq': function() { + /// + /// Select the element at index n within the matched set. + /// Zero-based index of the element to match. + /// + /// + /// Select the element at index n within the matched set. + /// Zero-based index of the element to match, counting backwards from the last element. + /// + }, + 'error': function() { + /// + /// Bind an event handler to the "error" JavaScript event. + /// A function to execute when the event is triggered. + /// + /// + /// + /// Bind an event handler to the "error" JavaScript event. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'even': function() { + /// Selects even elements, zero-indexed. See also odd. + }, + 'fadeIn': function() { + /// + /// Display the matched elements by fading them to opaque. + /// A string or number determining how long the animation will run. + /// A function to call once the animation is complete. + /// + /// + /// + /// Display the matched elements by fading them to opaque. + /// A map of additional options to pass to the method. + /// + /// + /// + /// Display the matched elements by fading them to opaque. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + }, + 'fadeOut': function() { + /// + /// Hide the matched elements by fading them to transparent. + /// A string or number determining how long the animation will run. + /// A function to call once the animation is complete. + /// + /// + /// + /// Hide the matched elements by fading them to transparent. + /// A map of additional options to pass to the method. + /// + /// + /// + /// Hide the matched elements by fading them to transparent. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + }, + 'fadeTo': function() { + /// + /// Adjust the opacity of the matched elements. + /// A string or number determining how long the animation will run. + /// A number between 0 and 1 denoting the target opacity. + /// A function to call once the animation is complete. + /// + /// + /// + /// Adjust the opacity of the matched elements. + /// A string or number determining how long the animation will run. + /// A number between 0 and 1 denoting the target opacity. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + }, + 'fadeToggle': function() { + /// + /// Display or hide the matched elements by animating their opacity. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + /// + /// Display or hide the matched elements by animating their opacity. + /// A map of additional options to pass to the method. + /// + /// + }, + 'file': function() { + /// Selects all elements of type file. + }, + 'filter': function() { + /// + /// Reduce the set of matched elements to those that match the selector or pass the function's test. + /// A string containing a selector expression to match the current set of elements against. + /// + /// + /// + /// Reduce the set of matched elements to those that match the selector or pass the function's test. + /// A function used as a test for each element in the set. this is the current DOM element. + /// + /// + /// + /// Reduce the set of matched elements to those that match the selector or pass the function's test. + /// An element to match the current set of elements against. + /// + /// + /// + /// Reduce the set of matched elements to those that match the selector or pass the function's test. + /// An existing jQuery object to match the current set of elements against. + /// + /// + }, + 'find': function() { + /// + /// Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. + /// A string containing a selector expression to match elements against. + /// + /// + /// + /// Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. + /// A jQuery object to match elements against. + /// + /// + /// + /// Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. + /// An element to match elements against. + /// + /// + }, + 'finish': function() { + /// + /// Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements. + /// The name of the queue in which to stop animations. + /// + /// + }, + 'first': function() { + /// Selects the first matched element. + }, + 'first-child': function() { + /// Selects all elements that are the first child of their parent. + }, + 'first-of-type': function() { + /// Selects all elements that are the first among siblings of the same element name. + }, + 'focus': function() { + /// + /// Bind an event handler to the "focus" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "focus" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'focusin': function() { + /// + /// Bind an event handler to the "focusin" event. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "focusin" event. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'focusout': function() { + /// + /// Bind an event handler to the "focusout" JavaScript event. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "focusout" JavaScript event. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'get': function() { + /// + /// Retrieve the DOM elements matched by the jQuery object. + /// A zero-based integer indicating which element to retrieve. + /// + /// + }, + 'gt': function() { + /// + /// Select all elements at an index greater than index within the matched set. + /// Zero-based index. + /// + }, + 'has': function() { + /// + /// Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. + /// A string containing a selector expression to match elements against. + /// + /// + /// + /// Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. + /// A DOM element to match elements against. + /// + /// + }, + 'hasClass': function() { + /// + /// Determine whether any of the matched elements are assigned the given class. + /// The class name to search for. + /// + /// + }, + 'header': function() { + /// Selects all elements that are headers, like h1, h2, h3 and so on. + }, + 'height': function() { + /// + /// Set the CSS height of every matched element. + /// An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string). + /// + /// + /// + /// Set the CSS height of every matched element. + /// A function returning the height to set. Receives the index position of the element in the set and the old height as arguments. Within the function, this refers to the current element in the set. + /// + /// + }, + 'hidden': function() { + /// Selects all elements that are hidden. + }, + 'hide': function() { + /// + /// Hide the matched elements. + /// A string or number determining how long the animation will run. + /// A function to call once the animation is complete. + /// + /// + /// + /// Hide the matched elements. + /// A map of additional options to pass to the method. + /// + /// + /// + /// Hide the matched elements. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + }, + 'hover': function() { + /// + /// Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. + /// A function to execute when the mouse pointer enters the element. + /// A function to execute when the mouse pointer leaves the element. + /// + /// + }, + 'html': function() { + /// + /// Set the HTML contents of each element in the set of matched elements. + /// A string of HTML to set as the content of each matched element. + /// + /// + /// + /// Set the HTML contents of each element in the set of matched elements. + /// A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments. jQuery empties the element before calling the function; use the oldhtml argument to reference the previous content. Within the function, this refers to the current element in the set. + /// + /// + }, + 'id': function() { + /// + /// Selects a single element with the given id attribute. + /// An ID to search for, specified via the id attribute of an element. + /// + }, + 'image': function() { + /// Selects all elements of type image. + }, + 'index': function() { + /// + /// Search for a given element from among the matched elements. + /// A selector representing a jQuery collection in which to look for an element. + /// + /// + /// + /// Search for a given element from among the matched elements. + /// The DOM element or first element within the jQuery object to look for. + /// + /// + }, + 'init': function() { + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// A string containing a selector expression + /// A DOM Element, Document, or jQuery to use as context + /// + /// + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// A DOM element to wrap in a jQuery object. + /// + /// + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// An array containing a set of DOM elements to wrap in a jQuery object. + /// + /// + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// A plain object to wrap in a jQuery object. + /// + /// + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// An existing jQuery object to clone. + /// + /// + }, + 'innerHeight': function() { + /// Get the current computed height for the first element in the set of matched elements, including padding but not border. + /// + }, + 'innerWidth': function() { + /// Get the current computed width for the first element in the set of matched elements, including padding but not border. + /// + }, + 'input': function() { + /// Selects all input, textarea, select and button elements. + }, + 'insertAfter': function() { + /// + /// Insert every element in the set of matched elements after the target. + /// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter. + /// + /// + }, + 'insertBefore': function() { + /// + /// Insert every element in the set of matched elements before the target. + /// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter. + /// + /// + }, + 'is': function() { + /// + /// Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. + /// A string containing a selector expression to match elements against. + /// + /// + /// + /// Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. + /// A function used as a test for the set of elements. It accepts one argument, index, which is the element's index in the jQuery collection.Within the function, this refers to the current DOM element. + /// + /// + /// + /// Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. + /// An existing jQuery object to match the current set of elements against. + /// + /// + /// + /// Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. + /// An element to match the current set of elements against. + /// + /// + }, + 'jquery': function() { + /// A string containing the jQuery version number. + /// + }, + 'keydown': function() { + /// + /// Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'keypress': function() { + /// + /// Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'keyup': function() { + /// + /// Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'lang': function() { + /// + /// Selects all elements of the specified language. + /// A language code. + /// + }, + 'last': function() { + /// Selects the last matched element. + }, + 'last-child': function() { + /// Selects all elements that are the last child of their parent. + }, + 'last-of-type': function() { + /// Selects all elements that are the last among siblings of the same element name. + }, + 'length': function() { + /// The number of elements in the jQuery object. + /// + }, + 'live': function() { + /// + /// Attach an event handler for all elements which match the current selector, now and in the future. + /// A string containing a JavaScript event type, such as "click" or "keydown." As of jQuery 1.4 the string can contain multiple, space-separated event types or custom event names. + /// A function to execute at the time the event is triggered. + /// + /// + /// + /// Attach an event handler for all elements which match the current selector, now and in the future. + /// A string containing a JavaScript event type, such as "click" or "keydown." As of jQuery 1.4 the string can contain multiple, space-separated event types or custom event names. + /// An object containing data that will be passed to the event handler. + /// A function to execute at the time the event is triggered. + /// + /// + /// + /// Attach an event handler for all elements which match the current selector, now and in the future. + /// A plain object of one or more JavaScript event types and functions to execute for them. + /// + /// + }, + 'load': function() { + /// + /// Bind an event handler to the "load" JavaScript event. + /// A function to execute when the event is triggered. + /// + /// + /// + /// Bind an event handler to the "load" JavaScript event. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'lt': function() { + /// + /// Select all elements at an index less than index within the matched set. + /// Zero-based index. + /// + }, + 'map': function() { + /// + /// Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. + /// A function object that will be invoked for each element in the current set. + /// + /// + }, + 'mousedown': function() { + /// + /// Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'mouseenter': function() { + /// + /// Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'mouseleave': function() { + /// + /// Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'mousemove': function() { + /// + /// Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'mouseout': function() { + /// + /// Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'mouseover': function() { + /// + /// Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'mouseup': function() { + /// + /// Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'multiple': function() { + /// + /// Selects the combined results of all the specified selectors. + /// Any valid selector. + /// Another valid selector. + /// As many more valid selectors as you like. + /// + }, + 'next': function() { + /// + /// Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'next adjacent': function() { + /// + /// Selects all next elements matching "next" that are immediately preceded by a sibling "prev". + /// Any valid selector. + /// A selector to match the element that is next to the first selector. + /// + }, + 'next siblings': function() { + /// + /// Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector. + /// Any valid selector. + /// A selector to filter elements that are the following siblings of the first selector. + /// + }, + 'nextAll': function() { + /// + /// Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'nextUntil': function() { + /// + /// Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. + /// A string containing a selector expression to indicate where to stop matching following sibling elements. + /// A string containing a selector expression to match elements against. + /// + /// + /// + /// Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. + /// A DOM node or jQuery object indicating where to stop matching following sibling elements. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'not': function() { + /// + /// Remove elements from the set of matched elements. + /// A string containing a selector expression to match elements against. + /// + /// + /// + /// Remove elements from the set of matched elements. + /// One or more DOM elements to remove from the matched set. + /// + /// + /// + /// Remove elements from the set of matched elements. + /// A function used as a test for each element in the set. this is the current DOM element. + /// + /// + /// + /// Remove elements from the set of matched elements. + /// An existing jQuery object to match the current set of elements against. + /// + /// + }, + 'nth-child': function() { + /// + /// Selects all elements that are the nth-child of their parent. + /// The index of each child to match, starting with 1, the string even or odd, or an equation ( eg. :nth-child(even), :nth-child(4n) ) + /// + }, + 'nth-last-child': function() { + /// + /// Selects all elements that are the nth-child of their parent, counting from the last element to the first. + /// The index of each child to match, starting with the last one (1), the string even or odd, or an equation ( eg. :nth-last-child(even), :nth-last-child(4n) ) + /// + }, + 'nth-last-of-type': function() { + /// + /// Selects all elements that are the nth-child of their parent, counting from the last element to the first. + /// The index of each child to match, starting with the last one (1), the string even or odd, or an equation ( eg. :nth-last-of-type(even), :nth-last-of-type(4n) ) + /// + }, + 'nth-of-type': function() { + /// + /// Selects all elements that are the nth child of their parent in relation to siblings with the same element name. + /// The index of each child to match, starting with 1, the string even or odd, or an equation ( eg. :nth-of-type(even), :nth-of-type(4n) ) + /// + }, + 'odd': function() { + /// Selects odd elements, zero-indexed. See also even. + }, + 'off': function() { + /// + /// Remove an event handler. + /// One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin". + /// A selector which should match the one originally passed to .on() when attaching event handlers. + /// A handler function previously attached for the event(s), or the special value false. + /// + /// + /// + /// Remove an event handler. + /// An object where the string keys represent one or more space-separated event types and optional namespaces, and the values represent handler functions previously attached for the event(s). + /// A selector which should match the one originally passed to .on() when attaching event handlers. + /// + /// + }, + 'offset': function() { + /// + /// Set the current coordinates of every element in the set of matched elements, relative to the document. + /// An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements. + /// + /// + /// + /// Set the current coordinates of every element in the set of matched elements, relative to the document. + /// A function to return the coordinates to set. Receives the index of the element in the collection as the first argument and the current coordinates as the second argument. The function should return an object with the new top and left properties. + /// + /// + }, + 'offsetParent': function() { + /// Get the closest ancestor element that is positioned. + /// + }, + 'on': function() { + /// + /// Attach an event handler function for one or more events to the selected elements. + /// One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". + /// A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element. + /// Data to be passed to the handler in event.data when an event is triggered. + /// A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. + /// + /// + /// + /// Attach an event handler function for one or more events to the selected elements. + /// An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s). + /// A selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element. + /// Data to be passed to the handler in event.data when an event occurs. + /// + /// + }, + 'one': function() { + /// + /// Attach a handler to an event for the elements. The handler is executed at most once per element. + /// A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names. + /// An object containing data that will be passed to the event handler. + /// A function to execute at the time the event is triggered. + /// + /// + /// + /// Attach a handler to an event for the elements. The handler is executed at most once per element. + /// One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin". + /// A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element. + /// Data to be passed to the handler in event.data when an event is triggered. + /// A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. + /// + /// + /// + /// Attach a handler to an event for the elements. The handler is executed at most once per element. + /// An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s). + /// A selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element. + /// Data to be passed to the handler in event.data when an event occurs. + /// + /// + }, + 'only-child': function() { + /// Selects all elements that are the only child of their parent. + }, + 'only-of-type': function() { + /// Selects all elements that have no siblings with the same element name. + }, + 'outerHeight': function() { + /// + /// Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns an integer (without "px") representation of the value or null if called on an empty set of elements. + /// A Boolean indicating whether to include the element's margin in the calculation. + /// + /// + }, + 'outerWidth': function() { + /// + /// Get the current computed width for the first element in the set of matched elements, including padding and border. + /// A Boolean indicating whether to include the element's margin in the calculation. + /// + /// + }, + 'parent': function() { + /// + /// Get the parent of each element in the current set of matched elements, optionally filtered by a selector. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'parents': function() { + /// + /// Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'parentsUntil': function() { + /// + /// Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. + /// A string containing a selector expression to indicate where to stop matching ancestor elements. + /// A string containing a selector expression to match elements against. + /// + /// + /// + /// Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. + /// A DOM node or jQuery object indicating where to stop matching ancestor elements. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'password': function() { + /// Selects all elements of type password. + }, + 'position': function() { + /// Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. + /// + }, + 'prepend': function() { + /// + /// Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. + /// DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements. + /// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements. + /// + /// + /// + /// Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. + /// A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set. + /// + /// + }, + 'prependTo': function() { + /// + /// Insert every element in the set of matched elements to the beginning of the target. + /// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter. + /// + /// + }, + 'prev': function() { + /// + /// Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'prevAll': function() { + /// + /// Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'prevUntil': function() { + /// + /// Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. + /// A string containing a selector expression to indicate where to stop matching preceding sibling elements. + /// A string containing a selector expression to match elements against. + /// + /// + /// + /// Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. + /// A DOM node or jQuery object indicating where to stop matching preceding sibling elements. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'promise': function() { + /// + /// Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished. + /// The type of queue that needs to be observed. + /// Object onto which the promise methods have to be attached + /// + /// + }, + 'prop': function() { + /// + /// Set one or more properties for the set of matched elements. + /// The name of the property to set. + /// A value to set for the property. + /// + /// + /// + /// Set one or more properties for the set of matched elements. + /// An object of property-value pairs to set. + /// + /// + /// + /// Set one or more properties for the set of matched elements. + /// The name of the property to set. + /// A function returning the value to set. Receives the index position of the element in the set and the old property value as arguments. Within the function, the keyword this refers to the current element. + /// + /// + }, + 'pushStack': function() { + /// + /// Add a collection of DOM elements onto the jQuery stack. + /// An array of elements to push onto the stack and make into a new jQuery object. + /// + /// + /// + /// Add a collection of DOM elements onto the jQuery stack. + /// An array of elements to push onto the stack and make into a new jQuery object. + /// The name of a jQuery method that generated the array of elements. + /// The arguments that were passed in to the jQuery method (for serialization). + /// + /// + }, + 'queue': function() { + /// + /// Manipulate the queue of functions to be executed, once for each matched element. + /// A string containing the name of the queue. Defaults to fx, the standard effects queue. + /// An array of functions to replace the current queue contents. + /// + /// + /// + /// Manipulate the queue of functions to be executed, once for each matched element. + /// A string containing the name of the queue. Defaults to fx, the standard effects queue. + /// The new function to add to the queue, with a function to call that will dequeue the next item. + /// + /// + }, + 'radio': function() { + /// Selects all elements of type radio. + }, + 'ready': function() { + /// + /// Specify a function to execute when the DOM is fully loaded. + /// A function to execute after the DOM is ready. + /// + /// + }, + 'remove': function() { + /// + /// Remove the set of matched elements from the DOM. + /// A selector expression that filters the set of matched elements to be removed. + /// + /// + }, + 'removeAttr': function() { + /// + /// Remove an attribute from each element in the set of matched elements. + /// An attribute to remove; as of version 1.7, it can be a space-separated list of attributes. + /// + /// + }, + 'removeClass': function() { + /// + /// Remove a single class, multiple classes, or all classes from each element in the set of matched elements. + /// One or more space-separated classes to be removed from the class attribute of each matched element. + /// + /// + /// + /// Remove a single class, multiple classes, or all classes from each element in the set of matched elements. + /// A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments. + /// + /// + }, + 'removeData': function() { + /// + /// Remove a previously-stored piece of data. + /// A string naming the piece of data to delete. + /// + /// + /// + /// Remove a previously-stored piece of data. + /// An array or space-separated string naming the pieces of data to delete. + /// + /// + }, + 'removeProp': function() { + /// + /// Remove a property for the set of matched elements. + /// The name of the property to remove. + /// + /// + }, + 'replaceAll': function() { + /// + /// Replace each target element with the set of matched elements. + /// A selector expression indicating which element(s) to replace. + /// + /// + }, + 'replaceWith': function() { + /// + /// Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. + /// The content to insert. May be an HTML string, DOM element, or jQuery object. + /// + /// + /// + /// Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. + /// A function that returns content with which to replace the set of matched elements. + /// + /// + }, + 'reset': function() { + /// Selects all elements of type reset. + }, + 'resize': function() { + /// + /// Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'root': function() { + /// + /// Selects the element that is the root of the document. + /// The index of each child to match, starting with 1, the string even or odd, or an equation ( eg. :nth-last-child(even), :nth-last-child(4n) ) + /// + }, + 'scroll': function() { + /// + /// Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'scrollLeft': function() { + /// + /// Set the current horizontal position of the scroll bar for each of the set of matched elements. + /// An integer indicating the new position to set the scroll bar to. + /// + /// + }, + 'scrollTop': function() { + /// + /// Set the current vertical position of the scroll bar for each of the set of matched elements. + /// An integer indicating the new position to set the scroll bar to. + /// + /// + }, + 'select': function() { + /// + /// Bind an event handler to the "select" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "select" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'selected': function() { + /// Selects all elements that are selected. + }, + 'selector': function() { + /// A selector representing selector originally passed to jQuery(). + /// + }, + 'serialize': function() { + /// Encode a set of form elements as a string for submission. + /// + }, + 'serializeArray': function() { + /// Encode a set of form elements as an array of names and values. + /// + }, + 'show': function() { + /// + /// Display the matched elements. + /// A string or number determining how long the animation will run. + /// A function to call once the animation is complete. + /// + /// + /// + /// Display the matched elements. + /// A map of additional options to pass to the method. + /// + /// + /// + /// Display the matched elements. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + }, + 'siblings': function() { + /// + /// Get the siblings of each element in the set of matched elements, optionally filtered by a selector. + /// A string containing a selector expression to match elements against. + /// + /// + }, + 'size': function() { + /// Return the number of elements in the jQuery object. + /// + }, + 'slice': function() { + /// + /// Reduce the set of matched elements to a subset specified by a range of indices. + /// An integer indicating the 0-based position at which the elements begin to be selected. If negative, it indicates an offset from the end of the set. + /// An integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set. + /// + /// + }, + 'slideDown': function() { + /// + /// Display the matched elements with a sliding motion. + /// A string or number determining how long the animation will run. + /// A function to call once the animation is complete. + /// + /// + /// + /// Display the matched elements with a sliding motion. + /// A map of additional options to pass to the method. + /// + /// + /// + /// Display the matched elements with a sliding motion. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + }, + 'slideToggle': function() { + /// + /// Display or hide the matched elements with a sliding motion. + /// A string or number determining how long the animation will run. + /// A function to call once the animation is complete. + /// + /// + /// + /// Display or hide the matched elements with a sliding motion. + /// A map of additional options to pass to the method. + /// + /// + /// + /// Display or hide the matched elements with a sliding motion. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + }, + 'slideUp': function() { + /// + /// Hide the matched elements with a sliding motion. + /// A string or number determining how long the animation will run. + /// A function to call once the animation is complete. + /// + /// + /// + /// Hide the matched elements with a sliding motion. + /// A map of additional options to pass to the method. + /// + /// + /// + /// Hide the matched elements with a sliding motion. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + }, + 'stop': function() { + /// + /// Stop the currently-running animation on the matched elements. + /// A Boolean indicating whether to remove queued animation as well. Defaults to false. + /// A Boolean indicating whether to complete the current animation immediately. Defaults to false. + /// + /// + /// + /// Stop the currently-running animation on the matched elements. + /// The name of the queue in which to stop animations. + /// A Boolean indicating whether to remove queued animation as well. Defaults to false. + /// A Boolean indicating whether to complete the current animation immediately. Defaults to false. + /// + /// + }, + 'submit': function() { + /// + /// Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. + /// A function to execute each time the event is triggered. + /// + /// + /// + /// Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. + /// An object containing data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'target': function() { + /// Selects the target element indicated by the fragment identifier of the document's URI. + }, + 'text': function() { + /// + /// Set the content of each element in the set of matched elements to the specified text. + /// A string of text to set as the content of each matched element. + /// + /// + /// + /// Set the content of each element in the set of matched elements to the specified text. + /// A function returning the text content to set. Receives the index position of the element in the set and the old text value as arguments. + /// + /// + }, + 'toArray': function() { + /// Retrieve all the DOM elements contained in the jQuery set, as an array. + /// + }, + 'toggle': function() { + /// + /// Display or hide the matched elements. + /// A string or number determining how long the animation will run. + /// A function to call once the animation is complete. + /// + /// + /// + /// Display or hide the matched elements. + /// A map of additional options to pass to the method. + /// + /// + /// + /// Display or hide the matched elements. + /// A string or number determining how long the animation will run. + /// A string indicating which easing function to use for the transition. + /// A function to call once the animation is complete. + /// + /// + /// + /// Display or hide the matched elements. + /// A Boolean indicating whether to show or hide the elements. + /// + /// + }, + 'toggleClass': function() { + /// + /// Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + /// One or more class names (separated by spaces) to be toggled for each element in the matched set. + /// + /// + /// + /// Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + /// One or more class names (separated by spaces) to be toggled for each element in the matched set. + /// A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed. + /// + /// + /// + /// Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + /// A boolean value to determine whether the class should be added or removed. + /// + /// + /// + /// Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. + /// A function that returns class names to be toggled in the class attribute of each element in the matched set. Receives the index position of the element in the set, the old class value, and the switch as arguments. + /// A boolean value to determine whether the class should be added or removed. + /// + /// + }, + 'trigger': function() { + /// + /// Execute all handlers and behaviors attached to the matched elements for the given event type. + /// A string containing a JavaScript event type, such as click or submit. + /// Additional parameters to pass along to the event handler. + /// + /// + /// + /// Execute all handlers and behaviors attached to the matched elements for the given event type. + /// A jQuery.Event object. + /// + /// + }, + 'triggerHandler': function() { + /// + /// Execute all handlers attached to an element for an event. + /// A string containing a JavaScript event type, such as click or submit. + /// An array of additional parameters to pass along to the event handler. + /// + /// + }, + 'unbind': function() { + /// + /// Remove a previously-attached event handler from the elements. + /// A string containing a JavaScript event type, such as click or submit. + /// The function that is to be no longer executed. + /// + /// + /// + /// Remove a previously-attached event handler from the elements. + /// A string containing a JavaScript event type, such as click or submit. + /// Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ). + /// + /// + /// + /// Remove a previously-attached event handler from the elements. + /// A JavaScript event object as passed to an event handler. + /// + /// + }, + 'undelegate': function() { + /// + /// Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. + /// A selector which will be used to filter the event results. + /// A string containing a JavaScript event type, such as "click" or "keydown" + /// + /// + /// + /// Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. + /// A selector which will be used to filter the event results. + /// A string containing a JavaScript event type, such as "click" or "keydown" + /// A function to execute at the time the event is triggered. + /// + /// + /// + /// Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. + /// A selector which will be used to filter the event results. + /// An object of one or more event types and previously bound functions to unbind from them. + /// + /// + /// + /// Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. + /// A string containing a namespace to unbind all events from. + /// + /// + }, + 'unload': function() { + /// + /// Bind an event handler to the "unload" JavaScript event. + /// A function to execute when the event is triggered. + /// + /// + /// + /// Bind an event handler to the "unload" JavaScript event. + /// A plain object of data that will be passed to the event handler. + /// A function to execute each time the event is triggered. + /// + /// + }, + 'unwrap': function() { + /// Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. + /// + }, + 'val': function() { + /// + /// Set the value of each element in the set of matched elements. + /// A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked. + /// + /// + /// + /// Set the value of each element in the set of matched elements. + /// A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments. + /// + /// + }, + 'visible': function() { + /// Selects all elements that are visible. + }, + 'width': function() { + /// + /// Set the CSS width of each element in the set of matched elements. + /// An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). + /// + /// + /// + /// Set the CSS width of each element in the set of matched elements. + /// A function returning the width to set. Receives the index position of the element in the set and the old width as arguments. Within the function, this refers to the current element in the set. + /// + /// + }, + 'wrap': function() { + /// + /// Wrap an HTML structure around each element in the set of matched elements. + /// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements. + /// + /// + /// + /// Wrap an HTML structure around each element in the set of matched elements. + /// A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + /// + /// + }, + 'wrapAll': function() { + /// + /// Wrap an HTML structure around all elements in the set of matched elements. + /// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements. + /// + /// + }, + 'wrapInner': function() { + /// + /// Wrap an HTML structure around the content of each element in the set of matched elements. + /// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements. + /// + /// + /// + /// Wrap an HTML structure around the content of each element in the set of matched elements. + /// A callback function which generates a structure to wrap around the content of the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + /// + /// + }, +}); + +intellisense.annotate(window, { + '$': function() { + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// A string containing a selector expression + /// A DOM Element, Document, or jQuery to use as context + /// + /// + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// A DOM element to wrap in a jQuery object. + /// + /// + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// An array containing a set of DOM elements to wrap in a jQuery object. + /// + /// + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// A plain object to wrap in a jQuery object. + /// + /// + /// + /// Accepts a string containing a CSS selector which is then used to match a set of elements. + /// An existing jQuery object to clone. + /// + /// + }, +}); + diff --git a/KendoUISharepoint/Scripts/jquery-1.10.2.js b/KendoUISharepoint/Scripts/jquery-1.10.2.js new file mode 100644 index 0000000..d3e121b --- /dev/null +++ b/KendoUISharepoint/Scripts/jquery-1.10.2.js @@ -0,0 +1,9803 @@ +/* NUGET: BEGIN LICENSE TEXT + * + * Microsoft grants you the right to use these script files for the sole + * purpose of either: (i) interacting through your browser with the Microsoft + * website or online service, subject to the applicable licensing or use + * terms; or (ii) using the files as included with a Microsoft product subject + * to that product's license terms. Microsoft reserves all other rights to the + * files not expressly granted by Microsoft, whether by implication, estoppel + * or otherwise. Insofar as a script file is dual licensed under GPL, + * Microsoft neither took the code under GPL nor distributes it thereunder but + * under the terms set out in this paragraph. All notices and licenses + * below are for informational purposes only. + * + * NUGET: END LICENSE TEXT */ +/*! + * jQuery JavaScript Library v1.10.2 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2013-07-03T13:48Z + */ +(function( window, undefined ) { + +// Can't do this because several apps including ASP.NET trace +// the stack via arguments.caller.callee and Firefox dies if +// you try to trace through "use strict" call chains. (#13335) +// Support: Firefox 18+ +//"use strict"; +var + // The deferred used on DOM ready + readyList, + + // A central reference to the root jQuery(document) + rootjQuery, + + // Support: IE<10 + // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` + core_strundefined = typeof undefined, + + // Use the correct document accordingly with window argument (sandbox) + location = window.location, + document = window.document, + docElem = document.documentElement, + + // Map over jQuery in case of overwrite + _jQuery = window.jQuery, + + // Map over the $ in case of overwrite + _$ = window.$, + + // [[Class]] -> type pairs + class2type = {}, + + // List of deleted data cache ids, so we can reuse them + core_deletedIds = [], + + core_version = "1.10.2", + + // Save a reference to some core methods + core_concat = core_deletedIds.concat, + core_push = core_deletedIds.push, + core_slice = core_deletedIds.slice, + core_indexOf = core_deletedIds.indexOf, + core_toString = class2type.toString, + core_hasOwn = class2type.hasOwnProperty, + core_trim = core_version.trim, + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }, + + // Used for matching numbers + core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, + + // Used for splitting on whitespace + core_rnotwhite = /\S+/g, + + // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE) + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, + + // Match a standalone tag + rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, + + // JSON RegExp + rvalidchars = /^[\],:{}\s]*$/, + rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, + rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, + rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g, + + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([\da-z])/gi, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return letter.toUpperCase(); + }, + + // The ready event handler + completed = function( event ) { + + // readyState === "complete" is good enough for us to call the dom ready in oldIE + if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { + detach(); + jQuery.ready(); + } + }, + // Clean-up method for dom ready events + detach = function() { + if ( document.addEventListener ) { + document.removeEventListener( "DOMContentLoaded", completed, false ); + window.removeEventListener( "load", completed, false ); + + } else { + document.detachEvent( "onreadystatechange", completed ); + window.detachEvent( "onload", completed ); + } + }; + +jQuery.fn = jQuery.prototype = { + // The current version of jQuery being used + jquery: core_version, + + constructor: jQuery, + init: function( selector, context, rootjQuery ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + + // scripts is true for back-compat + jQuery.merge( this, jQuery.parseHTML( + match[1], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + // Properties of context are called as methods if possible + if ( jQuery.isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || rootjQuery ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return rootjQuery.ready( selector ); + } + + if ( selector.selector !== undefined ) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }, + + // Start with an empty selector + selector: "", + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return core_slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == null ? + + // Return a 'clean' array + this.toArray() : + + // Return just the object + ( num < 0 ? this[ this.length + num ] : this[ num ] ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + ret.context = this.context; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + ready: function( fn ) { + // Add the callback + jQuery.ready.promise().done( fn ); + + return this; + }, + + slice: function() { + return this.pushStack( core_slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }, + + end: function() { + return this.prevObject || this.constructor(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: core_push, + sort: [].sort, + splice: [].splice +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.fn.init.prototype = jQuery.fn; + +jQuery.extend = jQuery.fn.extend = function() { + var src, copyIsArray, copy, name, options, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend({ + // Unique for each copy of jQuery on the page + // Non-digits removed to match rinlinejQuery + expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), + + noConflict: function( deep ) { + if ( window.$ === jQuery ) { + window.$ = _$; + } + + if ( deep && window.jQuery === jQuery ) { + window.jQuery = _jQuery; + } + + return jQuery; + }, + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.trigger ) { + jQuery( document ).trigger("ready").off("ready"); + } + }, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return jQuery.type(obj) === "function"; + }, + + isArray: Array.isArray || function( obj ) { + return jQuery.type(obj) === "array"; + }, + + isWindow: function( obj ) { + /* jshint eqeqeq: false */ + return obj != null && obj == obj.window; + }, + + isNumeric: function( obj ) { + return !isNaN( parseFloat(obj) ) && isFinite( obj ); + }, + + type: function( obj ) { + if ( obj == null ) { + return String( obj ); + } + return typeof obj === "object" || typeof obj === "function" ? + class2type[ core_toString.call(obj) ] || "object" : + typeof obj; + }, + + isPlainObject: function( obj ) { + var key; + + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( obj.constructor && + !core_hasOwn.call(obj, "constructor") && + !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + } catch ( e ) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Support: IE<9 + // Handle iteration over inherited properties before own properties. + if ( jQuery.support.ownLast ) { + for ( key in obj ) { + return core_hasOwn.call( obj, key ); + } + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + for ( key in obj ) {} + + return key === undefined || core_hasOwn.call( obj, key ); + }, + + isEmptyObject: function( obj ) { + var name; + for ( name in obj ) { + return false; + } + return true; + }, + + error: function( msg ) { + throw new Error( msg ); + }, + + // data: string of html + // context (optional): If specified, the fragment will be created in this context, defaults to document + // keepScripts (optional): If true, will include scripts passed in the html string + parseHTML: function( data, context, keepScripts ) { + if ( !data || typeof data !== "string" ) { + return null; + } + if ( typeof context === "boolean" ) { + keepScripts = context; + context = false; + } + context = context || document; + + var parsed = rsingleTag.exec( data ), + scripts = !keepScripts && []; + + // Single tag + if ( parsed ) { + return [ context.createElement( parsed[1] ) ]; + } + + parsed = jQuery.buildFragment( [ data ], context, scripts ); + if ( scripts ) { + jQuery( scripts ).remove(); + } + return jQuery.merge( [], parsed.childNodes ); + }, + + parseJSON: function( data ) { + // Attempt to parse using the native JSON parser first + if ( window.JSON && window.JSON.parse ) { + return window.JSON.parse( data ); + } + + if ( data === null ) { + return data; + } + + if ( typeof data === "string" ) { + + // Make sure leading/trailing whitespace is removed (IE can't handle it) + data = jQuery.trim( data ); + + if ( data ) { + // Make sure the incoming data is actual JSON + // Logic borrowed from http://json.org/json2.js + if ( rvalidchars.test( data.replace( rvalidescape, "@" ) + .replace( rvalidtokens, "]" ) + .replace( rvalidbraces, "")) ) { + + return ( new Function( "return " + data ) )(); + } + } + } + + jQuery.error( "Invalid JSON: " + data ); + }, + + // Cross-browser xml parsing + parseXML: function( data ) { + var xml, tmp; + if ( !data || typeof data !== "string" ) { + return null; + } + try { + if ( window.DOMParser ) { // Standard + tmp = new DOMParser(); + xml = tmp.parseFromString( data , "text/xml" ); + } else { // IE + xml = new ActiveXObject( "Microsoft.XMLDOM" ); + xml.async = "false"; + xml.loadXML( data ); + } + } catch( e ) { + xml = undefined; + } + if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; + }, + + noop: function() {}, + + // Evaluates a script in a global context + // Workarounds based on findings by Jim Driscoll + // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context + globalEval: function( data ) { + if ( data && jQuery.trim( data ) ) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); + } )( data ); + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + }, + + // args is for internal usage only + each: function( obj, callback, args ) { + var value, + i = 0, + length = obj.length, + isArray = isArraylike( obj ); + + if ( args ) { + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback.apply( obj[ i ], args ); + + if ( value === false ) { + break; + } + } + } else { + for ( i in obj ) { + value = callback.apply( obj[ i ], args ); + + if ( value === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback.call( obj[ i ], i, obj[ i ] ); + + if ( value === false ) { + break; + } + } + } else { + for ( i in obj ) { + value = callback.call( obj[ i ], i, obj[ i ] ); + + if ( value === false ) { + break; + } + } + } + } + + return obj; + }, + + // Use native String.trim function wherever possible + trim: core_trim && !core_trim.call("\uFEFF\xA0") ? + function( text ) { + return text == null ? + "" : + core_trim.call( text ); + } : + + // Otherwise use our own trimming functionality + function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArraylike( Object(arr) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + core_push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + var len; + + if ( arr ) { + if ( core_indexOf ) { + return core_indexOf.call( arr, elem, i ); + } + + len = arr.length; + i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; + + for ( ; i < len; i++ ) { + // Skip accessing in sparse arrays + if ( i in arr && arr[ i ] === elem ) { + return i; + } + } + } + + return -1; + }, + + merge: function( first, second ) { + var l = second.length, + i = first.length, + j = 0; + + if ( typeof l === "number" ) { + for ( ; j < l; j++ ) { + first[ i++ ] = second[ j ]; + } + } else { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, inv ) { + var retVal, + ret = [], + i = 0, + length = elems.length; + inv = !!inv; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + retVal = !!callback( elems[ i ], i ); + if ( inv !== retVal ) { + ret.push( elems[ i ] ); + } + } + + return ret; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var value, + i = 0, + length = elems.length, + isArray = isArraylike( elems ), + ret = []; + + // Go through the array, translating each of the items to their + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + } + + // Flatten any nested arrays + return core_concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + var args, proxy, tmp; + + if ( typeof context === "string" ) { + tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + args = core_slice.call( arguments, 2 ); + proxy = function() { + return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + // Multifunctional method to get and set values of a collection + // The value/s can optionally be executed if it's a function + access: function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + length = elems.length, + bulk = key == null; + + // Sets many values + if ( jQuery.type( key ) === "object" ) { + chainable = true; + for ( i in key ) { + jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !jQuery.isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < length; i++ ) { + fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); + } + } + } + + return chainable ? + elems : + + // Gets + bulk ? + fn.call( elems ) : + length ? fn( elems[0], key ) : emptyGet; + }, + + now: function() { + return ( new Date() ).getTime(); + }, + + // A method for quickly swapping in/out CSS properties to get correct calculations. + // Note: this method belongs to the css module but it's needed here for the support module. + // If support gets modularized, this method should be moved back to the css module. + swap: function( elem, options, callback, args ) { + var ret, name, + old = {}; + + // Remember the old values, and insert the new ones + for ( name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + ret = callback.apply( elem, args || [] ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + + return ret; + } +}); + +jQuery.ready.promise = function( obj ) { + if ( !readyList ) { + + readyList = jQuery.Deferred(); + + // Catch cases where $(document).ready() is called after the browser event has already occurred. + // we once tried to use readyState "interactive" here, but it caused issues like the one + // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + setTimeout( jQuery.ready ); + + // Standards-based browsers support DOMContentLoaded + } else if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed, false ); + + // If IE event model is used + } else { + // Ensure firing before onload, maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", completed ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", completed ); + + // If IE and not a frame + // continually check to see if the document is ready + var top = false; + + try { + top = window.frameElement == null && document.documentElement; + } catch(e) {} + + if ( top && top.doScroll ) { + (function doScrollCheck() { + if ( !jQuery.isReady ) { + + try { + // Use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ + top.doScroll("left"); + } catch(e) { + return setTimeout( doScrollCheck, 50 ); + } + + // detach all dom ready events + detach(); + + // and execute any waiting functions + jQuery.ready(); + } + })(); + } + } + } + return readyList.promise( obj ); +}; + +// Populate the class2type map +jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +}); + +function isArraylike( obj ) { + var length = obj.length, + type = jQuery.type( obj ); + + if ( jQuery.isWindow( obj ) ) { + return false; + } + + if ( obj.nodeType === 1 && length ) { + return true; + } + + return type === "array" || type !== "function" && + ( length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj ); +} + +// All jQuery objects should point back to these +rootjQuery = jQuery(document); +/*! + * Sizzle CSS Selector Engine v1.10.2 + * http://sizzlejs.com/ + * + * Copyright 2013 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2013-07-03 + */ +(function( window, undefined ) { + +var i, + support, + cachedruns, + Expr, + getText, + isXML, + compile, + outermostContext, + sortInput, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + -(new Date()), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + hasDuplicate = false, + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + return 0; + } + return 0; + }, + + // General-purpose constants + strundefined = typeof undefined, + MAX_NEGATIVE = 1 << 31, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf if we can't use a native one + indexOf = arr.indexOf || function( elem ) { + var i = 0, + len = this.length; + for ( ; i < len; i++ ) { + if ( this[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + // http://www.w3.org/TR/css3-syntax/#characters + characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + + // Loosely modeled on CSS identifier characters + // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors + // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = characterEncoding.replace( "w", "w#" ), + + // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", + + // Prefer arguments quoted, + // then not containing pseudos/brackets, + // then attribute selectors/non-parenthetical expressions, + // then anything else + // These preferences are here to reduce the number of selectors + // needing tokenize in the PSEUDO preFilter + pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rsibling = new RegExp( whitespace + "*[+~]" ), + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + characterEncoding + ")" ), + "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), + "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rescape = /'|\\/g, + + // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + // BMP codepoint + high < 0 ? + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }; + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var match, elem, m, nodeType, + // QSA vars + i, groups, old, nid, newContext, newSelector; + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + + context = context || document; + results = results || []; + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { + return []; + } + + if ( documentIsHTML && !seed ) { + + // Shortcuts + if ( (match = rquickExpr.exec( selector )) ) { + // Speed-up: Sizzle("#ID") + if ( (m = match[1]) ) { + if ( nodeType === 9 ) { + elem = context.getElementById( m ); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE, Opera, and Webkit return items + // by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + } else { + // Context is not a document + if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && + contains( context, elem ) && elem.id === m ) { + results.push( elem ); + return results; + } + } + + // Speed-up: Sizzle("TAG") + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Speed-up: Sizzle(".CLASS") + } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // QSA path + if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + nid = old = expando; + newContext = context; + newSelector = nodeType === 9 && selector; + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + groups = tokenize( selector ); + + if ( (old = context.getAttribute("id")) ) { + nid = old.replace( rescape, "\\$&" ); + } else { + context.setAttribute( "id", nid ); + } + nid = "[id='" + nid + "'] "; + + i = groups.length; + while ( i-- ) { + groups[i] = nid + toSelector( groups[i] ); + } + newContext = rsibling.test( selector ) && context.parentNode || context; + newSelector = groups.join(","); + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch(qsaError) { + } finally { + if ( !old ) { + context.removeAttribute("id"); + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {Function(string, Object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key += " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created div and expects a boolean result + */ +function assert( fn ) { + var div = document.createElement("div"); + + try { + return !!fn( div ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( div.parentNode ) { + div.parentNode.removeChild( div ); + } + // release memory in IE + div = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = attrs.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + ( ~b.sourceIndex || MAX_NEGATIVE ) - + ( ~a.sourceIndex || MAX_NEGATIVE ); + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Detect xml + * @param {Element|Object} elem An element or a document + */ +isXML = Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var doc = node ? node.ownerDocument || node : preferredDoc, + parent = doc.defaultView; + + // If no document and documentElement is available, return + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Set our document + document = doc; + docElem = doc.documentElement; + + // Support tests + documentIsHTML = !isXML( doc ); + + // Support: IE>8 + // If iframe document is assigned to "document" variable and if iframe has been reloaded, + // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 + // IE6-8 do not support the defaultView property so parent will be undefined + if ( parent && parent.attachEvent && parent !== parent.top ) { + parent.attachEvent( "onbeforeunload", function() { + setDocument(); + }); + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) + support.attributes = assert(function( div ) { + div.className = "i"; + return !div.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( div ) { + div.appendChild( doc.createComment("") ); + return !div.getElementsByTagName("*").length; + }); + + // Check if getElementsByClassName can be trusted + support.getElementsByClassName = assert(function( div ) { + div.innerHTML = "
"; + + // Support: Safari<4 + // Catch class over-caching + div.firstChild.className = "i"; + // Support: Opera<10 + // Catch gEBCN failure to find non-leading classes + return div.getElementsByClassName("i").length === 2; + }); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( div ) { + docElem.appendChild( div ).id = expando; + return !doc.getElementsByName || !doc.getElementsByName( expando ).length; + }); + + // ID find and filter + if ( support.getById ) { + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== strundefined && documentIsHTML ) { + var m = context.getElementById( id ); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [m] : []; + } + }; + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + } else { + // Support: IE6/7 + // getElementById is not reliable as a find shortcut + delete Expr.find["ID"]; + + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== strundefined ) { + return context.getElementsByTagName( tag ); + } + } : + function( tag, context ) { + var elem, + tmp = [], + i = 0, + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See http://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( div ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // http://bugs.jquery.com/ticket/12359 + div.innerHTML = ""; + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !div.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + }); + + assert(function( div ) { + + // Support: Opera 10-12/IE8 + // ^= $= *= and empty values + // Should not select anything + // Support: Windows 8 Native Apps + // The type attribute is restricted during .innerHTML assignment + var input = doc.createElement("input"); + input.setAttribute( "type", "hidden" ); + div.appendChild( input ).setAttribute( "t", "" ); + + if ( div.querySelectorAll("[t^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( !div.querySelectorAll(":enabled").length ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + div.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( div ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( div, "div" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( div, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + + // Element contains another + // Purposefully does not implement inclusive descendent + // As in, an element does not contain itself + contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = docElem.compareDocumentPosition ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); + + if ( compare ) { + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === doc || contains(preferredDoc, a) ) { + return -1; + } + if ( b === doc || contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } + + // Not directly comparable, sort on existence of method + return a.compareDocumentPosition ? -1 : 1; + } : + function( a, b ) { + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + + // Parentless nodes are either documents or disconnected + } else if ( !aup || !bup ) { + return a === doc ? -1 : + b === doc ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return doc; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace( rattributeQuotes, "='$1']" ); + + if ( support.matchesSelector && documentIsHTML && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch(e) {} + } + + return Sizzle( expr, document, null, [elem] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val === undefined ? + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null : + val; +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + for ( ; (node = elem[i]); i++ ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (see #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[5] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] && match[4] !== undefined ) { + match[2] = match[4]; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, outerCache, node, diff, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + // Seek `elem` from a previously-cached index + outerCache = parent[ expando ] || (parent[ expando ] = {}); + cache = outerCache[ type ] || []; + nodeIndex = cache[0] === dirruns && cache[1]; + diff = cache[0] === dirruns && cache[2]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + outerCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + // Use previously-cached element index if available + } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { + diff = cache[1]; + + // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) + } else { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { + // Cache the index of each encountered element + if ( useCache ) { + (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf.call( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": function( elem ) { + return elem.disabled === false; + }, + + "disabled": function( elem ) { + return elem.disabled === true; + }, + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), + // not comment, processing instructions, or others + // Thanks to Diego Perini for the nodeName shortcut + // Greater than "@" means alpha characters (specifically not starting with "#" or "?") + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) + // use getAttribute instead to test this case + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +function tokenize( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( tokens = [] ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +} + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + checkNonElements = base && dir === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var data, cache, outerCache, + dirkey = dirruns + " " + doneName; + + // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { + if ( (data = cache[1]) === true || data === cachedruns ) { + return data === true; + } + } else { + cache = outerCache[ dir ] = [ dirkey ]; + cache[1] = matcher( elem, context, xml ) || cachedruns; + if ( cache[1] === true ) { + return true; + } + } + } + } + } + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf.call( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + // A counter to specify which element is currently being matched + var matcherCachedRuns = 0, + bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, expandContext ) { + var elem, j, matcher, + setMatched = [], + matchedCount = 0, + i = "0", + unmatched = seed && [], + outermost = expandContext != null, + contextBackup = outermostContext, + // We must always have either seed elements or context + elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); + + if ( outermost ) { + outermostContext = context !== document && context; + cachedruns = matcherCachedRuns; + } + + // Add elements passing elementMatchers directly to results + // Keep `i` a string if there are no elements so `matchedCount` will be "00" below + for ( ; (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context, xml ) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + cachedruns = ++matcherCachedRuns; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // Apply set filters to unmatched elements + matchedCount += i; + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !group ) { + group = tokenize( selector ); + } + i = group.length; + while ( i-- ) { + cached = matcherFromTokens( group[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + } + return cached; +}; + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function select( selector, context, results, seed ) { + var i, tokens, token, type, find, + match = tokenize( selector ); + + if ( !seed ) { + // Try to minimize operations if there is only one group + if ( match.length === 1 ) { + + // Take a shortcut and set the context if the root selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + support.getById && context.nodeType === 9 && documentIsHTML && + Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + } + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && context.parentNode || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + } + + // Compile and execute a filtering function + // Provide `match` to avoid retokenization if we modified the selector above + compile( selector, match )( + seed, + context, + !documentIsHTML, + results, + rsibling.test( selector ) + ); + return results; +} + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome<14 +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( div1 ) { + // Should return 1, but returns 4 (following) + return div1.compareDocumentPosition( document.createElement("div") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( div ) { + div.innerHTML = ""; + return div.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( div ) { + div.innerHTML = ""; + div.firstChild.setAttribute( "value", "" ); + return div.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( div ) { + return div.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + elem[ name ] === true ? name.toLowerCase() : null; + } + }); +} + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[":"] = jQuery.expr.pseudos; +jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + +})( window ); +// String to Object options format cache +var optionsCache = {}; + +// Convert String-formatted options into Object-formatted ones and store in cache +function createOptions( options ) { + var object = optionsCache[ options ] = {}; + jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { + object[ flag ] = true; + }); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + ( optionsCache[ options ] || createOptions( options ) ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + // Last fire value (for non-forgettable lists) + memory, + // Flag to know if list was already fired + fired, + // End of the loop when firing + firingLength, + // Index of currently firing callback (modified by remove if needed) + firingIndex, + // First callback to fire (used internally by add and fireWith) + firingStart, + // Actual callback list + list = [], + // Stack of fire calls for repeatable lists + stack = !options.once && [], + // Fire callbacks + fire = function( data ) { + memory = options.memory && data; + fired = true; + firingIndex = firingStart || 0; + firingStart = 0; + firingLength = list.length; + firing = true; + for ( ; list && firingIndex < firingLength; firingIndex++ ) { + if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { + memory = false; // To prevent further calls using add + break; + } + } + firing = false; + if ( list ) { + if ( stack ) { + if ( stack.length ) { + fire( stack.shift() ); + } + } else if ( memory ) { + list = []; + } else { + self.disable(); + } + } + }, + // Actual Callbacks object + self = { + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + // First, we save the current length + var start = list.length; + (function add( args ) { + jQuery.each( args, function( _, arg ) { + var type = jQuery.type( arg ); + if ( type === "function" ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && type !== "string" ) { + // Inspect recursively + add( arg ); + } + }); + })( arguments ); + // Do we need to add the callbacks to the + // current firing batch? + if ( firing ) { + firingLength = list.length; + // With memory, if we're not firing then + // we should call right away + } else if ( memory ) { + firingStart = start; + fire( memory ); + } + } + return this; + }, + // Remove a callback from the list + remove: function() { + if ( list ) { + jQuery.each( arguments, function( _, arg ) { + var index; + while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + // Handle firing indexes + if ( firing ) { + if ( index <= firingLength ) { + firingLength--; + } + if ( index <= firingIndex ) { + firingIndex--; + } + } + } + }); + } + return this; + }, + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); + }, + // Remove all callbacks from the list + empty: function() { + list = []; + firingLength = 0; + return this; + }, + // Have the list do nothing anymore + disable: function() { + list = stack = memory = undefined; + return this; + }, + // Is it disabled? + disabled: function() { + return !list; + }, + // Lock the list in its current state + lock: function() { + stack = undefined; + if ( !memory ) { + self.disable(); + } + return this; + }, + // Is it locked? + locked: function() { + return !stack; + }, + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( list && ( !fired || stack ) ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + if ( firing ) { + stack.push( args ); + } else { + fire( args ); + } + } + return this; + }, + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; +jQuery.extend({ + + Deferred: function( func ) { + var tuples = [ + // action, add listener, listener list, final state + [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], + [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], + [ "notify", "progress", jQuery.Callbacks("memory") ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + then: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + return jQuery.Deferred(function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + var action = tuple[ 0 ], + fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; + // deferred[ done | fail | progress ] for forwarding actions to newDefer + deferred[ tuple[1] ](function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise() + .done( newDefer.resolve ) + .fail( newDefer.reject ) + .progress( newDefer.notify ); + } else { + newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); + } + }); + }); + fns = null; + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Keep pipe for back-compat + promise.pipe = promise.then; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 3 ]; + + // promise[ done | fail | progress ] = list.add + promise[ tuple[1] ] = list.add; + + // Handle state + if ( stateString ) { + list.add(function() { + // state = [ resolved | rejected ] + state = stateString; + + // [ reject_list | resolve_list ].disable; progress_list.lock + }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); + } + + // deferred[ resolve | reject | notify ] + deferred[ tuple[0] ] = function() { + deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); + return this; + }; + deferred[ tuple[0] + "With" ] = list.fireWith; + }); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( subordinate /* , ..., subordinateN */ ) { + var i = 0, + resolveValues = core_slice.call( arguments ), + length = resolveValues.length, + + // the count of uncompleted subordinates + remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, + + // the master Deferred. If resolveValues consist of only a single Deferred, just use that. + deferred = remaining === 1 ? subordinate : jQuery.Deferred(), + + // Update function for both resolve and progress values + updateFunc = function( i, contexts, values ) { + return function( value ) { + contexts[ i ] = this; + values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; + if( values === progressValues ) { + deferred.notifyWith( contexts, values ); + } else if ( !( --remaining ) ) { + deferred.resolveWith( contexts, values ); + } + }; + }, + + progressValues, progressContexts, resolveContexts; + + // add listeners to Deferred subordinates; treat others as resolved + if ( length > 1 ) { + progressValues = new Array( length ); + progressContexts = new Array( length ); + resolveContexts = new Array( length ); + for ( ; i < length; i++ ) { + if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { + resolveValues[ i ].promise() + .done( updateFunc( i, resolveContexts, resolveValues ) ) + .fail( deferred.reject ) + .progress( updateFunc( i, progressContexts, progressValues ) ); + } else { + --remaining; + } + } + } + + // if we're not waiting on anything, resolve the master + if ( !remaining ) { + deferred.resolveWith( resolveContexts, resolveValues ); + } + + return deferred.promise(); + } +}); +jQuery.support = (function( support ) { + + var all, a, input, select, fragment, opt, eventName, isSupported, i, + div = document.createElement("div"); + + // Setup + div.setAttribute( "className", "t" ); + div.innerHTML = "
a"; + + // Finish early in limited (non-browser) environments + all = div.getElementsByTagName("*") || []; + a = div.getElementsByTagName("a")[ 0 ]; + if ( !a || !a.style || !all.length ) { + return support; + } + + // First batch of tests + select = document.createElement("select"); + opt = select.appendChild( document.createElement("option") ); + input = div.getElementsByTagName("input")[ 0 ]; + + a.style.cssText = "top:1px;float:left;opacity:.5"; + + // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) + support.getSetAttribute = div.className !== "t"; + + // IE strips leading whitespace when .innerHTML is used + support.leadingWhitespace = div.firstChild.nodeType === 3; + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + support.tbody = !div.getElementsByTagName("tbody").length; + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + support.htmlSerialize = !!div.getElementsByTagName("link").length; + + // Get the style information from getAttribute + // (IE uses .cssText instead) + support.style = /top/.test( a.getAttribute("style") ); + + // Make sure that URLs aren't manipulated + // (IE normalizes it by default) + support.hrefNormalized = a.getAttribute("href") === "/a"; + + // Make sure that element opacity exists + // (IE uses filter instead) + // Use a regex to work around a WebKit issue. See #5145 + support.opacity = /^0.5/.test( a.style.opacity ); + + // Verify style float existence + // (IE uses styleFloat instead of cssFloat) + support.cssFloat = !!a.style.cssFloat; + + // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) + support.checkOn = !!input.value; + + // Make sure that a selected-by-default option has a working selected property. + // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) + support.optSelected = opt.selected; + + // Tests for enctype support on a form (#6743) + support.enctype = !!document.createElement("form").enctype; + + // Makes sure cloning an html5 element does not cause problems + // Where outerHTML is undefined, this still works + support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>"; + + // Will be defined later + support.inlineBlockNeedsLayout = false; + support.shrinkWrapBlocks = false; + support.pixelPosition = false; + support.deleteExpando = true; + support.noCloneEvent = true; + support.reliableMarginRight = true; + support.boxSizingReliable = true; + + // Make sure checked status is properly cloned + input.checked = true; + support.noCloneChecked = input.cloneNode( true ).checked; + + // Make sure that the options inside disabled selects aren't marked as disabled + // (WebKit marks them as disabled) + select.disabled = true; + support.optDisabled = !opt.disabled; + + // Support: IE<9 + try { + delete div.test; + } catch( e ) { + support.deleteExpando = false; + } + + // Check if we can trust getAttribute("value") + input = document.createElement("input"); + input.setAttribute( "value", "" ); + support.input = input.getAttribute( "value" ) === ""; + + // Check if an input maintains its value after becoming a radio + input.value = "t"; + input.setAttribute( "type", "radio" ); + support.radioValue = input.value === "t"; + + // #11217 - WebKit loses check when the name is after the checked attribute + input.setAttribute( "checked", "t" ); + input.setAttribute( "name", "t" ); + + fragment = document.createDocumentFragment(); + fragment.appendChild( input ); + + // Check if a disconnected checkbox will retain its checked + // value of true after appended to the DOM (IE6/7) + support.appendChecked = input.checked; + + // WebKit doesn't clone checked state correctly in fragments + support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE<9 + // Opera does not clone events (and typeof div.attachEvent === undefined). + // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() + if ( div.attachEvent ) { + div.attachEvent( "onclick", function() { + support.noCloneEvent = false; + }); + + div.cloneNode( true ).click(); + } + + // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) + // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) + for ( i in { submit: true, change: true, focusin: true }) { + div.setAttribute( eventName = "on" + i, "t" ); + + support[ i + "Bubbles" ] = eventName in window || div.attributes[ eventName ].expando === false; + } + + div.style.backgroundClip = "content-box"; + div.cloneNode( true ).style.backgroundClip = ""; + support.clearCloneStyle = div.style.backgroundClip === "content-box"; + + // Support: IE<9 + // Iteration over object's inherited properties before its own. + for ( i in jQuery( support ) ) { + break; + } + support.ownLast = i !== "0"; + + // Run tests that need a body at doc ready + jQuery(function() { + var container, marginDiv, tds, + divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", + body = document.getElementsByTagName("body")[0]; + + if ( !body ) { + // Return for frameset docs that don't have a body + return; + } + + container = document.createElement("div"); + container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; + + body.appendChild( container ).appendChild( div ); + + // Support: IE8 + // Check if table cells still have offsetWidth/Height when they are set + // to display:none and there are still other visible table cells in a + // table row; if so, offsetWidth/Height are not reliable for use when + // determining if an element has been hidden directly using + // display:none (it is still safe to use offsets if a parent element is + // hidden; don safety goggles and see bug #4512 for more information). + div.innerHTML = "
t
"; + tds = div.getElementsByTagName("td"); + tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none"; + isSupported = ( tds[ 0 ].offsetHeight === 0 ); + + tds[ 0 ].style.display = ""; + tds[ 1 ].style.display = "none"; + + // Support: IE8 + // Check if empty table cells still have offsetWidth/Height + support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); + + // Check box-sizing and margin behavior. + div.innerHTML = ""; + div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; + + // Workaround failing boxSizing test due to offsetWidth returning wrong value + // with some non-1 values of body zoom, ticket #13543 + jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { + support.boxSizing = div.offsetWidth === 4; + }); + + // Use window.getComputedStyle because jsdom on node.js will break without it. + if ( window.getComputedStyle ) { + support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; + support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; + + // Check if div with explicit width and no margin-right incorrectly + // gets computed margin-right based on width of container. (#3333) + // Fails in WebKit before Feb 2011 nightlies + // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right + marginDiv = div.appendChild( document.createElement("div") ); + marginDiv.style.cssText = div.style.cssText = divReset; + marginDiv.style.marginRight = marginDiv.style.width = "0"; + div.style.width = "1px"; + + support.reliableMarginRight = + !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); + } + + if ( typeof div.style.zoom !== core_strundefined ) { + // Support: IE<8 + // Check if natively block-level elements act like inline-block + // elements when setting their display to 'inline' and giving + // them layout + div.innerHTML = ""; + div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; + support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); + + // Support: IE6 + // Check if elements with layout shrink-wrap their children + div.style.display = "block"; + div.innerHTML = "
"; + div.firstChild.style.width = "5px"; + support.shrinkWrapBlocks = ( div.offsetWidth !== 3 ); + + if ( support.inlineBlockNeedsLayout ) { + // Prevent IE 6 from affecting layout for positioned elements #11048 + // Prevent IE from shrinking the body in IE 7 mode #12869 + // Support: IE<8 + body.style.zoom = 1; + } + } + + body.removeChild( container ); + + // Null elements to avoid leaks in IE + container = div = tds = marginDiv = null; + }); + + // Null elements to avoid leaks in IE + all = select = fragment = opt = a = input = null; + + return support; +})({}); + +var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, + rmultiDash = /([A-Z])/g; + +function internalData( elem, name, data, pvt /* Internal Use Only */ ){ + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var ret, thisCache, + internalKey = jQuery.expando, + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { + return; + } + + if ( !id ) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + id = elem[ internalKey ] = core_deletedIds.pop() || jQuery.guid++; + } else { + id = internalKey; + } + } + + if ( !cache[ id ] ) { + // Avoid exposing jQuery metadata on plain JS objects when the object + // is serialized using JSON.stringify + cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ] = jQuery.extend( cache[ id ], name ); + } else { + cache[ id ].data = jQuery.extend( cache[ id ].data, name ); + } + } + + thisCache = cache[ id ]; + + // jQuery data() is stored in a separate object inside the object's internal data + // cache in order to avoid key collisions between internal data and user-defined + // data. + if ( !pvt ) { + if ( !thisCache.data ) { + thisCache.data = {}; + } + + thisCache = thisCache.data; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( typeof name === "string" ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; +} + +function internalRemoveData( elem, name, pvt ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, i, + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + id = isNode ? elem[ jQuery.expando ] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ] : cache[ id ].data; + + if ( thisCache ) { + + // Support array or space separated string names for data keys + if ( !jQuery.isArray( name ) ) { + + // try the string as a key before any manipulation + if ( name in thisCache ) { + name = [ name ]; + } else { + + // split the camel cased version by spaces unless a key with the spaces exists + name = jQuery.camelCase( name ); + if ( name in thisCache ) { + name = [ name ]; + } else { + name = name.split(" "); + } + } + } else { + // If "name" is an array of keys... + // When data is initially created, via ("key", "val") signature, + // keys will be converted to camelCase. + // Since there is no way to tell _how_ a key was added, remove + // both plain key and camelCase key. #12786 + // This will only penalize the array argument path. + name = name.concat( jQuery.map( name, jQuery.camelCase ) ); + } + + i = name.length; + while ( i-- ) { + delete thisCache[ name[i] ]; + } + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( !pvt ) { + delete cache[ id ].data; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject( cache[ id ] ) ) { + return; + } + } + + // Destroy the cache + if ( isNode ) { + jQuery.cleanData( [ elem ], true ); + + // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) + /* jshint eqeqeq: false */ + } else if ( jQuery.support.deleteExpando || cache != cache.window ) { + /* jshint eqeqeq: true */ + delete cache[ id ]; + + // When all else fails, null + } else { + cache[ id ] = null; + } +} + +jQuery.extend({ + cache: {}, + + // The following elements throw uncatchable exceptions if you + // attempt to add expando properties to them. + noData: { + "applet": true, + "embed": true, + // Ban all objects except for Flash (which handle expandos) + "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + }, + + hasData: function( elem ) { + elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; + return !!elem && !isEmptyDataObject( elem ); + }, + + data: function( elem, name, data ) { + return internalData( elem, name, data ); + }, + + removeData: function( elem, name ) { + return internalRemoveData( elem, name ); + }, + + // For internal use only. + _data: function( elem, name, data ) { + return internalData( elem, name, data, true ); + }, + + _removeData: function( elem, name ) { + return internalRemoveData( elem, name, true ); + }, + + // A method for determining if a DOM node can handle the data expando + acceptData: function( elem ) { + // Do not set data on non-element because it will not be cleared (#8335). + if ( elem.nodeType && elem.nodeType !== 1 && elem.nodeType !== 9 ) { + return false; + } + + var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ]; + + // nodes accept data unless otherwise specified; rejection can be conditional + return !noData || noData !== true && elem.getAttribute("classid") === noData; + } +}); + +jQuery.fn.extend({ + data: function( key, value ) { + var attrs, name, + data = null, + i = 0, + elem = this[0]; + + // Special expections of .data basically thwart jQuery.access, + // so implement the relevant behavior ourselves + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = jQuery.data( elem ); + + if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { + attrs = elem.attributes; + for ( ; i < attrs.length; i++ ) { + name = attrs[i].name; + + if ( name.indexOf("data-") === 0 ) { + name = jQuery.camelCase( name.slice(5) ); + + dataAttr( elem, name, data[ name ] ); + } + } + jQuery._data( elem, "parsedAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + return arguments.length > 1 ? + + // Sets one value + this.each(function() { + jQuery.data( this, key, value ); + }) : + + // Gets one value + // Try to fetch any internally stored data first + elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null; + }, + + removeData: function( key ) { + return this.each(function() { + jQuery.removeData( this, key ); + }); + } +}); + +function dataAttr( elem, key, data ) { + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + + var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); + + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + // Only convert to a number if it doesn't change the string + +data + "" === data ? +data : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch( e ) {} + + // Make sure we set the data so it isn't changed later + jQuery.data( elem, key, data ); + + } else { + data = undefined; + } + } + + return data; +} + +// checks a cache object for emptiness +function isEmptyDataObject( obj ) { + var name; + for ( name in obj ) { + + // if the public data object is empty, the private is still empty + if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { + continue; + } + if ( name !== "toJSON" ) { + return false; + } + } + + return true; +} +jQuery.extend({ + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = jQuery._data( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || jQuery.isArray(data) ) { + queue = jQuery._data( elem, type, jQuery.makeArray(data) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // not intended for public consumption - generates a queueHooks object, or returns the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return jQuery._data( elem, key ) || jQuery._data( elem, key, { + empty: jQuery.Callbacks("once memory").add(function() { + jQuery._removeData( elem, type + "queue" ); + jQuery._removeData( elem, key ); + }) + }); + } +}); + +jQuery.fn.extend({ + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[0], type ); + } + + return data === undefined ? + this : + this.each(function() { + var queue = jQuery.queue( this, type, data ); + + // ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }, + dequeue: function( type ) { + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }, + // Based off of the plugin by Clint Helfers, with permission. + // http://blindsignals.com/index.php/2009/07/jquery-delay/ + delay: function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; + type = type || "fx"; + + return this.queue( type, function( next, hooks ) { + var timeout = setTimeout( next, time ); + hooks.stop = function() { + clearTimeout( timeout ); + }; + }); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while( i-- ) { + tmp = jQuery._data( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +}); +var nodeHook, boolHook, + rclass = /[\t\r\n\f]/g, + rreturn = /\r/g, + rfocusable = /^(?:input|select|textarea|button|object)$/i, + rclickable = /^(?:a|area)$/i, + ruseDefault = /^(?:checked|selected)$/i, + getSetAttribute = jQuery.support.getSetAttribute, + getSetInput = jQuery.support.input; + +jQuery.fn.extend({ + attr: function( name, value ) { + return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); + }, + + removeAttr: function( name ) { + return this.each(function() { + jQuery.removeAttr( this, name ); + }); + }, + + prop: function( name, value ) { + return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); + }, + + removeProp: function( name ) { + name = jQuery.propFix[ name ] || name; + return this.each(function() { + // try/catch handles cases where IE balks (such as removing a property on window) + try { + this[ name ] = undefined; + delete this[ name ]; + } catch( e ) {} + }); + }, + + addClass: function( value ) { + var classes, elem, cur, clazz, j, + i = 0, + len = this.length, + proceed = typeof value === "string" && value; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).addClass( value.call( this, j, this.className ) ); + }); + } + + if ( proceed ) { + // The disjunction here is for better compressibility (see removeClass) + classes = ( value || "" ).match( core_rnotwhite ) || []; + + for ( ; i < len; i++ ) { + elem = this[ i ]; + cur = elem.nodeType === 1 && ( elem.className ? + ( " " + elem.className + " " ).replace( rclass, " " ) : + " " + ); + + if ( cur ) { + j = 0; + while ( (clazz = classes[j++]) ) { + if ( cur.indexOf( " " + clazz + " " ) < 0 ) { + cur += clazz + " "; + } + } + elem.className = jQuery.trim( cur ); + + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classes, elem, cur, clazz, j, + i = 0, + len = this.length, + proceed = arguments.length === 0 || typeof value === "string" && value; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).removeClass( value.call( this, j, this.className ) ); + }); + } + if ( proceed ) { + classes = ( value || "" ).match( core_rnotwhite ) || []; + + for ( ; i < len; i++ ) { + elem = this[ i ]; + // This expression is here for better compressibility (see addClass) + cur = elem.nodeType === 1 && ( elem.className ? + ( " " + elem.className + " " ).replace( rclass, " " ) : + "" + ); + + if ( cur ) { + j = 0; + while ( (clazz = classes[j++]) ) { + // Remove *all* instances + while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { + cur = cur.replace( " " + clazz + " ", " " ); + } + } + elem.className = value ? jQuery.trim( cur ) : ""; + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value; + + if ( typeof stateVal === "boolean" && type === "string" ) { + return stateVal ? this.addClass( value ) : this.removeClass( value ); + } + + if ( jQuery.isFunction( value ) ) { + return this.each(function( i ) { + jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); + }); + } + + return this.each(function() { + if ( type === "string" ) { + // toggle individual class names + var className, + i = 0, + self = jQuery( this ), + classNames = value.match( core_rnotwhite ) || []; + + while ( (className = classNames[ i++ ]) ) { + // check each className given, space separated list + if ( self.hasClass( className ) ) { + self.removeClass( className ); + } else { + self.addClass( className ); + } + } + + // Toggle whole class name + } else if ( type === core_strundefined || type === "boolean" ) { + if ( this.className ) { + // store className if set + jQuery._data( this, "__className__", this.className ); + } + + // If the element has a class name or if we're passed "false", + // then remove the whole classname (if there was one, the above saved it). + // Otherwise bring back whatever was previously saved (if anything), + // falling back to the empty string if nothing was stored. + this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; + } + }); + }, + + hasClass: function( selector ) { + var className = " " + selector + " ", + i = 0, + l = this.length; + for ( ; i < l; i++ ) { + if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { + return true; + } + } + + return false; + }, + + val: function( value ) { + var ret, hooks, isFunction, + elem = this[0]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; + + if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { + return ret; + } + + ret = elem.value; + + return typeof ret === "string" ? + // handle most common string cases + ret.replace(rreturn, "") : + // handle cases where value is null/undef or number + ret == null ? "" : ret; + } + + return; + } + + isFunction = jQuery.isFunction( value ); + + return this.each(function( i ) { + var val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call( this, i, jQuery( this ).val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + } else if ( typeof val === "number" ) { + val += ""; + } else if ( jQuery.isArray( val ) ) { + val = jQuery.map(val, function ( value ) { + return value == null ? "" : value + ""; + }); + } + + hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + }); + } +}); + +jQuery.extend({ + valHooks: { + option: { + get: function( elem ) { + // Use proper attribute retrieval(#6932, #12072) + var val = jQuery.find.attr( elem, "value" ); + return val != null ? + val : + elem.text; + } + }, + select: { + get: function( elem ) { + var value, option, + options = elem.options, + index = elem.selectedIndex, + one = elem.type === "select-one" || index < 0, + values = one ? null : [], + max = one ? index + 1 : options.length, + i = index < 0 ? + max : + one ? index : 0; + + // Loop through all the selected options + for ( ; i < max; i++ ) { + option = options[ i ]; + + // oldIE doesn't update selected after form reset (#2551) + if ( ( option.selected || i === index ) && + // Don't return options that are disabled or in a disabled optgroup + ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && + ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + }, + + set: function( elem, value ) { + var optionSet, option, + options = elem.options, + values = jQuery.makeArray( value ), + i = options.length; + + while ( i-- ) { + option = options[ i ]; + if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { + optionSet = true; + } + } + + // force browsers to behave consistently when non-matching value is set + if ( !optionSet ) { + elem.selectedIndex = -1; + } + return values; + } + } + }, + + attr: function( elem, name, value ) { + var hooks, ret, + nType = elem.nodeType; + + // don't get/set attributes on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + // Fallback to prop when attributes are not supported + if ( typeof elem.getAttribute === core_strundefined ) { + return jQuery.prop( elem, name, value ); + } + + // All attributes are lowercase + // Grab necessary hook if one is defined + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + name = name.toLowerCase(); + hooks = jQuery.attrHooks[ name ] || + ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); + } + + if ( value !== undefined ) { + + if ( value === null ) { + jQuery.removeAttr( elem, name ); + + } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + elem.setAttribute( name, value + "" ); + return value; + } + + } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + ret = jQuery.find.attr( elem, name ); + + // Non-existent attributes return null, we normalize to undefined + return ret == null ? + undefined : + ret; + } + }, + + removeAttr: function( elem, value ) { + var name, propName, + i = 0, + attrNames = value && value.match( core_rnotwhite ); + + if ( attrNames && elem.nodeType === 1 ) { + while ( (name = attrNames[i++]) ) { + propName = jQuery.propFix[ name ] || name; + + // Boolean attributes get special treatment (#10870) + if ( jQuery.expr.match.bool.test( name ) ) { + // Set corresponding property to false + if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { + elem[ propName ] = false; + // Support: IE<9 + // Also clear defaultChecked/defaultSelected (if appropriate) + } else { + elem[ jQuery.camelCase( "default-" + name ) ] = + elem[ propName ] = false; + } + + // See #9699 for explanation of this approach (setting first, then removal) + } else { + jQuery.attr( elem, name, "" ); + } + + elem.removeAttribute( getSetAttribute ? name : propName ); + } + } + }, + + attrHooks: { + type: { + set: function( elem, value ) { + if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { + // Setting the type on a radio button after the value resets the value in IE6-9 + // Reset value to default in case type is set after value during creation + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + } + }, + + propFix: { + "for": "htmlFor", + "class": "className" + }, + + prop: function( elem, name, value ) { + var ret, hooks, notxml, + nType = elem.nodeType; + + // don't get/set properties on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + if ( notxml ) { + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? + ret : + ( elem[ name ] = value ); + + } else { + return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? + ret : + elem[ name ]; + } + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set + // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + // Use proper attribute retrieval(#12072) + var tabindex = jQuery.find.attr( elem, "tabindex" ); + + return tabindex ? + parseInt( tabindex, 10 ) : + rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? + 0 : + -1; + } + } + } +}); + +// Hooks for boolean attributes +boolHook = { + set: function( elem, value, name ) { + if ( value === false ) { + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) { + // IE<8 needs the *property* name + elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name ); + + // Use defaultChecked and defaultSelected for oldIE + } else { + elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true; + } + + return name; + } +}; +jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { + var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; + + jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ? + function( elem, name, isXML ) { + var fn = jQuery.expr.attrHandle[ name ], + ret = isXML ? + undefined : + /* jshint eqeqeq: false */ + (jQuery.expr.attrHandle[ name ] = undefined) != + getter( elem, name, isXML ) ? + + name.toLowerCase() : + null; + jQuery.expr.attrHandle[ name ] = fn; + return ret; + } : + function( elem, name, isXML ) { + return isXML ? + undefined : + elem[ jQuery.camelCase( "default-" + name ) ] ? + name.toLowerCase() : + null; + }; +}); + +// fix oldIE attroperties +if ( !getSetInput || !getSetAttribute ) { + jQuery.attrHooks.value = { + set: function( elem, value, name ) { + if ( jQuery.nodeName( elem, "input" ) ) { + // Does not return so that setAttribute is also used + elem.defaultValue = value; + } else { + // Use nodeHook if defined (#1954); otherwise setAttribute is fine + return nodeHook && nodeHook.set( elem, value, name ); + } + } + }; +} + +// IE6/7 do not support getting/setting some attributes with get/setAttribute +if ( !getSetAttribute ) { + + // Use this for any attribute in IE6/7 + // This fixes almost every IE6/7 issue + nodeHook = { + set: function( elem, value, name ) { + // Set the existing or create a new attribute node + var ret = elem.getAttributeNode( name ); + if ( !ret ) { + elem.setAttributeNode( + (ret = elem.ownerDocument.createAttribute( name )) + ); + } + + ret.value = value += ""; + + // Break association with cloned elements by also using setAttribute (#9646) + return name === "value" || value === elem.getAttribute( name ) ? + value : + undefined; + } + }; + jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords = + // Some attributes are constructed with empty-string values when not defined + function( elem, name, isXML ) { + var ret; + return isXML ? + undefined : + (ret = elem.getAttributeNode( name )) && ret.value !== "" ? + ret.value : + null; + }; + jQuery.valHooks.button = { + get: function( elem, name ) { + var ret = elem.getAttributeNode( name ); + return ret && ret.specified ? + ret.value : + undefined; + }, + set: nodeHook.set + }; + + // Set contenteditable to false on removals(#10429) + // Setting to empty string throws an error as an invalid value + jQuery.attrHooks.contenteditable = { + set: function( elem, value, name ) { + nodeHook.set( elem, value === "" ? false : value, name ); + } + }; + + // Set width and height to auto instead of 0 on empty string( Bug #8150 ) + // This is for removals + jQuery.each([ "width", "height" ], function( i, name ) { + jQuery.attrHooks[ name ] = { + set: function( elem, value ) { + if ( value === "" ) { + elem.setAttribute( name, "auto" ); + return value; + } + } + }; + }); +} + + +// Some attributes require a special call on IE +// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !jQuery.support.hrefNormalized ) { + // href/src property should get the full normalized URL (#10299/#12915) + jQuery.each([ "href", "src" ], function( i, name ) { + jQuery.propHooks[ name ] = { + get: function( elem ) { + return elem.getAttribute( name, 4 ); + } + }; + }); +} + +if ( !jQuery.support.style ) { + jQuery.attrHooks.style = { + get: function( elem ) { + // Return undefined in the case of empty string + // Note: IE uppercases css property names, but if we were to .toLowerCase() + // .cssText, that would destroy case senstitivity in URL's, like in "background" + return elem.style.cssText || undefined; + }, + set: function( elem, value ) { + return ( elem.style.cssText = value + "" ); + } + }; +} + +// Safari mis-reports the default selected property of an option +// Accessing the parent's selectedIndex property fixes it +if ( !jQuery.support.optSelected ) { + jQuery.propHooks.selected = { + get: function( elem ) { + var parent = elem.parentNode; + + if ( parent ) { + parent.selectedIndex; + + // Make sure that it also works with optgroups, see #5701 + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + return null; + } + }; +} + +jQuery.each([ + "tabIndex", + "readOnly", + "maxLength", + "cellSpacing", + "cellPadding", + "rowSpan", + "colSpan", + "useMap", + "frameBorder", + "contentEditable" +], function() { + jQuery.propFix[ this.toLowerCase() ] = this; +}); + +// IE6/7 call enctype encoding +if ( !jQuery.support.enctype ) { + jQuery.propFix.enctype = "encoding"; +} + +// Radios and checkboxes getter/setter +jQuery.each([ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + set: function( elem, value ) { + if ( jQuery.isArray( value ) ) { + return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); + } + } + }; + if ( !jQuery.support.checkOn ) { + jQuery.valHooks[ this ].get = function( elem ) { + // Support: Webkit + // "" is returned instead of "on" if a value isn't specified + return elem.getAttribute("value") === null ? "on" : elem.value; + }; + } +}); +var rformElems = /^(?:input|select|textarea)$/i, + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|contextmenu)|click/, + rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + var tmp, events, t, handleObjIn, + special, eventHandle, handleObj, + handlers, type, namespaces, origType, + elemData = jQuery._data( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !(events = elemData.events) ) { + events = elemData.events = {}; + } + if ( !(eventHandle = elemData.handle) ) { + eventHandle = elemData.handle = function( e ) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? + jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : + undefined; + }; + // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events + eventHandle.elem = elem; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( core_rnotwhite ) || [""]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend({ + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join(".") + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !(handlers = events[ type ]) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener/attachEvent if the special events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + var j, handleObj, tmp, + origCount, t, events, + special, handlers, type, + namespaces, origType, + elemData = jQuery.hasData( elem ) && jQuery._data( elem ); + + if ( !elemData || !(events = elemData.events) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( core_rnotwhite ) || [""]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[t] ) || []; + type = origType = tmp[1]; + namespaces = ( tmp[2] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + delete elemData.handle; + + // removeData also checks for emptiness and clears the expando if empty + // so use it instead of delete + jQuery._removeData( elem, "events" ); + } + }, + + trigger: function( event, data, elem, onlyHandlers ) { + var handle, ontype, cur, + bubbleType, special, tmp, i, + eventPath = [ elem || document ], + type = core_hasOwn.call( event, "type" ) ? event.type : event, + namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; + + cur = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf(".") >= 0 ) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf(":") < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join("."); + event.namespace_re = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === (elem.ownerDocument || document) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { + + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { + event.preventDefault(); + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && + jQuery.acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction() check here because IE6/7 fails that test. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + try { + elem[ type ](); + } catch ( e ) { + // IE<9 dies on focus/blur to hidden element (#1486,#12518) + // only reproducible on winXP IE8 native, not IE9 in IE8 mode + } + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + dispatch: function( event ) { + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( event ); + + var i, ret, handleObj, matched, j, + handlerQueue = [], + args = core_slice.call( arguments ), + handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[0] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). + if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) + .apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( (event.result = ret) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var sel, handleObj, matches, i, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + // Black-hole SVG instance trees (#13180) + // Avoid non-left-click bubbling in Firefox (#3861) + if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { + + /* jshint eqeqeq: false */ + for ( ; cur != this; cur = cur.parentNode || this ) { + /* jshint eqeqeq: true */ + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { + matches = []; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matches[ sel ] === undefined ) { + matches[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) >= 0 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matches[ sel ] ) { + matches.push( handleObj ); + } + } + if ( matches.length ) { + handlerQueue.push({ elem: cur, handlers: matches }); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if ( delegateCount < handlers.length ) { + handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); + } + + return handlerQueue; + }, + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, prop, copy, + type = event.type, + originalEvent = event, + fixHook = this.fixHooks[ type ]; + + if ( !fixHook ) { + this.fixHooks[ type ] = fixHook = + rmouseEvent.test( type ) ? this.mouseHooks : + rkeyEvent.test( type ) ? this.keyHooks : + {}; + } + copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; + + event = new jQuery.Event( originalEvent ); + + i = copy.length; + while ( i-- ) { + prop = copy[ i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Support: IE<9 + // Fix target property (#1925) + if ( !event.target ) { + event.target = originalEvent.srcElement || document; + } + + // Support: Chrome 23+, Safari? + // Target should not be a text node (#504, #13143) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // Support: IE<9 + // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) + event.metaKey = !!event.metaKey; + + return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split(" "), + filter: function( event, original ) { + + // Add which for key events + if ( event.which == null ) { + event.which = original.charCode != null ? original.charCode : original.keyCode; + } + + return event; + } + }, + + mouseHooks: { + props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), + filter: function( event, original ) { + var body, eventDoc, doc, + button = original.button, + fromElement = original.fromElement; + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && original.clientX != null ) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); + event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && fromElement ) { + event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && button !== undefined ) { + event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); + } + + return event; + } + }, + + special: { + load: { + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + try { + this.focus(); + return false; + } catch ( e ) { + // Support: IE<9 + // If we error on focus to hidden element (#1486, #12518), + // let .trigger() run the handlers + } + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return jQuery.nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Even when returnValue equals to undefined Firefox will still show alert + if ( event.result !== undefined ) { + event.originalEvent.returnValue = event.result; + } + } + } + }, + + simulate: function( type, elem, event, bubble ) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true, + originalEvent: {} + } + ); + if ( bubble ) { + jQuery.event.trigger( e, null, elem ); + } else { + jQuery.event.dispatch.call( elem, e ); + } + if ( e.isDefaultPrevented() ) { + event.preventDefault(); + } + } +}; + +jQuery.removeEvent = document.removeEventListener ? + function( elem, type, handle ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + } : + function( elem, type, handle ) { + var name = "on" + type; + + if ( elem.detachEvent ) { + + // #8545, #7054, preventing memory leaks for custom events in IE6-8 + // detachEvent needed property on element, by name of that event, to properly expose it to GC + if ( typeof elem[ name ] === core_strundefined ) { + elem[ name ] = null; + } + + elem.detachEvent( name, handle ); + } + }; + +jQuery.Event = function( src, props ) { + // Allow instantiation without the 'new' keyword + if ( !(this instanceof jQuery.Event) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false || + src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + if ( !e ) { + return; + } + + // If preventDefault exists, run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // Support: IE + // Otherwise set the returnValue property of the original event to false + } else { + e.returnValue = false; + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + if ( !e ) { + return; + } + // If stopPropagation exists, run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + + // Support: IE + // Set the cancelBubble property of the original event to true + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + } +}; + +// Create mouseenter/leave events using mouseover/out and event-time checks +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mousenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || (related !== target && !jQuery.contains( target, related )) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +}); + +// IE submit delegation +if ( !jQuery.support.submitBubbles ) { + + jQuery.event.special.submit = { + setup: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Lazy-add a submit handler when a descendant form may potentially be submitted + jQuery.event.add( this, "click._submit keypress._submit", function( e ) { + // Node name check avoids a VML-related crash in IE (#9807) + var elem = e.target, + form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; + if ( form && !jQuery._data( form, "submitBubbles" ) ) { + jQuery.event.add( form, "submit._submit", function( event ) { + event._submit_bubble = true; + }); + jQuery._data( form, "submitBubbles", true ); + } + }); + // return undefined since we don't need an event listener + }, + + postDispatch: function( event ) { + // If form was submitted by the user, bubble the event up the tree + if ( event._submit_bubble ) { + delete event._submit_bubble; + if ( this.parentNode && !event.isTrigger ) { + jQuery.event.simulate( "submit", this.parentNode, event, true ); + } + } + }, + + teardown: function() { + // Only need this for delegated form submit events + if ( jQuery.nodeName( this, "form" ) ) { + return false; + } + + // Remove delegated handlers; cleanData eventually reaps submit handlers attached above + jQuery.event.remove( this, "._submit" ); + } + }; +} + +// IE change delegation and checkbox/radio fix +if ( !jQuery.support.changeBubbles ) { + + jQuery.event.special.change = { + + setup: function() { + + if ( rformElems.test( this.nodeName ) ) { + // IE doesn't fire change on a check/radio until blur; trigger it on click + // after a propertychange. Eat the blur-change in special.change.handle. + // This still fires onchange a second time for check/radio after blur. + if ( this.type === "checkbox" || this.type === "radio" ) { + jQuery.event.add( this, "propertychange._change", function( event ) { + if ( event.originalEvent.propertyName === "checked" ) { + this._just_changed = true; + } + }); + jQuery.event.add( this, "click._change", function( event ) { + if ( this._just_changed && !event.isTrigger ) { + this._just_changed = false; + } + // Allow triggered, simulated change events (#11500) + jQuery.event.simulate( "change", this, event, true ); + }); + } + return false; + } + // Delegated event; lazy-add a change handler on descendant inputs + jQuery.event.add( this, "beforeactivate._change", function( e ) { + var elem = e.target; + + if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { + jQuery.event.add( elem, "change._change", function( event ) { + if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { + jQuery.event.simulate( "change", this.parentNode, event, true ); + } + }); + jQuery._data( elem, "changeBubbles", true ); + } + }); + }, + + handle: function( event ) { + var elem = event.target; + + // Swallow native change events from checkbox/radio, we already triggered them above + if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { + return event.handleObj.handler.apply( this, arguments ); + } + }, + + teardown: function() { + jQuery.event.remove( this, "._change" ); + + return !rformElems.test( this.nodeName ); + } + }; +} + +// Create "bubbling" focus and blur events +if ( !jQuery.support.focusinBubbles ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler while someone wants focusin/focusout + var attaches = 0, + handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + if ( attaches++ === 0 ) { + document.addEventListener( orig, handler, true ); + } + }, + teardown: function() { + if ( --attaches === 0 ) { + document.removeEventListener( orig, handler, true ); + } + } + }; + }); +} + +jQuery.fn.extend({ + + on: function( types, selector, data, fn, /*INTERNAL*/ one ) { + var type, origFn; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + this.on( type, selector, data, types[ type ], one ); + } + return this; + } + + if ( data == null && fn == null ) { + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return this; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return this.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + }); + }, + one: function( types, selector, data, fn ) { + return this.on( types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each(function() { + jQuery.event.remove( this, types, fn, selector ); + }); + }, + + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + triggerHandler: function( type, data ) { + var elem = this[0]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +}); +var isSimple = /^.[^:#\[\.,]*$/, + rparentsprev = /^(?:parents|prev(?:Until|All))/, + rneedsContext = jQuery.expr.match.needsContext, + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend({ + find: function( selector ) { + var i, + ret = [], + self = this, + len = self.length; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter(function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }) ); + } + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + // Needed because $( selector, context ) becomes $( context ).find( selector ) + ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); + ret.selector = this.selector ? this.selector + " " + selector : selector; + return ret; + }, + + has: function( target ) { + var i, + targets = jQuery( target, this ), + len = targets.length; + + return this.filter(function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }, + + not: function( selector ) { + return this.pushStack( winnow(this, selector || [], true) ); + }, + + filter: function( selector ) { + return this.pushStack( winnow(this, selector || [], false) ); + }, + + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + ret = [], + pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( ; i < l; i++ ) { + for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { + // Always skip document fragments + if ( cur.nodeType < 11 && (pos ? + pos.index(cur) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector(cur, selectors)) ) { + + cur = ret.push( cur ); + break; + } + } + } + + return this.pushStack( ret.length > 1 ? jQuery.unique( ret ) : ret ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[0], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }, + + add: function( selector, context ) { + var set = typeof selector === "string" ? + jQuery( selector, context ) : + jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), + all = jQuery.merge( this.get(), set ); + + return this.pushStack( jQuery.unique(all) ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter(selector) + ); + } +}); + +function sibling( cur, dir ) { + do { + cur = cur[ dir ]; + } while ( cur && cur.nodeType !== 1 ); + + return cur; +} + +jQuery.each({ + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return jQuery.dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return jQuery.dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return jQuery.dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return jQuery.dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return jQuery.dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return jQuery.dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return jQuery.sibling( elem.firstChild ); + }, + contents: function( elem ) { + return jQuery.nodeName( elem, "iframe" ) ? + elem.contentDocument || elem.contentWindow.document : + jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var ret = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + if ( this.length > 1 ) { + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + ret = jQuery.unique( ret ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + } + + return this.pushStack( ret ); + }; +}); + +jQuery.extend({ + filter: function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 && elem.nodeType === 1 ? + jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : + jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + })); + }, + + dir: function( elem, dir, until ) { + var matched = [], + cur = elem[ dir ]; + + while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }, + + sibling: function( n, elem ) { + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + } +}); + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + /* jshint -W018 */ + return !!qualifier.call( elem, i, elem ) !== not; + }); + + } + + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + }); + + } + + if ( typeof qualifier === "string" ) { + if ( isSimple.test( qualifier ) ) { + return jQuery.filter( qualifier, elements, not ); + } + + qualifier = jQuery.filter( qualifier, elements ); + } + + return jQuery.grep( elements, function( elem ) { + return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; + }); +} +function createSafeFragment( document ) { + var list = nodeNames.split( "|" ), + safeFrag = document.createDocumentFragment(); + + if ( safeFrag.createElement ) { + while ( list.length ) { + safeFrag.createElement( + list.pop() + ); + } + } + return safeFrag; +} + +var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", + rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, + rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), + rleadingWhitespace = /^\s+/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, + rtagName = /<([\w:]+)/, + rtbody = /\s*$/g, + + // We have to close these tags to support XHTML (#13200) + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "
", "
" ], + area: [ 1, "", "" ], + param: [ 1, "", "" ], + thead: [ 1, "", "
" ], + tr: [ 2, "", "
" ], + col: [ 2, "", "
" ], + td: [ 3, "", "
" ], + + // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, + // unless wrapped in a div with non-breaking characters in front of it. + _default: jQuery.support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] + }, + safeFragment = createSafeFragment( document ), + fragmentDiv = safeFragment.appendChild( document.createElement("div") ); + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +jQuery.fn.extend({ + text: function( value ) { + return jQuery.access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); + }, null, value, arguments.length ); + }, + + append: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + }); + }, + + prepend: function() { + return this.domManip( arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + }); + }, + + before: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + }); + }, + + after: function() { + return this.domManip( arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + }); + }, + + // keepData is for internal use only--do not document + remove: function( selector, keepData ) { + var elem, + elems = selector ? jQuery.filter( selector, this ) : this, + i = 0; + + for ( ; (elem = elems[i]) != null; i++ ) { + + if ( !keepData && elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem ) ); + } + + if ( elem.parentNode ) { + if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { + setGlobalEval( getAll( elem, "script" ) ); + } + elem.parentNode.removeChild( elem ); + } + } + + return this; + }, + + empty: function() { + var elem, + i = 0; + + for ( ; (elem = this[i]) != null; i++ ) { + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + } + + // Remove any remaining nodes + while ( elem.firstChild ) { + elem.removeChild( elem.firstChild ); + } + + // If this is a select, ensure that it displays empty (#12336) + // Support: IE<9 + if ( elem.options && jQuery.nodeName( elem, "select" ) ) { + elem.options.length = 0; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function () { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + }); + }, + + html: function( value ) { + return jQuery.access( this, function( value ) { + var elem = this[0] || {}, + i = 0, + l = this.length; + + if ( value === undefined ) { + return elem.nodeType === 1 ? + elem.innerHTML.replace( rinlinejQuery, "" ) : + undefined; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) && + ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && + !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) { + + value = value.replace( rxhtmlTag, "<$1>" ); + + try { + for (; i < l; i++ ) { + // Remove element nodes and prevent memory leaks + elem = this[i] || {}; + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch(e) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var + // Snapshot the DOM in case .domManip sweeps something relevant into its fragment + args = jQuery.map( this, function( elem ) { + return [ elem.nextSibling, elem.parentNode ]; + }), + i = 0; + + // Make the changes, replacing each context element with the new content + this.domManip( arguments, function( elem ) { + var next = args[ i++ ], + parent = args[ i++ ]; + + if ( parent ) { + // Don't use the snapshot next if it has moved (#13810) + if ( next && next.parentNode !== parent ) { + next = this.nextSibling; + } + jQuery( this ).remove(); + parent.insertBefore( elem, next ); + } + // Allow new content to include elements from the context set + }, true ); + + // Force removal if there was no new content (e.g., from empty arguments) + return i ? this : this.remove(); + }, + + detach: function( selector ) { + return this.remove( selector, true ); + }, + + domManip: function( args, callback, allowIntersection ) { + + // Flatten any nested arrays + args = core_concat.apply( [], args ); + + var first, node, hasScripts, + scripts, doc, fragment, + i = 0, + l = this.length, + set = this, + iNoClone = l - 1, + value = args[0], + isFunction = jQuery.isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { + return this.each(function( index ) { + var self = set.eq( index ); + if ( isFunction ) { + args[0] = value.call( this, index, self.html() ); + } + self.domManip( args, callback, allowIntersection ); + }); + } + + if ( l ) { + fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + if ( first ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( this[i], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { + + if ( node.src ) { + // Hope ajax is available... + jQuery._evalUrl( node.src ); + } else { + jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); + } + } + } + } + + // Fix #11809: Avoid leaking memory + fragment = first = null; + } + } + + return this; + } +}); + +// Support: IE<8 +// Manipulating tables requires a tbody +function manipulationTarget( elem, content ) { + return jQuery.nodeName( elem, "table" ) && + jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? + + elem.getElementsByTagName("tbody")[0] || + elem.appendChild( elem.ownerDocument.createElement("tbody") ) : + elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + var match = rscriptTypeMasked.exec( elem.type ); + if ( match ) { + elem.type = match[1]; + } else { + elem.removeAttribute("type"); + } + return elem; +} + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var elem, + i = 0; + for ( ; (elem = elems[i]) != null; i++ ) { + jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); + } +} + +function cloneCopyEvent( src, dest ) { + + if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { + return; + } + + var type, i, l, + oldData = jQuery._data( src ), + curData = jQuery._data( dest, oldData ), + events = oldData.events; + + if ( events ) { + delete curData.handle; + curData.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + + // make the cloned public data object a copy from the original + if ( curData.data ) { + curData.data = jQuery.extend( {}, curData.data ); + } +} + +function fixCloneNodeIssues( src, dest ) { + var nodeName, e, data; + + // We do not need to do anything for non-Elements + if ( dest.nodeType !== 1 ) { + return; + } + + nodeName = dest.nodeName.toLowerCase(); + + // IE6-8 copies events bound via attachEvent when using cloneNode. + if ( !jQuery.support.noCloneEvent && dest[ jQuery.expando ] ) { + data = jQuery._data( dest ); + + for ( e in data.events ) { + jQuery.removeEvent( dest, e, data.handle ); + } + + // Event data gets referenced instead of copied if the expando gets copied too + dest.removeAttribute( jQuery.expando ); + } + + // IE blanks contents when cloning scripts, and tries to evaluate newly-set text + if ( nodeName === "script" && dest.text !== src.text ) { + disableScript( dest ).text = src.text; + restoreScript( dest ); + + // IE6-10 improperly clones children of object elements using classid. + // IE10 throws NoModificationAllowedError if parent is null, #12132. + } else if ( nodeName === "object" ) { + if ( dest.parentNode ) { + dest.outerHTML = src.outerHTML; + } + + // This path appears unavoidable for IE9. When cloning an object + // element in IE9, the outerHTML strategy above is not sufficient. + // If the src has innerHTML and the destination does not, + // copy the src.innerHTML into the dest.innerHTML. #10324 + if ( jQuery.support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { + dest.innerHTML = src.innerHTML; + } + + } else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { + // IE6-8 fails to persist the checked state of a cloned checkbox + // or radio button. Worse, IE6-7 fail to give the cloned element + // a checked appearance if the defaultChecked value isn't also set + + dest.defaultChecked = dest.checked = src.checked; + + // IE6-7 get confused and end up setting the value of a cloned + // checkbox/radio button to an empty string instead of "on" + if ( dest.value !== src.value ) { + dest.value = src.value; + } + + // IE6-8 fails to return the selected option to the default selected + // state when cloning options + } else if ( nodeName === "option" ) { + dest.defaultSelected = dest.selected = src.defaultSelected; + + // IE6-8 fails to set the defaultValue to the correct value when + // cloning other types of input fields + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +jQuery.each({ + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + i = 0, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone(true); + jQuery( insert[i] )[ original ]( elems ); + + // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() + core_push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +}); + +function getAll( context, tag ) { + var elems, elem, + i = 0, + found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : + typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : + undefined; + + if ( !found ) { + for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { + if ( !tag || jQuery.nodeName( elem, tag ) ) { + found.push( elem ); + } else { + jQuery.merge( found, getAll( elem, tag ) ); + } + } + } + + return tag === undefined || tag && jQuery.nodeName( context, tag ) ? + jQuery.merge( [ context ], found ) : + found; +} + +// Used in buildFragment, fixes the defaultChecked property +function fixDefaultChecked( elem ) { + if ( manipulation_rcheckableType.test( elem.type ) ) { + elem.defaultChecked = elem.checked; + } +} + +jQuery.extend({ + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var destElements, node, clone, i, srcElements, + inPage = jQuery.contains( elem.ownerDocument, elem ); + + if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { + clone = elem.cloneNode( true ); + + // IE<=8 does not properly clone detached, unknown element nodes + } else { + fragmentDiv.innerHTML = elem.outerHTML; + fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); + } + + if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && + (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { + + // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + // Fix all IE cloning issues + for ( i = 0; (node = srcElements[i]) != null; ++i ) { + // Ensure that the destination node is not null; Fixes #9587 + if ( destElements[i] ) { + fixCloneNodeIssues( node, destElements[i] ); + } + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0; (node = srcElements[i]) != null; i++ ) { + cloneCopyEvent( node, destElements[i] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + destElements = srcElements = node = null; + + // Return the cloned set + return clone; + }, + + buildFragment: function( elems, context, scripts, selection ) { + var j, elem, contains, + tmp, tag, tbody, wrap, + l = elems.length, + + // Ensure a safe fragment + safe = createSafeFragment( context ), + + nodes = [], + i = 0; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( jQuery.type( elem ) === "object" ) { + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || safe.appendChild( context.createElement("div") ); + + // Deserialize a standard representation + tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + + tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; + + // Descend through wrappers to the right content + j = wrap[0]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Manually add leading whitespace removed by IE + if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { + nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); + } + + // Remove IE's autoinserted from table fragments + if ( !jQuery.support.tbody ) { + + // String was a , *may* have spurious + elem = tag === "table" && !rtbody.test( elem ) ? + tmp.firstChild : + + // String was a bare or + wrap[1] === "
" && !rtbody.test( elem ) ? + tmp : + 0; + + j = elem && elem.childNodes.length; + while ( j-- ) { + if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { + elem.removeChild( tbody ); + } + } + } + + jQuery.merge( nodes, tmp.childNodes ); + + // Fix #12392 for WebKit and IE > 9 + tmp.textContent = ""; + + // Fix #12392 for oldIE + while ( tmp.firstChild ) { + tmp.removeChild( tmp.firstChild ); + } + + // Remember the top-level container for proper cleanup + tmp = safe.lastChild; + } + } + } + + // Fix #11356: Clear elements from fragment + if ( tmp ) { + safe.removeChild( tmp ); + } + + // Reset defaultChecked for any radios and checkboxes + // about to be appended to the DOM in IE 6/7 (#8060) + if ( !jQuery.support.appendChecked ) { + jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); + } + + i = 0; + while ( (elem = nodes[ i++ ]) ) { + + // #4087 - If origin and destination elements are the same, and this is + // that element, do not do anything + if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( safe.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( (elem = tmp[ j++ ]) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + tmp = null; + + return safe; + }, + + cleanData: function( elems, /* internal */ acceptData ) { + var elem, type, id, data, + i = 0, + internalKey = jQuery.expando, + cache = jQuery.cache, + deleteExpando = jQuery.support.deleteExpando, + special = jQuery.event.special; + + for ( ; (elem = elems[i]) != null; i++ ) { + + if ( acceptData || jQuery.acceptData( elem ) ) { + + id = elem[ internalKey ]; + data = id && cache[ id ]; + + if ( data ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Remove cache only if it was not already removed by jQuery.event.remove + if ( cache[ id ] ) { + + delete cache[ id ]; + + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( deleteExpando ) { + delete elem[ internalKey ]; + + } else if ( typeof elem.removeAttribute !== core_strundefined ) { + elem.removeAttribute( internalKey ); + + } else { + elem[ internalKey ] = null; + } + + core_deletedIds.push( id ); + } + } + } + } + }, + + _evalUrl: function( url ) { + return jQuery.ajax({ + url: url, + type: "GET", + dataType: "script", + async: false, + global: false, + "throws": true + }); + } +}); +jQuery.fn.extend({ + wrapAll: function( html ) { + if ( jQuery.isFunction( html ) ) { + return this.each(function(i) { + jQuery(this).wrapAll( html.call(this, i) ); + }); + } + + if ( this[0] ) { + // The elements to wrap the target around + var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); + + if ( this[0].parentNode ) { + wrap.insertBefore( this[0] ); + } + + wrap.map(function() { + var elem = this; + + while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { + elem = elem.firstChild; + } + + return elem; + }).append( this ); + } + + return this; + }, + + wrapInner: function( html ) { + if ( jQuery.isFunction( html ) ) { + return this.each(function(i) { + jQuery(this).wrapInner( html.call(this, i) ); + }); + } + + return this.each(function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + }); + }, + + wrap: function( html ) { + var isFunction = jQuery.isFunction( html ); + + return this.each(function(i) { + jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); + }); + }, + + unwrap: function() { + return this.parent().each(function() { + if ( !jQuery.nodeName( this, "body" ) ) { + jQuery( this ).replaceWith( this.childNodes ); + } + }).end(); + } +}); +var iframe, getStyles, curCSS, + ralpha = /alpha\([^)]*\)/i, + ropacity = /opacity\s*=\s*([^)]*)/, + rposition = /^(top|right|bottom|left)$/, + // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" + // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display + rdisplayswap = /^(none|table(?!-c[ea]).+)/, + rmargin = /^margin/, + rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), + rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), + rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), + elemdisplay = { BODY: "block" }, + + cssShow = { position: "absolute", visibility: "hidden", display: "block" }, + cssNormalTransform = { + letterSpacing: 0, + fontWeight: 400 + }, + + cssExpand = [ "Top", "Right", "Bottom", "Left" ], + cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; + +// return a css property mapped to a potentially vendor prefixed property +function vendorPropName( style, name ) { + + // shortcut for names that are not vendor prefixed + if ( name in style ) { + return name; + } + + // check for vendor prefixed names + var capName = name.charAt(0).toUpperCase() + name.slice(1), + origName = name, + i = cssPrefixes.length; + + while ( i-- ) { + name = cssPrefixes[ i ] + capName; + if ( name in style ) { + return name; + } + } + + return origName; +} + +function isHidden( elem, el ) { + // isHidden might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); +} + +function showHide( elements, show ) { + var display, elem, hidden, + values = [], + index = 0, + length = elements.length; + + for ( ; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + + values[ index ] = jQuery._data( elem, "olddisplay" ); + display = elem.style.display; + if ( show ) { + // Reset the inline display of this element to learn if it is + // being hidden by cascaded rules or not + if ( !values[ index ] && display === "none" ) { + elem.style.display = ""; + } + + // Set elements which have been overridden with display: none + // in a stylesheet to whatever the default browser style is + // for such an element + if ( elem.style.display === "" && isHidden( elem ) ) { + values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); + } + } else { + + if ( !values[ index ] ) { + hidden = isHidden( elem ); + + if ( display && display !== "none" || !hidden ) { + jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) ); + } + } + } + } + + // Set the display of most of the elements in a second loop + // to avoid the constant reflow + for ( index = 0; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + if ( !show || elem.style.display === "none" || elem.style.display === "" ) { + elem.style.display = show ? values[ index ] || "" : "none"; + } + } + + return elements; +} + +jQuery.fn.extend({ + css: function( name, value ) { + return jQuery.access( this, function( elem, name, value ) { + var len, styles, + map = {}, + i = 0; + + if ( jQuery.isArray( name ) ) { + styles = getStyles( elem ); + len = name.length; + + for ( ; i < len; i++ ) { + map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); + } + + return map; + } + + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }, name, value, arguments.length > 1 ); + }, + show: function() { + return showHide( this, true ); + }, + hide: function() { + return showHide( this ); + }, + toggle: function( state ) { + if ( typeof state === "boolean" ) { + return state ? this.show() : this.hide(); + } + + return this.each(function() { + if ( isHidden( this ) ) { + jQuery( this ).show(); + } else { + jQuery( this ).hide(); + } + }); + } +}); + +jQuery.extend({ + // Add in style property hooks for overriding the default + // behavior of getting and setting a style property + cssHooks: { + opacity: { + get: function( elem, computed ) { + if ( computed ) { + // We should always get a number back from opacity + var ret = curCSS( elem, "opacity" ); + return ret === "" ? "1" : ret; + } + } + } + }, + + // Don't automatically add "px" to these possibly-unitless properties + cssNumber: { + "columnCount": true, + "fillOpacity": true, + "fontWeight": true, + "lineHeight": true, + "opacity": true, + "order": true, + "orphans": true, + "widows": true, + "zIndex": true, + "zoom": true + }, + + // Add in properties whose names you wish to fix before + // setting or getting the value + cssProps: { + // normalize float css property + "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat" + }, + + // Get and set the style property on a DOM Node + style: function( elem, name, value, extra ) { + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, hooks, + origName = jQuery.camelCase( name ), + style = elem.style; + + name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); + + // gets hook for the prefixed version + // followed by the unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // convert relative number strings (+= or -=) to relative numbers. #7345 + if ( type === "string" && (ret = rrelNum.exec( value )) ) { + value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); + // Fixes bug #9237 + type = "number"; + } + + // Make sure that NaN and null values aren't set. See: #7116 + if ( value == null || type === "number" && isNaN( value ) ) { + return; + } + + // If a number was passed in, add 'px' to the (except for certain CSS properties) + if ( type === "number" && !jQuery.cssNumber[ origName ] ) { + value += "px"; + } + + // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, + // but it would mean to define eight (for every problematic property) identical functions + if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { + style[ name ] = "inherit"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { + + // Wrapped to prevent IE from throwing errors when 'invalid' values are provided + // Fixes bug #5509 + try { + style[ name ] = value; + } catch(e) {} + } + + } else { + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }, + + css: function( elem, name, extra, styles ) { + var num, val, hooks, + origName = jQuery.camelCase( name ); + + // Make sure that we're working with the right name + name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); + + // gets hook for the prefixed version + // followed by the unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks ) { + val = hooks.get( elem, true, extra ); + } + + // Otherwise, if a way to get the computed value exists, use that + if ( val === undefined ) { + val = curCSS( elem, name, styles ); + } + + //convert "normal" to computed value + if ( val === "normal" && name in cssNormalTransform ) { + val = cssNormalTransform[ name ]; + } + + // Return, converting to number if forced or a qualifier was provided and val looks numeric + if ( extra === "" || extra ) { + num = parseFloat( val ); + return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; + } + return val; + } +}); + +// NOTE: we've included the "window" in window.getComputedStyle +// because jsdom on node.js will break without it. +if ( window.getComputedStyle ) { + getStyles = function( elem ) { + return window.getComputedStyle( elem, null ); + }; + + curCSS = function( elem, name, _computed ) { + var width, minWidth, maxWidth, + computed = _computed || getStyles( elem ), + + // getPropertyValue is only needed for .css('filter') in IE9, see #12537 + ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, + style = elem.style; + + if ( computed ) { + + if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { + ret = jQuery.style( elem, name ); + } + + // A tribute to the "awesome hack by Dean Edwards" + // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right + // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels + // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values + if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { + + // Remember the original values + width = style.width; + minWidth = style.minWidth; + maxWidth = style.maxWidth; + + // Put in the new values to get a computed value out + style.minWidth = style.maxWidth = style.width = ret; + ret = computed.width; + + // Revert the changed values + style.width = width; + style.minWidth = minWidth; + style.maxWidth = maxWidth; + } + } + + return ret; + }; +} else if ( document.documentElement.currentStyle ) { + getStyles = function( elem ) { + return elem.currentStyle; + }; + + curCSS = function( elem, name, _computed ) { + var left, rs, rsLeft, + computed = _computed || getStyles( elem ), + ret = computed ? computed[ name ] : undefined, + style = elem.style; + + // Avoid setting ret to empty string here + // so we don't default to auto + if ( ret == null && style && style[ name ] ) { + ret = style[ name ]; + } + + // From the awesome hack by Dean Edwards + // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 + + // If we're not dealing with a regular pixel number + // but a number that has a weird ending, we need to convert it to pixels + // but not position css attributes, as those are proportional to the parent element instead + // and we can't measure the parent instead because it might trigger a "stacking dolls" problem + if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) { + + // Remember the original values + left = style.left; + rs = elem.runtimeStyle; + rsLeft = rs && rs.left; + + // Put in the new values to get a computed value out + if ( rsLeft ) { + rs.left = elem.currentStyle.left; + } + style.left = name === "fontSize" ? "1em" : ret; + ret = style.pixelLeft + "px"; + + // Revert the changed values + style.left = left; + if ( rsLeft ) { + rs.left = rsLeft; + } + } + + return ret === "" ? "auto" : ret; + }; +} + +function setPositiveNumber( elem, value, subtract ) { + var matches = rnumsplit.exec( value ); + return matches ? + // Guard against undefined "subtract", e.g., when used as in cssHooks + Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : + value; +} + +function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { + var i = extra === ( isBorderBox ? "border" : "content" ) ? + // If we already have the right measurement, avoid augmentation + 4 : + // Otherwise initialize for horizontal or vertical properties + name === "width" ? 1 : 0, + + val = 0; + + for ( ; i < 4; i += 2 ) { + // both box models exclude margin, so add it if we want it + if ( extra === "margin" ) { + val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); + } + + if ( isBorderBox ) { + // border-box includes padding, so remove it if we want content + if ( extra === "content" ) { + val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + } + + // at this point, extra isn't border nor margin, so remove border + if ( extra !== "margin" ) { + val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } else { + // at this point, extra isn't content, so add padding + val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + + // at this point, extra isn't content nor padding, so add border + if ( extra !== "padding" ) { + val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } + } + + return val; +} + +function getWidthOrHeight( elem, name, extra ) { + + // Start with offset property, which is equivalent to the border-box value + var valueIsBorderBox = true, + val = name === "width" ? elem.offsetWidth : elem.offsetHeight, + styles = getStyles( elem ), + isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; + + // some non-html elements return undefined for offsetWidth, so check for null/undefined + // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 + // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 + if ( val <= 0 || val == null ) { + // Fall back to computed then uncomputed css if necessary + val = curCSS( elem, name, styles ); + if ( val < 0 || val == null ) { + val = elem.style[ name ]; + } + + // Computed unit is not pixels. Stop here and return. + if ( rnumnonpx.test(val) ) { + return val; + } + + // we need the check for style in case a browser which returns unreliable values + // for getComputedStyle silently falls back to the reliable elem.style + valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); + + // Normalize "", auto, and prepare for extra + val = parseFloat( val ) || 0; + } + + // use the active box-sizing model to add/subtract irrelevant styles + return ( val + + augmentWidthOrHeight( + elem, + name, + extra || ( isBorderBox ? "border" : "content" ), + valueIsBorderBox, + styles + ) + ) + "px"; +} + +// Try to determine the default display value of an element +function css_defaultDisplay( nodeName ) { + var doc = document, + display = elemdisplay[ nodeName ]; + + if ( !display ) { + display = actualDisplay( nodeName, doc ); + + // If the simple way fails, read from inside an iframe + if ( display === "none" || !display ) { + // Use the already-created iframe if possible + iframe = ( iframe || + jQuery(""), + NS = ".kendoTooltip", + POSITIONS = { + bottom: { + origin: "bottom center", + position: "top center" + }, + top: { + origin: "top center", + position: "bottom center" + }, + left: { + origin: "center left", + position: "center right", + collision: "fit flip" + }, + right: { + origin: "center right", + position: "center left", + collision: "fit flip" + }, + center: { + position: "center center", + origin: "center center" + } + }, + REVERSE = { + "top": "bottom", + "bottom": "top", + "left": "right", + "right": "left", + "center": "center" + }, + DIRCLASSES = { + bottom: "n", + top: "s", + left: "e", + right: "w", + center: "n" + }, + DIMENSIONS = { + "horizontal": { offset: "top", size: "outerHeight" }, + "vertical": { offset: "left", size: "outerWidth" } + }, + DEFAULTCONTENT = function(e) { + return e.target.data(kendo.ns + "title"); + }; + + function restoreTitle(element) { + while(element.length) { + restoreTitleAttributeForElement(element); + element = element.parent(); + } + } + + function restoreTitleAttributeForElement(element) { + var title = element.data(kendo.ns + "title"); + if (title) { + element.attr("title", title); + element.removeData(kendo.ns + "title"); + } + } + + function saveTitleAttributeForElement(element) { + var title = element.attr("title"); + if (title) { + element.data(kendo.ns + "title", title); + element.attr("title", ""); + } + } + + function saveTitleAttributes(element) { + while(element.length && !element.is("body")) { + saveTitleAttributeForElement(element); + element = element.parent(); + } + } + + var Tooltip = Widget.extend({ + init: function(element, options) { + var that = this, + axis; + + Widget.fn.init.call(that, element, options); + + axis = that.options.position.match(/left|right/) ? "horizontal" : "vertical"; + + that.dimensions = DIMENSIONS[axis]; + + that._documentKeyDownHandler = proxy(that._documentKeyDown, that); + + that.element + .on(that.options.showOn + NS, that.options.filter, proxy(that._showOn, that)) + .on("mouseenter" + NS, that.options.filter, proxy(that._mouseenter, that)); + + if (this.options.autoHide) { + that.element.on("mouseleave" + NS, that.options.filter, proxy(that._mouseleave, that)); + } + }, + + options: { + name: "Tooltip", + filter: "", + content: DEFAULTCONTENT, + showAfter: 100, + callout: true, + position: "bottom", + showOn: "mouseenter", + autoHide: true, + width: null, + height: null, + animation: { + open: { + effects: "fade:in", + duration: 0 + }, + close: { + effects: "fade:out", + duration: 40, + hide: true + } + } + }, + + events: [ SHOW, HIDE, CONTENTLOAD, ERROR, REQUESTSTART ], + + _mouseenter: function(e) { + saveTitleAttributes($(e.currentTarget)); + }, + + _showOn: function(e) { + var that = this; + + var currentTarget = $(e.currentTarget); + if (that.options.showOn && that.options.showOn.match(/click|focus/)) { + that._show(currentTarget); + } else { + clearTimeout(that.timeout); + + that.timeout = setTimeout(function() { + that._show(currentTarget); + }, that.options.showAfter); + } + }, + + _appendContent: function(target) { + var that = this, + contentOptions = that.options.content, + element = that.content, + showIframe = that.options.iframe, + iframe; + + if (isPlainObject(contentOptions) && contentOptions.url) { + if (!("iframe" in that.options)) { + showIframe = !isLocalUrl(contentOptions.url); + } + + that.trigger(REQUESTSTART, { options: contentOptions, target: target }); + + if (!showIframe) { + element.empty(); + kendo.ui.progress(element, true); + + // perform AJAX request + that._ajaxRequest(contentOptions); + } else { + element.hide(); + + iframe = element.find("." + KCONTENTFRAME)[0]; + + if (iframe) { + // refresh existing iframe + iframe.src = contentOptions.url || iframe.src; + } else { + element.html(IFRAMETEMPLATE({ content: contentOptions })); + } + + element.find("." + KCONTENTFRAME) + .off("load" + NS) + .on("load" + NS, function(){ + that.trigger(CONTENTLOAD); + element.show(); + }); + } + } else if (contentOptions && isFunction(contentOptions)) { + contentOptions = contentOptions({ sender: this, target: target }); + element.html(contentOptions || ""); + } else { + element.html(contentOptions); + } + + that.angular("compile", function(){ + return { elements: element }; + }); + }, + + _ajaxRequest: function(options) { + var that = this; + + jQuery.ajax(extend({ + type: "GET", + dataType: "html", + cache: false, + error: function (xhr, status) { + kendo.ui.progress(that.content, false); + + that.trigger(ERROR, { status: status, xhr: xhr }); + }, + success: proxy(function (data) { + kendo.ui.progress(that.content, false); + + that.content.html(data); + + that.trigger(CONTENTLOAD); + }, that) + }, options)); + }, + + _documentKeyDown: function(e) { + if (e.keyCode === kendo.keys.ESC) { + this.hide(); + } + }, + + refresh: function() { + var that = this, + popup = that.popup; + + if (popup && popup.options.anchor) { + that._appendContent(popup.options.anchor); + } + }, + + hide: function() { + if (this.popup) { + this.popup.close(); + } + }, + + show: function(target) { + target = target || this.element; + + saveTitleAttributes(target); + this._show(target); + }, + + _show: function(target) { + var that = this, + current = that.target(); + + if (!that.popup) { + that._initPopup(); + } + + if (current && current[0] != target[0]) { + that.popup.close(); + that.popup.element.kendoStop(true, true);// animation can be too long to hide the element before it is shown again + } + + if (!current || current[0] != target[0]) { + that._appendContent(target); + that.popup.options.anchor = target; + } + + that.popup.one("deactivate", function() { + restoreTitle(target); + target.removeAttr(DESCRIBEDBY); + + this.element + .removeAttr("id") + .attr("aria-hidden", true); + + DOCUMENT.off("keydown" + NS, that._documentKeyDownHandler); + }); + + that.popup.open(); + }, + + _initPopup: function() { + var that = this, + options = that.options, + wrapper = $(kendo.template(TEMPLATE)({ + callout: options.callout && options.position !== "center", + dir: DIRCLASSES[options.position], + autoHide: options.autoHide + })); + + that.popup = new Popup(wrapper, extend({ + activate: function() { + var anchor = this.options.anchor, + ariaId = anchor[0].id || that.element[0].id; + + if (ariaId) { + anchor.attr(DESCRIBEDBY, ariaId + ARIAIDSUFFIX); + this.element.attr("id", ariaId + ARIAIDSUFFIX); + } + + if (options.callout) { + that._positionCallout(); + } + + this.element.removeAttr("aria-hidden"); + + DOCUMENT.on("keydown" + NS, that._documentKeyDownHandler); + + that.trigger(SHOW); + }, + close: function() { + that.trigger(HIDE); + }, + copyAnchorStyles: false, + animation: options.animation + }, POSITIONS[options.position])); + + wrapper.css({ + width: options.width, + height: options.height + }); + + that.content = wrapper.find(".k-tooltip-content"); + that.arrow = wrapper.find(".k-callout"); + + if (options.autoHide) { + wrapper.on("mouseleave" + NS, proxy(that._mouseleave, that)); + } else { + wrapper.on("click" + NS, ".k-tooltip-button", proxy(that._closeButtonClick, that)); + } + }, + + _closeButtonClick: function(e) { + e.preventDefault(); + this.hide(); + }, + + _mouseleave: function(e) { + if (this.popup) { + var element = $(e.currentTarget), + offset = element.offset(), + pageX = e.pageX, + pageY = e.pageY; + + offset.right = offset.left + element.outerWidth(); + offset.bottom = offset.top + element.outerHeight(); + + if (pageX > offset.left && pageX < offset.right && pageY > offset.top && pageY < offset.bottom) { + return; + } + + this.popup.close(); + } else { + restoreTitle($(e.currentTarget)); + } + clearTimeout(this.timeout); + }, + + _positionCallout: function() { + var that = this, + position = that.options.position, + dimensions = that.dimensions, + offset = dimensions.offset, + popup = that.popup, + anchor = popup.options.anchor, + anchorOffset = $(anchor).offset(), + arrowBorder = parseInt(that.arrow.css("border-top-width"), 10), + elementOffset = $(popup.element).offset(), + cssClass = DIRCLASSES[popup.flipped ? REVERSE[position] : position], + offsetAmount = anchorOffset[offset] - elementOffset[offset] + ($(anchor)[dimensions.size]() / 2) - arrowBorder; + + that.arrow + .removeClass("k-callout-n k-callout-s k-callout-w k-callout-e") + .addClass("k-callout-" + cssClass) + .css(offset, offsetAmount); + }, + + target: function() { + if (this.popup) { + return this.popup.options.anchor; + } + return null; + }, + + destroy: function() { + var popup = this.popup; + + if (popup) { + popup.element.off(NS); + popup.destroy(); + } + + this.element.off(NS); + + DOCUMENT.off("keydown" + NS, this._documentKeyDownHandler); + + Widget.fn.destroy.call(this); + } + }); + + kendo.ui.plugin(Tooltip); +})(window.kendo.jQuery); + + + + + +(function($, undefined) { + var kendo = window.kendo, + ui = kendo.ui, + Widget = ui.Widget, + keys = kendo.keys, + support = kendo.support, + htmlEncode = kendo.htmlEncode, + activeElement = kendo._activeElement, + ObservableArray = kendo.data.ObservableArray, + ID = "id", + LI = "li", + CHANGE = "change", + CHARACTER = "character", + FOCUSED = "k-state-focused", + HOVER = "k-state-hover", + LOADING = "k-loading", + OPEN = "open", + CLOSE = "close", + SELECT = "select", + SELECTED = "selected", + PROGRESS = "progress", + REQUESTEND = "requestEnd", + WIDTH = "width", + extend = $.extend, + proxy = $.proxy, + isArray = $.isArray, + browser = support.browser, + isIE8 = browser.msie && browser.version < 9, + quotRegExp = /"/g, + alternativeNames = { + "ComboBox": "DropDownList", + "DropDownList": "ComboBox" + }; + + var List = kendo.ui.DataBoundWidget.extend({ + init: function(element, options) { + var that = this, + ns = that.ns, + id; + + Widget.fn.init.call(that, element, options); + element = that.element; + options = that.options; + + that._isSelect = element.is(SELECT); + + if (that._isSelect && that.element[0].length) { + if (!options.dataSource) { + options.dataTextField = options.dataTextField || "text"; + options.dataValueField = options.dataValueField || "value"; + } + } + + that.ul = $('
    ') + .attr({ + tabIndex: -1, + "aria-hidden": true + }); + + that.list = $("
    ") + .append(that.ul) + .on("mousedown" + ns, proxy(that._listMousedown, that)); + + id = element.attr(ID); + + if (id) { + that.list.attr(ID, id + "-list"); + that.ul.attr(ID, id + "_listbox"); + } + + that._header(); + that._accessors(); + that._initValue(); + }, + + options: { + valuePrimitive: false, + headerTemplate: "" + }, + + setOptions: function(options) { + Widget.fn.setOptions.call(this, options); + + if (options && options.enable !== undefined) { + options.enabled = options.enable; + } + }, + + focus: function() { + this._focused.focus(); + }, + + readonly: function(readonly) { + this._editable({ + readonly: readonly === undefined ? true : readonly, + disable: false + }); + }, + + enable: function(enable) { + this._editable({ + readonly: false, + disable: !(enable = enable === undefined ? true : enable) + }); + }, + + _listMousedown: function(e) { + if (!this.filterInput || this.filterInput[0] !== e.target) { + e.preventDefault(); + } + }, + + _filterSource: function(filter, force) { + var that = this; + var options = that.options; + var dataSource = that.dataSource; + var expression = extend({}, dataSource.filter() || {}); + + var removed = removeFiltersForField(expression, options.dataTextField); + + if ((filter || removed) && that.trigger("filtering", { filter: filter })) { + return; + } + + if (filter) { + expression = expression.filters || []; + expression.push(filter); + } + + if (!force) { + dataSource.filter(expression); + } else { + dataSource.read(expression); + } + }, + + _header: function() { + var that = this; + var template = that.options.headerTemplate; + var header; + + if ($.isFunction(template)) { + template = template({}); + } + + if (template) { + that.list.prepend(template); + + header = that.ul.prev(); + + that.header = header[0] ? header : null; + if (that.header) { + that.angular("compile", function(){ + return { elements: that.header }; + }); + } + } + }, + + _initValue: function() { + var that = this, + value = that.options.value; + + if (value !== null) { + that.element.val(value); + } else { + value = that._accessor(); + that.options.value = value; + } + + that._old = value; + }, + + _ignoreCase: function() { + var that = this, + model = that.dataSource.reader.model, + field; + + if (model && model.fields) { + field = model.fields[that.options.dataTextField]; + + if (field && field.type && field.type !== "string") { + that.options.ignoreCase = false; + } + } + }, + + _focus: function(candidate) { + return this.listView.focus(candidate); + }, + + current: function(candidate) { + return this._focus(candidate); + }, + + items: function() { + return this.ul[0].children; + }, + + destroy: function() { + var that = this; + var ns = that.ns; + + Widget.fn.destroy.call(that); + + that._unbindDataSource(); + + that.listView.destroy(); + that.list.off(ns); + + if (that._touchScroller) { + that._touchScroller.destroy(); + } + + that.popup.destroy(); + + if (that._form) { + that._form.off("reset", that._resetHandler); + } + }, + + dataItem: function(index) { + var that = this; + + if (index === undefined) { + return that.listView.selectedDataItems()[0]; + } + + if (typeof index !== "number") { + index = $(that.items()).index(index); + } + + return that.listView.data()[index]; + }, + + _accessors: function() { + var that = this; + var element = that.element; + var options = that.options; + var getter = kendo.getter; + var textField = element.attr(kendo.attr("text-field")); + var valueField = element.attr(kendo.attr("value-field")); + + if (!options.dataTextField && textField) { + options.dataTextField = textField; + } + + if (!options.dataValueField && valueField) { + options.dataValueField = valueField; + } + + that._text = getter(options.dataTextField); + that._value = getter(options.dataValueField); + }, + + _aria: function(id) { + var that = this, + options = that.options, + element = that._focused.add(that.filterInput); + + if (options.suggest !== undefined) { + element.attr("aria-autocomplete", options.suggest ? "both" : "list"); + } + + id = id ? id + " " + that.ul[0].id : that.ul[0].id; + + element.attr("aria-owns", id); + + that.ul.attr("aria-live", !options.filter || options.filter === "none" ? "off" : "polite"); + }, + + _blur: function() { + var that = this; + + that._change(); + that.close(); + }, + + _change: function() { + var that = this; + var index = that.selectedIndex; + var optionValue = that.options.value; + var value = that.value(); + var trigger; + + if (that._isSelect && !that.listView.isBound() && optionValue) { + value = optionValue; + } + + if (value !== that._old) { + trigger = true; + } else if (index !== undefined && index !== that._oldIndex) { + trigger = true; + } + + if (trigger) { + that._old = value; + that._oldIndex = index; + + // trigger the DOM change event so any subscriber gets notified + that.element.trigger(CHANGE); + + that.trigger(CHANGE); + } + }, + + _data: function() { + return this.dataSource.view(); + }, + + _enable: function() { + var that = this, + options = that.options, + disabled = that.element.is("[disabled]"); + + if (options.enable !== undefined) { + options.enabled = options.enable; + } + + if (!options.enabled || disabled) { + that.enable(false); + } else { + that.readonly(that.element.is("[readonly]")); + } + }, + + _dataValue: function(dataItem) { + var value = this._value(dataItem); + + if (value === undefined) { + value = this._text(dataItem); + } + + return value; + }, + + _height: function(length) { + var that = this; + var list = that.list; + var height = that.options.height; + var visible = that.popup.visible(); + var offsetTop; + var popups; + + if (length) { + popups = list.add(list.parent(".k-animation-container")).show(); + + height = that.ul[0].scrollHeight > height ? height : "auto"; + + popups.height(height); + + if (height !== "auto") { + offsetTop = that.ul[0].offsetTop; + + if (offsetTop) { + height = list.height() - offsetTop; + } + } + + that.ul.height(height); + + if (!visible) { + popups.hide(); + } + } + + return height; + }, + + _adjustListWidth: function() { + var list = this.list, + width = list[0].style.width, + wrapper = this.wrapper, + computedStyle, computedWidth; + + if (!list.data(WIDTH) && width) { + return; + } + + computedStyle = window.getComputedStyle ? window.getComputedStyle(wrapper[0], null) : 0; + computedWidth = computedStyle ? parseFloat(computedStyle.width) : wrapper.outerWidth(); + + if (computedStyle && browser.msie) { // getComputedStyle returns different box in IE. + computedWidth += parseFloat(computedStyle.paddingLeft) + parseFloat(computedStyle.paddingRight) + parseFloat(computedStyle.borderLeftWidth) + parseFloat(computedStyle.borderRightWidth); + } + + if (list.css("box-sizing") !== "border-box") { + width = computedWidth - (list.outerWidth() - list.width()); + } else { + width = computedWidth; + } + + list.css({ + fontFamily: wrapper.css("font-family"), + width: width + }) + .data(WIDTH, width); + + return true; + }, + + _openHandler: function(e) { + this._adjustListWidth(); + + if (this.trigger(OPEN)) { + e.preventDefault(); + } else { + this._focused.attr("aria-expanded", true); + this.ul.attr("aria-hidden", false); + } + }, + + _closeHandler: function(e) { + if (this.trigger(CLOSE)) { + e.preventDefault(); + } else { + this._focused.attr("aria-expanded", false); + this.ul.attr("aria-hidden", true); + } + }, + + _focusItem: function() { + var listView = this.listView; + var focusedItem = listView.focus(); + var index = listView.select(); + + index = index[index.length - 1]; + + if (index === undefined && this.options.highlightFirst && !focusedItem) { + index = 0; + } + + if (index !== undefined) { + listView.focus(index); + } else { + listView.scrollToIndex(0); + } + }, + + _calculateGroupPadding: function(height) { + var ul = this.ul; + var li = $(ul[0].firstChild); + var groupHeader = ul.prev(".k-static-header"); + var padding = 0; + + if (groupHeader[0] && groupHeader[0].style.display !== "none") { + if (height !== "auto") { + padding = kendo.support.scrollbar(); + } + + padding += parseFloat(li.css("border-right-width"), 10) + parseFloat(li.children(".k-group").css("right"), 10); + + groupHeader.css("padding-right", padding); + } + }, + + //use length of the items in ListView + _firstOpen: function() { + var height = this._height(this.listView.data().length); + this._calculateGroupPadding(height); + }, + + _popup: function() { + var that = this; + + that.popup = new ui.Popup(that.list, extend({}, that.options.popup, { + anchor: that.wrapper, + open: proxy(that._openHandler, that), + close: proxy(that._closeHandler, that), + animation: that.options.animation, + isRtl: support.isRtl(that.wrapper) + })); + + if (!that.options.virtual) { + that.popup.one(OPEN, proxy(that._firstOpen, that)); + } + + that._touchScroller = kendo.touchScroller(that.popup.element); + }, + + _makeUnselectable: function() { + if (isIE8) { + this.list.find("*").not(".k-textbox").attr("unselectable", "on"); + } + }, + + _toggleHover: function(e) { + $(e.currentTarget).toggleClass(HOVER, e.type === "mouseenter"); + }, + + _toggle: function(open, preventFocus) { + var that = this; + var touchEnabled = support.mobileOS && (support.touch || support.MSPointers || support.pointers); + + open = open !== undefined? open : !that.popup.visible(); + + if (!preventFocus && !touchEnabled && that._focused[0] !== activeElement()) { + that._focused.focus(); + } + + that[open ? OPEN : CLOSE](); + }, + + _triggerCascade: function() { + var that = this; + + if (!that._bound || that._old !== that.value()) { + that._bound = true; + that.trigger("cascade", { userTriggered: that._userTriggered }); + } + }, + + _unbindDataSource: function() { + var that = this; + + that.dataSource.unbind(PROGRESS, that._progressHandler) + .unbind(REQUESTEND, that._requestEndHandler) + .unbind("error", that._errorHandler); + } + }); + + extend(List, { + inArray: function(node, parentNode) { + var idx, length, siblings = parentNode.children; + + if (!node || node.parentNode !== parentNode) { + return -1; + } + + for (idx = 0, length = siblings.length; idx < length; idx++) { + if (node === siblings[idx]) { + return idx; + } + } + + return -1; + } + }); + + kendo.ui.List = List; + + ui.Select = List.extend({ + init: function(element, options) { + List.fn.init.call(this, element, options); + this._initial = this.element.val(); + }, + + setDataSource: function(dataSource) { + this.options.dataSource = dataSource; + + this._dataSource(); + this._bound = false; + + this.listView.setDataSource(this.dataSource); + + if (this.options.autoBind) { + this.dataSource.fetch(); + } + }, + + close: function() { + this.popup.close(); + }, + + select: function(candidate) { + var that = this; + + if (candidate === undefined) { + return that.selectedIndex; + } else { + that._select(candidate); + + that._old = that._accessor(); + that._oldIndex = that.selectedIndex; + } + }, + + search: function(word) { + word = typeof word === "string" ? word : this.text(); + var that = this; + var length = word.length; + var options = that.options; + var ignoreCase = options.ignoreCase; + var filter = options.filter; + var field = options.dataTextField; + + clearTimeout(that._typing); + + if (!length || length >= options.minLength) { + that._state = "filter"; + that.listView.filter(true); + if (filter === "none") { + that._filter(word); + } else { + that._open = true; + that._filterSource({ + value: ignoreCase ? word.toLowerCase() : word, + field: field, + operator: filter, + ignoreCase: ignoreCase + }); + } + } + }, + + _accessor: function(value, idx) { + return this[this._isSelect ? "_accessorSelect" : "_accessorInput"](value, idx); + }, + + _accessorInput: function(value) { + var element = this.element[0]; + + if (value === undefined) { + return element.value; + } else { + element.value = value; + } + }, + + _accessorSelect: function(value, idx) { + var element = this.element[0]; + var selectedIndex = element.selectedIndex; + var option; + + if (value === undefined) { + option = element.options[selectedIndex]; + + if (option) { + value = option.value; + } + return value || ""; + } else { + if (selectedIndex > -1) { + element.options[selectedIndex].removeAttribute(SELECTED); + } + + if (idx === undefined) { + idx = -1; + } + + if (idx == -1 && value !== "") { + idx = this._custom(value); + } + + element.selectedIndex = idx; + option = element.options[idx]; + if (option) { + option.setAttribute(SELECTED, SELECTED); + } + } + }, + + _custom: function(value) { + var that = this; + var element = that.element; + var custom = that._customOption; + var idx = element[0].children.length - 1; + + if (!custom) { + custom = $("
    ').prev(); + + this.setDataSource(this.options.dataSource); + + this._bound = false; + + this._optionID = kendo.guid(); + + this._selectedIndices = []; + + this._view = []; + this._dataItems = []; + this._values = []; + + this._getter(); + this._templates(); + + this._onScroll = proxy(function() { + var that = this; + clearTimeout(that._scrollId); + + that._scrollId = setTimeout(function() { + that._renderHeader(); + }, 50); + }, this); + + this._fixedHeader(); + + var value = this.options.value; + if (value) { + this._values = $.isArray(value) ? value.slice(0) : [value]; + } + }, + + options: { + name: "StaticList", + dataValueField: null, + selectable: true, + template: null, + groupTemplate: null, + fixedGroupTemplate: null + }, + + events: [ + "click", + "change", + "activate", + "deactivate", + "dataBinding", + "dataBound" + ], + + setDataSource: function(source) { + var that = this; + var dataSource = source || {}; + + dataSource = $.isArray(dataSource) ? { data: dataSource } : dataSource; + dataSource = kendo.data.DataSource.create(dataSource); + + if (that.dataSource) { + that.dataSource.unbind(CHANGE, that._refreshHandler); + } else { + that._refreshHandler = proxy(that.refresh, that); + } + + that.dataSource = dataSource.bind(CHANGE, that._refreshHandler); + }, + + setOptions: function(options) { + Widget.fn.setOptions.call(this, options); + + if (options.dataSource) { + this.setDataSource(options.dataSource); + } + + + this._fixedHeader(); + this._getter(); + this._templates(); + }, + + destroy: function() { + this.element.off(STATIC_LIST_NS); + + if (this._refreshHandler) { + this.dataSource.unbind(CHANGE, this._refreshHandler); + } + + Widget.fn.destroy.call(this); + }, + + scrollToIndex: function(index) { + var item = this.element[0].children[index]; + + if (item) { + this.scroll(item); + } + }, + + _offsetHeight: function() { + var offsetHeight = 0; + var siblings = this.element.prevAll(); + + siblings.each(function() { + var element = $(this); + if (element.is(":visible")) { + if (element.hasClass("k-list-filter")) { + offsetHeight += element.children().height(); + } else { + offsetHeight += element.outerHeight(); + } + } + }); + + return offsetHeight; + }, + + scroll: function (item) { + if (!item) { + return; + } + + if (item[0]) { + item = item[0]; + } + + var ul = this.element[0], + itemOffsetTop = item.offsetTop, + itemOffsetHeight = item.offsetHeight, + ulScrollTop = ul.scrollTop, + ulOffsetHeight = ul.clientHeight, + bottomDistance = itemOffsetTop + itemOffsetHeight, + touchScroller = this._touchScroller, + yDimension, offsetHeight; + + if (touchScroller) { + yDimension = touchScroller.dimensions.y; + + if (yDimension.enabled && itemOffsetTop > yDimension.size) { + itemOffsetTop = itemOffsetTop - yDimension.size + itemOffsetHeight + 4; + + touchScroller.scrollTo(0, -itemOffsetTop); + } + } else { + offsetHeight = this._offsetHeight(); + if (ulScrollTop > (itemOffsetTop - offsetHeight)) { + ulScrollTop = (itemOffsetTop - offsetHeight); + } else if (bottomDistance > (ulScrollTop + ulOffsetHeight + offsetHeight)) { + ulScrollTop = (bottomDistance - ulOffsetHeight - offsetHeight); + } + + ul.scrollTop = ulScrollTop; + } + }, + + selectedDataItems: function(dataItems) { + var getter = this._valueGetter; + + if (dataItems === undefined) { + return this._dataItems.slice(); + } + + this._dataItems = dataItems; + + this._values = $.map(dataItems, function(dataItem) { + return getter(dataItem); + }); + }, + + next: function() { + var current = this.focus(); + + if (!current) { + current = 0; + } else { + current = current.next(); + } + + this.focus(current); + }, + + prev: function() { + var current = this.focus(); + + if (!current) { + current = this.element[0].children.length - 1; + } else { + current = current.prev(); + } + + this.focus(current); + }, + + first: function() { + this.focus(this.element[0].children[0]); + }, + + last: function() { + this.focus(this.element[0].children[this.element[0].children.length - 1]); + }, + + focus: function(candidate) { + var that = this; + var id = that._optionID; + var hasCandidate; + + if (candidate === undefined) { + return that._current; + } + + candidate = that._get(candidate); + candidate = candidate[candidate.length - 1]; + candidate = $(this.element[0].children[candidate]); + + if (that._current) { + that._current + .removeClass(FOCUSED) + .removeAttr("aria-selected") + .removeAttr(ID); + + that.trigger("deactivate"); + } + + hasCandidate = !!candidate[0]; + + if (hasCandidate) { + candidate.addClass(FOCUSED); + that.scroll(candidate); + + candidate.attr("id", id); + } + + that._current = hasCandidate ? candidate : null; + that.trigger("activate"); + }, + + select: function(indices) { + var selectable = this.options.selectable; + var singleSelection = selectable !== "multiple" && selectable !== false; + + var added = []; + var removed = []; + var result; + + if (indices === undefined) { + return this._selectedIndices.slice(); + } + + indices = this._get(indices); + + if (indices.length === 1 && indices[0] === -1) { + indices = []; + } + + if (singleSelection && $.inArray(indices[indices.length - 1], this._selectedIndices) !== -1) { + return; + } + + result = this._deselect(indices); + + removed = result.removed; + indices = result.indices; + + if (indices.length) { + if (singleSelection) { + indices = [indices[indices.length - 1]]; + } + + added = this._select(indices); + } + + if (added.length || removed.length) { + this.trigger("change", { + added: added, + removed: removed + }); + } + }, + + value: function(value, silent) { + var indices; + + if (value === undefined) { + return this._values.slice(); + } + + if (value === "" || value === null) { + value = []; + } + + value = $.isArray(value) || value instanceof ObservableArray ? value.slice(0) : [value]; + + this._values = value; + + if (silent) { + return; + } + + if (this.isBound()) { + indices = this._valueIndices(value); + + if (!indices.length) { + this.select([]); + return; + } + + this._selectedIndices = []; + this._dataItems = []; + this._values = []; + + this.select(indices); + } + }, + + data: function() { + var that = this; + var data = that._view; + var length = data.length; + var result = []; + var idx; + + if (length) { + for (idx = 0; idx < length; idx++) { + result.push(data[idx].item); + } + } + + return result; + }, + + clearIndices: function() { + this._selectedIndices = []; + }, + + filter: function(isFilter) { + this._isFilter = isFilter; + }, + + _click: function(e) { + if (!e.isDefaultPrevented()) { + this.trigger("click", { item: $(e.currentTarget) }); + } + }, + + _dataItemPosition: function(dataItem, values) { + var value = this._valueGetter(dataItem); + var index = -1; + + for (var idx = 0; idx < values.length; idx++) { + if (value == values[idx]) { + index = idx; + break; + } + } + + return index; + }, + + _valueIndices: function(values) { + var data = this._view; + var indices = []; + var idx = 0; + var index; + + if (!values.length) { + return []; + } + + for (; idx < data.length; idx++) { + index = this._dataItemPosition(data[idx].item, values); + + if (index !== -1) { + indices[index] = idx; + } + } + + return this._normalizeIndices(indices); + }, + + _getter: function() { + this._valueGetter = kendo.getter(this.options.dataValueField); + }, + + _deselect: function(indices) { + var children = this.element[0].children; + var selectable = this.options.selectable; + var selectedIndices = this._selectedIndices; + var dataItems = this._dataItems; + var values = this._values; + var removed = []; + var i = 0; + var j; + + indices = indices.slice(); + + if (selectable === true || !indices.length) { + for (; i < selectedIndices.length; i++) { + $(children[selectedIndices[i]]).removeClass("k-state-selected"); + + removed.push({ + position: i, + dataItem: dataItems[i] + }); + } + + this._values = []; + this._dataItems = []; + this._selectedIndices = []; + } else if (selectable === "multiple") { + var index, selectedIndex; + var removedIndices = 0; + + for (; i < indices.length; i++) { + index = indices[i]; + + if (!$(children[index]).hasClass("k-state-selected")) { + continue; + } + + for (j = 0; j < selectedIndices.length; j++) { + selectedIndex = selectedIndices[j]; + + if (selectedIndex === index) { + $(children[selectedIndex]).removeClass("k-state-selected"); + + removed.push({ + position: j + removedIndices, + dataItem: dataItems.splice(j, 1)[0] + }); + + selectedIndices.splice(j, 1); + indices.splice(i, 1); + values.splice(j, 1); + + removedIndices += 1; + i -= 1; + j -= 1; + break; + } + } + } + } + + return { + indices: indices, + removed: removed + }; + }, + + _select: function(indices) { + var children = this.element[0].children; + var data = this._view; + var dataItem, index; + var added = []; + var idx = 0; + + if (indices[indices.length - 1] !== -1) { + this.focus(indices); + } + + for (; idx < indices.length; idx++) { + index = indices[idx]; + dataItem = data[index]; + + if (index === -1 || !dataItem) { + continue; + } + + dataItem = dataItem.item; + + this._selectedIndices.push(index); + this._dataItems.push(dataItem); + this._values.push(this._valueGetter(dataItem)); + + $(children[index]).addClass("k-state-selected").attr("aria-selected", true); + + added.push({ + dataItem: dataItem + }); + } + + return added; + }, + + _get: function(candidate) { + if (typeof candidate === "number") { + candidate = [candidate]; + } else if (!isArray(candidate)) { + candidate = $(candidate).data("index"); + + if (candidate === undefined) { + candidate = -1; + } + + candidate = [candidate]; + } + + return candidate; + }, + + _template: function() { + var that = this; + var options = that.options; + var template = options.template; + + if (!template) { + template = kendo.template('
  • ${' + kendo.expr(options.dataTextField, "data") + "}
  • ", { useWithBlock: false }); + } else { + template = kendo.template(template); + template = function(data) { + return '
  • ' + template(data) + "
  • "; + }; + } + + return template; + }, + + _templates: function() { + var template; + var templates = { + template: this.options.template, + groupTemplate: this.options.groupTemplate, + fixedGroupTemplate: this.options.fixedGroupTemplate + }; + + for (var key in templates) { + template = templates[key]; + if (template && typeof template !== "function") { + templates[key] = kendo.template(template); + } + } + + this.templates = templates; + }, + + _normalizeIndices: function(indices) { + var newIndices = []; + var idx = 0; + + for (; idx < indices.length; idx++) { + if (indices[idx] !== undefined) { + newIndices.push(indices[idx]); + } + } + + return newIndices; + }, + + _firstVisibleItem: function() { + var element = this.element[0]; + var scrollTop = element.scrollTop; + var itemHeight = $(element.children[0]).height(); + var itemIndex = Math.floor(scrollTop / itemHeight) || 0; + var item = element.children[itemIndex]; + var forward = item.offsetTop < scrollTop; + + while (item) { + if (forward) { + if (item.offsetTop >= scrollTop || !item.nextSibling) { + break; + } + + item = item.nextSibling; + } else { + if (item.offsetTop <= scrollTop || !item.previousSibling) { + break; + } + + item = item.previousSibling; + } + } + + return this._view[$(item).data("index")]; + }, + + _fixedHeader: function() { + if (this.dataSource.group().length && this.templates.fixedGroupTemplate) { + this.header.show(); + this.element.scroll(this._onScroll); + } else { + this.header.hide(); + this.element.off("scroll", this._onScroll); + } + }, + + _renderHeader: function() { + var template = this.templates.fixedGroupTemplate; + if (!template) { + return; + } + + var visibleItem = this._firstVisibleItem(); + + if (visibleItem) { + this.header.html(template(visibleItem.group)); + } + }, + + _renderItem: function(context, values) { + var item = '
  • '; + + item += this.templates.template(dataItem); + + if (context.newGroup) { + item += '
    ' + this.templates.groupTemplate(context.group) + '
    '; + } + + return item + "
  • "; + }, + + _render: function() { + var html = ""; + + var i = 0; + var idx = 0; + var context; + var dataContext = []; + var view = this.dataSource.view(); + var values = this.value(); + + var group, newGroup, j; + var isGrouped = this.dataSource.group().length; + + if (isGrouped) { + for (i = 0; i < view.length; i++) { + group = view[i]; + newGroup = true; + + for (j = 0; j < group.items.length; j++) { + context = { item: group.items[j], group: group.value, newGroup: newGroup, index: idx }; + dataContext[idx] = context; + idx += 1; + + html += this._renderItem(context, values); + newGroup = false; + } + } + } else { + for (i = 0; i < view.length; i++) { + context = { item: view[i], index: i }; + + dataContext[i] = context; + + html += this._renderItem(context, values); + } + } + + this._view = dataContext; + + this.element[0].innerHTML = html; + + if (isGrouped && dataContext.length) { + this._renderHeader(); + } + }, + + refresh: function() { + this.trigger("dataBinding"); + + this._render(); + + this._bound = true; + + this.trigger("dataBound"); + + if (!this._isFilter) { + this.value(this._values); + } + }, + + isBound: function() { + return this._bound; + } + }); + + ui.plugin(StaticList); + + function inArray(node, parentNode) { + var idx, length, siblings = parentNode.children; + + if (!node || node.parentNode !== parentNode) { + return -1; + } + + for (idx = 0, length = siblings.length; idx < length; idx++) { + if (node === siblings[idx]) { + return idx; + } + } + + return -1; + } + + function removeFiltersForField(expression, field) { + var filters; + var found = false; + + if (expression.filters) { + filters = $.grep(expression.filters, function(filter) { + found = removeFiltersForField(filter, field); + if (filter.filters) { + return filter.filters.length; + } else { + return filter.field != field; + } + }); + + if (!found && expression.filters.length !== filters.length) { + found = true; + } + + expression.filters = filters; + } + + return found; + } +})(window.kendo.jQuery); + + + + + +(function($, undefined) { + var kendo = window.kendo, + support = kendo.support, + ui = kendo.ui, + Widget = ui.Widget, + keys = kendo.keys, + parse = kendo.parseDate, + adjustDST = kendo.date.adjustDST, + extractFormat = kendo._extractFormat, + template = kendo.template, + getCulture = kendo.getCulture, + transitions = kendo.support.transitions, + transitionOrigin = transitions ? transitions.css + "transform-origin" : "", + cellTemplate = template('#=data.value#', { useWithBlock: false }), + emptyCellTemplate = template('
', { useWithBlock: false }), + browser = kendo.support.browser, + isIE8 = browser.msie && browser.version < 9, + ns = ".kendoCalendar", + CLICK = "click" + ns, + KEYDOWN_NS = "keydown" + ns, + ID = "id", + MIN = "min", + LEFT = "left", + SLIDE = "slideIn", + MONTH = "month", + CENTURY = "century", + CHANGE = "change", + NAVIGATE = "navigate", + VALUE = "value", + HOVER = "k-state-hover", + DISABLED = "k-state-disabled", + FOCUSED = "k-state-focused", + OTHERMONTH = "k-other-month", + OTHERMONTHCLASS = ' class="' + OTHERMONTH + '"', + TODAY = "k-nav-today", + CELLSELECTOR = "td:has(.k-link)", + BLUR = "blur" + ns, + FOCUS = "focus", + FOCUS_WITH_NS = FOCUS + ns, + MOUSEENTER = support.touch ? "touchstart" : "mouseenter", + MOUSEENTER_WITH_NS = support.touch ? "touchstart" + ns : "mouseenter" + ns, + MOUSELEAVE = support.touch ? "touchend" + ns + " touchmove" + ns : "mouseleave" + ns, + MS_PER_MINUTE = 60000, + MS_PER_DAY = 86400000, + PREVARROW = "_prevArrow", + NEXTARROW = "_nextArrow", + ARIA_DISABLED = "aria-disabled", + ARIA_SELECTED = "aria-selected", + proxy = $.proxy, + extend = $.extend, + DATE = Date, + views = { + month: 0, + year: 1, + decade: 2, + century: 3 + }; + + var Calendar = Widget.extend({ + init: function(element, options) { + var that = this, value, id; + + Widget.fn.init.call(that, element, options); + + element = that.wrapper = that.element; + options = that.options; + + options.url = window.unescape(options.url); + + that._templates(); + + that._header(); + + that._footer(that.footer); + + id = element + .addClass("k-widget k-calendar") + .on(MOUSEENTER_WITH_NS + " " + MOUSELEAVE, CELLSELECTOR, mousetoggle) + .on(KEYDOWN_NS, "table.k-content", proxy(that._move, that)) + .on(CLICK, CELLSELECTOR, function(e) { + var link = e.currentTarget.firstChild; + + if (link.href.indexOf("#") != -1) { + e.preventDefault(); + } + + that._click($(link)); + }) + .on("mouseup" + ns, "table.k-content, .k-footer", function() { + that._focusView(that.options.focusOnNav !== false); + }) + .attr(ID); + + if (id) { + that._cellID = id + "_cell_selected"; + } + + normalize(options); + value = parse(options.value, options.format, options.culture); + + that._index = views[options.start]; + that._current = new DATE(+restrictValue(value, options.min, options.max)); + + that._addClassProxy = function() { + that._active = true; + that._cell.addClass(FOCUSED); + }; + + that._removeClassProxy = function() { + that._active = false; + that._cell.removeClass(FOCUSED); + }; + + that.value(value); + + kendo.notify(that); + }, + + options: { + name: "Calendar", + value: null, + min: new DATE(1900, 0, 1), + max: new DATE(2099, 11, 31), + dates: [], + url: "", + culture: "", + footer : "", + format : "", + month : {}, + start: MONTH, + depth: MONTH, + animation: { + horizontal: { + effects: SLIDE, + reverse: true, + duration: 500, + divisor: 2 + }, + vertical: { + effects: "zoomIn", + duration: 400 + } + } + }, + + events: [ + CHANGE, + NAVIGATE + ], + + setOptions: function(options) { + var that = this; + + normalize(options); + + if (!options.dates[0]) { + options.dates = that.options.dates; + } + + Widget.fn.setOptions.call(that, options); + + that._templates(); + + that._footer(that.footer); + that._index = views[that.options.start]; + + that.navigate(); + }, + + destroy: function() { + var that = this, + today = that._today; + + that.element.off(ns); + that._title.off(ns); + that[PREVARROW].off(ns); + that[NEXTARROW].off(ns); + + kendo.destroy(that._table); + + if (today) { + kendo.destroy(today.off(ns)); + } + + Widget.fn.destroy.call(that); + }, + + current: function() { + return this._current; + }, + + view: function() { + return this._view; + }, + + focus: function(table) { + table = table || this._table; + this._bindTable(table); + table.focus(); + }, + + min: function(value) { + return this._option(MIN, value); + }, + + max: function(value) { + return this._option("max", value); + }, + + navigateToPast: function() { + this._navigate(PREVARROW, -1); + }, + + navigateToFuture: function() { + this._navigate(NEXTARROW, 1); + }, + + navigateUp: function() { + var that = this, + index = that._index; + + if (that._title.hasClass(DISABLED)) { + return; + } + + that.navigate(that._current, ++index); + }, + + navigateDown: function(value) { + var that = this, + index = that._index, + depth = that.options.depth; + + if (!value) { + return; + } + + if (index === views[depth]) { + if (+that._value != +value) { + that.value(value); + that.trigger(CHANGE); + } + return; + } + + that.navigate(value, --index); + }, + + navigate: function(value, view) { + view = isNaN(view) ? views[view] : view; + + var that = this, + options = that.options, + culture = options.culture, + min = options.min, + max = options.max, + title = that._title, + from = that._table, + old = that._oldTable, + selectedValue = that._value, + currentValue = that._current, + future = value && +value > +currentValue, + vertical = view !== undefined && view !== that._index, + to, currentView, compare, + disabled; + + if (!value) { + value = currentValue; + } + + that._current = value = new DATE(+restrictValue(value, min, max)); + + if (view === undefined) { + view = that._index; + } else { + that._index = view; + } + + that._view = currentView = calendar.views[view]; + compare = currentView.compare; + + disabled = view === views[CENTURY]; + title.toggleClass(DISABLED, disabled).attr(ARIA_DISABLED, disabled); + + disabled = compare(value, min) < 1; + that[PREVARROW].toggleClass(DISABLED, disabled).attr(ARIA_DISABLED, disabled); + + disabled = compare(value, max) > -1; + that[NEXTARROW].toggleClass(DISABLED, disabled).attr(ARIA_DISABLED, disabled); + + if (from && old && old.data("animating")) { + old.kendoStop(true, true); + from.kendoStop(true, true); + } + + that._oldTable = from; + + if (!from || that._changeView) { + title.html(currentView.title(value, min, max, culture)); + + that._table = to = $(currentView.content(extend({ + min: min, + max: max, + date: value, + url: options.url, + dates: options.dates, + format: options.format, + culture: culture + }, that[currentView.name]))); + + makeUnselectable(to); + + that._animate({ + from: from, + to: to, + vertical: vertical, + future: future + }); + + that._focus(value); + that.trigger(NAVIGATE); + } + + if (view === views[options.depth] && selectedValue) { + that._class("k-state-selected", currentView.toDateString(selectedValue)); + } + + that._class(FOCUSED, currentView.toDateString(value)); + + if (!from && that._cell) { + that._cell.removeClass(FOCUSED); + } + + that._changeView = true; + }, + + value: function(value) { + var that = this, + view = that._view, + options = that.options, + old = that._view, + min = options.min, + max = options.max; + + if (value === undefined) { + return that._value; + } + + value = parse(value, options.format, options.culture); + + if (value !== null) { + value = new DATE(+value); + + if (!isInRange(value, min, max)) { + value = null; + } + } + + that._value = value; + + if (old && value === null && that._cell) { + that._cell.removeClass("k-state-selected"); + } else { + that._changeView = !value || view && view.compare(value, that._current) !== 0; + that.navigate(value); + } + }, + + _move: function(e) { + var that = this, + options = that.options, + key = e.keyCode, + view = that._view, + index = that._index, + currentValue = new DATE(+that._current), + isRtl = kendo.support.isRtl(that.wrapper), + value, prevent, method, temp; + + if (e.target === that._table[0]) { + that._active = true; + } + + if (e.ctrlKey) { + if (key == keys.RIGHT && !isRtl || key == keys.LEFT && isRtl) { + that.navigateToFuture(); + prevent = true; + } else if (key == keys.LEFT && !isRtl || key == keys.RIGHT && isRtl) { + that.navigateToPast(); + prevent = true; + } else if (key == keys.UP) { + that.navigateUp(); + prevent = true; + } else if (key == keys.DOWN) { + that._click($(that._cell[0].firstChild)); + prevent = true; + } + } else { + if (key == keys.RIGHT && !isRtl || key == keys.LEFT && isRtl) { + value = 1; + prevent = true; + } else if (key == keys.LEFT && !isRtl || key == keys.RIGHT && isRtl) { + value = -1; + prevent = true; + } else if (key == keys.UP) { + value = index === 0 ? -7 : -4; + prevent = true; + } else if (key == keys.DOWN) { + value = index === 0 ? 7 : 4; + prevent = true; + } else if (key == keys.ENTER) { + that._click($(that._cell[0].firstChild)); + prevent = true; + } else if (key == keys.HOME || key == keys.END) { + method = key == keys.HOME ? "first" : "last"; + temp = view[method](currentValue); + currentValue = new DATE(temp.getFullYear(), temp.getMonth(), temp.getDate(), currentValue.getHours(), currentValue.getMinutes(), currentValue.getSeconds(), currentValue.getMilliseconds()); + prevent = true; + } else if (key == keys.PAGEUP) { + prevent = true; + that.navigateToPast(); + } else if (key == keys.PAGEDOWN) { + prevent = true; + that.navigateToFuture(); + } + + if (value || method) { + if (!method) { + view.setDate(currentValue, value); + } + + that._focus(restrictValue(currentValue, options.min, options.max)); + } + } + + if (prevent) { + e.preventDefault(); + } + + return that._current; + }, + + _animate: function(options) { + var that = this, + from = options.from, + to = options.to, + active = that._active; + + if (!from) { + to.insertAfter(that.element[0].firstChild); + that._bindTable(to); + } else if (from.parent().data("animating")) { + from.off(ns); + from.parent().kendoStop(true, true).remove(); + from.remove(); + + to.insertAfter(that.element[0].firstChild); + that._focusView(active); + } else if (!from.is(":visible") || that.options.animation === false) { + to.insertAfter(from); + from.off(ns).remove(); + + that._focusView(active); + } else { + that[options.vertical ? "_vertical" : "_horizontal"](from, to, options.future); + } + }, + + _horizontal: function(from, to, future) { + var that = this, + active = that._active, + horizontal = that.options.animation.horizontal, + effects = horizontal.effects, + viewWidth = from.outerWidth(); + + if (effects && effects.indexOf(SLIDE) != -1) { + from.add(to).css({ width: viewWidth }); + + from.wrap("
"); + + that._focusView(active, from); + + from.parent() + .css({ + position: "relative", + width: viewWidth * 2, + "float": LEFT, + "margin-left": future ? 0 : -viewWidth + }); + + to[future ? "insertAfter" : "insertBefore"](from); + + extend(horizontal, { + effects: SLIDE + ":" + (future ? "right" : LEFT), + complete: function() { + from.off(ns).remove(); + that._oldTable = null; + + to.unwrap(); + + that._focusView(active); + + } + }); + + from.parent().kendoStop(true, true).kendoAnimate(horizontal); + } + }, + + _vertical: function(from, to) { + var that = this, + vertical = that.options.animation.vertical, + effects = vertical.effects, + active = that._active, //active state before from's blur + cell, position; + + if (effects && effects.indexOf("zoom") != -1) { + to.css({ + position: "absolute", + top: from.prev().outerHeight(), + left: 0 + }).insertBefore(from); + + if (transitionOrigin) { + cell = that._cellByDate(that._view.toDateString(that._current)); + position = cell.position(); + position = (position.left + parseInt(cell.width() / 2, 10)) + "px" + " " + (position.top + parseInt(cell.height() / 2, 10) + "px"); + to.css(transitionOrigin, position); + } + + from.kendoStop(true, true).kendoAnimate({ + effects: "fadeOut", + duration: 600, + complete: function() { + from.off(ns).remove(); + that._oldTable = null; + + to.css({ + position: "static", + top: 0, + left: 0 + }); + + that._focusView(active); + } + }); + + to.kendoStop(true, true).kendoAnimate(vertical); + } + }, + + _cellByDate: function(value) { + return this._table.find("td:not(." + OTHERMONTH + ")") + .filter(function() { + return $(this.firstChild).attr(kendo.attr(VALUE)) === value; + }); + }, + + _class: function(className, value) { + var that = this, + id = that._cellID, + cell = that._cell; + + if (cell) { + cell.removeAttr(ARIA_SELECTED) + .removeAttr("aria-label") + .removeAttr(ID); + } + + cell = that._table + .find("td:not(." + OTHERMONTH + ")") + .removeClass(className) + .filter(function() { + return $(this.firstChild).attr(kendo.attr(VALUE)) === value; + }) + .attr(ARIA_SELECTED, true); + + if (className === FOCUSED && !that._active && that.options.focusOnNav !== false) { + className = ""; + } + + cell.addClass(className); + + if (cell[0]) { + that._cell = cell; + } + + if (id) { + cell.attr(ID, id); + that._table.removeAttr("aria-activedescendant").attr("aria-activedescendant", id); + } + }, + + _bindTable: function (table) { + table + .on(FOCUS_WITH_NS, this._addClassProxy) + .on(BLUR, this._removeClassProxy); + }, + + _click: function(link) { + var that = this, + options = that.options, + currentValue = new Date(+that._current), + value = link.attr(kendo.attr(VALUE)).split("/"); + + //Safari cannot create correctly date from "1/1/2090" + value = new DATE(value[0], value[1], value[2]); + adjustDST(value, 0); + + that._view.setDate(currentValue, value); + + that.navigateDown(restrictValue(currentValue, options.min, options.max)); + }, + + _focus: function(value) { + var that = this, + view = that._view; + + if (view.compare(value, that._current) !== 0) { + that.navigate(value); + } else { + that._current = value; + that._class(FOCUSED, view.toDateString(value)); + } + }, + + _focusView: function(active, table) { + if (active) { + this.focus(table); + } + }, + + _footer: function(template) { + var that = this, + today = getToday(), + element = that.element, + footer = element.find(".k-footer"); + + if (!template) { + that._toggle(false); + footer.hide(); + return; + } + + if (!footer[0]) { + footer = $('').appendTo(element); + } + + that._today = footer.show() + .find(".k-link") + .html(template(today)) + .attr("title", kendo.toString(today, "D", that.options.culture)); + + that._toggle(); + }, + + _header: function() { + var that = this, + element = that.element, + links; + + if (!element.find(".k-header")[0]) { + element.html('
' + + '' + + '' + + '' + + '
'); + } + + links = element.find(".k-link") + .on(MOUSEENTER_WITH_NS + " " + MOUSELEAVE + " " + FOCUS_WITH_NS + " " + BLUR, mousetoggle) + .click(false); + + that._title = links.eq(1).on(CLICK, function() { that._active = that.options.focusOnNav !== false; that.navigateUp(); }); + that[PREVARROW] = links.eq(0).on(CLICK, function() { that._active = that.options.focusOnNav !== false; that.navigateToPast(); }); + that[NEXTARROW] = links.eq(2).on(CLICK, function() { that._active = that.options.focusOnNav !== false; that.navigateToFuture(); }); + }, + + _navigate: function(arrow, modifier) { + var that = this, + index = that._index + 1, + currentValue = new DATE(+that._current); + + arrow = that[arrow]; + + if (!arrow.hasClass(DISABLED)) { + if (index > 3) { + currentValue.setFullYear(currentValue.getFullYear() + 100 * modifier); + } else { + calendar.views[index].setDate(currentValue, modifier); + } + + that.navigate(currentValue); + } + }, + + _option: function(option, value) { + var that = this, + options = that.options, + currentValue = that._value || that._current, + isBigger; + + if (value === undefined) { + return options[option]; + } + + value = parse(value, options.format, options.culture); + + if (!value) { + return; + } + + options[option] = new DATE(+value); + + if (option === MIN) { + isBigger = value > currentValue; + } else { + isBigger = currentValue > value; + } + + if (isBigger || isEqualMonth(currentValue, value)) { + if (isBigger) { + that._value = null; + } + that._changeView = true; + } + + if (!that._changeView) { + that._changeView = !!(options.month.content || options.month.empty); + } + + that.navigate(that._value); + + that._toggle(); + }, + + _toggle: function(toggle) { + var that = this, + options = that.options, + link = that._today; + + if (toggle === undefined) { + toggle = isInRange(getToday(), options.min, options.max); + } + + if (link) { + link.off(CLICK); + + if (toggle) { + link.addClass(TODAY) + .removeClass(DISABLED) + .on(CLICK, proxy(that._todayClick, that)); + } else { + link.removeClass(TODAY) + .addClass(DISABLED) + .on(CLICK, prevent); + } + } + }, + + _todayClick: function(e) { + var that = this, + depth = views[that.options.depth], + today = getToday(); + + e.preventDefault(); + + if (that._view.compare(that._current, today) === 0 && that._index == depth) { + that._changeView = false; + } + + that._value = today; + that.navigate(today, depth); + + that.trigger(CHANGE); + }, + + _templates: function() { + var that = this, + options = that.options, + footer = options.footer, + month = options.month, + content = month.content, + empty = month.empty; + + that.month = { + content: template('' + (content || "#=data.value#") + '', { useWithBlock: !!content }), + empty: template('
", { useWithBlock: !!empty }) + }; + + that.footer = footer !== false ? template(footer || '#= kendo.toString(data,"D","' + options.culture +'") #', { useWithBlock: false }) : null; + } + }); + + ui.plugin(Calendar); + + var calendar = { + firstDayOfMonth: function (date) { + return new DATE( + date.getFullYear(), + date.getMonth(), + 1 + ); + }, + + firstVisibleDay: function (date, calendarInfo) { + calendarInfo = calendarInfo || kendo.culture().calendar; + + var firstDay = calendarInfo.firstDay, + firstVisibleDay = new DATE(date.getFullYear(), date.getMonth(), 0, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()); + + while (firstVisibleDay.getDay() != firstDay) { + calendar.setTime(firstVisibleDay, -1 * MS_PER_DAY); + } + + return firstVisibleDay; + }, + + setTime: function (date, time) { + var tzOffsetBefore = date.getTimezoneOffset(), + resultDATE = new DATE(date.getTime() + time), + tzOffsetDiff = resultDATE.getTimezoneOffset() - tzOffsetBefore; + + date.setTime(resultDATE.getTime() + tzOffsetDiff * MS_PER_MINUTE); + }, + views: [{ + name: MONTH, + title: function(date, min, max, culture) { + return getCalendarInfo(culture).months.names[date.getMonth()] + " " + date.getFullYear(); + }, + content: function(options) { + var that = this, + idx = 0, + min = options.min, + max = options.max, + date = options.date, + dates = options.dates, + format = options.format, + culture = options.culture, + navigateUrl = options.url, + hasUrl = navigateUrl && dates[0], + currentCalendar = getCalendarInfo(culture), + firstDayIdx = currentCalendar.firstDay, + days = currentCalendar.days, + names = shiftArray(days.names, firstDayIdx), + shortNames = shiftArray(days.namesShort, firstDayIdx), + start = calendar.firstVisibleDay(date, currentCalendar), + firstDayOfMonth = that.first(date), + lastDayOfMonth = that.last(date), + toDateString = that.toDateString, + today = new DATE(), + html = '
 ' + (empty || " ") + "
'; + + for (; idx < 7; idx++) { + html += ''; + } + + today = new DATE(today.getFullYear(), today.getMonth(), today.getDate()); + adjustDST(today, 0); + today = +today; + + return view({ + cells: 42, + perRow: 7, + html: html += '', + start: new DATE(start.getFullYear(), start.getMonth(), start.getDate()), + min: new DATE(min.getFullYear(), min.getMonth(), min.getDate()), + max: new DATE(max.getFullYear(), max.getMonth(), max.getDate()), + content: options.content, + empty: options.empty, + setter: that.setDate, + build: function(date) { + var cssClass = [], + day = date.getDay(), + linkClass = "", + url = "#"; + + if (date < firstDayOfMonth || date > lastDayOfMonth) { + cssClass.push(OTHERMONTH); + } + + if (+date === today) { + cssClass.push("k-today"); + } + + if (day === 0 || day === 6) { + cssClass.push("k-weekend"); + } + + if (hasUrl && inArray(+date, dates)) { + url = navigateUrl.replace("{0}", kendo.toString(date, format, culture)); + linkClass = " k-action-link"; + } + + return { + date: date, + dates: dates, + ns: kendo.ns, + title: kendo.toString(date, "D", culture), + value: date.getDate(), + dateString: toDateString(date), + cssClass: cssClass[0] ? ' class="' + cssClass.join(" ") + '"' : "", + linkClass: linkClass, + url: url + }; + } + }); + }, + first: function(date) { + return calendar.firstDayOfMonth(date); + }, + last: function(date) { + var last = new DATE(date.getFullYear(), date.getMonth() + 1, 0), + first = calendar.firstDayOfMonth(date), + timeOffset = Math.abs(last.getTimezoneOffset() - first.getTimezoneOffset()); + + if (timeOffset) { + last.setHours(first.getHours() + (timeOffset / 60)); + } + + return last; + }, + compare: function(date1, date2) { + var result, + month1 = date1.getMonth(), + year1 = date1.getFullYear(), + month2 = date2.getMonth(), + year2 = date2.getFullYear(); + + if (year1 > year2) { + result = 1; + } else if (year1 < year2) { + result = -1; + } else { + result = month1 == month2 ? 0 : month1 > month2 ? 1 : -1; + } + + return result; + }, + setDate: function(date, value) { + var hours = date.getHours(); + if (value instanceof DATE) { + date.setFullYear(value.getFullYear(), value.getMonth(), value.getDate()); + } else { + calendar.setTime(date, value * MS_PER_DAY); + } + adjustDST(date, hours); + }, + toDateString: function(date) { + return date.getFullYear() + "/" + date.getMonth() + "/" + date.getDate(); + } + }, + { + name: "year", + title: function(date) { + return date.getFullYear(); + }, + content: function(options) { + var namesAbbr = getCalendarInfo(options.culture).months.namesAbbr, + toDateString = this.toDateString, + min = options.min, + max = options.max; + + return view({ + min: new DATE(min.getFullYear(), min.getMonth(), 1), + max: new DATE(max.getFullYear(), max.getMonth(), 1), + start: new DATE(options.date.getFullYear(), 0, 1), + setter: this.setDate, + build: function(date) { + return { + value: namesAbbr[date.getMonth()], + ns: kendo.ns, + dateString: toDateString(date), + cssClass: "" + }; + } + }); + }, + first: function(date) { + return new DATE(date.getFullYear(), 0, date.getDate()); + }, + last: function(date) { + return new DATE(date.getFullYear(), 11, date.getDate()); + }, + compare: function(date1, date2){ + return compare(date1, date2); + }, + setDate: function(date, value) { + var month, + hours = date.getHours(); + + if (value instanceof DATE) { + month = value.getMonth(); + + date.setFullYear(value.getFullYear(), month, date.getDate()); + + if (month !== date.getMonth()) { + date.setDate(0); + } + } else { + month = date.getMonth() + value; + + date.setMonth(month); + + if (month > 11) { + month -= 12; + } + + if (month > 0 && date.getMonth() != month) { + date.setDate(0); + } + } + + adjustDST(date, hours); + }, + toDateString: function(date) { + return date.getFullYear() + "/" + date.getMonth() + "/1"; + } + }, + { + name: "decade", + title: function(date, min, max) { + return title(date, min, max, 10); + }, + content: function(options) { + var year = options.date.getFullYear(), + toDateString = this.toDateString; + + return view({ + start: new DATE(year - year % 10 - 1, 0, 1), + min: new DATE(options.min.getFullYear(), 0, 1), + max: new DATE(options.max.getFullYear(), 0, 1), + setter: this.setDate, + build: function(date, idx) { + return { + value: date.getFullYear(), + ns: kendo.ns, + dateString: toDateString(date), + cssClass: idx === 0 || idx == 11 ? OTHERMONTHCLASS : "" + }; + } + }); + }, + first: function(date) { + var year = date.getFullYear(); + return new DATE(year - year % 10, date.getMonth(), date.getDate()); + }, + last: function(date) { + var year = date.getFullYear(); + return new DATE(year - year % 10 + 9, date.getMonth(), date.getDate()); + }, + compare: function(date1, date2) { + return compare(date1, date2, 10); + }, + setDate: function(date, value) { + setDate(date, value, 1); + }, + toDateString: function(date) { + return date.getFullYear() + "/0/1"; + } + }, + { + name: CENTURY, + title: function(date, min, max) { + return title(date, min, max, 100); + }, + content: function(options) { + var year = options.date.getFullYear(), + min = options.min.getFullYear(), + max = options.max.getFullYear(), + toDateString = this.toDateString, + minYear = min, + maxYear = max; + + minYear = minYear - minYear % 10; + maxYear = maxYear - maxYear % 10; + + if (maxYear - minYear < 10) { + maxYear = minYear + 9; + } + + return view({ + start: new DATE(year - year % 100 - 10, 0, 1), + min: new DATE(minYear, 0, 1), + max: new DATE(maxYear, 0, 1), + setter: this.setDate, + build: function(date, idx) { + var start = date.getFullYear(), + end = start + 9; + + if (start < min) { + start = min; + } + + if (end > max) { + end = max; + } + + return { + ns: kendo.ns, + value: start + " - " + end, + dateString: toDateString(date), + cssClass: idx === 0 || idx == 11 ? OTHERMONTHCLASS : "" + }; + } + }); + }, + first: function(date) { + var year = date.getFullYear(); + return new DATE(year - year % 100, date.getMonth(), date.getDate()); + }, + last: function(date) { + var year = date.getFullYear(); + return new DATE(year - year % 100 + 99, date.getMonth(), date.getDate()); + }, + compare: function(date1, date2) { + return compare(date1, date2, 100); + }, + setDate: function(date, value) { + setDate(date, value, 10); + }, + toDateString: function(date) { + var year = date.getFullYear(); + return (year - year % 10) + "/0/1"; + } + }] + }; + + function title(date, min, max, modular) { + var start = date.getFullYear(), + minYear = min.getFullYear(), + maxYear = max.getFullYear(), + end; + + start = start - start % modular; + end = start + (modular - 1); + + if (start < minYear) { + start = minYear; + } + if (end > maxYear) { + end = maxYear; + } + + return start + "-" + end; + } + + function view(options) { + var idx = 0, + data, + min = options.min, + max = options.max, + start = options.start, + setter = options.setter, + build = options.build, + length = options.cells || 12, + cellsPerRow = options.perRow || 4, + content = options.content || cellTemplate, + empty = options.empty || emptyCellTemplate, + html = options.html || '
' + shortNames[idx] + '
'; + + for(; idx < length; idx++) { + if (idx > 0 && idx % cellsPerRow === 0) { + html += ''; + } + + data = build(start, idx); + + html += isInRange(start, min, max) ? content(data) : empty(data); + + setter(start, 1); + } + + return html + "
"; + } + + function compare(date1, date2, modifier) { + var year1 = date1.getFullYear(), + start = date2.getFullYear(), + end = start, + result = 0; + + if (modifier) { + start = start - start % modifier; + end = start - start % modifier + modifier - 1; + } + + if (year1 > end) { + result = 1; + } else if (year1 < start) { + result = -1; + } + + return result; + } + + function getToday() { + var today = new DATE(); + return new DATE(today.getFullYear(), today.getMonth(), today.getDate()); + } + + function restrictValue (value, min, max) { + var today = getToday(); + + if (value) { + today = new DATE(+value); + } + + if (min > today) { + today = new DATE(+min); + } else if (max < today) { + today = new DATE(+max); + } + return today; + } + + function isInRange(date, min, max) { + return +date >= +min && +date <= +max; + } + + function shiftArray(array, idx) { + return array.slice(idx).concat(array.slice(0, idx)); + } + + function setDate(date, value, multiplier) { + value = value instanceof DATE ? value.getFullYear() : date.getFullYear() + multiplier * value; + date.setFullYear(value); + } + + function mousetoggle(e) { + $(this).toggleClass(HOVER, MOUSEENTER.indexOf(e.type) > -1 || e.type == FOCUS); + } + + function prevent (e) { + e.preventDefault(); + } + + function getCalendarInfo(culture) { + return getCulture(culture).calendars.standard; + } + + function normalize(options) { + var start = views[options.start], + depth = views[options.depth], + culture = getCulture(options.culture); + + options.format = extractFormat(options.format || culture.calendars.standard.patterns.d); + + if (isNaN(start)) { + start = 0; + options.start = MONTH; + } + + if (depth === undefined || depth > start) { + options.depth = MONTH; + } + + if (!options.dates) { + options.dates = []; + } + } + + function makeUnselectable(element) { + if (isIE8) { + element.find("*").attr("unselectable", "on"); + } + } + + function inArray(date, dates) { + for(var i = 0, length = dates.length; i < length; i++) { + if (date === +dates[i]) { + return true; + } + } + return false; + } + + function isEqualDatePart(value1, value2) { + if (value1) { + return value1.getFullYear() === value2.getFullYear() && + value1.getMonth() === value2.getMonth() && + value1.getDate() === value2.getDate(); + } + + return false; + } + + function isEqualMonth(value1, value2) { + if (value1) { + return value1.getFullYear() === value2.getFullYear() && + value1.getMonth() === value2.getMonth(); + } + + return false; + } + + calendar.isEqualDatePart = isEqualDatePart; + calendar.makeUnselectable = makeUnselectable; + calendar.restrictValue = restrictValue; + calendar.isInRange = isInRange; + calendar.normalize = normalize; + calendar.viewsEnum = views; + + kendo.calendar = calendar; +})(window.kendo.jQuery); + + + + + +(function($, undefined) { + var kendo = window.kendo, + ui = kendo.ui, + Widget = ui.Widget, + parse = kendo.parseDate, + keys = kendo.keys, + template = kendo.template, + activeElement = kendo._activeElement, + DIV = "
", + SPAN = "", + ns = ".kendoDatePicker", + CLICK = "click" + ns, + OPEN = "open", + CLOSE = "close", + CHANGE = "change", + DATEVIEW = "dateView", + DISABLED = "disabled", + READONLY = "readonly", + DEFAULT = "k-state-default", + FOCUSED = "k-state-focused", + SELECTED = "k-state-selected", + STATEDISABLED = "k-state-disabled", + HOVER = "k-state-hover", + KEYDOWN = "keydown" + ns, + HOVEREVENTS = "mouseenter" + ns + " mouseleave" + ns, + MOUSEDOWN = "mousedown" + ns, + ID = "id", + MIN = "min", + MAX = "max", + MONTH = "month", + ARIA_DISABLED = "aria-disabled", + ARIA_EXPANDED = "aria-expanded", + ARIA_HIDDEN = "aria-hidden", + ARIA_READONLY = "aria-readonly", + calendar = kendo.calendar, + isInRange = calendar.isInRange, + restrictValue = calendar.restrictValue, + isEqualDatePart = calendar.isEqualDatePart, + extend = $.extend, + proxy = $.proxy, + DATE = Date; + + function normalize(options) { + var parseFormats = options.parseFormats, + format = options.format; + + calendar.normalize(options); + + parseFormats = $.isArray(parseFormats) ? parseFormats : [parseFormats]; + if ($.inArray(format, parseFormats) === -1) { + parseFormats.splice(0, 0, options.format); + } + + options.parseFormats = parseFormats; + } + + function preventDefault(e) { + e.preventDefault(); + } + + var DateView = function(options) { + var that = this, id, + body = document.body, + div = $(DIV).attr(ARIA_HIDDEN, "true") + .addClass("k-calendar-container") + .appendTo(body); + + that.options = options = options || {}; + id = options.id; + + if (id) { + id += "_dateview"; + + div.attr(ID, id); + that._dateViewID = id; + } + + that.popup = new ui.Popup(div, extend(options.popup, options, { name: "Popup", isRtl: kendo.support.isRtl(options.anchor) })); + that.div = div; + + that.value(options.value); + }; + + DateView.prototype = { + _calendar: function() { + var that = this; + var calendar = that.calendar; + var options = that.options; + var div; + + if (!calendar) { + div = $(DIV).attr(ID, kendo.guid()) + .appendTo(that.popup.element) + .on(MOUSEDOWN, preventDefault) + .on(CLICK, "td:has(.k-link)", proxy(that._click, that)); + + that.calendar = calendar = new ui.Calendar(div); + that._setOptions(options); + + kendo.calendar.makeUnselectable(calendar.element); + + calendar.navigate(that._value || that._current, options.start); + + that.value(that._value); + } + }, + + _setOptions: function(options) { + this.calendar.setOptions({ + focusOnNav: false, + change: options.change, + culture: options.culture, + dates: options.dates, + depth: options.depth, + footer: options.footer, + format: options.format, + max: options.max, + min: options.min, + month: options.month, + start: options.start + }); + }, + + setOptions: function(options) { + var old = this.options; + + this.options = extend(old, options, { + change: old.change, + close: old.close, + open: old.open + }); + + if (this.calendar) { + this._setOptions(this.options); + } + }, + + destroy: function() { + this.popup.destroy(); + }, + + open: function() { + var that = this; + + that._calendar(); + that.popup.open(); + }, + + close: function() { + this.popup.close(); + }, + + min: function(value) { + this._option(MIN, value); + }, + + max: function(value) { + this._option(MAX, value); + }, + + toggle: function() { + var that = this; + + that[that.popup.visible() ? CLOSE : OPEN](); + }, + + move: function(e) { + var that = this, + key = e.keyCode, + calendar = that.calendar, + selectIsClicked = e.ctrlKey && key == keys.DOWN || key == keys.ENTER; + + if (key == keys.ESC) { + that.close(); + return; + } + + if (e.altKey) { + if (key == keys.DOWN) { + that.open(); + e.preventDefault(); + } else if (key == keys.UP) { + that.close(); + e.preventDefault(); + } + return; + } + + if (!that.popup.visible()){ + return; + } + + if (selectIsClicked && calendar._cell.hasClass(SELECTED)) { + that.close(); + e.preventDefault(); + return; + } + + that._current = calendar._move(e); + }, + + current: function(date) { + this._current = date; + this.calendar._focus(date); + }, + + value: function(value) { + var that = this, + calendar = that.calendar, + options = that.options; + + that._value = value; + that._current = new DATE(+restrictValue(value, options.min, options.max)); + + if (calendar) { + calendar.value(value); + } + }, + + _click: function(e) { + if (e.currentTarget.className.indexOf(SELECTED) !== -1) { + this.close(); + } + }, + + _option: function(option, value) { + var that = this; + var calendar = that.calendar; + + that.options[option] = value; + + if (calendar) { + calendar[option](value); + } + } + }; + + DateView.normalize = normalize; + + kendo.DateView = DateView; + + var DatePicker = Widget.extend({ + init: function(element, options) { + var that = this, + disabled, + div; + + Widget.fn.init.call(that, element, options); + element = that.element; + options = that.options; + + options.min = parse(element.attr("min")) || parse(options.min); + options.max = parse(element.attr("max")) || parse(options.max); + + normalize(options); + + that._wrapper(); + + that.dateView = new DateView(extend({}, options, { + id: element.attr(ID), + anchor: that.wrapper, + change: function() { + // calendar is the current scope + that._change(this.value()); + that.close(); + }, + close: function(e) { + if (that.trigger(CLOSE)) { + e.preventDefault(); + } else { + element.attr(ARIA_EXPANDED, false); + div.attr(ARIA_HIDDEN, true); + } + }, + open: function(e) { + var options = that.options, + date; + + if (that.trigger(OPEN)) { + e.preventDefault(); + } else { + if (that.element.val() !== that._oldText) { + date = parse(element.val(), options.parseFormats, options.culture); + + that.dateView[date ? "current" : "value"](date); + } + + element.attr(ARIA_EXPANDED, true); + div.attr(ARIA_HIDDEN, false); + + that._updateARIA(date); + + } + } + })); + div = that.dateView.div; + + that._icon(); + + try { + element[0].setAttribute("type", "text"); + } catch(e) { + element[0].type = "text"; + } + + element + .addClass("k-input") + .attr({ + role: "combobox", + "aria-expanded": false, + "aria-owns": that.dateView._dateViewID + }); + + that._reset(); + that._template(); + + disabled = element.is("[disabled]"); + if (disabled) { + that.enable(false); + } else { + that.readonly(element.is("[readonly]")); + } + + that._old = that._update(options.value || that.element.val()); + that._oldText = element.val(); + + kendo.notify(that); + }, + events: [ + OPEN, + CLOSE, + CHANGE], + options: { + name: "DatePicker", + value: null, + footer: "", + format: "", + culture: "", + parseFormats: [], + min: new Date(1900, 0, 1), + max: new Date(2099, 11, 31), + start: MONTH, + depth: MONTH, + animation: {}, + month : {}, + dates: [], + ARIATemplate: 'Current focused date is #=kendo.toString(data.current, "D")#' + }, + + setOptions: function(options) { + var that = this; + var value = that._value; + + Widget.fn.setOptions.call(that, options); + + options = that.options; + + options.min = parse(options.min); + options.max = parse(options.max); + + normalize(options); + + that.dateView.setOptions(options); + + if (value) { + that.element.val(kendo.toString(value, options.format, options.culture)); + that._updateARIA(value); + } + }, + + _editable: function(options) { + var that = this, + icon = that._dateIcon.off(ns), + element = that.element.off(ns), + wrapper = that._inputWrapper.off(ns), + readonly = options.readonly, + disable = options.disable; + + if (!readonly && !disable) { + wrapper + .addClass(DEFAULT) + .removeClass(STATEDISABLED) + .on(HOVEREVENTS, that._toggleHover); + + element.removeAttr(DISABLED) + .removeAttr(READONLY) + .attr(ARIA_DISABLED, false) + .attr(ARIA_READONLY, false) + .on("keydown" + ns, proxy(that._keydown, that)) + .on("focusout" + ns, proxy(that._blur, that)) + .on("focus" + ns, function() { + that._inputWrapper.addClass(FOCUSED); + }); + + icon.on(CLICK, proxy(that._click, that)) + .on(MOUSEDOWN, preventDefault); + } else { + wrapper + .addClass(disable ? STATEDISABLED : DEFAULT) + .removeClass(disable ? DEFAULT : STATEDISABLED); + + element.attr(DISABLED, disable) + .attr(READONLY, readonly) + .attr(ARIA_DISABLED, disable) + .attr(ARIA_READONLY, readonly); + } + }, + + readonly: function(readonly) { + this._editable({ + readonly: readonly === undefined ? true : readonly, + disable: false + }); + }, + + enable: function(enable) { + this._editable({ + readonly: false, + disable: !(enable = enable === undefined ? true : enable) + }); + }, + + destroy: function() { + var that = this; + + Widget.fn.destroy.call(that); + + that.dateView.destroy(); + + that.element.off(ns); + that._dateIcon.off(ns); + that._inputWrapper.off(ns); + + if (that._form) { + that._form.off("reset", that._resetHandler); + } + }, + + open: function() { + this.dateView.open(); + }, + + close: function() { + this.dateView.close(); + }, + + min: function(value) { + return this._option(MIN, value); + }, + + max: function(value) { + return this._option(MAX, value); + }, + + value: function(value) { + var that = this; + + if (value === undefined) { + return that._value; + } + + that._old = that._update(value); + + if (that._old === null) { + that.element.val(""); + } + + that._oldText = that.element.val(); + }, + + _toggleHover: function(e) { + $(e.currentTarget).toggleClass(HOVER, e.type === "mouseenter"); + }, + + _blur: function() { + var that = this, + value = that.element.val(); + + that.close(); + if (value !== that._oldText) { + that._change(value); + } + + that._inputWrapper.removeClass(FOCUSED); + }, + + _click: function() { + var that = this, + element = that.element; + + that.dateView.toggle(); + + if (!kendo.support.touch && element[0] !== activeElement()) { + element.focus(); + } + }, + + _change: function(value) { + var that = this; + + value = that._update(value); + + if (+that._old != +value) { + that._old = value; + that._oldText = that.element.val(); + + // trigger the DOM change event so any subscriber gets notified + that.element.trigger(CHANGE); + + that.trigger(CHANGE); + } + }, + + _keydown: function(e) { + var that = this, + dateView = that.dateView, + value = that.element.val(); + + if (!dateView.popup.visible() && e.keyCode == keys.ENTER && value !== that._oldText) { + that._change(value); + } else { + dateView.move(e); + that._updateARIA(dateView._current); + } + }, + + _icon: function() { + var that = this, + element = that.element, + icon; + + icon = element.next("span.k-select"); + + if (!icon[0]) { + icon = $('select').insertAfter(element); + } + + that._dateIcon = icon.attr({ + "role": "button", + "aria-controls": that.dateView._dateViewID + }); + }, + + _option: function(option, value) { + var that = this, + options = that.options; + + if (value === undefined) { + return options[option]; + } + + value = parse(value, options.parseFormats, options.culture); + + if (!value) { + return; + } + + options[option] = new DATE(+value); + that.dateView[option](value); + }, + + _update: function(value) { + var that = this, + options = that.options, + min = options.min, + max = options.max, + current = that._value, + date = parse(value, options.parseFormats, options.culture), + isSameType = (date === null && current === null) || (date instanceof Date && current instanceof Date), + formattedValue; + + if (+date === +current && isSameType) { + formattedValue = kendo.toString(date, options.format, options.culture); + + if (formattedValue !== value) { + that.element.val(date === null ? value : formattedValue); + } + + return date; + } + + if (date !== null && isEqualDatePart(date, min)) { + date = restrictValue(date, min, max); + } else if (!isInRange(date, min, max)) { + date = null; + } + + that._value = date; + that.dateView.value(date); + that.element.val(date ? kendo.toString(date, options.format, options.culture) : value); + that._updateARIA(date); + + return date; + }, + + _wrapper: function() { + var that = this, + element = that.element, + wrapper; + + wrapper = element.parents(".k-datepicker"); + + if (!wrapper[0]) { + wrapper = element.wrap(SPAN).parent().addClass("k-picker-wrap k-state-default"); + wrapper = wrapper.wrap(SPAN).parent(); + } + + wrapper[0].style.cssText = element[0].style.cssText; + element.css({ + width: "100%", + height: element[0].style.height + }); + + that.wrapper = wrapper.addClass("k-widget k-datepicker k-header") + .addClass(element[0].className); + + that._inputWrapper = $(wrapper[0].firstChild); + }, + + _reset: function() { + var that = this, + element = that.element, + formId = element.attr("form"), + form = formId ? $("#" + formId) : element.closest("form"); + + if (form[0]) { + that._resetHandler = function() { + that.value(element[0].defaultValue); + }; + + that._form = form.on("reset", that._resetHandler); + } + }, + + _template: function() { + this._ariaTemplate = template(this.options.ARIATemplate); + }, + + _updateARIA: function(date) { + var cell; + var that = this; + var calendar = that.dateView.calendar; + + that.element.removeAttr("aria-activedescendant"); + + if (calendar) { + cell = calendar._cell; + cell.attr("aria-label", that._ariaTemplate({ current: date || calendar.current() })); + + that.element.attr("aria-activedescendant", cell.attr("id")); + } + } + }); + + ui.plugin(DatePicker); + +})(window.kendo.jQuery); + + + + + +(function ($, undefined) { + var kendo = window.kendo, + support = kendo.support, + caret = kendo.caret, + activeElement = kendo._activeElement, + placeholderSupported = support.placeholder, + ui = kendo.ui, + List = ui.List, + keys = kendo.keys, + DataSource = kendo.data.DataSource, + ARIA_DISABLED = "aria-disabled", + ARIA_READONLY = "aria-readonly", + DEFAULT = "k-state-default", + DISABLED = "disabled", + READONLY = "readonly", + FOCUSED = "k-state-focused", + SELECTED = "k-state-selected", + STATEDISABLED = "k-state-disabled", + HOVER = "k-state-hover", + ns = ".kendoAutoComplete", + HOVEREVENTS = "mouseenter" + ns + " mouseleave" + ns, + proxy = $.proxy; + + function indexOfWordAtCaret(caretIdx, text, separator) { + return separator ? text.substring(0, caretIdx).split(separator).length - 1 : 0; + } + + function wordAtCaret(caretIdx, text, separator) { + return text.split(separator)[indexOfWordAtCaret(caretIdx, text, separator)]; + } + + function replaceWordAtCaret(caretIdx, text, word, separator) { + var words = text.split(separator); + + words.splice(indexOfWordAtCaret(caretIdx, text, separator), 1, word); + + if (separator && words[words.length - 1] !== "") { + words.push(""); + } + + return words.join(separator); + } + + var AutoComplete = List.extend({ + init: function (element, options) { + var that = this, wrapper; + + that.ns = ns; + options = $.isArray(options) ? { dataSource: options} : options; + + List.fn.init.call(that, element, options); + + element = that.element; + options = that.options; + + options.placeholder = options.placeholder || element.attr("placeholder"); + if (placeholderSupported) { + element.attr("placeholder", options.placeholder); + } + + that._wrapper(); + that._loader(); + + that._dataSource(); + that._ignoreCase(); + + element[0].type = "text"; + wrapper = that.wrapper; + + that._popup(); + + element + .addClass("k-input") + .on("keydown" + ns, proxy(that._keydown, that)) + .on("paste" + ns, proxy(that._search, that)) + .on("focus" + ns, function () { + that._prev = that._accessor(); + that._placeholder(false); + wrapper.addClass(FOCUSED); + }) + .on("focusout" + ns, function () { + that._change(); + that._placeholder(); + wrapper.removeClass(FOCUSED); + }) + .attr({ + autocomplete: "off", + role: "textbox", + "aria-haspopup": true + }); + + that._enable(); + + that._old = that._accessor(); + + if (element[0].id) { + element.attr("aria-owns", that.ul[0].id); + } + + that._aria(); + + that._placeholder(); + + that._initList(); + + kendo.notify(that); + }, + + options: { + name: "AutoComplete", + enabled: true, + suggest: false, + template: "", + dataTextField: "", + minLength: 1, + delay: 200, + height: 200, + filter: "startswith", + ignoreCase: true, + highlightFirst: false, + separator: null, + placeholder: "", + animation: {}, + value: null + }, + + //Use Select._dataSource method here! + _dataSource: function() { + var that = this; + + if (that.dataSource && that._refreshHandler) { + that._unbindDataSource(); + } else { + that._progressHandler = proxy(that._showBusy, that); + } + + that.dataSource = DataSource.create(that.options.dataSource) + .bind("progress", that._progressHandler); + }, + + //TODO: Use Select.setDataSource method here + setDataSource: function(dataSource) { + this.options.dataSource = dataSource; + this._dataSource(); + + this.listView.setDataSource(this.dataSource); + }, + + events: [ + "open", + "close", + "change", + "select", + "filtering", + "dataBinding", + "dataBound" + ], + + setOptions: function(options) { + List.fn.setOptions.call(this, options); + + this.listView.setOptions(options); + + this._accessors(); + this._aria(); + }, + + _editable: function(options) { + var that = this, + element = that.element, + wrapper = that.wrapper.off(ns), + readonly = options.readonly, + disable = options.disable; + + if (!readonly && !disable) { + wrapper + .addClass(DEFAULT) + .removeClass(STATEDISABLED) + .on(HOVEREVENTS, that._toggleHover); + + element.removeAttr(DISABLED) + .removeAttr(READONLY) + .attr(ARIA_DISABLED, false) + .attr(ARIA_READONLY, false); + } else { + wrapper + .addClass(disable ? STATEDISABLED : DEFAULT) + .removeClass(disable ? DEFAULT : STATEDISABLED); + + element.attr(DISABLED, disable) + .attr(READONLY, readonly) + .attr(ARIA_DISABLED, disable) + .attr(ARIA_READONLY, readonly); + } + }, + + close: function () { + var that = this; + var current = that.listView.focus(); + + if (current) { + current.removeClass(SELECTED); + } + + that.popup.close(); + }, + + destroy: function() { + var that = this; + + that.element.off(ns); + that.wrapper.off(ns); + + List.fn.destroy.call(that); + }, + + refresh: function() { + this.listView.refresh(); + }, + + select: function (li) { + this._select(li); + }, + + search: function (word) { + var that = this, + options = that.options, + ignoreCase = options.ignoreCase, + separator = options.separator, + length; + + word = word || that._accessor(); + + clearTimeout(that._typing); + + if (separator) { + word = wordAtCaret(caret(that.element)[0], word, separator); + } + + length = word.length; + + if (!length || length >= options.minLength) { + that._open = true; + + that._filterSource({ + value: ignoreCase ? word.toLowerCase() : word, + operator: options.filter, + field: options.dataTextField, + ignoreCase: ignoreCase + }); + } + }, + + suggest: function (word) { + var that = this, + key = that._last, + value = that._accessor(), + element = that.element[0], + caretIdx = caret(element)[0], + separator = that.options.separator, + words = value.split(separator), + wordIndex = indexOfWordAtCaret(caretIdx, value, separator), + selectionEnd = caretIdx, + idx; + + if (key == keys.BACKSPACE || key == keys.DELETE) { + that._last = undefined; + return; + } + + word = word || ""; + + if (typeof word !== "string") { + if (word[0]) { + word = that.dataSource.view()[List.inArray(word[0], that.ul[0])]; + } + + word = word ? that._text(word) : ""; + } + + if (caretIdx <= 0) { + caretIdx = value.toLowerCase().indexOf(word.toLowerCase()) + 1; + } + + idx = value.substring(0, caretIdx).lastIndexOf(separator); + idx = idx > -1 ? caretIdx - (idx + separator.length) : caretIdx; + value = words[wordIndex].substring(0, idx); + + if (word) { + idx = word.toLowerCase().indexOf(value.toLowerCase()); + if (idx > -1) { + word = word.substring(idx + value.length); + + selectionEnd = caretIdx + word.length; + + value += word; + } + + if (separator && words[words.length - 1] !== "") { + words.push(""); + } + + } + + words[wordIndex] = value; + + that._accessor(words.join(separator || "")); + + if (element === activeElement()) { + caret(element, caretIdx, selectionEnd); + } + }, + + value: function (value) { + if (value !== undefined) { + this.listView.value(value); + + this._accessor(value); + this._old = this._accessor(); + } else { + return this._accessor(); + } + }, + + _click: function(e) { + var item = e.item; + var element = this.element; + + if (this.trigger("select", { item: item })) { + this.close(); + return; + } + + this._select(item); + this._blur(); + + caret(element, element.val().length); + }, + + _initList: function() { + var that = this; + var options = this.options; + var template = options.template || options.itemTemplate || "#:" + kendo.expr(options.dataTextField, "data") + "#"; + + var listOptions = { + autoBind: false, + height: options.height, + dataValueField: options.dataValueField, + dataSource: this.dataSource, + groupTemplate: options.groupTemplate || "#:data#", + fixedGroupTemplate: options.fixedGroupTemplate || "#:data#", + template: template, + selectable: true, + activate: function() { + var current = this.focus(); + if (current) { + that._focused.add(that.filterInput).attr("aria-activedescendant", current.attr("id")); + } + }, + click: $.proxy(this._click, this), + change: $.proxy(this._listChange, this), + deactivate: function() { + that._focused.add(that.filterInput).removeAttr("aria-activedescendant"); + }, + dataBinding: function() { + that.trigger("dataBinding"); //TODO: make preventable + that._angularItems("cleanup"); + }, + listBound: $.proxy(this._listBound, this), + dataBound: $.proxy(this._listBound, this) + }; + + if (options.virtual) { + if (typeof options.virtual === "object") { + $.extend(listOptions, { + listBound: $.proxy(this._listBound, this) + }, options.virtual); + } + + this.listView = new kendo.ui.VirtualList(this.ul, listOptions); + } else { + this.listView = new kendo.ui.StaticList(this.ul, listOptions); + } + + this.listView.value(this.options.value); + }, + + _listBound: function() { + var that = this; + var popup = that.popup; + var options = that.options; + var data = that.listView.data(); + var length = data.length; + var isActive = that.element[0] === activeElement(); + var action; + + that._angularItems("compile"); + + that._calculateGroupPadding(that._height(length)); + + if (popup.visible()) { + popup._position(); + } + + if (length) { + var current = this.listView.focus(); + + if (options.highlightFirst && !current) { + that.listView.first(); + } + + if (options.suggest && isActive) { + that.suggest(data[0]); + } + } + + if (that._open) { + that._open = false; + action = length ? "open" : "close"; + + if (that._typing && !isActive) { + action = "close"; + } + + popup[action](); + that._typing = undefined; + } + + if (that._touchScroller) { + that._touchScroller.reset(); + } + + that._makeUnselectable(); + + that._hideBusy(); + that.trigger("dataBound"); + }, + + _listChange: function() { + this._selectValue(this.listView.selectedDataItems()[0]); + }, + + _selectValue: function(dataItem) { + var separator = this.options.separator; + var text = ""; + + if (dataItem) { + text = this._text(dataItem); + } + + if (text === null) { + text = ""; + } + + if (separator) { + text = replaceWordAtCaret(caret(this.element)[0], this._accessor(), text, separator); + } + + this._prev = text; + this._accessor(text); + this._placeholder(); + }, + + _accessor: function (value) { + var that = this, + element = that.element[0]; + + if (value !== undefined) { + element.value = value === null ? "" : value; + that._placeholder(); + } else { + value = element.value; + + if (element.className.indexOf("k-readonly") > -1) { + if (value === that.options.placeholder) { + return ""; + } else { + return value; + } + } + + return value; + } + }, + + _keydown: function (e) { + var that = this; + var key = e.keyCode; + var visible = that.popup.visible(); + var current = this.listView.focus(); + + that._last = key; + + if (key === keys.DOWN) { + if (visible) { + this._move(current ? "next" : "first"); + } + e.preventDefault(); + } else if (key === keys.UP) { + if (visible) { + this._move(current ? "prev" : "last"); + } + e.preventDefault(); + } else if (key === keys.ENTER || key === keys.TAB) { + + if (key === keys.ENTER && visible) { + e.preventDefault(); + } + + if (visible && current) { + if (that.trigger("select", { item: current })) { + return; + } + + this._select(current); + } + + this._blur(); + } else if (key === keys.ESC) { + if (visible) { + e.preventDefault(); + } + that.close(); + } else { + that._search(); + } + }, + + _move: function (action) { + this.listView[action](); + + if (this.options.suggest) { + this.suggest(this.listView.focus()); + } + }, + + _hideBusy: function () { + var that = this; + clearTimeout(that._busy); + that._loading.hide(); + that.element.attr("aria-busy", false); + that._busy = null; + }, + + _showBusy: function () { + var that = this; + + if (that._busy) { + return; + } + + that._busy = setTimeout(function () { + that.element.attr("aria-busy", true); + that._loading.show(); + }, 100); + }, + + _placeholder: function(show) { + if (placeholderSupported) { + return; + } + + var that = this, + element = that.element, + placeholder = that.options.placeholder, + value; + + if (placeholder) { + value = element.val(); + + if (show === undefined) { + show = !value; + } + + if (!show) { + if (value !== placeholder) { + placeholder = value; + } else { + placeholder = ""; + } + } + + if (value === that._old && !show) { + return; + } + + element.toggleClass("k-readonly", show) + .val(placeholder); + + if (!placeholder && element[0] === document.activeElement) { + caret(element[0], 0, 0); + } + } + }, + + _search: function () { + var that = this; + clearTimeout(that._typing); + + that._typing = setTimeout(function () { + if (that._prev !== that._accessor()) { + that._prev = that._accessor(); + that.search(); + } + }, that.options.delay); + }, + + _select: function(candidate) { + this.listView.select(candidate); + }, + + _loader: function() { + this._loading = $('').insertAfter(this.element); + }, + + _toggleHover: function(e) { + $(e.currentTarget).toggleClass(HOVER, e.type === "mouseenter"); + }, + + _wrapper: function () { + var that = this, + element = that.element, + DOMelement = element[0], + wrapper; + + wrapper = element.parent(); + + if (!wrapper.is("span.k-widget")) { + wrapper = element.wrap("").parent(); + } + + wrapper.attr("tabindex", -1); + wrapper.attr("role", "presentation"); + + wrapper[0].style.cssText = DOMelement.style.cssText; + element.css({ + width: "100%", + height: DOMelement.style.height + }); + + that._focused = that.element; + that.wrapper = wrapper + .addClass("k-widget k-autocomplete k-header") + .addClass(DOMelement.className); + } + }); + + ui.plugin(AutoComplete); +})(window.kendo.jQuery); + + + + + +(function($, undefined) { + var kendo = window.kendo, + ui = kendo.ui, + Select = ui.Select, + os = kendo.support.mobileOS, + activeElement = kendo._activeElement, + keys = kendo.keys, + ns = ".kendoDropDownList", + DISABLED = "disabled", + READONLY = "readonly", + CHANGE = "change", + FOCUSED = "k-state-focused", + DEFAULT = "k-state-default", + STATEDISABLED = "k-state-disabled", + ARIA_DISABLED = "aria-disabled", + ARIA_READONLY = "aria-readonly", + SELECTED = "k-state-selected", + HOVEREVENTS = "mouseenter" + ns + " mouseleave" + ns, + TABINDEX = "tabindex", + STATE_FILTER = "filter", + STATE_ACCEPT = "accept", + proxy = $.proxy; + + var DropDownList = Select.extend( { + init: function(element, options) { + var that = this; + var index = options && options.index; + var optionLabel, useOptionLabel, text; + + that.ns = ns; + options = $.isArray(options) ? { dataSource: options } : options; + + Select.fn.init.call(that, element, options); + + options = that.options; + element = that.element.on("focus" + ns, proxy(that._focusHandler, that)); + + that._inputTemplate(); + + that._reset(); + + that._prev = ""; + that._word = ""; + + that._wrapper(); + + that._tabindex(); + that.wrapper.data(TABINDEX, that.wrapper.attr(TABINDEX)); + + that._span(); + + that._popup(); + + that._mobile(); + + that._dataSource(); + that._ignoreCase(); + + that._filterHeader(); + + that._aria(); + + that._enable(); + + that._oldIndex = that.selectedIndex = -1; + + if (index !== undefined) { + options.index = index; + } + + that._initialIndex = options.index; + that._optionLabel(); + that._initList(); + + that._cascade(); + + if (options.autoBind) { + that.dataSource.fetch(); + } else if (that.selectedIndex === -1) { //selectedIndex !== -1 when cascade functionality happens instantly + text = options.text || ""; + if (!text) { + optionLabel = options.optionLabel; + useOptionLabel = optionLabel && options.index === 0; + + if (that._isSelect) { + if (useOptionLabel) { + text = optionLabel; + } else { + text = element.children(":selected").text(); + } + } else if (!element[0].value && useOptionLabel) { + text = optionLabel; + } + } + + that._textAccessor(text); + } + + kendo.notify(that); + }, + + options: { + name: "DropDownList", + enabled: true, + autoBind: true, + index: 0, + text: null, + value: null, + delay: 500, + height: 200, + dataTextField: "", + dataValueField: "", + optionLabel: "", + cascadeFrom: "", + cascadeFromField: "", + ignoreCase: true, + animation: {}, + filter: "none", + minLength: 1, + virtual: false, + template: null, + valueTemplate: null, + optionLabelTemplate: null, + groupTemplate: null, + fixedGroupTemplate: null + }, + events: [ + "open", + "close", + CHANGE, + "select", + "filtering", + "dataBinding", + "dataBound", + "cascade" + ], + + setOptions: function(options) { + Select.fn.setOptions.call(this, options); + + this.listView.setOptions(options); + + this._inputTemplate(); + this._accessors(); + this._filterHeader(); + this._enable(); + this._aria(); + }, + + destroy: function() { + var that = this; + + that.wrapper.off(ns); + that.element.off(ns); + that._inputWrapper.off(ns); + + that._arrow.off(); + that._arrow = null; + + that.optionLabel.off(); + + Select.fn.destroy.call(that); + }, + + open: function() { + var that = this; + + if (that.popup.visible()) { + return; + } + + if (!this.dataSource.view().length || that._state === STATE_ACCEPT) { + that._open = true; + that._state = "rebind"; + //that.listView.focus(false); + + if (that.filterInput) { + that.filterInput.val(""); + } + + that._filterSource(); + } else { + that.popup.open(); + that._focusElement(that.filterInput); + that._focusItem(); + } + }, + + toggle: function(toggle) { + this._toggle(toggle, true); + }, + + _initList: function() { + var that = this; + var options = this.options; + var virtualOptions; + + if (options.virtual) { + virtualOptions = { + autoBind: false, //dropdownlist fetches the data + dataValueField: options.dataValueField, + dataSource: this.dataSource, + selectable: true, + height: this.options.height, + groupTemplate: options.groupTemplate || "#:data#", + fixedGroupTemplate: options.fixedGroupTemplate || "#:data#", + template: options.template || "#:" + kendo.expr(options.dataTextField, "data") + "#", + change: $.proxy(this._listChange, this), + click: $.proxy(this._click, this), + activate: function() { + var current = this.focus(); + if (current) { + that._focused.add(that.filterInput).attr("aria-activedescendant", current.attr("id")); + } + }, + deactivate: function() { + that._focused.add(that.filterInput).removeAttr("aria-activedescendant"); + }, + listBound: $.proxy(this._listBound, this) + }; + + if (typeof options.virtual === "object") { + $.extend(virtualOptions, options.virtual); + } + + this.listView = new kendo.ui.VirtualList(this.ul, virtualOptions); + } else { + this.listView = new kendo.ui.StaticList(this.ul, { + dataValueField: options.dataValueField, + dataSource: this.dataSource, + groupTemplate: options.groupTemplate || "#:data#", + fixedGroupTemplate: options.fixedGroupTemplate || "#:data#", + template: options.template || "#:" + kendo.expr(options.dataTextField, "data") + "#", + activate: function() { + var current = this.focus(); + if (current) { + that._focused.add(that.filterInput).attr("aria-activedescendant", current.attr("id")); + } + }, + click: $.proxy(this._click, this), + change: $.proxy(this._listChange, this), + deactivate: function() { + that._focused.add(that.filterInput).removeAttr("aria-activedescendant"); + }, + dataBinding: function() { + that.trigger("dataBinding"); + that._angularItems("cleanup"); + }, + dataBound: $.proxy(this._listBound, this) + }); + } + + this.listView.value(this.options.value); + }, + + current: function(candidate) { + var current; + + if (candidate === undefined) { + current = this.listView.focus(); + + if (!current && this.selectedIndex === 0 && this.optionLabel[0]) { + return this.optionLabel; + } + + return current; + } + + this._focus(candidate); + }, + + dataItem: function(index) { + var that = this; + var dataItem; + + if (index === undefined) { + dataItem = that.listView.selectedDataItems()[0]; + + if (!dataItem && this.optionLabel[0]) { + dataItem = {}; + assign(dataItem, that.options.dataTextField.split("."), that._optionLabelText()); + assign(dataItem, that.options.dataValueField.split("."), ""); + } + + return dataItem; + } + + if (typeof index !== "number") { + index = $(that.items()).index(index); + } + + return that.listView.data()[index]; + }, + + refresh: function() { + this.listView.refresh(); + }, + + text: function (text) { + var that = this; + var dataItem, loweredText; + var ignoreCase = that.options.ignoreCase; + + text = text === null ? "" : text; + + if (text !== undefined) { + if (typeof text === "string") { + loweredText = ignoreCase ? text.toLowerCase() : text; + + that._select(function(data) { + data = that._text(data); + + if (ignoreCase) { + data = (data + "").toLowerCase(); + } + + return data === loweredText; + }); + + dataItem = that.dataItem(); + + if (dataItem) { + text = dataItem; + } + } + + that._textAccessor(text); + } else { + return that._textAccessor(); + } + }, + + value: function(value) { + var that = this; + + if (value === undefined) { + value = that._accessor() || that.listView.value()[0]; + return value === undefined || value === null ? "" : value; + } + + if (value === null) { + value = ""; + } + + value = value.toString(); + + that.listView.one("change", function() { + that._old = that._accessor(); + that._oldIndex = that.selectedIndex; + }); + + that.listView.value(value); + + that._fetchData(); + }, + + _optionLabel: function() { + var that = this; + var options = that.options; + var optionLabel = options.optionLabel; + var template = options.optionLabelTemplate; + + if (!optionLabel) { + that.optionLabel = $(); + return; + } + + if (!template) { + template = "#:"; + + if (typeof optionLabel === "string") { + template += "data"; + } else { + template += kendo.expr(options.dataTextField, "data"); + } + + template += "#"; + } + + if (typeof template !== "function") { + template = kendo.template(template); + } + + that.optionLabelTemplate = template; + that.optionLabel = $('
' + template(optionLabel) + '
') + .prependTo(that.list) + .click($.proxy(this._click, this)); + + that.angular("compile", function(){ + return { elements: that.optionLabel }; + }); + }, + + _optionLabelText: function() { + var optionLabel = this.options.optionLabel; + return (typeof optionLabel === "string") ? optionLabel : this._text(optionLabel); + }, + + _listBound: function() { + var that = this; + var data = that.listView.data(); + var length = data.length; + var optionLabel = that.options.optionLabel; + var filtered = that._state === STATE_FILTER; + var element = that.element[0]; + var selectedIndex; + var height; + var value; + + that._angularItems("compile"); + + if (!that.options.virtual) { + height = that._height(filtered ? (length || 1) : length); + that._calculateGroupPadding(height); + } + + if (that.popup.visible()) { + that.popup._position(); + } + + if (that._isSelect) { + selectedIndex = element.selectedIndex; + value = that.value(); + + if (length) { + if (optionLabel) { + optionLabel = that._option("", this._optionLabelText()); + } + } else if (value) { + selectedIndex = 0; + optionLabel = that._option(value, that.text()); + } + + that._options(data, optionLabel); + element.selectedIndex = selectedIndex === -1 ? 0 : selectedIndex; + } + + that._hideBusy(); + that._makeUnselectable(); + + if (!filtered) { + if (that._open) { + that.toggle(!!length); + } + + that._open = false; + + if (!that._fetch) { + if (length) { + if (!this.listView.value().length && this._initialIndex > -1 && this._initialIndex !== null) { + this.select(this._initialIndex); + } + + this._initialIndex = null; + } else if (this._textAccessor() !== optionLabel) { + this.listView.value(""); + this._selectValue(null); + } + } + } else { + this.listView.first(); + } + + that.trigger("dataBound"); + }, + + _listChange: function() { + this._selectValue(this.listView.selectedDataItems()[0]); + + if (this._old && this._oldIndex === -1) { + this._oldIndex = this.selectedIndex; + } + }, + + _focusHandler: function() { + this.wrapper.focus(); + }, + + _focusinHandler: function() { + this._inputWrapper.addClass(FOCUSED); + this._prevent = false; + }, + + _focusoutHandler: function() { + var that = this; + var filtered = that._state === STATE_FILTER; + var isIFrame = window.self !== window.top; + + if (!that._prevent) { + clearTimeout(that._typing); + + if (filtered) { + that._select(that._focus(), !that.listView.dataItems()[0]); + } + + if (!filtered || that.dataItem()) { + //that._triggerCascade(); + } + + if (kendo.support.mobileOS.ios && isIFrame) { + that._change(); + } else { + that._blur(); + } + + that._inputWrapper.removeClass(FOCUSED); + that._prevent = true; + that._open = false; + that.element.blur(); + } + }, + + _wrapperMousedown: function() { + this._prevent = !!this.filterInput; + }, + + _wrapperClick: function(e) { + e.preventDefault(); + this._focused = this.wrapper; + this._toggle(); + }, + + _editable: function(options) { + var that = this; + var element = that.element; + var disable = options.disable; + var readonly = options.readonly; + var wrapper = that.wrapper.add(that.filterInput).off(ns); + var dropDownWrapper = that._inputWrapper.off(HOVEREVENTS); + + if (!readonly && !disable) { + element.removeAttr(DISABLED).removeAttr(READONLY); + + dropDownWrapper + .addClass(DEFAULT) + .removeClass(STATEDISABLED) + .on(HOVEREVENTS, that._toggleHover); + + wrapper + .attr(TABINDEX, wrapper.data(TABINDEX)) + .attr(ARIA_DISABLED, false) + .attr(ARIA_READONLY, false) + .on("keydown" + ns, proxy(that._keydown, that)) + .on("focusin" + ns, proxy(that._focusinHandler, that)) + .on("focusout" + ns, proxy(that._focusoutHandler, that)) + .on("mousedown" + ns, proxy(that._wrapperMousedown, that)); + + that.wrapper.on("click" + ns, proxy(that._wrapperClick, that)); + + if (!that.filterInput) { + wrapper.on("keypress" + ns, proxy(that._keypress, that)); + } + + } else if (disable) { + wrapper.removeAttr(TABINDEX); + dropDownWrapper + .addClass(STATEDISABLED) + .removeClass(DEFAULT); + } else { + dropDownWrapper + .addClass(DEFAULT) + .removeClass(STATEDISABLED); + + wrapper + .on("focusin" + ns, proxy(that._focusinHandler, that)) + .on("focusout" + ns, proxy(that._focusoutHandler, that)); + } + + element.attr(DISABLED, disable) + .attr(READONLY, readonly); + + wrapper.attr(ARIA_DISABLED, disable) + .attr(ARIA_READONLY, readonly); + }, + + _option: function(value, text) { + return '"; + }, + + _keydown: function(e) { + var that = this; + var key = e.keyCode; + var altKey = e.altKey; + var ul = that.ul[0]; + var handled; + + if (key === keys.LEFT) { + key = keys.UP; + } else if (key === keys.RIGHT) { + key = keys.DOWN; + } + + e.keyCode = key; + + if (altKey && key === keys.UP) { + that._focusElement(that.wrapper); + } + + handled = that._move(e); + + if (handled) { + return; + } + + if (!that.popup.visible() || !that.filterInput) { + if (key === keys.HOME) { + handled = true; + that._firstItem(); + } else if (key === keys.END) { + handled = true; + that._lastItem(); + } + + if (handled) { + that._select(that._focus()); + e.preventDefault(); + } + } + + if (!altKey && !handled && that.filterInput) { + that._search(); + } + }, + + _selectNext: function(word, index) { + var that = this, text, + startIndex = index, + data = that.listView.data(), + length = data.length, + ignoreCase = that.options.ignoreCase, + action = function(text, index) { + text = text + ""; + if (ignoreCase) { + text = text.toLowerCase(); + } + + if (text.indexOf(word) === 0) { + that._select(index); + if (!that.popup.visible()) { + that._change(); + } + return true; + } + }; + + for (; index < length; index++) { + text = that._text(data[index]); + if (text && action(text, index)) { + return true; + } + } + + if (startIndex > 0 && startIndex < length) { + index = 0; + for (; index <= startIndex; index++) { + text = that._text(data[index]); + if (text && action(text, index)) { + return true; + } + } + } + + return false; + }, + + _keypress: function(e) { + var that = this; + + if (e.which === 0 || e.keyCode === kendo.keys.ENTER) { + return; + } + + var character = String.fromCharCode(e.charCode || e.keyCode); + var index = that.selectedIndex; + var word = that._word; + + if (that.options.ignoreCase) { + character = character.toLowerCase(); + } + + if (character === " ") { + e.preventDefault(); + } + + if (that._last === character && word.length <= 1 && index > -1) { + if (!word) { + word = character; + } + + if (that._selectNext(word, index + 1)) { + return; + } + } + + that._word = word + character; + that._last = character; + + that._search(); + }, + + _popupOpen: function() { + var popup = this.popup; + + popup.wrapper = kendo.wrap(popup.element); + + if (popup.element.closest(".km-root")[0]) { + popup.wrapper.addClass("km-popup km-widget"); + this.wrapper.addClass("km-widget"); + } + }, + + _popup: function() { + Select.fn._popup.call(this); + this.popup.one("open", proxy(this._popupOpen, this)); + }, + + _click: function(e) { + var item = e.item || $(e.currentTarget); + + if (this.trigger("select", { item: item })) { + this.close(); + return; + } + + this._userTriggered = true; + + this._select(item); + this._focusElement(this.wrapper); + + this._blur(); + }, + + _focusElement: function(element) { + var active = activeElement(); + var wrapper = this.wrapper; + var filterInput = this.filterInput; + var compareElement = element === filterInput ? wrapper : filterInput; + + if (filterInput && compareElement[0] === active) { + this._prevent = true; + this._focused = element.focus(); + } + }, + + _filter: function(word) { + if (word) { + var that = this; + var ignoreCase = that.options.ignoreCase; + + if (ignoreCase) { + word = word.toLowerCase(); + } + + that._select(function(dataItem) { + var text = that._text(dataItem); + + if (text !== undefined) { + text = (text + ""); + if (ignoreCase) { + text = text.toLowerCase(); + } + + return text.indexOf(word) === 0; + } + }); + } + }, + + _search: function() { + var that = this, + dataSource = that.dataSource, + index = that.selectedIndex, + word = that._word; + + clearTimeout(that._typing); + + if (that.options.filter !== "none") { + that._typing = setTimeout(function() { + var value = that.filterInput.val(); + + if (that._prev !== value) { + that._prev = value; + that.search(value); + } + + that._typing = null; + }, that.options.delay); + } else { + that._typing = setTimeout(function() { + that._word = ""; + }, that.options.delay); + + if (index === -1) { + index = 0; + } + + if (!that.ul[0].firstChild) { + dataSource.one(CHANGE, function () { + if (dataSource.data()[0] && index > -1) { + that._selectNext(word, index); + } + }).fetch(); + return; + } + + that._selectNext(word, index); + } + }, + + _get: function(candidate) { + var data, found, idx; + + if (this.optionLabel[0]) { + if (typeof candidate === "number") { + candidate -= 1; + } else if (candidate instanceof jQuery && candidate.hasClass("k-list-optionlabel")) { + candidate = -1; + } + } + + if (typeof candidate === "function") { + data = this.listView.data(); + + for (idx = 0; idx < data.length; idx++) { + if (candidate(data[idx])) { + candidate = idx; + found = true; + break; + } + } + + if (!found) { + candidate = -1; + } + } + + return candidate; + }, + + _firstItem: function() { + if (this.optionLabel[0]) { + this._focus(this.optionLabel); + } else { + this.listView.first(); + } + }, + + _lastItem: function() { + this.optionLabel.removeClass("k-state-focused"); + this.listView.last(); + }, + + _nextItem: function() { + if (this.optionLabel.hasClass("k-state-focused")) { + this.optionLabel.removeClass("k-state-focused"); + this.listView.first(); + } else { + this.listView.next(); + } + }, + + _prevItem: function() { + if (this.optionLabel.hasClass("k-state-focused")) { + return; + } + + this.listView.prev(); + if (!this.listView.focus()) { + this.optionLabel.addClass("k-state-focused"); + } + }, + + _focusItem: function() { + var listView = this.listView; + var focusedItem = listView.focus(); + var index = listView.select(); + + index = index[index.length - 1]; + + if (index === undefined && this.options.highlightFirst && !focusedItem) { + index = 0; + } + + if (index !== undefined) { + listView.focus(index); + } else { + if (this.options.optionLabel) { + this._focus(this.optionLabel); + this._select(this.optionLabel); + } else { + listView.scrollToIndex(0); + } + } + }, + + _focus: function(candidate) { + var listView = this.listView; + var optionLabel = this.optionLabel; + + if (candidate === undefined) { + candidate = listView.focus(); + + if (!candidate && optionLabel.hasClass("k-state-focused")) { + candidate = optionLabel; + } + + return candidate; + } + + optionLabel.removeClass("k-state-focused"); + + candidate = this._get(candidate); + + listView.focus(candidate); + + if (candidate === -1) { + //TODO: ARIA + optionLabel.addClass("k-state-focused"); + } + }, + + _select: function(candidate, keepState) { + var optionLabel = this.optionLabel; + + candidate = this._get(candidate); + + if (!keepState && this._state === STATE_FILTER) { + this.listView.clearIndices(); + this.listView.filter(false); + + this._state = STATE_ACCEPT; + } + + optionLabel.removeClass("k-state-focused k-state-selected"); + + this.listView.select(candidate); + + if (candidate === -1) { + this._selectValue(null); + this._focus(optionLabel.addClass("k-state-selected")); + } + }, + + _selectValue: function(dataItem) { + var value = ""; + var text = ""; + var idx = this.listView.select(); + var optionLabel = this.options.optionLabel; + + idx = idx[idx.length - 1]; + if (idx === undefined) { + idx = -1; + } + + if (dataItem) { + text = dataItem; + value = this._dataValue(dataItem); + if (optionLabel) { + idx += 1; + } + } else if (optionLabel) { + this._focus(this.optionLabel); + text = this._optionLabelText(); + if (typeof optionLabel === "string") { + value = ""; + } else { + value = this._value(optionLabel); + } + + idx = 0; + } + + this.selectedIndex = idx; + + if (value === null) { + value = ""; + } + + this._textAccessor(text); + this._accessor(value, idx); + + this._triggerCascade(); + }, + + _mobile: function() { + var that = this, + popup = that.popup, + root = popup.element.parents(".km-root").eq(0); + + if (root.length && os) { + popup.options.animation.open.effects = (os.android || os.meego) ? "fadeIn" : (os.ios || os.wp) ? "slideIn:up" : popup.options.animation.open.effects; + } + }, + + _filterHeader: function() { + var icon; + var options = this.options; + var filterEnalbed = options.filter !== "none"; + + if (this.filterInput) { + this.filterInput + .off(ns) + .parent() + .remove(); + + this.filterInput = null; + } + + if (filterEnalbed) { + icon = 'select'; + + this.filterInput = $('') + .attr({ + role: "listbox", + "aria-haspopup": true, + "aria-expanded": false + }); + + this.list + .prepend($('') + .append(this.filterInput.add(icon))); + } + }, + + _span: function() { + var that = this, + wrapper = that.wrapper, + SELECTOR = "span.k-input", + span; + + span = wrapper.find(SELECTOR); + + if (!span[0]) { + wrapper.append(' select') + .append(that.element); + + span = wrapper.find(SELECTOR); + } + + that.span = span; + that._inputWrapper = $(wrapper[0].firstChild); + that._arrow = wrapper.find(".k-icon"); + }, + + _wrapper: function() { + var that = this, + element = that.element, + DOMelement = element[0], + wrapper; + + wrapper = element.parent(); + + if (!wrapper.is("span.k-widget")) { + wrapper = element.wrap("").parent(); + wrapper[0].style.cssText = DOMelement.style.cssText; + } + + element.hide(); + + that._focused = that.wrapper = wrapper + .addClass("k-widget k-dropdown k-header") + .addClass(DOMelement.className) + .css("display", "") + .attr({ + unselectable: "on", + role: "listbox", + "aria-haspopup": true, + "aria-expanded": false + }); + }, + + _clearSelection: function() { + var that = this; + var optionLabel = that.options.optionLabel; + + that.options.value = ""; + + if (that.dataSource.view()[0] && (optionLabel || that._userTriggered)) { + that.select(0); + } else { + that.select(-1); + that._textAccessor(that.options.optionLabel); + } + }, + + _inputTemplate: function() { + var that = this, + template = that.options.valueTemplate; + + + if (!template) { + template = $.proxy(kendo.template('#:this._text(data)#', { useWithBlock: false }), that); + } else { + template = kendo.template(template); + } + + that.valueTemplate = template; + }, + + _textAccessor: function(text) { + var dataItem = this.listView.selectedDataItems()[0]; + var template = this.valueTemplate; + var options = this.options; + var optionLabel = options.optionLabel; + var span = this.span; + + if (text !== undefined) { + if ($.isPlainObject(text) || text instanceof kendo.data.ObservableObject) { + dataItem = text; + } else if (optionLabel && this._optionLabelText() === text) { + dataItem = optionLabel; + template = this.optionLabelTemplate; + } + + if (dataItem === undefined) { + if (options.dataTextField) { + dataItem = {}; + assign(dataItem, options.dataTextField.split("."), text); + assign(dataItem, options.dataValueField.split("."), this._accessor()); + } else { + dataItem = text; + } + } + + var getElements = function(){ + return { + elements: span.get(), + data: [ { dataItem: dataItem } ] + }; + }; + this.angular("cleanup", getElements); + span.html(template(dataItem)); + this.angular("compile", getElements); + } else { + return span.text(); + } + } + }); + + function assign(instance, fields, value) { + var idx = 0, + lastIndex = fields.length - 1, + field; + + for (; idx < lastIndex; ++idx) { + field = fields[idx]; + + if (!(field in instance)) { + instance[field] = {}; + } + + instance = instance[field]; + } + + instance[fields[lastIndex]] = value; + } + + ui.plugin(DropDownList); +})(window.kendo.jQuery); + + + + + +(function($, undefined) { + var kendo = window.kendo, + ui = kendo.ui, + List = ui.List, + Select = ui.Select, + caret = kendo.caret, + support = kendo.support, + placeholderSupported = support.placeholder, + activeElement = kendo._activeElement, + keys = kendo.keys, + ns = ".kendoComboBox", + CLICK = "click" + ns, + MOUSEDOWN = "mousedown" + ns, + DISABLED = "disabled", + READONLY = "readonly", + CHANGE = "change", + DEFAULT = "k-state-default", + FOCUSED = "k-state-focused", + STATEDISABLED = "k-state-disabled", + ARIA_DISABLED = "aria-disabled", + ARIA_READONLY = "aria-readonly", + STATE_SELECTED = "k-state-selected", + STATE_FILTER = "filter", + STATE_ACCEPT = "accept", + STATE_REBIND = "rebind", + HOVEREVENTS = "mouseenter" + ns + " mouseleave" + ns, + NULL = null, + proxy = $.proxy; + + var ComboBox = Select.extend({ + init: function(element, options) { + var that = this, text; + + that.ns = ns; + + options = $.isArray(options) ? { dataSource: options } : options; + + Select.fn.init.call(that, element, options); + + options = that.options; + element = that.element.on("focus" + ns, proxy(that._focusHandler, that)); + + options.placeholder = options.placeholder || element.attr("placeholder"); + + that._reset(); + + that._wrapper(); + + that._input(); + + that._tabindex(that.input); + + that._popup(); + + that._dataSource(); + that._ignoreCase(); + + that._enable(); + + that._oldIndex = that.selectedIndex = -1; + + that._aria(); + + that._initialIndex = options.index; + + that._initList(); + + that._cascade(); + + if (options.autoBind) { + that._filterSource(); //TODO: diff when just bind and actually filter + } else { + text = options.text; + + if (!text && that._isSelect) { + text = element.children(":selected").text(); + } + + if (text) { + that.input.val(text); + that._prev = text; + } + } + + if (!text) { + that._placeholder(); + } + + kendo.notify(that); + }, + + options: { + name: "ComboBox", + enabled: true, + index: -1, + text: null, + value: null, + autoBind: true, + delay: 200, + dataTextField: "", + dataValueField: "", + minLength: 0, + height: 200, + highlightFirst: true, + filter: "none", + placeholder: "", + suggest: false, + cascadeFrom: "", + cascadeFromField: "", + ignoreCase: true, + animation: {}, + template: null, + valueTemplate: null, + optionLabelTemplate: null, + groupTemplate: null, + fixedGroupTemplate: null + }, + + events:[ + "open", + "close", + CHANGE, + "select", + "filtering", + "dataBinding", + "dataBound", + "cascade" + ], + + setOptions: function(options) { + Select.fn.setOptions.call(this, options); + + this.listView.setOptions(options); + + this._accessors(); + this._aria(); + }, + + destroy: function() { + var that = this; + + that.input.off(ns); + that.element.off(ns); + that._inputWrapper.off(ns); + + Select.fn.destroy.call(that); + }, + + _focusHandler: function() { + this.input.focus(); + }, + + _arrowClick: function() { + this._toggle(); + }, + + _inputFocus: function() { + this._inputWrapper.addClass(FOCUSED); + this._placeholder(false); + }, + + _inputFocusout: function() { + var that = this; + + that._inputWrapper.removeClass(FOCUSED); + clearTimeout(that._typing); + that._typing = null; + + if (that.options.text !== that.input.val()) { + that.text(that.text()); + } + + that._placeholder(); + that._blur(); + + that.element.blur(); + }, + + _editable: function(options) { + var that = this, + disable = options.disable, + readonly = options.readonly, + wrapper = that._inputWrapper.off(ns), + input = that.element.add(that.input.off(ns)), + arrow = that._arrow.parent().off(CLICK + " " + MOUSEDOWN); + + if (!readonly && !disable) { + wrapper + .addClass(DEFAULT) + .removeClass(STATEDISABLED) + .on(HOVEREVENTS, that._toggleHover); + + input.removeAttr(DISABLED) + .removeAttr(READONLY) + .attr(ARIA_DISABLED, false) + .attr(ARIA_READONLY, false); + + arrow.on(CLICK, proxy(that._arrowClick, that)) + .on(MOUSEDOWN, function(e) { e.preventDefault(); }); + + that.input + .on("keydown" + ns, proxy(that._keydown, that)) + .on("focus" + ns, proxy(that._inputFocus, that)) + .on("focusout" + ns, proxy(that._inputFocusout, that)); + + } else { + wrapper + .addClass(disable ? STATEDISABLED : DEFAULT) + .removeClass(disable ? DEFAULT : STATEDISABLED); + + input.attr(DISABLED, disable) + .attr(READONLY, readonly) + .attr(ARIA_DISABLED, disable) + .attr(ARIA_READONLY, readonly); + } + }, + + open: function() { + var that = this; + var state = that._state; + var focusedItem; + var index; + + if (that.popup.visible()) { + return; + } + + if ((!this.dataSource.view().length && state !== STATE_FILTER) || state === STATE_ACCEPT) { + that._open = true; + that._state = STATE_REBIND; + that.listView.filter(false); + that._filterSource(); + } else { + that.popup.open(); + that._focusItem(); + } + }, + + _initList: function() { + var that = this; + var options = this.options; + var listOptions = { + autoBind: false, + selectable: true, + height: options.height, + dataValueField: options.dataValueField, + dataSource: this.dataSource, + groupTemplate: options.groupTemplate || "#:data#", + fixedGroupTemplate: options.fixedGroupTemplate || "#:data#", + template: options.template || "#:" + kendo.expr(options.dataTextField, "data") + "#", + activate: function() { + var current = this.focus(); + if (current) { + that._focused.add(that.filterInput).attr("aria-activedescendant", current.attr("id")); + } + }, + click: $.proxy(this._click, this), + change: $.proxy(this._listChange, this), + deactivate: function() { + that._focused.add(that.filterInput).removeAttr("aria-activedescendant"); + }, + dataBinding: function() { + that.trigger("dataBinding"); //TODO: make preventable + that._angularItems("cleanup"); + }, + listBound: $.proxy(this._listBound, this), + dataBound: $.proxy(this._listBound, this) + }; + + if (options.virtual) { + if (typeof options.virtual === "object") { + $.extend(listOptions, { + listBound: $.proxy(this._listBound, this) + }, options.virtual); + } + + this.listView = new kendo.ui.VirtualList(this.ul, listOptions); + } else { + this.listView = new kendo.ui.StaticList(this.ul, listOptions); + } + + this.listView.value(this.options.value); + }, + + _listBound: function() { + var that = this; + var options = that.options; + var data = that.listView.data(); + var length = data.length; + var isActive = that.input[0] === activeElement(); + var filtered = that._state === STATE_FILTER; + var current; + var value; + + that._angularItems("compile"); + + if (!options.virtual) { + that._calculateGroupPadding(that._height(length)); + } + + if (that.popup.visible()) { + that.popup._position(); + } + + if (that._isSelect) { + var hasChild = that.element[0].children[0]; + + if (that._state === STATE_REBIND) { + that._state = ""; + } + + var keepState = true; + var custom = that._customOption; + + that._customOption = undefined; + that._options(data); + + if (custom && custom[0].selected) { + that._custom(custom.val(), keepState); + } else if (!hasChild) { + that._custom("", keepState); + } + } + + that._hideBusy(); + that._makeUnselectable(); + + if (!filtered && !that._fetch) { + if (!this.listView.value().length) { + if (this._initialIndex > -1 && this._initialIndex !== null) { + this.select(this._initialIndex); + } else if (this._accessor()) { + this.listView.value(this._accessor()); + } + } + + this._initialIndex = null; + } else if (filtered) { + current = this.listView.focus(); + if (current) { + current.removeClass("k-state-selected"); + } + } + + if (length) { + if (options.highlightFirst) { + that.listView.first(); + } + + if (options.suggest && isActive) { + that.suggest(data[0]); + } + } + + if (that._open) { + that._open = false; + + if (that._typing && !isActive) { + that.popup.close(); + } else { + that.toggle(!!length); + } + + that._typing = null; + } + + if (that._touchScroller) { + that._touchScroller.reset(); + } + + that.trigger("dataBound"); + }, + + _listChange: function() { + this._selectValue(this.listView.selectedDataItems()[0]); + + if (this._old && this._oldIndex === -1) { + this._oldIndex = this.selectedIndex; + } + }, + + _get: function(candidate) { + var data, found, idx; + + if (typeof candidate === "function") { + data = this.listView.data(); + + for (idx = 0; idx < data.length; idx++) { + if (candidate(data[idx])) { + candidate = idx; + found = true; + break; + } + } + + if (!found) { + candidate = -1; + } + } + + return candidate; + }, + + _select: function(candidate, keepState) { + candidate = this._get(candidate); + + if (candidate === -1) { + this.input[0].value = ""; + this._accessor(""); + } + + if (!keepState && this._state === STATE_FILTER) { + this.listView.filter(false); + this.listView.clearIndices(); + this._state = STATE_ACCEPT; + } + + this.listView.select(candidate); + }, + + _selectValue: function(dataItem) { + var idx = this.listView.select(); + var value = ""; + var text = ""; + + idx = idx[idx.length - 1]; + if (idx === undefined) { + idx = -1; + } + + this.selectedIndex = idx; + + if (idx === -1) { + value = text = this.input[0].value; + this.listView.focus(-1); + } else { + if (dataItem) { + value = this._dataValue(dataItem); + text = this._text(dataItem); + } + + if (value === null) { + value = ""; + } + } + + this._prev = this.input[0].value = text; + this._accessor(value !== undefined ? value : text, idx); + + this._placeholder(); + this._triggerCascade(); + }, + + refresh: function() { + this.listView.refresh(); + }, + + suggest: function(word) { + var that = this; + var element = that.input[0]; + var value = that.text(); + var caretIdx = caret(element)[0]; + var key = that._last; + var idx; + + if (key == keys.BACKSPACE || key == keys.DELETE) { + that._last = undefined; + return; + } + + word = word || ""; + + if (typeof word !== "string") { + if (word[0]) { + word = that.dataSource.view()[List.inArray(word[0], that.ul[0])]; + } + + word = word ? that._text(word) : ""; + } + + if (caretIdx <= 0) { + caretIdx = value.toLowerCase().indexOf(word.toLowerCase()) + 1; + } + + if (word) { + idx = word.toLowerCase().indexOf(value.toLowerCase()); + if (idx > -1) { + value += word.substring(idx + value.length); + } + } else { + value = value.substring(0, caretIdx); + } + + if (value.length !== caretIdx || !word) { + element.value = value; + if (element === activeElement()) { + caret(element, caretIdx, value.length); + } + } + }, + + text: function (text) { + text = text === null ? "" : text; + + var that = this; + var input = that.input[0]; + var ignoreCase = that.options.ignoreCase; + var loweredText = text; + var dataItem; + var value; + + if (text !== undefined) { + dataItem = that.dataItem(); + + if (dataItem && that._text(dataItem) === text) { + value = that._value(dataItem); + if (value === null) { + value = ""; + } else { + value += ""; + } + + if (value === that._old) { + that._triggerCascade(); + return; + } + } + + if (ignoreCase) { + loweredText = loweredText.toLowerCase(); + } + + that._select(function(data) { + data = that._text(data); + + if (ignoreCase) { + data = (data + "").toLowerCase(); + } + + return data === loweredText; + }); + + if (that.selectedIndex < 0) { + that._accessor(text); + input.value = text; + + that._triggerCascade(); + } + + that._prev = input.value; + } else { + return input.value; + } + }, + + toggle: function(toggle) { + this._toggle(toggle, true); + }, + + value: function(value) { + var that = this; + var options = that.options; + var index; + + if (value === undefined) { + value = that._accessor() || that.listView.value()[0]; + return value === undefined || value === null ? "" : value; + } + + if (value === null) { + value = ""; + } + + value = value.toString(); + + if (value === options.value && that.input.val() === options.text) { + return; + } + + that.input.val(value); + that._accessor(value); + + that.listView.value(value); + that._triggerCascade(); + + index = that.listView.select()[0]; + if (index === undefined) { + index = -1; + } + + that._old = that._accessor(); + that._oldIndex = that.selectedIndex = index; + + that._prev = that.input.val(); + that._state = STATE_ACCEPT; + + that._fetchData(); + }, + + _click: function(e) { + var item = e.item; + + if (this.trigger("select", { item: item })) { + this.close(); + return; + } + + this._userTriggered = true; + + this._select(item); + this._blur(); + }, + + _filter: function(word) { + var that = this; + var options = that.options; + var dataSource = that.dataSource; + var ignoreCase = options.ignoreCase; + var predicate = function (dataItem) { + var text = that._text(dataItem); + if (text !== undefined) { + text = text + ""; + if (text !== "" && word === "") { + return false; + } + + if (ignoreCase) { + text = text.toLowerCase(); + } + + return text.indexOf(word) === 0; + } + }; + + if (ignoreCase) { + word = word.toLowerCase(); + } + + if (!that.ul[0].firstChild) { + dataSource.one(CHANGE, function () { + if (dataSource.view()[0]) { + that.search(word); + } + }).fetch(); + return; + } + + this.listView.focus(this._get(predicate)); + + var current = this.listView.focus(); + + if (current) { + if (options.suggest) { + this.suggest(current); + } + + this.open(); + } + + if (this.options.highlightFirst && !word) { + this.listView.first(); + } + + that._hideBusy(); + }, + + _input: function() { + var that = this, + element = that.element.removeClass("k-input")[0], + accessKey = element.accessKey, + wrapper = that.wrapper, + SELECTOR = "input.k-input", + name = element.name || "", + input; + + if (name) { + name = 'name="' + name + '_input" '; + } + + input = wrapper.find(SELECTOR); + + if (!input[0]) { + wrapper.append('select') + .append(that.element); + + input = wrapper.find(SELECTOR); + } + + input[0].style.cssText = element.style.cssText; + + if (element.maxLength > -1) { + input[0].maxLength = element.maxLength; + } + + input.addClass(element.className) + .val(this.options.text || element.value) + .css({ + width: "100%", + height: element.style.height + }) + .attr({ + "role": "combobox", + "aria-expanded": false + }) + .show(); + + if (placeholderSupported) { + input.attr("placeholder", that.options.placeholder); + } + + if (accessKey) { + element.accessKey = ""; + input[0].accessKey = accessKey; + } + + that._focused = that.input = input; + that._inputWrapper = $(wrapper[0].firstChild); + that._arrow = wrapper.find(".k-icon") + .attr({ + "role": "button", + "tabIndex": -1 + }); + + if (element.id) { + that._arrow.attr("aria-controls", that.ul[0].id); + } + }, + + _keydown: function(e) { + var that = this, + key = e.keyCode; + + that._last = key; + + clearTimeout(that._typing); + that._typing = null; + + if (key != keys.TAB && !that._move(e)) { + that._search(); + } + }, + + _placeholder: function(show) { + if (placeholderSupported) { + return; + } + + var that = this, + input = that.input, + placeholder = that.options.placeholder, + value; + + if (placeholder) { + value = that.value(); + + if (show === undefined) { + show = !value; + } + + input.toggleClass("k-readonly", show); + + if (!show) { + if (!value) { + placeholder = ""; + } else { + return; + } + } + + input.val(placeholder); + + if (!placeholder && input[0] === activeElement()) { + caret(input[0], 0, 0); + } + } + }, + + _search: function() { + var that = this; + + that._typing = setTimeout(function() { + var value = that.text(); + + if (that._prev !== value) { + that._prev = value; + that.search(value); + } + + that._typing = null; + }, that.options.delay); + }, + + _wrapper: function() { + var that = this, + element = that.element, + wrapper = element.parent(); + + if (!wrapper.is("span.k-widget")) { + wrapper = element.hide().wrap("").parent(); + wrapper[0].style.cssText = element[0].style.cssText; + } + + that.wrapper = wrapper.addClass("k-widget k-combobox k-header") + .addClass(element[0].className) + .css("display", ""); + }, + + _clearSelection: function(parent, isFiltered) { + var that = this; + var hasValue = parent.value(); + var custom = hasValue && parent.selectedIndex === -1; + + if (isFiltered || !hasValue || custom) { + that.value(""); + that.options.value = ""; + } + } + }); + + ui.plugin(ComboBox); +})(window.kendo.jQuery); + + + + + +(function($, undefined) { + var kendo = window.kendo, + ui = kendo.ui, + List = ui.List, + keys = kendo.keys, + activeElement = kendo._activeElement, + ObservableArray = kendo.data.ObservableArray, + proxy = $.proxy, + ID = "id", + LI = "li", + ACCEPT = "accept", + FILTER = "filter", + REBIND = "rebind", + OPEN = "open", + CLOSE = "close", + CHANGE = "change", + PROGRESS = "progress", + SELECT = "select", + NEXT = "nextSibling", + PREV = "previousSibling", + HIDE = ' style="display:none"', + ARIA_DISABLED = "aria-disabled", + ARIA_READONLY = "aria-readonly", + FOCUSEDCLASS = "k-state-focused", + HIDDENCLASS = "k-loading-hidden", + HOVERCLASS = "k-state-hover", + STATEDISABLED = "k-state-disabled", + DISABLED = "disabled", + READONLY = "readonly", + ns = ".kendoMultiSelect", + CLICK = "click" + ns, + KEYDOWN = "keydown" + ns, + MOUSEENTER = "mouseenter" + ns, + MOUSELEAVE = "mouseleave" + ns, + HOVEREVENTS = MOUSEENTER + " " + MOUSELEAVE, + quotRegExp = /"/g, + isArray = $.isArray, + styles = ["font-family", + "font-size", + "font-stretch", + "font-style", + "font-weight", + "letter-spacing", + "text-transform", + "line-height"]; + + var MultiSelect = List.extend({ + init: function(element, options) { + var that = this, id, data; + + that.ns = ns; + List.fn.init.call(that, element, options); + + that._optionsMap = {}; + that._customOptions = {}; + + that._wrapper(); + that._tagList(); + that._input(); + that._textContainer(); + that._loader(); + + that._tabindex(that.input); + + element = that.element.attr("multiple", "multiple").hide(); + options = that.options; + data = options.value; + + if (!options.placeholder) { + options.placeholder = element.data("placeholder"); + } + + id = element.attr(ID); + + if (id) { + that._tagID = id + "_tag_active"; + + id = id + "_taglist"; + that.tagList.attr(ID, id); + } + + that._aria(id); + that._dataSource(); + that._ignoreCase(); + that._popup(); + + that._tagTemplate(); + that._initList(); + + that._reset(); + that._enable(); + that._placeholder(); + + if (options.autoBind) { + that.dataSource.fetch(); + } else if (data) { //TODO: work with VirtualList + if (!isArray(data)) { + data = [data]; + } + + if ($.isPlainObject(data[0]) || !options.dataValueField) { + that._retrieveData = true; + that.dataSource.data(data); + that.value(that._initialValues); + } + } + + kendo.notify(that); + }, + + options: { + name: "MultiSelect", + enabled: true, + autoBind: true, + autoClose: true, + highlightFirst: true, + dataTextField: "", + dataValueField: "", + filter: "startswith", + ignoreCase: true, + minLength: 0, + delay: 100, + value: null, + maxSelectedItems: null, + itemTemplate: "", + tagTemplate: "", + placeholder: "", + height: 200, + animation: {} + }, + + events: [ + OPEN, + CLOSE, + CHANGE, + SELECT, + "filtering", + "dataBinding", + "dataBound" + ], + + //TODO: Consolidate with ui.Select + setDataSource: function(dataSource) { + this.options.dataSource = dataSource; + + this._dataSource(); + + this.listView.setDataSource(this.dataSource); + + if (this.options.autoBind) { + this.dataSource.fetch(); + } + }, + + setOptions: function(options) { + List.fn.setOptions.call(this, options); + + this.listView.setOptions(options); + + this._accessors(); + this._aria(this.tagList.attr(ID)); + this._tagTemplate(); + }, + + currentTag: function(candidate) { + var that = this; + + if (candidate !== undefined) { + if (that._currentTag) { + that._currentTag + .removeClass(FOCUSEDCLASS) + .removeAttr(ID); + + that.input.removeAttr("aria-activedescendant"); + } + + if (candidate) { + candidate.addClass(FOCUSEDCLASS).attr(ID, that._tagID); + + that.input + .attr("aria-activedescendant", that._tagID); + } + + that._currentTag = candidate; + } else { + return that._currentTag; + } + }, + + dataItems: function() { + return this.listView.selectedDataItems(); + }, + + destroy: function() { + var that = this, + ns = that.ns; + + clearTimeout(that._busy); + clearTimeout(that._typing); + + that.wrapper.off(ns); + that.tagList.off(ns); + that.input.off(ns); + + List.fn.destroy.call(that); + }, + + _initList: function() { + var that = this; + var options = this.options; + var template = options.template || options.itemTemplate || "#:" + kendo.expr(options.dataTextField, "data") + "#"; + + var listOptions = { + autoBind: false, + selectable: "multiple", + height: options.height, + dataSource: this.dataSource, + dataValueField: options.dataValueField, + groupTemplate: options.groupTemplate || "#:data#", + fixedGroupTemplate: options.fixedGroupTemplate || "#:data#", + template: template, + activate: function() { + var current = this.focus(); + if (current) { + that._focused.add(that.filterInput).attr("aria-activedescendant", current.attr("id")); + } + + that.currentTag(null); + }, + click: $.proxy(this._click, this), + change: $.proxy(this._listChange, this), + deactivate: function() { + that._focused.add(that.filterInput).removeAttr("aria-activedescendant"); + }, + dataBinding: function() { + that.trigger("dataBinding"); //TODO: make preventable + that._angularItems("cleanup"); + }, + listBound: $.proxy(this._listBound, this), + dataBound: $.proxy(this._listBound, this) + }; + + if (options.virtual) { + if (typeof options.virtual === "object") { + $.extend(listOptions, { + listBound: $.proxy(this._listBound, this) + }, options.virtual); + } + + this.listView = new kendo.ui.VirtualList(this.ul, listOptions); + } else { + this.listView = new kendo.ui.StaticList(this.ul, listOptions); + } + + this.listView.value(this._initialValues || this.options.value); + }, + + _listChange: function(e) { + if (this._state === REBIND) { + this._state = ""; + e.added = []; + } + + this._selectValue(e.added, e.removed); + }, + + _wrapperMousedown: function(e) { + var that = this; + var notInput = e.target.nodeName.toLowerCase() !== "input"; + + if (notInput) { + e.preventDefault(); + } + + if (e.target.className.indexOf("k-delete") === -1) { + if (that.input[0] !== activeElement() && notInput) { + that.input.focus(); + } + + if (that.options.minLength === 0) { + that.open(); + } + } + + }, + + _inputFocus: function() { + this._placeholder(false); + this.wrapper.addClass(FOCUSEDCLASS); + }, + + _inputFocusout: function() { + var that = this; + + clearTimeout(that._typing); + + that.wrapper.removeClass(FOCUSEDCLASS); + + that._placeholder(!that.listView.selectedDataItems()[0], true); + that.close(); + + if (that._state === FILTER) { + that._state = ACCEPT; + that.listView.filter(false); + } + + that.element.blur(); + }, + + _removeTag: function(tag) { + var that = this; + var position = tag.index(); + var listView = that.listView; + var value = listView.value(); + + var customIndex = that._customOptions[value[position]]; + var option; + + if (customIndex !== undefined) { + value.splice(position, 1); + listView.value(value, true); + + option = that.element[0].children[customIndex]; + option.removeAttribute("selected"); + option.selected = false; + } else { + listView.select(listView.select()[position]); + } + + that.currentTag(null); + that._change(); + that._close(); + }, + + _tagListClick: function(e) { + this._removeTag($(e.target).closest(LI)); + }, + + _editable: function(options) { + var that = this, + disable = options.disable, + readonly = options.readonly, + wrapper = that.wrapper.off(ns), + tagList = that.tagList.off(ns), + input = that.element.add(that.input.off(ns)); + + if (!readonly && !disable) { + wrapper + .removeClass(STATEDISABLED) + .on(HOVEREVENTS, that._toggleHover) + .on("mousedown" + ns + " touchend" + ns, proxy(that._wrapperMousedown, that)); + + that.input.on(KEYDOWN, proxy(that._keydown, that)) + .on("paste" + ns, proxy(that._search, that)) + .on("focus" + ns, proxy(that._inputFocus, that)) + .on("focusout" + ns, proxy(that._inputFocusout, that)); + + input.removeAttr(DISABLED) + .removeAttr(READONLY) + .attr(ARIA_DISABLED, false) + .attr(ARIA_READONLY, false); + + tagList + .on(MOUSEENTER, LI, function() { $(this).addClass(HOVERCLASS); }) + .on(MOUSELEAVE, LI, function() { $(this).removeClass(HOVERCLASS); }) + .on(CLICK, ".k-delete", proxy(that._tagListClick, that)); + } else { + if (disable) { + wrapper.addClass(STATEDISABLED); + } else { + wrapper.removeClass(STATEDISABLED); + } + + input.attr(DISABLED, disable) + .attr(READONLY, readonly) + .attr(ARIA_DISABLED, disable) + .attr(ARIA_READONLY, readonly); + } + }, + + _close: function() { + var that = this; + if (that.options.autoClose) { + that.close(); + } else { + that.popup._position(); + } + }, + + close: function() { + this.popup.close(); + }, + + open: function() { + var that = this; + + if (that._request) { + that._retrieveData = false; + } + + if (that._retrieveData || !this.listView.isBound() || that._state === ACCEPT) { + that.listView.filter(false); + + that._open = true; + that._state = REBIND; + that._retrieveData = false; + that._filterSource(); + } else if (that._allowSelection()) { + that.popup.open(); + that._focusItem(); + } + }, + + toggle: function(toggle) { + toggle = toggle !== undefined ? toggle : !this.popup.visible(); + + this[toggle ? OPEN : CLOSE](); + }, + + refresh: function() { + this.listView.refresh(); + }, + + _listBound: function() { + var that = this; + var data = this.listView.data(); + var length = data.length; + + that._angularItems("compile"); + + that._render(data); + + that._calculateGroupPadding(that._height(length)); + + if (that._open) { + that._open = false; + that.toggle(length); + } + + if (that.popup.visible()) { + that.popup._position(); + } + + if (that.options.highlightFirst) { + that.listView.first(); + } + + if (that._touchScroller) { + that._touchScroller.reset(); + } + + that._makeUnselectable(); + + that._hideBusy(); + that.trigger("dataBound"); + }, + + search: function(word) { + var that = this; + var options = that.options; + var ignoreCase = options.ignoreCase; + var filter = options.filter; + var field = options.dataTextField; + var inputValue = that.input.val(); + var expression; + var length; + + if (options.placeholder === inputValue) { + inputValue = ""; + } + + clearTimeout(that._typing); + + word = typeof word === "string" ? word : inputValue; + + length = word.length; + + if (!length || length >= options.minLength) { + that.listView.filter(true); + that._state = FILTER; + that._open = true; + + expression = { + value: ignoreCase ? word.toLowerCase() : word, + field: field, + operator: filter, + ignoreCase: ignoreCase + }; + + that._filterSource(expression, that._retrieveData); + that._retrieveData = false; + } + }, + + value: function(value) { + var that = this; + var oldValue = that.listView.value().slice(); + var maxSelectedItems = that.options.maxSelectedItems; + var idx; + + if (value === undefined) { + return oldValue; + } + + value = that._normalizeValues(value); + + if (maxSelectedItems !== null && value.length > maxSelectedItems) { + value = value.slice(0, maxSelectedItems); + } + + if (value.length && oldValue.length) { + for (idx = 0; idx < oldValue.length; idx++) { + that._setOption(oldValue[idx], false); + } + + that.tagList.html(""); + } + + that.listView.value(value); + + that._old = value; + + that._fetchData(); + }, + + _setOption: function(value, selected) { + var option = this.element[0].children[this._optionsMap[value]]; + + if (option) { + if (selected) { + option.setAttribute("selected", "selected"); + } else { + option.removeAttribute("selected"); + } + + option.selected = selected; + } + }, + + _fetchData: function() { + var that = this; + var hasItems = !!that.dataSource.view().length; + var isEmptyArray = that.listView.value().length === 0; + + if (isEmptyArray) { + return; + } + + if (!that._fetch && !hasItems) { + that._fetch = true; + that.dataSource.fetch().done(function() { + that._fetch = false; + }); + } + }, + + _dataSource: function() { + var that = this, + element = that.element, + options = that.options, + dataSource = options.dataSource || {}; + + dataSource = isArray(dataSource) ? {data: dataSource} : dataSource; + + dataSource.select = element; + dataSource.fields = [{ field: options.dataTextField }, + { field: options.dataValueField }]; + + if (that.dataSource && that._refreshHandler) { + that._unbindDataSource(); + } else { + that._progressHandler = proxy(that._showBusy, that); + } + + that.dataSource = kendo.data.DataSource.create(dataSource) + .bind(PROGRESS, that._progressHandler); + }, + + _reset: function() { + var that = this, + element = that.element, + formId = element.attr("form"), + form = formId ? $("#" + formId) : element.closest("form"); + + if (form[0]) { + that._resetHandler = function() { + setTimeout(function() { + that.value(that._initialValues); + that._placeholder(); + }); + }; + + that._form = form.on("reset", that._resetHandler); + } + }, + + _initValue: function() { + var value = this.options.value || this.element.val(); + + this._old = this._initialValues = this._normalizeValues(value); + }, + + _normalizeValues: function(value) { + var that = this; + + if (value === null) { + value = []; + } else if (value && $.isPlainObject(value)) { + value = [that._value(value)]; + } else if (value && $.isPlainObject(value[0])) { + value = $.map(value, function(dataItem) { return that._value(dataItem); }); + } else if (!isArray(value) && !(value instanceof ObservableArray)) { + value = [value]; + } + + return value; + }, + + _change: function() { + var that = this, + value = that.value(); + + if (!compare(value, that._old)) { + that._old = value.slice(); + + that.trigger(CHANGE); + + // trigger the DOM change event so any subscriber gets notified + that.element.trigger(CHANGE); + } + }, + + _click: function(e) { + var item = e.item; + + if (this.trigger(SELECT, { item: item })) { + this._close(); + return; + } + + this._select(item); + this._change(); + this._close(); + }, + + _keydown: function(e) { + var that = this; + var key = e.keyCode; + var tag = that._currentTag; + var current = that.listView.focus(); + var hasValue = that.input.val(); + var isRtl = kendo.support.isRtl(that.wrapper); + var visible = that.popup.visible(); + + if (key === keys.DOWN) { + e.preventDefault(); + + if (!visible) { + that.open(); + + if (!current) { + this.listView.first(); + } + return; + } + + if (current) { + this.listView.next(); + if (!this.listView.focus()) { + this.listView.last(); + } + } else { + this.listView.first(); + } + } else if (key === keys.UP) { + if (visible) { + if (current) { + this.listView.prev(); + } + + if (!this.listView.focus()) { + that.close(); + } + } + e.preventDefault(); + } else if ((key === keys.LEFT && !isRtl) || (key === keys.RIGHT && isRtl)) { + if (!hasValue) { + tag = tag ? tag.prev() : $(that.tagList[0].lastChild); + if (tag[0]) { + that.currentTag(tag); + } + } + } else if ((key === keys.RIGHT && !isRtl) || (key === keys.LEFT && isRtl)) { + if (!hasValue && tag) { + tag = tag.next(); + that.currentTag(tag[0] ? tag : null); + } + } else if (key === keys.ENTER && visible) { + if (current) { + if (that.trigger(SELECT, {item: current})) { + that._close(); + return; + } + + that._select(current); + } + + that._change(); + that._close(); + e.preventDefault(); + } else if (key === keys.ESC) { + if (visible) { + e.preventDefault(); + } else { + that.currentTag(null); + } + + that.close(); + } else if (key === keys.HOME) { + if (visible) { + this.listView.first(); + } else if (!hasValue) { + tag = that.tagList[0].firstChild; + + if (tag) { + that.currentTag($(tag)); + } + } + } else if (key === keys.END) { + if (visible) { + this.listView.last(); + } else if (!hasValue) { + tag = that.tagList[0].lastChild; + + if (tag) { + that.currentTag($(tag)); + } + } + } else if ((key === keys.DELETE || key === keys.BACKSPACE) && !hasValue) { + if (key === keys.BACKSPACE && !tag) { + tag = $(that.tagList[0].lastChild); + } + + if (tag && tag[0]) { + that._removeTag(tag); + } + } else { + clearTimeout(that._typing); + setTimeout(function() { that._scale(); }); + that._search(); + } + }, + + _hideBusy: function () { + var that = this; + clearTimeout(that._busy); + that.input.attr("aria-busy", false); + that._loading.addClass(HIDDENCLASS); + that._request = false; + that._busy = null; + }, + + _showBusyHandler: function() { + this.input.attr("aria-busy", true); + this._loading.removeClass(HIDDENCLASS); + }, + + _showBusy: function () { + var that = this; + + that._request = true; + + if (that._busy) { + return; + } + + that._busy = setTimeout(proxy(that._showBusyHandler, that), 100); + }, + + _placeholder: function(show, skipCaret) { + var that = this, + input = that.input, + active = activeElement(); + + if (show === undefined) { + show = false; + if (input[0] !== active) { + show = !that.listView.selectedDataItems()[0]; + } + } + + that._prev = ""; + input.toggleClass("k-readonly", show) + .val(show ? that.options.placeholder : ""); + + if (input[0] === active && !skipCaret) { + kendo.caret(input[0], 0, 0); + } + + that._scale(); + }, + + _scale: function() { + var that = this, + wrapper = that.wrapper, + wrapperWidth = wrapper.width(), + span = that._span.text(that.input.val()), + textWidth; + + if (!wrapper.is(":visible")) { + span.appendTo(document.documentElement); + wrapperWidth = textWidth = span.width() + 25; + span.appendTo(wrapper); + } else { + textWidth = span.width() + 25; + } + + that.input.width(textWidth > wrapperWidth ? wrapperWidth : textWidth); + }, + + _option: function(dataItem, selected) { + var option = " this.listView.value().length; + }, + + _selectValue: function(added, removed) { + var tagList = this.tagList; + var getter = this._value; + var removedItem; + var addedItem; + var idx; + + for (idx = removed.length - 1; idx > -1; idx--) { + removedItem = removed[idx]; + + tagList[0].removeChild(tagList[0].children[removedItem.position]); + + this._setOption(getter(removedItem.dataItem), false); + } + + for (idx = 0; idx < added.length; idx++) { + addedItem = added[idx]; + + tagList.append(this.tagTemplate(addedItem.dataItem)); + + this._setOption(getter(addedItem.dataItem), true); + } + + this._placeholder(); + }, + + _select: function(candidate) { + var that = this; + var idx; + + if (that._state === REBIND) { + that._state = ""; + } + + if (!that._allowSelection()) { + return; + } + + this.listView.select(candidate); + + that._placeholder(); + + if (that._state === FILTER) { + that._state = ACCEPT; + that.listView.filter(false); + } + }, + + _input: function() { + var that = this, + accessKey = that.element[0].accessKey, + input = that._innerWrapper.children("input.k-input"); + + if (!input[0]) { + input = $('').appendTo(that._innerWrapper); + } + + that.element.removeAttr("accesskey"); + that._focused = that.input = input.attr({ + "accesskey": accessKey, + "autocomplete": "off", + "role": "listbox", + "aria-expanded": false + }); + }, + + _tagList: function() { + var that = this, + tagList = that._innerWrapper.children("ul"); + + if (!tagList[0]) { + tagList = $('
    ').appendTo(that._innerWrapper); + } + + that.tagList = tagList; + }, + + _tagTemplate: function() { + var that = this; + var options = that.options; + var tagTemplate = options.tagTemplate; + var hasDataSource = options.dataSource; + + if (that.element[0].length && !hasDataSource) { + options.dataTextField = options.dataTextField || "text"; + options.dataValueField = options.dataValueField || "value"; + } + + tagTemplate = tagTemplate ? kendo.template(tagTemplate) : kendo.template("#:" + kendo.expr(options.dataTextField, "data") + "#", { useWithBlock: false }); + + that.tagTemplate = function(data) { + return '
  • ' + tagTemplate(data) + 'delete
  • '; + }; + }, + + _loader: function() { + this._loading = $('').insertAfter(this.input); + }, + + _textContainer: function() { + var computedStyles = kendo.getComputedStyles(this.input[0], styles); + + computedStyles.position = "absolute"; + computedStyles.visibility = "hidden"; + computedStyles.top = -3333; + computedStyles.left = -3333; + + this._span = $("").css(computedStyles).appendTo(this.wrapper); + }, + + _wrapper: function() { + var that = this, + element = that.element, + wrapper = element.parent("span.k-multiselect"); + + if (!wrapper[0]) { + wrapper = element.wrap('
    ').parent(); + wrapper[0].style.cssText = element[0].style.cssText; + + $('
    ').insertBefore(element); + } + + that.wrapper = wrapper.addClass(element[0].className).css("display", ""); + that._innerWrapper = $(wrapper[0].firstChild); + } + }); + + function compare(a, b) { + var length; + + if ((a === null && b !== null) || (a !== null && b === null)) { + return false; + } + + length = a.length; + if (length !== b.length) { + return false; + } + + while (length--) { + if (a[length] !== b[length]) { + return false; + } + } + + return true; + } + + ui.plugin(MultiSelect); + +})(window.kendo.jQuery); + + + + + +(function($, undefined) { + var kendo = window.kendo, + Widget = kendo.ui.Widget, + Draggable = kendo.ui.Draggable, + extend = $.extend, + format = kendo.format, + parse = kendo.parseFloat, + proxy = $.proxy, + isArray = $.isArray, + math = Math, + support = kendo.support, + pointers = support.pointers, + msPointers = support.msPointers, + CHANGE = "change", + SLIDE = "slide", + NS = ".slider", + MOUSE_DOWN = "touchstart" + NS + " mousedown" + NS, + TRACK_MOUSE_DOWN = pointers ? "pointerdown" + NS : (msPointers ? "MSPointerDown" + NS : MOUSE_DOWN), + MOUSE_UP = "touchend" + NS + " mouseup" + NS, + TRACK_MOUSE_UP = pointers ? "pointerup" : (msPointers ? "MSPointerUp" + NS : MOUSE_UP), + MOVE_SELECTION = "moveSelection", + KEY_DOWN = "keydown" + NS, + CLICK = "click" + NS, + MOUSE_OVER = "mouseover" + NS, + FOCUS = "focus" + NS, + BLUR = "blur" + NS, + DRAG_HANDLE = ".k-draghandle", + TRACK_SELECTOR = ".k-slider-track", + TICK_SELECTOR = ".k-tick", + STATE_SELECTED = "k-state-selected", + STATE_FOCUSED = "k-state-focused", + STATE_DEFAULT = "k-state-default", + STATE_DISABLED = "k-state-disabled", + PRECISION = 3, + DISABLED = "disabled", + UNDEFINED = "undefined", + TABINDEX = "tabindex", + getTouches = kendo.getTouches; + + var SliderBase = Widget.extend({ + init: function(element, options) { + var that = this; + + Widget.fn.init.call(that, element, options); + + options = that.options; + + that._distance = round(options.max - options.min); + that._isHorizontal = options.orientation == "horizontal"; + that._isRtl = that._isHorizontal && kendo.support.isRtl(element); + that._position = that._isHorizontal ? "left" : "bottom"; + that._sizeFn = that._isHorizontal ? "width" : "height"; + that._outerSize = that._isHorizontal ? "outerWidth" : "outerHeight"; + + options.tooltip.format = options.tooltip.enabled ? options.tooltip.format || "{0}" : "{0}"; + + that._createHtml(); + that.wrapper = that.element.closest(".k-slider"); + that._trackDiv = that.wrapper.find(TRACK_SELECTOR); + + that._setTrackDivWidth(); + + that._maxSelection = that._trackDiv[that._sizeFn](); + + that._sliderItemsInit(); + + that._reset(); + + that._tabindex(that.wrapper.find(DRAG_HANDLE)); + that[options.enabled ? "enable" : "disable"](); + + var rtlDirectionSign = kendo.support.isRtl(that.wrapper) ? -1 : 1; + + that._keyMap = { + 37: step(-1 * rtlDirectionSign * options.smallStep), // left arrow + 40: step(-options.smallStep), // down arrow + 39: step(+1 * rtlDirectionSign * options.smallStep), // right arrow + 38: step(+options.smallStep), // up arrow + 35: setValue(options.max), // end + 36: setValue(options.min), // home + 33: step(+options.largeStep), // page up + 34: step(-options.largeStep) // page down + }; + + kendo.notify(that); + }, + + events: [ + CHANGE, + SLIDE + ], + + options: { + enabled: true, + min: 0, + max: 10, + smallStep: 1, + largeStep: 5, + orientation: "horizontal", + tickPlacement: "both", + tooltip: { enabled: true, format: "{0}" } + }, + + _resize: function() { + this._setTrackDivWidth(); + this.wrapper.find(".k-slider-items").remove(); + + this._maxSelection = this._trackDiv[this._sizeFn](); + this._sliderItemsInit(); + this._refresh(); + }, + + _sliderItemsInit: function() { + var that = this, + options = that.options; + + var sizeBetweenTicks = that._maxSelection / ((options.max - options.min) / options.smallStep); + var pixelWidths = that._calculateItemsWidth(math.floor(that._distance / options.smallStep)); + + if (options.tickPlacement != "none" && sizeBetweenTicks >= 2) { + that._trackDiv.before(createSliderItems(options, that._distance)); + that._setItemsWidth(pixelWidths); + that._setItemsTitle(); + } + + that._calculateSteps(pixelWidths); + + if (options.tickPlacement != "none" && sizeBetweenTicks >= 2 && + options.largeStep >= options.smallStep) { + that._setItemsLargeTick(); + } + }, + + getSize: function() { + return kendo.dimensions(this.wrapper); + }, + + _setTrackDivWidth: function() { + var that = this, + trackDivPosition = parseFloat(that._trackDiv.css(that._isRtl ? "right" : that._position), 10) * 2; + + that._trackDiv[that._sizeFn]((that.wrapper[that._sizeFn]() - 2) - trackDivPosition); + }, + + _setItemsWidth: function(pixelWidths) { + var that = this, + options = that.options, + first = 0, + last = pixelWidths.length - 1, + items = that.wrapper.find(TICK_SELECTOR), + i, + paddingTop = 0, + bordersWidth = 2, + count = items.length, + selection = 0; + + for (i = 0; i < count - 2; i++) { + $(items[i + 1])[that._sizeFn](pixelWidths[i]); + } + + if (that._isHorizontal) { + $(items[first]).addClass("k-first")[that._sizeFn](pixelWidths[last - 1]); + $(items[last]).addClass("k-last")[that._sizeFn](pixelWidths[last]); + } else { + $(items[last]).addClass("k-first")[that._sizeFn](pixelWidths[last]); + $(items[first]).addClass("k-last")[that._sizeFn](pixelWidths[last - 1]); + } + + if (that._distance % options.smallStep !== 0 && !that._isHorizontal) { + for (i = 0; i < pixelWidths.length; i++) { + selection += pixelWidths[i]; + } + + paddingTop = that._maxSelection - selection; + paddingTop += parseFloat(that._trackDiv.css(that._position), 10) + bordersWidth; + + that.wrapper.find(".k-slider-items").css("padding-top", paddingTop); + } + }, + + _setItemsTitle: function() { + var that = this, + options = that.options, + items = that.wrapper.find(TICK_SELECTOR), + titleNumber = options.min, + count = items.length, + i = that._isHorizontal && !that._isRtl ? 0 : count - 1, + limit = that._isHorizontal && !that._isRtl ? count : -1, + increment = that._isHorizontal && !that._isRtl ? 1 : -1; + + for (; i - limit !== 0 ; i += increment) { + $(items[i]).attr("title", format(options.tooltip.format, round(titleNumber))); + titleNumber += options.smallStep; + } + }, + + _setItemsLargeTick: function() { + var that = this, + options = that.options, + items = that.wrapper.find(TICK_SELECTOR), + i = 0, item, value; + + if (removeFraction(options.largeStep) % removeFraction(options.smallStep) === 0 || that._distance / options.largeStep >= 3) { + if (!that._isHorizontal && !that._isRtl) { + items = $.makeArray(items).reverse(); + } + + for (i = 0; i < items.length; i++) { + item = $(items[i]); + value = that._values[i]; + var valueWithoutFraction = round(removeFraction(value - this.options.min)); + if (valueWithoutFraction % removeFraction(options.smallStep) === 0 && valueWithoutFraction % removeFraction(options.largeStep) === 0) { + item.addClass("k-tick-large") + .html("" + item.attr("title") + ""); + + if (i !== 0 && i !== items.length - 1) { + item.css("line-height", item[that._sizeFn]() + "px"); + } + } + } + } + }, + + _calculateItemsWidth: function(itemsCount) { + var that = this, + options = that.options, + trackDivSize = parseFloat(that._trackDiv.css(that._sizeFn)) + 1, + pixelStep = trackDivSize / that._distance, + itemWidth, + pixelWidths, + i; + + if ((that._distance / options.smallStep) - math.floor(that._distance / options.smallStep) > 0) { + trackDivSize -= ((that._distance % options.smallStep) * pixelStep); + } + + itemWidth = trackDivSize / itemsCount; + pixelWidths = []; + + for (i = 0; i < itemsCount - 1; i++) { + pixelWidths[i] = itemWidth; + } + + pixelWidths[itemsCount - 1] = pixelWidths[itemsCount] = itemWidth / 2; + return that._roundWidths(pixelWidths); + }, + + _roundWidths: function(pixelWidthsArray) { + var balance = 0, + count = pixelWidthsArray.length, + i; + + for (i = 0; i < count; i++) { + balance += (pixelWidthsArray[i] - math.floor(pixelWidthsArray[i])); + pixelWidthsArray[i] = math.floor(pixelWidthsArray[i]); + } + + balance = math.round(balance); + + return this._addAdditionalSize(balance, pixelWidthsArray); + }, + + _addAdditionalSize: function(additionalSize, pixelWidthsArray) { + if (additionalSize === 0) { + return pixelWidthsArray; + } + + //set step size + var step = parseFloat(pixelWidthsArray.length - 1) / parseFloat(additionalSize == 1 ? additionalSize : additionalSize - 1), + i; + + for (i = 0; i < additionalSize; i++) { + pixelWidthsArray[parseInt(math.round(step * i), 10)] += 1; + } + + return pixelWidthsArray; + }, + + _calculateSteps: function(pixelWidths) { + var that = this, + options = that.options, + val = options.min, + selection = 0, + itemsCount = math.ceil(that._distance / options.smallStep), + i = 1, + lastItem; + + itemsCount += (that._distance / options.smallStep) % 1 === 0 ? 1 : 0; + pixelWidths.splice(0, 0, pixelWidths[itemsCount - 2] * 2); + pixelWidths.splice(itemsCount -1, 1, pixelWidths.pop() * 2); + + that._pixelSteps = [selection]; + that._values = [val]; + + if (itemsCount === 0) { + return; + } + + while (i < itemsCount) { + selection += (pixelWidths[i - 1] + pixelWidths[i]) / 2; + that._pixelSteps[i] = selection; + val += options.smallStep; + that._values[i] = round(val); + + i++; + } + + lastItem = that._distance % options.smallStep === 0 ? itemsCount - 1 : itemsCount; + + that._pixelSteps[lastItem] = that._maxSelection; + that._values[lastItem] = options.max; + + if (that._isRtl) { + that._pixelSteps.reverse(); + that._values.reverse(); + } + }, + + _getValueFromPosition: function(mousePosition, dragableArea) { + var that = this, + options = that.options, + step = math.max(options.smallStep * (that._maxSelection / that._distance), 0), + position = 0, + halfStep = (step / 2), + i; + + if (that._isHorizontal) { + position = mousePosition - dragableArea.startPoint; + if (that._isRtl) { + position = that._maxSelection - position; + } + } else { + position = dragableArea.startPoint - mousePosition; + } + + if (that._maxSelection - ((parseInt(that._maxSelection % step, 10) - 3) / 2) < position) { + return options.max; + } + + for (i = 0; i < that._pixelSteps.length; i++) { + if (math.abs(that._pixelSteps[i] - position) - 1 <= halfStep) { + return round(that._values[i]); + } + } + }, + + _getFormattedValue: function(val, drag) { + var that = this, + html = "", + tooltip = that.options.tooltip, + tooltipTemplate, + selectionStart, + selectionEnd; + + if (isArray(val)) { + selectionStart = val[0]; + selectionEnd = val[1]; + } else if (drag && drag.type) { + selectionStart = drag.selectionStart; + selectionEnd = drag.selectionEnd; + } + + if (drag) { + tooltipTemplate = drag.tooltipTemplate; + } + + if (!tooltipTemplate && tooltip.template) { + tooltipTemplate = kendo.template(tooltip.template); + } + + if (isArray(val) || (drag && drag.type)) { + + if (tooltipTemplate) { + html = tooltipTemplate({ + selectionStart: selectionStart, + selectionEnd: selectionEnd + }); + } else { + selectionStart = format(tooltip.format, selectionStart); + selectionEnd = format(tooltip.format, selectionEnd); + html = selectionStart + " - " + selectionEnd; + } + } else { + if (drag) { + drag.val = val; + } + + if (tooltipTemplate) { + html = tooltipTemplate({ + value: val + }); + } else { + html = format(tooltip.format, val); + } + } + return html; + }, + + _getDraggableArea: function() { + var that = this, + offset = kendo.getOffset(that._trackDiv); + + return { + startPoint: that._isHorizontal ? offset.left : offset.top + that._maxSelection, + endPoint: that._isHorizontal ? offset.left + that._maxSelection : offset.top + }; + }, + + _createHtml: function() { + var that = this, + element = that.element, + options = that.options, + inputs = element.find("input"); + + if (inputs.length == 2) { + inputs.eq(0).prop("value", formatValue(options.selectionStart)); + inputs.eq(1).prop("value", formatValue(options.selectionEnd)); + } else { + element.prop("value", formatValue(options.value)); + } + + element.wrap(createWrapper(options, element, that._isHorizontal)).hide(); + + if (options.showButtons) { + element.before(createButton(options, "increase", that._isHorizontal)) + .before(createButton(options, "decrease", that._isHorizontal)); + } + + element.before(createTrack(options, element)); + }, + + _focus: function(e) { + var that = this, + target = e.target, + val = that.value(), + drag = that._drag; + + if (!drag) { + if (target == that.wrapper.find(DRAG_HANDLE).eq(0)[0]) { + drag = that._firstHandleDrag; + that._activeHandle = 0; + } else { + drag = that._lastHandleDrag; + that._activeHandle = 1; + } + val = val[that._activeHandle]; + } + + $(target).addClass(STATE_FOCUSED + " " + STATE_SELECTED); + + if (drag) { + that._activeHandleDrag = drag; + + drag.selectionStart = that.options.selectionStart; + drag.selectionEnd = that.options.selectionEnd; + + drag._updateTooltip(val); + } + }, + + _focusWithMouse: function(target) { + target = $(target); + + var that = this, + idx = target.is(DRAG_HANDLE) ? target.index() : 0; + + window.setTimeout(function(){ + that.wrapper.find(DRAG_HANDLE)[idx == 2 ? 1 : 0].focus(); + }, 1); + + that._setTooltipTimeout(); + }, + + _blur: function(e) { + var that = this, + drag = that._activeHandleDrag; + + $(e.target).removeClass(STATE_FOCUSED + " " + STATE_SELECTED); + + if (drag) { + drag._removeTooltip(); + delete that._activeHandleDrag; + delete that._activeHandle; + } + }, + + _setTooltipTimeout: function() { + var that = this; + that._tooltipTimeout = window.setTimeout(function(){ + var drag = that._drag || that._activeHandleDrag; + if (drag) { + drag._removeTooltip(); + } + }, 300); + }, + + _clearTooltipTimeout: function() { + var that = this; + window.clearTimeout(this._tooltipTimeout); + var drag = that._drag || that._activeHandleDrag; + if (drag && drag.tooltipDiv) { + drag.tooltipDiv.stop(true, false).css("opacity", 1); + } + }, + + _reset: function () { + var that = this, + element = that.element, + formId = element.attr("form"), + form = formId ? $("#" + formId) : element.closest("form"); + + if (form[0]) { + that._form = form.on("reset", proxy(that._formResetHandler, that)); + } + }, + + destroy: function () { + if (this._form) { + this._form.off("reset", this._formResetHandler); + } + Widget.fn.destroy.call(this); + } + }); + + function createWrapper (options, element, isHorizontal) { + var orientationCssClass = isHorizontal ? " k-slider-horizontal" : " k-slider-vertical", + style = options.style ? options.style : element.attr("style"), + cssClasses = element.attr("class") ? (" " + element.attr("class")) : "", + tickPlacementCssClass = ""; + + if (options.tickPlacement == "bottomRight") { + tickPlacementCssClass = " k-slider-bottomright"; + } else if (options.tickPlacement == "topLeft") { + tickPlacementCssClass = " k-slider-topleft"; + } + + style = style ? " style='" + style + "'" : ""; + + return "
    " + + "
    "; + } + + function createButton (options, type, isHorizontal) { + var buttonCssClass = ""; + + if (type == "increase") { + buttonCssClass = isHorizontal ? "k-i-arrow-e" : "k-i-arrow-n"; + } else { + buttonCssClass = isHorizontal ? "k-i-arrow-w" : "k-i-arrow-s"; + } + + return "" + options[type + "ButtonTitle"] + ""; + } + + function createSliderItems (options, distance) { + var result = "
      ", + count = math.floor(round(distance / options.smallStep)) + 1, + i; + + for(i = 0; i < count; i++) { + result += ""; + } + + result += "
    "; + + return result; + } + + function createTrack (options, element) { + var dragHandleCount = element.is("input") ? 1 : 2, + firstDragHandleTitle = dragHandleCount == 2 ? options.leftDragHandleTitle : options.dragHandleTitle; + + return "
    " + + "Drag" + + (dragHandleCount > 1 ? "Drag" : "") + + "
    "; + } + + function step(stepValue) { + return function (value) { + return value + stepValue; + }; + } + + function setValue(value) { + return function () { + return value; + }; + } + + function formatValue(value) { + return (value + "").replace(".", kendo.cultures.current.numberFormat["."]); + } + + function round(value) { + value = parseFloat(value, 10); + var power = math.pow(10, PRECISION || 0); + return math.round(value * power) / power; + } + + function parseAttr(element, name) { + var value = parse(element.getAttribute(name)); + if (value === null) { + value = undefined; + } + return value; + } + + function defined(value) { + return typeof value !== UNDEFINED; + } + + function removeFraction(value) { + return value * 10000; + } + + var Slider = SliderBase.extend({ + init: function(element, options) { + var that = this, + dragHandle; + + element.type = "text"; + options = extend({}, { + value: parseAttr(element, "value"), + min: parseAttr(element, "min"), + max: parseAttr(element, "max"), + smallStep: parseAttr(element, "step") + }, options); + + element = $(element); + + if (options && options.enabled === undefined) { + options.enabled = !element.is("[disabled]"); + } + + SliderBase.fn.init.call(that, element, options); + options = that.options; + if (!defined(options.value) || options.value === null) { + options.value = options.min; + element.prop("value", formatValue(options.min)); + } + options.value = math.max(math.min(options.value, options.max), options.min); + + dragHandle = that.wrapper.find(DRAG_HANDLE); + + new Slider.Selection(dragHandle, that, options); + that._drag = new Slider.Drag(dragHandle, "", that, options); + }, + + options: { + name: "Slider", + showButtons: true, + increaseButtonTitle: "Increase", + decreaseButtonTitle: "Decrease", + dragHandleTitle: "drag", + tooltip: { format: "{0:#,#.##}" }, + value: null + }, + + enable: function (enable) { + var that = this, + options = that.options, + clickHandler, + move; + + that.disable(); + if (enable === false) { + return; + } + + that.wrapper + .removeClass(STATE_DISABLED) + .addClass(STATE_DEFAULT); + + that.wrapper.find("input").removeAttr(DISABLED); + + clickHandler = function (e) { + var touch = getTouches(e)[0]; + + if (!touch) { + return; + } + + var mousePosition = that._isHorizontal ? touch.location.pageX : touch.location.pageY, + dragableArea = that._getDraggableArea(), + target = $(e.target); + + if (target.hasClass("k-draghandle")) { + target.addClass(STATE_FOCUSED + " " + STATE_SELECTED); + return; + } + + that._update(that._getValueFromPosition(mousePosition, dragableArea)); + + that._focusWithMouse(e.target); + + that._drag.dragstart(e); + e.preventDefault(); + }; + + that.wrapper + .find(TICK_SELECTOR + ", " + TRACK_SELECTOR) + .on(TRACK_MOUSE_DOWN, clickHandler) + .end() + .on(TRACK_MOUSE_DOWN, function() { + $(document.documentElement).one("selectstart", kendo.preventDefault); + }) + .on(TRACK_MOUSE_UP, function() { + that._drag._end(); + }); + + that.wrapper + .find(DRAG_HANDLE) + .attr(TABINDEX, 0) + .on(MOUSE_UP, function () { + that._setTooltipTimeout(); + }) + .on(CLICK, function (e) { + that._focusWithMouse(e.target); + e.preventDefault(); + }) + .on(FOCUS, proxy(that._focus, that)) + .on(BLUR, proxy(that._blur, that)); + + move = proxy(function (sign) { + var newVal = that._nextValueByIndex(that._valueIndex + (sign * 1)); + that._setValueInRange(newVal); + that._drag._updateTooltip(newVal); + }, that); + + if (options.showButtons) { + var mouseDownHandler = proxy(function(e, sign) { + this._clearTooltipTimeout(); + if (e.which === 1 || (support.touch && e.which === 0)) { + move(sign); + + this.timeout = setTimeout(proxy(function () { + this.timer = setInterval(function () { + move(sign); + }, 60); + }, this), 200); + } + }, that); + + that.wrapper.find(".k-button") + .on(MOUSE_UP, proxy(function (e) { + this._clearTimer(); + that._focusWithMouse(e.target); + }, that)) + .on(MOUSE_OVER, function (e) { + $(e.currentTarget).addClass("k-state-hover"); + }) + .on("mouseout" + NS, proxy(function (e) { + $(e.currentTarget).removeClass("k-state-hover"); + this._clearTimer(); + }, that)) + .eq(0) + .on(MOUSE_DOWN, proxy(function (e) { + mouseDownHandler(e, 1); + }, that)) + .click(false) + .end() + .eq(1) + .on(MOUSE_DOWN, proxy(function (e) { + mouseDownHandler(e, -1); + }, that)) + .click(kendo.preventDefault); + } + + that.wrapper + .find(DRAG_HANDLE) + .off(KEY_DOWN, false) + .on(KEY_DOWN, proxy(this._keydown, that)); + + options.enabled = true; + }, + + disable: function () { + var that = this; + + that.wrapper + .removeClass(STATE_DEFAULT) + .addClass(STATE_DISABLED); + + $(that.element).prop(DISABLED, DISABLED); + + that.wrapper + .find(".k-button") + .off(MOUSE_DOWN) + .on(MOUSE_DOWN, kendo.preventDefault) + .off(MOUSE_UP) + .on(MOUSE_UP, kendo.preventDefault) + .off("mouseleave" + NS) + .on("mouseleave" + NS, kendo.preventDefault) + .off(MOUSE_OVER) + .on(MOUSE_OVER, kendo.preventDefault); + + that.wrapper + .find(TICK_SELECTOR + ", " + TRACK_SELECTOR).off(TRACK_MOUSE_DOWN).off(TRACK_MOUSE_UP); + + that.wrapper + .find(DRAG_HANDLE) + .attr(TABINDEX, -1) + .off(MOUSE_UP) + .off(KEY_DOWN) + .off(CLICK) + .off(FOCUS) + .off(BLUR); + + that.options.enabled = false; + }, + + _update: function (val) { + var that = this, + change = that.value() != val; + + that.value(val); + + if (change) { + that.trigger(CHANGE, { value: that.options.value }); + } + }, + + value: function (value) { + var that = this, + options = that.options; + + value = round(value); + if (isNaN(value)) { + return options.value; + } + + if (value >= options.min && value <= options.max) { + if (options.value != value) { + that.element.prop("value", formatValue(value)); + options.value = value; + that._refreshAriaAttr(value); + that._refresh(); + } + } + }, + + _refresh: function () { + this.trigger(MOVE_SELECTION, { value: this.options.value }); + }, + + _refreshAriaAttr: function(value) { + var that = this, + drag = that._drag, + formattedValue; + + if (drag && drag._tooltipDiv) { + formattedValue = drag._tooltipDiv.text(); + } else { + formattedValue = that._getFormattedValue(value, null); + } + this.wrapper.find(DRAG_HANDLE).attr("aria-valuenow", value).attr("aria-valuetext", formattedValue); + }, + + _clearTimer: function () { + clearTimeout(this.timeout); + clearInterval(this.timer); + }, + + _keydown: function (e) { + var that = this; + + if (e.keyCode in that._keyMap) { + that._clearTooltipTimeout(); + that._setValueInRange(that._keyMap[e.keyCode](that.options.value)); + that._drag._updateTooltip(that.value()); + e.preventDefault(); + } + }, + + _setValueInRange: function (val) { + var that = this, + options = that.options; + + val = round(val); + if (isNaN(val)) { + that._update(options.min); + return; + } + + val = math.max(math.min(val, options.max), options.min); + that._update(val); + }, + + _nextValueByIndex: function (index) { + var count = this._values.length; + if (this._isRtl) { + index = count - 1 - index; + } + return this._values[math.max(0, math.min(index, count - 1))]; + }, + + _formResetHandler: function () { + var that = this, + min = that.options.min; + + setTimeout(function () { + var value = that.element[0].value; + that.value(value === "" || isNaN(value) ? min : value); + }); + }, + + destroy: function() { + var that = this; + + SliderBase.fn.destroy.call(that); + + that.wrapper.off(NS) + .find(".k-button").off(NS) + .end() + .find(DRAG_HANDLE).off(NS) + .end() + .find(TICK_SELECTOR + ", " + TRACK_SELECTOR).off(NS) + .end(); + + that._drag.draggable.destroy(); + that._drag._removeTooltip(true); + } + }); + + Slider.Selection = function (dragHandle, that, options) { + function moveSelection (val) { + var selectionValue = val - options.min, + index = that._valueIndex = math.ceil(round(selectionValue / options.smallStep)), + selection = parseInt(that._pixelSteps[index], 10), + selectionDiv = that._trackDiv.find(".k-slider-selection"), + halfDragHanndle = parseInt(dragHandle[that._outerSize]() / 2, 10), + rtlCorrection = that._isRtl ? 2 : 0; + + selectionDiv[that._sizeFn](that._isRtl ? that._maxSelection - selection : selection); + dragHandle.css(that._position, selection - halfDragHanndle - rtlCorrection); + } + + moveSelection(options.value); + + that.bind([CHANGE, SLIDE, MOVE_SELECTION], function (e) { + moveSelection(parseFloat(e.value, 10)); + }); + }; + + Slider.Drag = function (element, type, owner, options) { + var that = this; + that.owner = owner; + that.options = options; + that.element = element; + that.type = type; + + that.draggable = new Draggable(element, { + distance: 0, + dragstart: proxy(that._dragstart, that), + drag: proxy(that.drag, that), + dragend: proxy(that.dragend, that), + dragcancel: proxy(that.dragcancel, that) + }); + + element.click(false); + }; + + Slider.Drag.prototype = { + dragstart: function(e) { + // add reference to the last active drag handle. + this.owner._activeDragHandle = this; + // HACK to initiate click on the line + this.draggable.userEvents.cancel(); + this.draggable.userEvents._start(e); + }, + + _dragstart: function(e) { + var that = this, + owner = that.owner, + options = that.options; + + if (!options.enabled) { + e.preventDefault(); + return; + } + + // add reference to the last active drag handle. + this.owner._activeDragHandle = this; + + owner.element.off(MOUSE_OVER); + owner.wrapper.find("." + STATE_FOCUSED).removeClass(STATE_FOCUSED + " " + STATE_SELECTED); + that.element.addClass(STATE_FOCUSED + " " + STATE_SELECTED); + $(document.documentElement).css("cursor", "pointer"); + + that.dragableArea = owner._getDraggableArea(); + that.step = math.max(options.smallStep * (owner._maxSelection / owner._distance), 0); + + if (that.type) { + that.selectionStart = options.selectionStart; + that.selectionEnd = options.selectionEnd; + owner._setZIndex(that.type); + } else { + that.oldVal = that.val = options.value; + } + + that._removeTooltip(true); + that._createTooltip(); + }, + + _createTooltip: function() { + var that = this, + owner = that.owner, + tooltip = that.options.tooltip, + html = '', + wnd = $(window), + tooltipTemplate, colloutCssClass; + + if (!tooltip.enabled) { + return; + } + + if (tooltip.template) { + tooltipTemplate = that.tooltipTemplate = kendo.template(tooltip.template); + } + + $(".k-slider-tooltip").remove(); // if user changes window while tooltip is visible, a second one will be created + that.tooltipDiv = $("
    ").appendTo(document.body); + + html = owner._getFormattedValue(that.val || owner.value(), that); + + if (!that.type) { + colloutCssClass = "k-callout-" + (owner._isHorizontal ? 's' : 'e'); + that.tooltipInnerDiv = "
    "; + html += that.tooltipInnerDiv; + } + + that.tooltipDiv.html(html); + + that._scrollOffset = { + top: wnd.scrollTop(), + left: wnd.scrollLeft() + }; + + that.moveTooltip(); + }, + + drag: function (e) { + var that = this, + owner = that.owner, + x = e.x.location, + y = e.y.location, + startPoint = that.dragableArea.startPoint, + endPoint = that.dragableArea.endPoint, + slideParams; + + e.preventDefault(); + + if (owner._isHorizontal) { + if (owner._isRtl) { + that.val = that.constrainValue(x, startPoint, endPoint, x < endPoint); + } else { + that.val = that.constrainValue(x, startPoint, endPoint, x >= endPoint); + } + } else { + that.val = that.constrainValue(y, endPoint, startPoint, y <= endPoint); + } + + if (that.oldVal != that.val) { + that.oldVal = that.val; + + if (that.type) { + if (that.type == "firstHandle") { + if (that.val < that.selectionEnd) { + that.selectionStart = that.val; + } else { + that.selectionStart = that.selectionEnd = that.val; + } + } else { + if (that.val > that.selectionStart) { + that.selectionEnd = that.val; + } else { + that.selectionStart = that.selectionEnd = that.val; + } + } + slideParams = { + values: [that.selectionStart, that.selectionEnd], + value: [that.selectionStart, that.selectionEnd] + }; + } else { + slideParams = { value: that.val }; + } + + owner.trigger(SLIDE, slideParams); + } + + that._updateTooltip(that.val); + }, + + _updateTooltip: function(val) { + var that = this, + options = that.options, + tooltip = options.tooltip, + html = ""; + + if (!tooltip.enabled) { + return; + } + + if (!that.tooltipDiv) { + that._createTooltip(); + } + + html = that.owner._getFormattedValue(round(val), that); + + if (!that.type) { + html += that.tooltipInnerDiv; + } + + that.tooltipDiv.html(html); + that.moveTooltip(); + }, + + dragcancel: function() { + this.owner._refresh(); + $(document.documentElement).css("cursor", ""); + return this._end(); + }, + + dragend: function() { + var that = this, + owner = that.owner; + + $(document.documentElement).css("cursor", ""); + + if (that.type) { + owner._update(that.selectionStart, that.selectionEnd); + } else { + owner._update(that.val); + that.draggable.userEvents._disposeAll(); + } + + return that._end(); + }, + + _end: function() { + var that = this, + owner = that.owner; + + owner._focusWithMouse(that.element); + + owner.element.on(MOUSE_OVER); + + return false; + }, + + _removeTooltip: function(noAnimation) { + var that = this, + owner = that.owner; + + if (that.tooltipDiv && owner.options.tooltip.enabled && owner.options.enabled) { + if (noAnimation) { + that.tooltipDiv.remove(); + that.tooltipDiv = null; + } else { + that.tooltipDiv.fadeOut("slow", function(){ + $(this).remove(); + that.tooltipDiv = null; + }); + } + } + }, + + moveTooltip: function () { + var that = this, + owner = that.owner, + top = 0, + left = 0, + element = that.element, + offset = kendo.getOffset(element), + margin = 8, + viewport = $(window), + callout = that.tooltipDiv.find(".k-callout"), + width = that.tooltipDiv.outerWidth(), + height = that.tooltipDiv.outerHeight(), + dragHandles, sdhOffset, diff, anchorSize; + + if (that.type) { + dragHandles = owner.wrapper.find(DRAG_HANDLE); + offset = kendo.getOffset(dragHandles.eq(0)); + sdhOffset = kendo.getOffset(dragHandles.eq(1)); + + if (owner._isHorizontal) { + top = sdhOffset.top; + left = offset.left + ((sdhOffset.left - offset.left) / 2); + } else { + top = offset.top + ((sdhOffset.top - offset.top) / 2); + left = sdhOffset.left; + } + + anchorSize = dragHandles.eq(0).outerWidth() + 2 * margin; + } else { + top = offset.top; + left = offset.left; + anchorSize = element.outerWidth() + 2 * margin; + } + + if (owner._isHorizontal) { + left -= parseInt((width - element[owner._outerSize]()) / 2, 10); + top -= height + callout.height() + margin; + } else { + top -= parseInt((height - element[owner._outerSize]()) / 2, 10); + left -= width + callout.width() + margin; + } + + if (owner._isHorizontal) { + diff = that._flip(top, height, anchorSize, viewport.outerHeight() + that._scrollOffset.top); + top += diff; + left += that._fit(left, width, viewport.outerWidth() + that._scrollOffset.left); + } else { + diff = that._flip(left, width, anchorSize, viewport.outerWidth() + that._scrollOffset.left); + top += that._fit(top, height, viewport.outerHeight() + that._scrollOffset.top); + left += diff; + } + + if (diff > 0 && callout) { + callout.removeClass(); + callout.addClass("k-callout k-callout-" + (owner._isHorizontal ? "n" : "w")); + } + + that.tooltipDiv.css({ top: top, left: left }); + }, + + _fit: function(position, size, viewPortEnd) { + var output = 0; + + if (position + size > viewPortEnd) { + output = viewPortEnd - (position + size); + } + + if (position < 0) { + output = -position; + } + + return output; + }, + + _flip: function(offset, size, anchorSize, viewPortEnd) { + var output = 0; + + if (offset + size > viewPortEnd) { + output += -(anchorSize + size); + } + + if (offset + output < 0) { + output += anchorSize + size; + } + + return output; + }, + + constrainValue: function (position, min, max, maxOverflow) { + var that = this, + val = 0; + + if (min < position && position < max) { + val = that.owner._getValueFromPosition(position, that.dragableArea); + } else { + if (maxOverflow ) { + val = that.options.max; + } else { + val = that.options.min; + } + } + + return val; + } + + }; + + kendo.ui.plugin(Slider); + + var RangeSlider = SliderBase.extend({ + init: function(element, options) { + var that = this, + inputs = $(element).find("input"), + firstInput = inputs.eq(0)[0], + secondInput = inputs.eq(1)[0]; + + firstInput.type = "text"; + secondInput.type = "text"; + + options = extend({}, { + selectionStart: parseAttr(firstInput, "value"), + min: parseAttr(firstInput, "min"), + max: parseAttr(firstInput, "max"), + smallStep: parseAttr(firstInput, "step") + }, { + selectionEnd: parseAttr(secondInput, "value"), + min: parseAttr(secondInput, "min"), + max: parseAttr(secondInput, "max"), + smallStep: parseAttr(secondInput, "step") + }, options); + + if (options && options.enabled === undefined) { + options.enabled = !inputs.is("[disabled]"); + } + + SliderBase.fn.init.call(that, element, options); + options = that.options; + if (!defined(options.selectionStart) || options.selectionStart === null) { + options.selectionStart = options.min; + inputs.eq(0).prop("value", formatValue(options.min)); + } + + if (!defined(options.selectionEnd) || options.selectionEnd === null) { + options.selectionEnd = options.max; + inputs.eq(1).prop("value", formatValue(options.max)); + } + + var dragHandles = that.wrapper.find(DRAG_HANDLE); + + new RangeSlider.Selection(dragHandles, that, options); + that._firstHandleDrag = new Slider.Drag(dragHandles.eq(0), "firstHandle", that, options); + that._lastHandleDrag = new Slider.Drag(dragHandles.eq(1), "lastHandle" , that, options); + }, + + options: { + name: "RangeSlider", + leftDragHandleTitle: "drag", + rightDragHandleTitle: "drag", + tooltip: { format: "{0:#,#.##}" }, + selectionStart: null, + selectionEnd: null + }, + + enable: function (enable) { + var that = this, + options = that.options, + clickHandler; + + that.disable(); + if (enable === false) { + return; + } + + that.wrapper + .removeClass(STATE_DISABLED) + .addClass(STATE_DEFAULT); + + that.wrapper.find("input").removeAttr(DISABLED); + + clickHandler = function (e) { + var touch = getTouches(e)[0]; + + if (!touch) { + return; + } + + var mousePosition = that._isHorizontal ? touch.location.pageX : touch.location.pageY, + dragableArea = that._getDraggableArea(), + val = that._getValueFromPosition(mousePosition, dragableArea), + target = $(e.target), + from, to, drag; + + if (target.hasClass("k-draghandle")) { + that.wrapper.find("." + STATE_FOCUSED).removeClass(STATE_FOCUSED + " " + STATE_SELECTED); + target.addClass(STATE_FOCUSED + " " + STATE_SELECTED); + return; + } + + if (val < options.selectionStart) { + from = val; + to = options.selectionEnd; + drag = that._firstHandleDrag; + } else if (val > that.selectionEnd) { + from = options.selectionStart; + to = val; + drag = that._lastHandleDrag; + } else { + if (val - options.selectionStart <= options.selectionEnd - val) { + from = val; + to = options.selectionEnd; + drag = that._firstHandleDrag; + } else { + from = options.selectionStart; + to = val; + drag = that._lastHandleDrag; + } + } + + drag.dragstart(e); + that._setValueInRange(from, to); + that._focusWithMouse(drag.element); + }; + + that.wrapper + .find(TICK_SELECTOR + ", " + TRACK_SELECTOR) + .on(TRACK_MOUSE_DOWN, clickHandler) + .end() + .on(TRACK_MOUSE_DOWN, function() { + $(document.documentElement).one("selectstart", kendo.preventDefault); + }) + .on(TRACK_MOUSE_UP, function() { + if (that._activeDragHandle) { + that._activeDragHandle._end(); + } + }); + + that.wrapper + .find(DRAG_HANDLE) + .attr(TABINDEX, 0) + .on(MOUSE_UP, function () { + that._setTooltipTimeout(); + }) + .on(CLICK, function (e) { + that._focusWithMouse(e.target); + e.preventDefault(); + }) + .on(FOCUS, proxy(that._focus, that)) + .on(BLUR, proxy(that._blur, that)); + + that.wrapper.find(DRAG_HANDLE) + .off(KEY_DOWN, kendo.preventDefault) + .eq(0).on(KEY_DOWN, + proxy(function(e) { + this._keydown(e, "firstHandle"); + }, that) + ) + .end() + .eq(1).on(KEY_DOWN, + proxy(function(e) { + this._keydown(e, "lastHandle"); + }, that) + ); + + that.options.enabled = true; + }, + + disable: function () { + var that = this; + + that.wrapper + .removeClass(STATE_DEFAULT) + .addClass(STATE_DISABLED); + + that.wrapper.find("input").prop(DISABLED, DISABLED); + + that.wrapper + .find(TICK_SELECTOR + ", " + TRACK_SELECTOR).off(TRACK_MOUSE_DOWN).off(TRACK_MOUSE_UP); + + that.wrapper + .find(DRAG_HANDLE) + .attr(TABINDEX, -1) + .off(MOUSE_UP) + .off(KEY_DOWN) + .off(CLICK) + .off(FOCUS) + .off(BLUR); + + that.options.enabled = false; + }, + + _keydown: function (e, handle) { + var that = this, + selectionStartValue = that.options.selectionStart, + selectionEndValue = that.options.selectionEnd, + dragSelectionStart, + dragSelectionEnd, + activeHandleDrag; + + if (e.keyCode in that._keyMap) { + + that._clearTooltipTimeout(); + + if (handle == "firstHandle") { + activeHandleDrag = that._activeHandleDrag = that._firstHandleDrag; + selectionStartValue = that._keyMap[e.keyCode](selectionStartValue); + + if (selectionStartValue > selectionEndValue) { + selectionEndValue = selectionStartValue; + } + } else { + activeHandleDrag = that._activeHandleDrag = that._lastHandleDrag; + selectionEndValue = that._keyMap[e.keyCode](selectionEndValue); + + if (selectionStartValue > selectionEndValue) { + selectionStartValue = selectionEndValue; + } + } + + that._setValueInRange(selectionStartValue, selectionEndValue); + + dragSelectionStart = Math.max(selectionStartValue, that.options.selectionStart); + dragSelectionEnd = Math.min(selectionEndValue, that.options.selectionEnd); + + activeHandleDrag.selectionEnd = Math.max(dragSelectionEnd, that.options.selectionStart); + activeHandleDrag.selectionStart = Math.min(dragSelectionStart, that.options.selectionEnd); + + activeHandleDrag._updateTooltip(that.value()[that._activeHandle]); + + e.preventDefault(); + } + }, + + _update: function (selectionStart, selectionEnd) { + var that = this, + values = that.value(); + + var change = values[0] != selectionStart || values[1] != selectionEnd; + + that.value([selectionStart, selectionEnd]); + + if (change) { + that.trigger(CHANGE, { + values: [selectionStart, selectionEnd], + value: [selectionStart, selectionEnd] + }); + } + }, + + value: function(value) { + if (value && value.length) { + return this._value(value[0], value[1]); + } else { + return this._value(); + } + }, + + _value: function(start, end) { + var that = this, + options = that.options, + selectionStart = options.selectionStart, + selectionEnd = options.selectionEnd; + + if (isNaN(start) && isNaN(end)) { + return [selectionStart, selectionEnd]; + } else { + start = round(start); + end = round(end); + } + + if (start >= options.min && start <= options.max && + end >= options.min && end <= options.max && start <= end) { + if (selectionStart != start || selectionEnd != end) { + that.element.find("input") + .eq(0).prop("value", formatValue(start)) + .end() + .eq(1).prop("value", formatValue(end)); + + options.selectionStart = start; + options.selectionEnd = end; + that._refresh(); + that._refreshAriaAttr(start, end); + } + } + }, + + values: function (start, end) { + if (isArray(start)) { + return this._value(start[0], start[1]); + } else { + return this._value(start, end); + } + }, + + _refresh: function() { + var that = this, + options = that.options; + + that.trigger(MOVE_SELECTION, { + values: [options.selectionStart, options.selectionEnd], + value: [options.selectionStart, options.selectionEnd] + }); + + if (options.selectionStart == options.max && options.selectionEnd == options.max) { + that._setZIndex("firstHandle"); + } + }, + + _refreshAriaAttr: function(start, end) { + var that = this, + dragHandles = that.wrapper.find(DRAG_HANDLE), + drag = that._activeHandleDrag, + formattedValue; + + formattedValue = that._getFormattedValue([start, end], drag); + + dragHandles.eq(0).attr("aria-valuenow", start); + dragHandles.eq(1).attr("aria-valuenow", end); + dragHandles.attr("aria-valuetext", formattedValue); + }, + + _setValueInRange: function (selectionStart, selectionEnd) { + var options = this.options; + + selectionStart = math.max(math.min(selectionStart, options.max), options.min); + + selectionEnd = math.max(math.min(selectionEnd, options.max), options.min); + + if (selectionStart == options.max && selectionEnd == options.max) { + this._setZIndex("firstHandle"); + } + + this._update(math.min(selectionStart, selectionEnd), math.max(selectionStart, selectionEnd)); + }, + + _setZIndex: function (type) { + this.wrapper.find(DRAG_HANDLE).each(function (index) { + $(this).css("z-index", type == "firstHandle" ? 1 - index : index); + }); + }, + + _formResetHandler: function () { + var that = this, + options = that.options; + + setTimeout(function () { + var inputs = that.element.find("input"); + var start = inputs[0].value; + var end = inputs[1].value; + that.values(start === "" || isNaN(start) ? options.min : start, end === "" || isNaN(end) ? options.max : end); + }); + }, + + destroy: function() { + var that = this; + + SliderBase.fn.destroy.call(that); + + that.wrapper.off(NS) + .find(TICK_SELECTOR + ", " + TRACK_SELECTOR).off(NS) + .end() + .find(DRAG_HANDLE).off(NS); + + that._firstHandleDrag.draggable.destroy(); + that._lastHandleDrag.draggable.destroy(); + } + }); + + RangeSlider.Selection = function (dragHandles, that, options) { + function moveSelection(value) { + value = value || []; + var selectionStartValue = value[0] - options.min, + selectionEndValue = value[1] - options.min, + selectionStartIndex = math.ceil(round(selectionStartValue / options.smallStep)), + selectionEndIndex = math.ceil(round(selectionEndValue / options.smallStep)), + selectionStart = that._pixelSteps[selectionStartIndex], + selectionEnd = that._pixelSteps[selectionEndIndex], + halfHandle = parseInt(dragHandles.eq(0)[that._outerSize]() / 2, 10), + rtlCorrection = that._isRtl ? 2 : 0; + + dragHandles.eq(0).css(that._position, selectionStart - halfHandle - rtlCorrection) + .end() + .eq(1).css(that._position, selectionEnd - halfHandle - rtlCorrection); + + makeSelection(selectionStart, selectionEnd); + } + + function makeSelection(selectionStart, selectionEnd) { + var selection, + selectionPosition, + selectionDiv = that._trackDiv.find(".k-slider-selection"); + + selection = math.abs(selectionStart - selectionEnd); + + selectionDiv[that._sizeFn](selection); + if (that._isRtl) { + selectionPosition = math.max(selectionStart, selectionEnd); + selectionDiv.css("right", that._maxSelection - selectionPosition - 1); + } else { + selectionPosition = math.min(selectionStart, selectionEnd); + selectionDiv.css(that._position, selectionPosition - 1); + } + } + + moveSelection(that.value()); + + that.bind([ CHANGE, SLIDE, MOVE_SELECTION ], function (e) { + moveSelection(e.values); + }); + }; + + kendo.ui.plugin(RangeSlider); + +})(window.kendo.jQuery); + + + + + +(function($, parseInt, undefined){ + // WARNING: removing the following jshint declaration and turning + // == into === to make JSHint happy will break functionality. + /*jshint eqnull:true */ + var kendo = window.kendo, + ui = kendo.ui, + Widget = ui.Widget, + parseColor = kendo.parseColor, + Color = kendo.Color, + KEYS = kendo.keys, + BACKGROUNDCOLOR = "background-color", + ITEMSELECTEDCLASS = "k-state-selected", + SIMPLEPALETTE = "000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7", + WEBPALETTE = "FFFFFF,FFCCFF,FF99FF,FF66FF,FF33FF,FF00FF,CCFFFF,CCCCFF,CC99FF,CC66FF,CC33FF,CC00FF,99FFFF,99CCFF,9999FF,9966FF,9933FF,9900FF,FFFFCC,FFCCCC,FF99CC,FF66CC,FF33CC,FF00CC,CCFFCC,CCCCCC,CC99CC,CC66CC,CC33CC,CC00CC,99FFCC,99CCCC,9999CC,9966CC,9933CC,9900CC,FFFF99,FFCC99,FF9999,FF6699,FF3399,FF0099,CCFF99,CCCC99,CC9999,CC6699,CC3399,CC0099,99FF99,99CC99,999999,996699,993399,990099,FFFF66,FFCC66,FF9966,FF6666,FF3366,FF0066,CCFF66,CCCC66,CC9966,CC6666,CC3366,CC0066,99FF66,99CC66,999966,996666,993366,990066,FFFF33,FFCC33,FF9933,FF6633,FF3333,FF0033,CCFF33,CCCC33,CC9933,CC6633,CC3333,CC0033,99FF33,99CC33,999933,996633,993333,990033,FFFF00,FFCC00,FF9900,FF6600,FF3300,FF0000,CCFF00,CCCC00,CC9900,CC6600,CC3300,CC0000,99FF00,99CC00,999900,996600,993300,990000,66FFFF,66CCFF,6699FF,6666FF,6633FF,6600FF,33FFFF,33CCFF,3399FF,3366FF,3333FF,3300FF,00FFFF,00CCFF,0099FF,0066FF,0033FF,0000FF,66FFCC,66CCCC,6699CC,6666CC,6633CC,6600CC,33FFCC,33CCCC,3399CC,3366CC,3333CC,3300CC,00FFCC,00CCCC,0099CC,0066CC,0033CC,0000CC,66FF99,66CC99,669999,666699,663399,660099,33FF99,33CC99,339999,336699,333399,330099,00FF99,00CC99,009999,006699,003399,000099,66FF66,66CC66,669966,666666,663366,660066,33FF66,33CC66,339966,336666,333366,330066,00FF66,00CC66,009966,006666,003366,000066,66FF33,66CC33,669933,666633,663333,660033,33FF33,33CC33,339933,336633,333333,330033,00FF33,00CC33,009933,006633,003333,000033,66FF00,66CC00,669900,666600,663300,660000,33FF00,33CC00,339900,336600,333300,330000,00FF00,00CC00,009900,006600,003300,000000", + APPLY_CANCEL = { + apply : "Apply", + cancel : "Cancel" + }, + NS = ".kendoColorTools", + CLICK_NS = "click" + NS, + KEYDOWN_NS = "keydown" + NS, + + browser = kendo.support.browser, + isIE8 = browser.msie && browser.version < 9; + + var ColorSelector = Widget.extend({ + init: function(element, options) { + var that = this, ariaId; + + Widget.fn.init.call(that, element, options); + element = that.element; + options = that.options; + that._value = options.value = parseColor(options.value); + that._tabIndex = element.attr("tabIndex") || 0; + + ariaId = that._ariaId = options.ariaId; + if (ariaId) { + element.attr("aria-labelledby", ariaId); + } + + if (options._standalone) { + that._triggerSelect = that._triggerChange; + } + }, + options: { + name: "ColorSelector", + value: null, + _standalone: true + }, + events: [ + "change", + "select", + "cancel" + ], + color: function(value) { + if (value !== undefined) { + this._value = parseColor(value); + this._updateUI(this._value); + } + + return this._value; + }, + value: function(color) { + color = this.color(color); + + if (color) { + if (this.options.opacity) { + color = color.toCssRgba(); + } else { + color = color.toCss(); + } + } + + return color || null; + }, + enable: function(enable) { + if (arguments.length === 0) { + enable = true; + } + $(".k-disabled-overlay", this.wrapper).remove(); + if (!enable) { + this.wrapper.append("
    "); + } + this._onEnable(enable); + }, + _select: function(color, nohooks) { + var prev = this._value; + color = this.color(color); + if (!nohooks) { + this.element.trigger("change"); + if (!color.equals(prev)) { + this.trigger("change", { value: this.value() }); + } else if (!this._standalone) { + this.trigger("cancel"); + } + } + }, + _triggerSelect: function(color) { + triggerEvent(this, "select", color); + }, + _triggerChange: function(color) { + triggerEvent(this, "change", color); + }, + destroy: function() { + if (this.element) { + this.element.off(NS); + } + if (this.wrapper) { + this.wrapper.off(NS).find("*").off(NS); + } + this.wrapper = null; + Widget.fn.destroy.call(this); + }, + _updateUI: $.noop, + _selectOnHide: function() { + return null; + }, + _cancel: function() { + this.trigger("cancel"); + } + }); + + function triggerEvent(self, type, color) { + color = parseColor(color); + if (color && !color.equals(self.color())) { + if (type == "change") { + // UI is already updated. setting _value directly + // rather than calling self.color(color) to avoid an + // endless loop. + self._value = color; + } + if (color.a != 1) { + color = color.toCssRgba(); + } else { + color = color.toCss(); + } + self.trigger(type, { value: color }); + } + } + + var ColorPalette = ColorSelector.extend({ + init: function(element, options) { + var that = this; + ColorSelector.fn.init.call(that, element, options); + element = that.wrapper = that.element; + options = that.options; + var colors = options.palette; + + if (colors == "websafe") { + colors = WEBPALETTE; + options.columns = 18; + } else if (colors == "basic") { + colors = SIMPLEPALETTE; + } + + if (typeof colors == "string") { + colors = colors.split(","); + } + + if ($.isArray(colors)) { + colors = $.map(colors, function(x) { return parseColor(x); }); + } + + that._selectedID = (options.ariaId || kendo.guid()) + "_selected"; + + element.addClass("k-widget k-colorpalette") + .attr("role", "grid") + .attr("aria-readonly", "true") + .append($(that._template({ + colors : colors, + columns : options.columns, + tileSize : options.tileSize, + value : that._value, + id : options.ariaId + }))) + .on(CLICK_NS, ".k-item", function(ev){ + that._select($(ev.currentTarget).css(BACKGROUNDCOLOR)); + }) + .attr("tabIndex", that._tabIndex) + .on(KEYDOWN_NS, bind(that._keydown, that)); + + var tileSize = options.tileSize, width, height; + if (tileSize) { + if (/number|string/.test(typeof tileSize)) { + width = height = parseFloat(tileSize); + } else if (typeof tileSize == "object") { + width = parseFloat(tileSize.width); + height = parseFloat(tileSize.height); + } else { + throw new Error("Unsupported value for the 'tileSize' argument"); + } + element.find(".k-item").css({ width: width, height: height }); + } + }, + focus: function(){ + this.wrapper.focus(); + }, + options: { + name: "ColorPalette", + columns: 10, + tileSize: null, + palette: "basic" + }, + _onEnable: function(enable) { + if (enable) { + this.wrapper.attr("tabIndex", this._tabIndex); + } else { + this.wrapper.removeAttr("tabIndex"); + } + }, + _keydown: function(e) { + var selected, + wrapper = this.wrapper, + items = wrapper.find(".k-item"), + current = items.filter("." + ITEMSELECTEDCLASS).get(0), + keyCode = e.keyCode; + + if (keyCode == KEYS.LEFT) { + selected = relative(items, current, -1); + } else if (keyCode == KEYS.RIGHT) { + selected = relative(items, current, 1); + } else if (keyCode == KEYS.DOWN) { + selected = relative(items, current, this.options.columns); + } else if (keyCode == KEYS.UP) { + selected = relative(items, current, -this.options.columns); + } else if (keyCode == KEYS.ENTER) { + preventDefault(e); + if (current) { + this._select($(current).css(BACKGROUNDCOLOR)); + } + } else if (keyCode == KEYS.ESC) { + this._cancel(); + } + + if (selected) { + preventDefault(e); + + this._current(selected); + + try { + var color = parseColor(selected.css(BACKGROUNDCOLOR)); + this._triggerSelect(color); + } catch(ex) {} + } + }, + _current: function(item) { + this.wrapper.find("." + ITEMSELECTEDCLASS) + .removeClass(ITEMSELECTEDCLASS) + .attr("aria-selected", false) + .removeAttr("id"); + + $(item) + .addClass(ITEMSELECTEDCLASS) + .attr("aria-selected", true) + .attr("id", this._selectedID); + + this.element + .removeAttr("aria-activedescendant") + .attr("aria-activedescendant", this._selectedID); + }, + _updateUI: function(color) { + var item = null; + + this.wrapper.find(".k-item").each(function(){ + var c = parseColor($(this).css(BACKGROUNDCOLOR)); + + if (c && c.equals(color)) { + item = this; + + return false; + } + }); + + this._current(item); + }, + _template: kendo.template( + '' + + '# for (var i = 0; i < colors.length; ++i) { #' + + '# var selected = colors[i].equals(value); #' + + '# if (i && i % columns == 0) { # # } #' + + '' + + '# } #' + + '' + ) + }); + + var FlatColorPicker = ColorSelector.extend({ + init: function(element, options) { + var that = this; + ColorSelector.fn.init.call(that, element, options); + options = that.options; + element = that.element; + + that.wrapper = element.addClass("k-widget k-flatcolorpicker") + .append(that._template(options)); + + that._hueElements = $(".k-hsv-rectangle, .k-transparency-slider .k-slider-track", element); + + that._selectedColor = $(".k-selected-color-display", element); + + that._colorAsText = $("input.k-color-value", element); + + that._sliders(); + + that._hsvArea(); + + that._updateUI(that._value || parseColor("#f00")); + + element + .find("input.k-color-value").on(KEYDOWN_NS, function(ev){ + var input = this; + if (ev.keyCode == KEYS.ENTER) { + try { + var color = parseColor(input.value); + var val = that.color(); + that._select(color, color.equals(val)); + } catch(ex) { + $(input).addClass("k-state-error"); + } + } else if (that.options.autoupdate) { + setTimeout(function(){ + var color = parseColor(input.value, true); + if (color) { + that._updateUI(color, true); + } + }, 10); + } + }).end() + + .on(CLICK_NS, ".k-controls button.apply", function(){ + // calling select for the currently displayed + // color will trigger the "change" event. + that._select(that._getHSV()); + }) + .on(CLICK_NS, ".k-controls button.cancel", function(){ + // but on cancel, we simply select the previous + // value (again, triggers "change" event). + that._updateUI(that.color()); + that._cancel(); + }); + + if (isIE8) { + // IE filters require absolute URLs + that._applyIEFilter(); + } + }, + destroy: function() { + this._hueSlider.destroy(); + if (this._opacitySlider) { + this._opacitySlider.destroy(); + } + this._hueSlider = this._opacitySlider = this._hsvRect = this._hsvHandle = + this._hueElements = this._selectedColor = this._colorAsText = null; + ColorSelector.fn.destroy.call(this); + }, + options: { + name : "FlatColorPicker", + opacity : false, + buttons : false, + input : true, + preview : true, + autoupdate : true, + messages : APPLY_CANCEL + }, + _applyIEFilter: function() { + var track = this.element.find(".k-hue-slider .k-slider-track")[0], + url = track.currentStyle.backgroundImage; + + url = url.replace(/^url\([\'\"]?|[\'\"]?\)$/g, ""); + track.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + url + "', sizingMethod='scale')"; + }, + _sliders: function() { + var that = this, + element = that.element; + + function hueChange(e) { + that._updateUI(that._getHSV(e.value, null, null, null)); + } + + that._hueSlider = element.find(".k-hue-slider").kendoSlider({ + min: 0, + max: 359, + tickPlacement: "none", + showButtons: false, + slide: hueChange, + change: hueChange + }).data("kendoSlider"); + + function opacityChange(e) { + that._updateUI(that._getHSV(null, null, null, e.value / 100)); + } + + that._opacitySlider = element.find(".k-transparency-slider").kendoSlider({ + min: 0, + max: 100, + tickPlacement: "none", + showButtons: false, + slide: opacityChange, + change: opacityChange + }).data("kendoSlider"); + }, + _hsvArea: function() { + var that = this, + element = that.element, + hsvRect = element.find(".k-hsv-rectangle"), + hsvHandle = hsvRect.find(".k-draghandle").attr("tabIndex", 0).on(KEYDOWN_NS, bind(that._keydown, that)); + + function update(x, y) { + var offset = this.offset, + dx = x - offset.left, dy = y - offset.top, + rw = this.width, rh = this.height; + + dx = dx < 0 ? 0 : dx > rw ? rw : dx; + dy = dy < 0 ? 0 : dy > rh ? rh : dy; + that._svChange(dx / rw, 1 - dy / rh); + } + + that._hsvEvents = new kendo.UserEvents(hsvRect, { + global: true, + press: function(e) { + this.offset = kendo.getOffset(hsvRect); + this.width = hsvRect.width(); + this.height = hsvRect.height(); + hsvHandle.focus(); + update.call(this, e.x.location, e.y.location); + }, + start: function() { + hsvRect.addClass("k-dragging"); + hsvHandle.focus(); + }, + move: function(e) { + e.preventDefault(); + update.call(this, e.x.location, e.y.location); + }, + end: function() { + hsvRect.removeClass("k-dragging"); + } + }); + + that._hsvRect = hsvRect; + that._hsvHandle = hsvHandle; + }, + _onEnable: function(enable) { + this._hueSlider.enable(enable); + + if (this._opacitySlider) { + this._opacitySlider.enable(enable); + } + + this.wrapper.find("input").attr("disabled", !enable); + + var handle = this._hsvRect.find(".k-draghandle"); + + if (enable) { + handle.attr("tabIndex", this._tabIndex); + } else { + handle.removeAttr("tabIndex"); + } + }, + _keydown: function(ev) { + var that = this; + function move(prop, d) { + var c = that._getHSV(); + c[prop] += d * (ev.shiftKey ? 0.01 : 0.05); + if (c[prop] < 0) { c[prop] = 0; } + if (c[prop] > 1) { c[prop] = 1; } + that._updateUI(c); + preventDefault(ev); + } + function hue(d) { + var c = that._getHSV(); + c.h += d * (ev.shiftKey ? 1 : 5); + if (c.h < 0) { c.h = 0; } + if (c.h > 359) { c.h = 359; } + that._updateUI(c); + preventDefault(ev); + } + switch (ev.keyCode) { + case KEYS.LEFT: + if (ev.ctrlKey) { + hue(-1); + } else { + move("s", -1); + } + break; + case KEYS.RIGHT: + if (ev.ctrlKey) { + hue(1); + } else { + move("s", 1); + } + break; + case KEYS.UP: + move(ev.ctrlKey && that._opacitySlider ? "a" : "v", 1); + break; + case KEYS.DOWN: + move(ev.ctrlKey && that._opacitySlider ? "a" : "v", -1); + break; + case KEYS.ENTER: + that._select(that._getHSV()); + break; + case KEYS.F2: + that.wrapper.find("input.k-color-value").focus().select(); + break; + case KEYS.ESC: + that._cancel(); + break; + } + }, + focus: function() { + this._hsvHandle.focus(); + }, + _getHSV: function(h, s, v, a) { + var rect = this._hsvRect, + width = rect.width(), + height = rect.height(), + handlePosition = this._hsvHandle.position(); + + if (h == null) { + h = this._hueSlider.value(); + } + if (s == null) { + s = handlePosition.left / width; + } + if (v == null) { + v = 1 - handlePosition.top / height; + } + if (a == null) { + a = this._opacitySlider ? this._opacitySlider.value() / 100 : 1; + } + return Color.fromHSV(h, s, v, a); + }, + _svChange: function(s, v) { + var color = this._getHSV(null, s, v, null); + this._updateUI(color); + }, + _updateUI: function(color, dontChangeInput) { + var that = this, + rect = that._hsvRect; + + if (!color) { + return; + } + + this._colorAsText.removeClass("k-state-error"); + + that._selectedColor.css(BACKGROUNDCOLOR, color.toDisplay()); + if (!dontChangeInput) { + that._colorAsText.val(that._opacitySlider ? color.toCssRgba() : color.toCss()); + } + that._triggerSelect(color); + + color = color.toHSV(); + that._hsvHandle.css({ + // saturation is 0 on the left side, full (1) on the right + left: color.s * rect.width() + "px", + // value is 0 on the bottom, full on the top. + top: (1 - color.v) * rect.height() + "px" + }); + + that._hueElements.css(BACKGROUNDCOLOR, Color.fromHSV(color.h, 1, 1, 1).toCss()); + that._hueSlider.value(color.h); + + if (that._opacitySlider) { + that._opacitySlider.value(100 * color.a); + } + }, + _selectOnHide: function() { + return this.options.buttons ? null : this._getHSV(); + }, + _template: kendo.template( + '# if (preview) { #' + + '
    ' + + '# } #' + + '
    ' + + '' + + '# if (opacity) { #' + + '' + + '# } #' + + '# if (buttons) { #' + + '
    ' + + '# } #' + ) + }); + + function relative(array, element, delta) { + array = Array.prototype.slice.call(array); + var n = array.length; + var pos = array.indexOf(element); + if (pos < 0) { + return delta < 0 ? array[n - 1] : array[0]; + } + pos += delta; + if (pos < 0) { + pos += n; + } else { + pos %= n; + } + return array[pos]; + } + + /* -----[ The ColorPicker widget ]----- */ + + var ColorPicker = Widget.extend({ + init: function(element, options) { + var that = this; + Widget.fn.init.call(that, element, options); + options = that.options; + element = that.element; + + var value = element.attr("value") || element.val(); + if (value) { + value = parseColor(value, true); + } else { + value = parseColor(options.value, true); + } + that._value = options.value = value; + + var content = that.wrapper = $(that._template(options)); + element.hide().after(content); + + if (element.is("input")) { + element.appendTo(content); + + // if there exists a