@progress/telerik-jquery-report-viewer 20.23.1010 → 21.24.116
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -0
- package/dist/font/font-icons.css +10 -5
- package/dist/font/font-icons.min.css +4 -4
- package/dist/js/telerikReportViewer.js +61 -42
- package/dist/js/telerikReportViewer.min.js +8 -8
- package/dist/js/telerikReportViewer.stringResources.js +4 -4
- package/dist/styles/telerikReportViewer.css +2 -2
- package/dist/styles/telerikReportViewer.min.css +2 -2
- package/dist/templates/telerikReportViewerTemplate-FA.html +3 -3
- package/dist/templates/telerikReportViewerTemplate.html +3 -3
- package/package.json +3 -2
- /package/dist/font/{ReportingIcons-17.2.23.1010.ttf → ReportingIcons-18.0.24.116.ttf} +0 -0
@@ -1,15 +1,15 @@
|
|
1
1
|
/*
|
2
|
-
* TelerikReporting
|
3
|
-
* Copyright
|
2
|
+
* TelerikReporting v18.0.24.116 (https://www.telerik.com/products/reporting.aspx)
|
3
|
+
* Copyright 2024 Progress Software EAD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Telerik Reporting commercial licenses may be obtained at
|
6
6
|
* https://www.telerik.com/purchase/license-agreement/reporting.aspx
|
7
7
|
* If you do not own a commercial license, this file shall be governed by the trial license terms.
|
8
8
|
*/
|
9
|
-
var telerikReportViewer=(()=>{var
|
10
|
-
`,invalidParameter:"Please input a valid value.",invalidDateTimeValue:"Please input a valid date.",parameterIsEmpty:"Parameter value cannot be empty.",cannotValidateType:"Cannot validate parameter of type {type}.",loadingFormats:"Loading...",loadingReport:"Loading report...",preparingDownload:"Preparing document to download. Please wait...",preparingPrint:"Preparing document to print. Please wait...",errorLoadingTemplates:"Error loading the report viewer's templates. (templateUrl = '{0}').",errorServiceUrl:"Cannot access the Reporting REST service. (serviceUrl = '{0}'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)",errorServiceVersion:"The version of the Report Viewer '{1}' does not match the version of the Reporting REST Service '{0}'. Please make sure both are running same version.",loadingReportPagesInProgress:"{0} pages loaded so far...",loadedReportPagesComplete:"Done. Total {0} pages loaded.",noPageToDisplay:"No page to display.",errorDeletingReportInstance:"Error deleting report instance: '{0}'.",errorRegisteringViewer:"Error registering the viewer with the service.",noServiceClient:"No serviceClient has been specified for this controller.",errorRegisteringClientInstance:"Error registering client instance.",errorCreatingReportInstance:"Error creating report instance (Report = '{0}').",errorCreatingReportDocument:"Error creating report document (Report = '{0}'; Format = '{1}').",unableToGetReportParameters:"Unable to get report parameters.",errorObtainingAuthenticationToken:"Error obtaining authentication token.",clientExpired:"Click 'Refresh' to restore client session.",promisesChainStopError:"Error shown. Throwing promises chain stop error.",renderingCanceled:"Report processing was canceled.",tryReportPreview:"The report may now be previewed.",parameterEditorSelectNone:"clear selection",parameterEditorSelectAll:"select all",parametersAreaPreviewButton:"Preview",menuNavigateBackwardText:"Navigate Backward",menuNavigateBackwardTitle:"Navigate Backward",menuNavigateForwardText:"Navigate Forward",menuNavigateForwardTitle:"Navigate Forward",menuStopRenderingText:"Stop Rendering",menuStopRenderingTitle:"Stop Rendering",menuRefreshText:"Refresh",menuRefreshTitle:"Refresh",menuFirstPageText:"First Page",menuFirstPageTitle:"First Page",menuLastPageText:"Last Page",menuLastPageTitle:"Last Page",menuPreviousPageTitle:"Previous Page",menuNextPageTitle:"Next Page",menuPageNumberTitle:"Page Number Selector",menuDocumentMapTitle:"Toggle Document Map",menuParametersAreaTitle:"Toggle Parameters Area",menuZoomInTitle:"Zoom In",menuZoomOutTitle:"Zoom Out",menuPageStateTitle:"Toggle FullPage/PageWidth",menuPrintText:"Print...",menuContinuousScrollText:"Toggle Continuous Scrolling",menuSendMailText:"Send an email",menuPrintTitle:"Print",menuContinuousScrollTitle:"Toggle Continuous Scrolling",menuSendMailTitle:"Send an email",menuExportText:"Export",menuExportTitle:"Export",menuPrintPreviewText:"Toggle Print Preview",menuPrintPreviewTitle:"Toggle Print Preview",menuSearchText:"Search",menuSearchTitle:"Toggle Search",menuSideMenuTitle:"Toggle Side Menu",sendEmailFromLabel:"From:",sendEmailToLabel:"To:",sendEmailCCLabel:"CC:",sendEmailSubjectLabel:"Subject:",sendEmailFormatLabel:"Format:",sendEmailSendLabel:"Send",sendEmailCancelLabel:"Cancel",ariaLabelPageNumberSelector:"Page number selector. Showing page {0} of {1}.",ariaLabelPageNumberEditor:"Page number editor",ariaLabelExpandable:"Expandable",ariaLabelSelected:"Selected",ariaLabelParameter:"parameter",ariaLabelErrorMessage:"Error message",ariaLabelParameterInfo:"Contains {0} options",ariaLabelMultiSelect:"Multiselect",ariaLabelMultiValue:"Multivalue",ariaLabelSingleValue:"Single value",ariaLabelParameterDateTime:"DateTime",ariaLabelParameterString:"String",ariaLabelParameterNumerical:"Numerical",ariaLabelParameterBoolean:"Boolean",ariaLabelParametersAreaPreviewButton:"Preview the report",ariaLabelMainMenu:"Main menu",ariaLabelCompactMenu:"Compact menu",ariaLabelSideMenu:"Side menu",ariaLabelDocumentMap:"Document map area",ariaLabelDocumentMapSplitter:"Document map area splitbar.",ariaLabelParametersAreaSplitter:"Parameters area splitbar.",ariaLabelPagesArea:"Report contents area",ariaLabelSearchDialogArea:"Search area",ariaLabelSendEmailDialogArea:"Send email area",ariaLabelSearchDialogStop:"Stop search",ariaLabelSearchDialogOptions:"Search options",ariaLabelSearchDialogNavigateUp:"Navigate up",ariaLabelSearchDialogNavigateDown:"Navigate down",ariaLabelSearchDialogMatchCase:"Match case",ariaLabelSearchDialogMatchWholeWord:"Match whole word",ariaLabelSearchDialogUseRegex:"Use regex",ariaLabelMenuNavigateBackward:"Navigate backward",ariaLabelMenuNavigateForward:"Navigate forward",ariaLabelMenuStopRendering:"Stop rendering",ariaLabelMenuRefresh:"Refresh",ariaLabelMenuFirstPage:"First page",ariaLabelMenuLastPage:"Last page",ariaLabelMenuPreviousPage:"Previous page",ariaLabelMenuNextPage:"Next page",ariaLabelMenuPageNumber:"Page number selector",ariaLabelMenuDocumentMap:"Toggle document map",ariaLabelMenuParametersArea:"Toggle parameters area",ariaLabelMenuZoomIn:"Zoom in",ariaLabelMenuZoomOut:"Zoom out",ariaLabelMenuPageState:"Toggle FullPage/PageWidth",ariaLabelMenuPrint:"Print",ariaLabelMenuContinuousScroll:"Continuous scrolling",ariaLabelMenuSendMail:"Send an email",ariaLabelMenuExport:"Export",ariaLabelMenuPrintPreview:"Toggle print preview",ariaLabelMenuSearch:"Search in report contents",ariaLabelMenuSideMenu:"Toggle side menu",ariaLabelSendEmailFrom:"From email address",ariaLabelSendEmailTo:"Recipient email address",ariaLabelSendEmailCC:"Carbon Copy email address",ariaLabelSendEmailSubject:"Email subject:",ariaLabelSendEmailFormat:"Report format:",ariaLabelSendEmailSend:"Send email",ariaLabelSendEmailCancel:"Cancel sending email",searchDialogTitle:"Search in report contents",searchDialogSearchInProgress:"searching...",searchDialogNoResultsLabel:"No results",searchDialogResultsFormatLabel:"Result {0} of {1}",searchDialogStopTitle:"Stop Search",searchDialogNavigateUpTitle:"Navigate Up",searchDialogNavigateDownTitle:"Navigate Down",searchDialogMatchCaseTitle:"Match Case",searchDialogMatchWholeWordTitle:"Match Whole Word",searchDialogUseRegexTitle:"Use Regex",searchDialogCaptionText:"Find",searchDialogPageText:"page",sendEmailDialogTitle:"Send Email",sendEmailValidationEmailRequired:"Email field is required",sendEmailValidationEmailFormat:"Email format is not valid",sendEmailValidationSingleEmail:"The field accepts a single email address only",sendEmailValidationFormatRequired:"Format field is required",errorSendingDocument:"Error sending report document (Report = '{0}')."};window.telerikReportViewer||={};window.telerikReportViewer.sr=En;var Xr=Xr||{},bn=(window.telerikReportViewer||{}).sr||{},A=$.extend({},Xr,bn);var Pn={};function lr(t){var e,a=!1,r,n,i={CONFIRM_KEY:13,CONTENT_AREA_KEY:67,DOCUMENT_MAP_AREA_KEY:68,MENU_AREA_KEY:77,PARAMETERS_AREA_KEY:80};if(t=$.extend({},Pn,t),e=t.controller,!e)throw"No controller (telerikReporting.ReportViewerController) has been specified.";e.reportLoadComplete(function(){o();var T=p();T.length>0&&T.focus()}).pageReady(function(T,k){l(k),a=!0}).error(function(T,k){u(),window.setTimeout(o,500)}),e.updateUI(function(T){a&&(d(),F())});function o(){r||(s(),$(document.body).off("keydown",w),$(document.body).on("keydown",w))}function u(){var T=["div.trv-pages-area","div.trv-error-message"],k=je(T);k.length!==0&&(k.attr("tabIndex",0),k.focus())}function l(T){if(T){o();var k=r[i.CONTENT_AREA_KEY];U(k)}}function d(){var T=$(".trv-report-pager");if(T.length>0){var k=e.getCurrentPageNumber(),C=e.getPageCount();O(T,function(){var m=$(this);m.attr("aria-label",re(A.ariaLabelPageNumberSelector,[k,C]));var D=m.find("input[data-role=telerik_ReportViewer_PageNumberInput]");D.length>0&&O(D,function(){var G=$(this);G.attr("aria-label",A.ariaLabelPageNumberEditor),G.attr("min","1"),G.attr("max",""+C)})})}}function s(){r={},r[i.DOCUMENT_MAP_AREA_KEY]=g(),r[i.MENU_AREA_KEY]=h(),r[i.CONTENT_AREA_KEY]=p();var T=E();T&&(r[i.PARAMETERS_AREA_KEY]=T,S(T))}function p(){return je(["div[data-role=telerik_ReportViewer_PagesArea]"])}function g(){return je(["div[data-role=telerik_ReportViewer_DocumentMapArea]","div[data-role=treeview]"])}function h(){return je("ul[data-role=telerik_ReportViewer_MainMenu]")}function E(){return je(["div[data-role=telerik_ReportViewer_ParametersArea]","div.trv-parameters-area-content"])}function w(T){if(r&&T.altKey&&T.ctrlKey){var k=r[T.which];if(k&&I(k.parent())){var C="k-focus";n&&n.removeClass(C),k.addClass(C),k.focus(),n=k,T.preventDefault()}}}function S(T){if(T.length!==0){var k=T.parent("div[data-role=telerik_ReportViewer_ParametersArea]");I(k)&&O(T.children(),function(){$(this).keydown(function(C){if(C.which==i.CONFIRM_KEY){var m=k.find("button.trv-parameters-area-preview-button");m.focus(),C.preventDefault()}})})}}function I(T){return T&&!(T.hasClass("k-collapsed")||T.hasClass("trv-hidden"))}function U(T){if(T){var k=T.find("div [data-reporting-action]");!k.length>0||O(k,function(){var C=$(this);C.keydown(function(m){m.which==i.CONFIRM_KEY&&C.click()})})}}function F(){var T=r[i.MENU_AREA_KEY];T&&O(T,function(){var k=$(this),C=k.children("li.k-item");O(C,function(){var m=$(this);if(!m.hasClass("trv-report-pager")){var D=m.attr("aria-label"),G=re(". {0}",[A.ariaLabelExpandable]),X=m.find("ul").length>0&&D.indexOf(G)<0?G:"",Z=re(". {0}",[A.ariaLabelSelected]),_=m.hasClass("k-selected")&&D.indexOf(Z)<0?Z:"",M=D+X+_;m.attr("aria-label",M),m.hasClass("k-disabled")?m.attr("aria-disabled","true"):m.removeAttr("aria-disabled")}})})}function Y(T){i=T,r=void 0}function K(){return i}return{getKeyMap:K,setKeyMap:Y}}var rt={viewerInstances:[]};var it={bind:function(t){var e=Array.prototype.slice.call(arguments,1);Tn(t,e);var a=Zt('[data-role^="telerik_ReportViewer_"]');O(a,function(){var r=$(this),n=$.fn[r.attr("data-role")];typeof n=="function"&&n.apply(r,e)})}};function Tn(t,e){var a=e[0].commands,r=e[1],n='[data-command^="telerik_ReportViewer_"]',i="[data-target-report-viewer]"+n;t.on("click",n,o),rt.CommandHandlerAttached||($(document.body).on("click",i,u),rt.CommandHandlerAttached=!0),O(a,function(l,d){Sn(l,d,r,t)});function o(l){var d=$(this).attr("data-command");if(d){var s=d.substring(21),p=a[s];p&&p.enabled()&&p.exec($(this).attr("data-command-parameter")),l.preventDefault()}}function u(l){var d=$(this),s=d.attr("data-command"),p=d.attr("data-target-report-viewer");if(s&&p){var g=s.substring(21),h=$(p).data("telerik_ReportViewer"),E=h.commands[g];E.enabled()&&E.exec($(this).attr("data-command-parameter")),l.preventDefault()}}}function Sn(t,e,a,r){if(e){var n='[data-command="telerik_ReportViewer_'+t+'"]',i='[data-target-report-viewer="'+a.selector+'"]'+n,o=r.find(n),u=$(i);$(e).on("enabledChanged",function(l){(e.enabled()?$.fn.removeClass:$.fn.addClass).call(o.parent("li"),"k-disabled"),(e.enabled()?$.fn.removeClass:$.fn.addClass).call(u,a.disabledButtonClass)}).on("checkedChanged",function(l){var d=o.parent("li");(e.checked()?$.fn.addClass:$.fn.removeClass).call(d,_n(d)),(e.checked()?$.fn.addClass:$.fn.removeClass).call(u,a.checkedButtonClass)})}}function _n(t){return t.hasClass("trv-menu-toggleable")?"k-selected !k-bg-primary":"k-selected"}function In(t,e){var a,r=$(t),n=r.attr("data-command");n&&(a=e.commands[n]),a&&(r.click(function(i){a.enabled()?a.exec($(this).attr("data-command-parameter")):i.preventDefault()}),$(a).on("enabledChanged",function(i){(a.enabled()?$.fn.removeClass:$.fn.addClass).call(r,"disabled")}).on("checkedChanged",function(i){(a.checked()?$.fn.addClass:$.fn.removeClass).call(r,"checked")}))}var sr="telerik_ReportViewer_LinkButton";$.fn[sr]=function(t){return O(this,function(){$.data(this,sr)||$.data(this,sr,new In(this,t))})};function Cn(t,e){var a=$(t),r=0,n=e.commands.goToPage;function i(u){(r!==u||!a.is(":focus"))&&(a.val(u),r=u)}e.controller.pageNumberChange(function(u,l){i(l)}),a.change(function(){var u=$(this).val(),l=Fe(u);if(!isNaN(l)){var d=n.exec(l);i(d)}}),a.keydown(function(u){if(u.which==13)return $(this).change(),u.preventDefault()});function o(u){return/^([0-9]+)$/.test(u)}a.keypress(function(u){if(bt(u.keyCode))return!0;var l=a.val()+String.fromCharCode(u.charCode);return o(l)}).on("paste",function(u){})}var ur="telerik_ReportViewer_PageNumberInput";$.fn[ur]=function(t){return O(this,function(){$.data(this,ur)||$.data(this,ur,new Cn(this,t))})};function Rn(t,e){var a=$(t);e.controller.pageCountChange(function(r,n){a.text(n)})}var cr="telerik_ReportViewer_PageCountLabel";$.fn[cr]=function(t){return O(this,function(){$.data(this,cr)||$.data(this,cr,new Rn(this,t))})};var we={INTERACTIVE:"INTERACTIVE",PRINT_PREVIEW:"PRINT_PREVIEW"},Ct={AUTO_SELECT:"AUTO_SELECT",FORCE_PDF_PLUGIN:"FORCE_PDF_PLUGIN",FORCE_PDF_FILE:"FORCE_PDF_FILE"},Me={SINGLE_PAGE:"SINGLE_PAGE",CONTINUOUS_SCROLL:"CONTINUOUS_SCROLL"},me={FIT_PAGE_WIDTH:"FIT_PAGE_WIDTH",FIT_PAGE:"FIT_PAGE",SPECIFIC:"SPECIFIC"},Ue={INTEGER:"System.Int64",FLOAT:"System.Double",STRING:"System.String",DATETIME:"System.DateTime",BOOLEAN:"System.Boolean"},ot={COMBO_BOX:"COMBO_BOX",LIST_VIEW:"LIST_VIEW"},We={RIGHT:"RIGHT",LEFT:"LEFT",TOP:"TOP",BOTTOM:"BOTTOM"},pt={RIGHT:"RIGHT",LEFT:"LEFT"};var Ot={};Ot[me.FIT_PAGE]={scaleMode:me.FIT_PAGE_WIDTH};Ot[me.FIT_PAGE_WIDTH]={scaleMode:me.SPECIFIC,scale:1};Ot[me.SPECIFIC]={scaleMode:me.FIT_PAGE};var fr=[.1,.25,.5,.75,1,1.5,2,4,8];function dr(t){var e=t.controller;if(!e)throw"No options.controller.";var a=t.history;if(!a)throw"No options.history.";function r(){var s={};return e.getDocumentMapState(s),!!s.visible}function n(){var s={};return e.getParametersAreaState(s),!!s.visible}function i(){var s={};return e.getSideMenuVisible(s),!!s.visible}function o(){var s={};return e.getSearchDialogState(s),!!s.visible}function u(){var s={};return e.getSendEmailDialogState(s),!!s.visible}return{historyBack:new be(function(){a.back()}),historyForward:new be(function(){a.forward()}),stopRendering:new be(function(){e.stopRendering()}),goToPrevPage:new be(function(){e.navigateToPage(e.getCurrentPageNumber()-1)}),goToNextPage:new be(function(){e.navigateToPage(e.getCurrentPageNumber()+1)}),goToFirstPage:new be(function(){e.navigateToPage(1)}),goToLastPage:new be(function(){e.navigateToPage(e.getPageCount())}),goToPage:new be(function(s){if(!isNaN(s)){var p=e.getPageCount();return s>p?s=p:s<1&&(s=1),e.navigateToPage(s),s}}),refresh:new be(function(){e.refreshReport(!0)}),export:new be(function(s){s&&e.exportReport(s)}),print:new be(function(){e.printReport()}),pageMode:new be(function(){e.setPageMode(e.getPageMode()===Me.SINGLE_PAGE?Me.CONTINUOUS_SCROLL:Me.SINGLE_PAGE)}),togglePrintPreview:new be(function(){e.setViewMode(e.getViewMode()===we.PRINT_PREVIEW?we.INTERACTIVE:we.PRINT_PREVIEW)}),toggleDocumentMap:new be(function(){e.setDocumentMapVisible({visible:!r()})}),toggleParametersArea:new be(function(){e.setParametersAreaVisible({visible:!n()})}),zoom:new be(function(s){var p={};p.scale=s,p.scaleMode=me.SPECIFIC,e.scale(p)}),zoomIn:new be(function(){l(1)}),zoomOut:new be(function(){l(-1)}),toggleSideMenu:new be(function(){e.setSideMenuVisible({visible:!i()})}),toggleZoomMode:new be(function(s){var p={};e.getScale(p),e.scale(Ot[p.scaleMode])}),toggleSearchDialog:new be(function(){e.setSearchDialogVisible({visible:!o()})}),toggleSendEmailDialog:new be(function(){e.setSendEmailDialogVisible({visible:!u()})})};function l(s){var p={};e.getScale(p),p.scale=d(p.scale,s),p.scaleMode=me.SPECIFIC,e.scale(p)}function d(s,p){for(var g=-1,h=fr.length,E=0;E<h;E++){var w=fr[E];if(s<w){g=E-.5;break}if(s===w){g=E;break}}return g=g+p,p>=0?g=Math.round(g-.49):g=Math.round(g+.49),g<0?g=0:g>h-1&&(g=h-1),fr[g]}}function be(t){var e=!0,a=!1,r={enabled:function(n){if(arguments.length===0)return e;var i=!!n;return e=i,$(this).trigger("enabledChanged"),r},checked:function(n){if(arguments.length===0)return a;var i=!!n;return a=i,$(this).trigger("checkedChanged"),r},exec:t};return r}function An(){function t(){var e=["AcroPDF.PDF.1","PDF.PdfCtrl.6","PDF.PdfCtrl.5"],a=null;return O(e,function(r,n){try{if(a=new ActiveXObject(n),a)return!1}catch{}}),a}return{hasPdfPlugin:function(){return t()!==null}}}function wn(){function t(){var e=/Firefox[\/\s](\d+\.\d+)/.exec(navigator.userAgent);if(e!==null&&e.length>1){var a=parseFloat(e[1]);if(a>=19)return!1}var r=navigator.mimeTypes["application/pdf"],n=r!==null?r.enabledPlugin:null;if(n){var i=n.description;return i.indexOf("Adobe")!==-1&&(i.indexOf("Version")===-1||parseFloat(i.split("Version")[1])>=6)}return!1}return{hasPdfPlugin:function(){return t()}}}function pr(t){function e(){var a=navigator.plugins,r=!1;return O(a,function(n,i){if(a[n].name===t||a[n].name==="Adobe Acrobat")return r=!0,!1}),r}return{hasPdfPlugin:function(){return e()}}}function Mn(){return{hasPdfPlugin:function(){return!1}}}function Nn(){if(window.navigator){var t=window.navigator.userAgent.toLowerCase();return t.indexOf("msie")>-1||t.indexOf("mozilla")>-1&&t.indexOf("trident")>-1?An():t.indexOf("firefox")>-1?wn():t.indexOf("edg/")>-1?pr("Microsoft Edge PDF Plugin"):t.indexOf("chrome")>-1?pr("Chrome PDF Viewer"):t.indexOf("safari")>-1?pr("WebKit built-in PDF"):Mn()}return null}var qr=Nn(),Dn=qr?qr.hasPdfPlugin():!1,Lt=function(){var t;function e(u){var l=null;if(t||(t=document.createElement("iframe"),t.style.display="none",t.onload=function(){try{t.contentDocument.execCommand("print",!0,null)}catch(s){at(s)}finally{l&&(window.URL||window.webkitURL).revokeObjectURL(l)}}),r(u)&&a()){t.src=u,document.body.appendChild(t);return}var d=new XMLHttpRequest;d.open("GET",u,!0),d.responseType="arraybuffer",d.onload=function(s){if(this.status===200){var p=new Blob([this.response],{type:"application/pdf"});a()?window.navigator.msSaveOrOpenBlob(p):(l=(window.URL||window.webkitURL).createObjectURL(p),t.src=l,document.body.appendChild(t))}else console.log("Could not retrieve remote PDF document.")},d.send()}function a(){return window.navigator&&window.navigator.msSaveOrOpenBlob}function r(u){var l=window.location,d=document.createElement("a");return d.setAttribute("href",u),d.host==""&&(d.href=d.href),l.hostname===d.hostname&&l.protocol===d.protocol&&l.port===d.port}function n(u){window.open(u,"_self")}var i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),o=i?n:e;return{print:function(u){o(u)},getDirectPrintState:function(){return Dn}}}();var Tt=function(){var t={};function e(n,i,o,u){var l=[].concat(i).map(function(d){return r(n,o(d),u)});if(n.multivalue){if(i==null||i.length==0){if(n.allowNull)return i;throw A.invalidParameter}return l}return l[0]}function a(n,i){return n.allowNull&&[null,"",void 0].indexOf(i)!=-1}function r(n,i,o){if(n.availableValues){var u=!1;if(O(n.availableValues,function(l,d){return u=o(i,d.value),!u}),!u){if(n.allowNull&&!i)return i;throw A.invalidParameter}}return i}return t[Ue.STRING]={validate:function(n,i){return e(n,i,function(o){if(!o){if(n.allowNull)return null;if(n.allowBlank)return"";throw A.parameterIsEmpty}return o},function(o,u){return o==u})}},t[Ue.FLOAT]={validate:function(n,i){return e(n,i,function(o){var u=Pt(o);if(isNaN(u)){if(a(n,o))return null;throw A.parameterIsEmpty}return u},function(o,u){return Pt(o)==Pt(u)})}},t[Ue.INTEGER]={validate:function(n,i){return e(n,i,function(o){var u=Fe(o);if(isNaN(u)){if(a(n,o))return null;throw A.parameterIsEmpty}return u},function(o,u){return Fe(o)==Pt(u)})}},t[Ue.DATETIME]={validate:function(n,i){return e(n,i,function(o){if(n.allowNull&&(o===null||o===""||o===void 0))return null;if(!isNaN(Date.parse(o)))return n.availableValues?o:ct(o);throw A.invalidDateTimeValue},function(o,u){return o=ct(o),u=ct(u),o.getTime()==u.getTime()})}},t[Ue.BOOLEAN]={validate:function(n,i){return e(n,i,function(o){if(["true","false"].indexOf((""+o).toLowerCase())!=-1)return!!o;if(a(n,o))return null;throw A.parameterIsEmpty},function(o,u){return!!o==!!u})}},{validate:function(n,i){var o=t[n.type];if(!o)throw re(A.cannotValidateType,n);return o.validate(n,i)}}}();var Jr={pagePollIntervalMs:500,documentInfoPollIntervalMs:2e3},Jr={pagePollIntervalMs:500,documentInfoPollIntervalMs:2e3};function gr(t){var e={},a,r,n,i,o,u,l,d,s,p,g,h=we.INTERACTIVE,E=Me.CONTINUOUS_SCROLL,w,S=Ct.AUTO_SELECT,I,U,F=!1,Y=Tt,K=new b,T;J(),t=ue({},Jr,t),t.settings.printMode&&(S=t.settings.printMode());var k=t.serviceClient;if(!k)throw A.noServiceClient;a=t.settings.clientId(),D();function C(c){a=c,G(),t.settings.clientId(a),D()}function m(){a=null,i=null,G(),T=null,t.settings.clientId(null)}function D(){if(!t.settings.keepClientAlive)throw new Error("Required settings.keepClientAlive() is not supplied for ReportViewerController");if(t.settings.keepClientAlive()&&a)return k.getClientsSessionTimeoutSeconds().then(function(c){T=new xn(k,a,c),T.start()})}function G(){t.settings.keepClientAlive()&&T&&T.stop()}function X(){return h===we.PRINT_PREVIEW?"HTML5":"HTML5Interactive"}function Z(c,x,B){var z="";if(!c.xhr)throw z=c,q(Le({responseText:z},null,null,null)),z;Dt(c.xhr)&&Ut();var j=Le(c.xhr,c.status,Jt(c.error)?"":c.error,x);if(q(j),!B)throw z=c.xhr.responseJSON&&c.xhr.responseJSON.exceptionMessage?c.xhr.responseJSON.exceptionMessage:A.promisesChainStopError,z}function _(){return i||(i=k.registerClient().catch(function(c){Z(c,A.errorRegisteringViewer)}).then(function(c){C(c)}).catch(m)),i}function M(){return o||(o=ie(l,d).then(function(c){r=c}),o.catch(function(c){o=null})),o}function J(){n=null,r=null,o=null,P()}function P(){p=g=0}function H(c){var x=c.length;return x===1?c[0]:x>1?re(c[0],Array.prototype.slice.call(c,1)):""}function q(){var c=H(arguments);e.error(c)}function ie(c,x){return _e(),k.createReportInstance(a,c,x).catch(function(B){Z(B,re(A.errorCreatingReportInstance,[Oe(c)]))})}function pe(c,x,B,z,j){return _e(),De(),k.createReportDocument(a,r,c,x,B,z,j).catch(function(ae){Z(ae,re(A.errorCreatingReportDocument,[Oe(l),Oe(c)]))})}function ce(c,x){return _e(),De(),k.sendDocument(a,r,c,x).catch(function(B){Z(B,re(A.errorSendingDocument,[Oe(l)]))})}function de(c,x,B,z){return!z.isCanceled&&x===r?k.getDocumentInfo(c,x,B).catch(Z).then(function(j){return j&&j.documentReady||(j.promise=new Promise(function(ae,Ee){window.setTimeout(ae,z.documentInfoPollIntervalMs)}).then(function(){return de(c,x,B,z)})),j}):Promise.reject()}function Ce(c,x,B,z){var j={};function ae(ge){c&&(n=ge,xe(),sn())}function Ee(ge){j.documentInfoPollIntervalMs=t.pagePollIntervalMs,c&&c.beforeLoadReport(ge)}function xe(){c&&c.beginLoadReport()}function et(ge){c&&c.onReportLoadComplete(ge)}function Fr(ge){c&&(g=ge.pageCount,c.reportLoadProgress(ge))}function sn(){_e(),De(),Ve(),Ur(de(a,r,n,j))}function Ur(ge){ge.then(function(ze){ze.documentReady?et(ze):(Fr(ze),Ur(ze.promise))})}function qn(){c&&c.raiseError.apply(this,arguments)}function Gr(ge){return new Promise(function(ze,Jn){var Br=function(){k.getPage(a,r,n,ge).catch(Z).then(function(Hr){Hr.pageReady?ze(Hr):window.setTimeout(Br,t.pagePollIntervalMs)})};Br()})}function un(ge){c&&c.beginLoadPage(ge)}var Bt;function Ht(){if(!Bt){var ge=X(),ze=cn();Ee({deviceInfo:ze}),Bt=_().then(M).then(function(){return pe(ge,ze,x,B,z)}).then(ae)}return Bt}function cn(){var ge=le();return ge.ContentOnly=!0,ge.UseSVG=qt(),ge}return{beginLoad:function(){Ht()},beginGetPage:function(ge){_e(),Ht().then(function(){return un(ge),Gr(ge)}).then(function(ze){j.documentInfoPollIntervalMs=t.documentInfoPollIntervalMs,c&&c.pageReady(ze)})},getPageData:function(ge){return _e(),Ht().then(function(){return Gr(ge)})},dispose:function(){c=null},cancel:function(){j.isCanceled=!0}}}function le(){var c={};t.settings.enableAccessibility()&&(c.enableAccessibility=!0,c.contentTabIndex=t.settings.contentTabIndex);var x={};e.getSearchDialogState(x);var B=x.visible,z=t.settings.searchMetadataOnDemand(),j=!z||B;return c.enableSearch=j,c}function Ge(c){switch(c){case"Telerik.Reporting.Services.Engine.InvalidParameterException":return A.missingOrInvalidParameter;default:return""}}function Le(c,x,B,z){var j=It(c.responseText),ae="";if(j){var Ee=Ge(j.exceptionType||j.error);if(Ee)return Ee;ae=Oe(j.message);var xe=Oe(j.exceptionMessage||j.error_description);xe&&(ae?ae+=" "+xe:ae=xe)}else ae=Oe(c.responseText);return(z||B)&&(ae&&(ae=" "+ae),ae=Oe(z||B)+ae),Dt(c)&&(ae+="<br />"+A.clientExpired),ae}function se(c){w&&w.beginGetPage(c)}function $e(c,x,B){if(!l){q(A.noReport);return}w&&(w.dispose(),w=null),J(),w=new Ce(e,!c,x,B),w.beginLoad()}function Ie(c){e.exportStarted(c)}function R(c){e.exportReady(c)}function ee(c){e.sendEmailStarted(c)}function oe(c){e.sendEmailReady(c)}function fe(c){e.printStarted(c)}function Pe(c){e.printReady(c)}function ve(c){e.showNotification(c)}function ke(c){e.hideNotification(c)}function Re(c){e.setUIState(c)}function Ke(){Ae();var c={ImmediatePrint:!0},x={deviceInfo:c,handled:!1};if(fe(x),!x.handled){Re({operationName:"PrintInProgress",inProgress:!0}),ve({stringResources:"preparingPrint"});var B=Be(),z=B?"inline":"attachment",j="response-content-disposition="+z;L("PDF",c).then(function(ae){var Ee=k.formatDocumentUrl(ae.clientId,ae.instanceId,ae.documentId,j),xe={url:Ee,handled:!1};Pe(xe),ke(),Re({operationName:"PrintInProgress",inProgress:!1}),xe.handled||Lt.print(Ee)})}}function Be(){switch(S){case Ct.FORCE_PDF_FILE:case!1:return!1;case Ct.FORCE_PDF_PLUGIN:case!0:return!0;default:return Lt.getDirectPrintState()}}function Xe(c,x){Ae(),x||(x=le());var B={format:c,deviceInfo:x,handled:!1};if(Ie(B),!B.handled){var z="response-content-disposition=attachment";Re({operationName:"ExportInProgress",inProgress:!0}),ve({stringResources:"preparingDownload"}),L(c,B.deviceInfo).then(function(j){var ae=k.formatDocumentUrl(j.clientId,j.instanceId,j.documentId,z),Ee={url:ae,format:c,handled:!1,windowOpenTarget:"_self"};R(Ee),ke(),Re({operationName:"ExportInProgress",inProgress:!1}),Ee.handled||window.open(ae,Ee.windowOpenTarget)})}}function N(c){Ae(),c.deviceInfo||(c.deviceInfo=le());var x={deviceInfo:c.deviceInfo,handled:!1,format:c.format};ee(x);var B="response-content-disposition=attachment";x.handled||L(c.format,c.deviceInfo).then(function(z){var j=k.formatDocumentUrl(z.clientId,z.instanceId,z.documentId,B);c.url=j,c.handled=!1,oe(c),delete c.deviceInfo,c.handled||ce(z.documentId,c)})}function L(c,x){return Ae(),_().then(M).then(function(){return pe(c,x,!0,n)}).then(function(B){return te(a,r,B,t)})}function te(c,x,B,z){return new Promise(function(j,ae){var Ee=function(xe){xe.then(function(et){et.documentReady?j({clientId:c,instanceId:x,documentId:B}):Ee(et.promise)})};Ee(de(c,x,B,z))})}function he(c){Ae(),De(),Ve(),Qe(),e.refreshReportCore(!1,n,c)}function _e(){if(!a)throw A.controllerNotInitialized}function De(){if(!r)throw A.noReportInstance}function Ve(){if(!n)throw A.noReportDocument}function Ae(){if(!l)throw A.noReport}function dt(c){var x;return c&&c.length&&(x=c[0]),typeof x=="function"?x:null}function W(c,x){var B=dt(x);return B?K.on(c,B):K.trigger(c,x),e}function b(){var c={};function x(z){var j=c[z];return j||(c[z]=j=new B(z)),j}return{on:function(z,j){x(z).on(j)},trigger:function(z,j){x(z).trigger(j)}};function B(z){var j=[],ae={on:function(Ee){j.push(Ee)},trigger:function(Ee){var xe=[].slice.call(Ee);xe.unshift(z);for(var et=0;et<j.length;et++)j[et].apply(e,xe)}};return ae}}function f(c,x){return _().then(function(){return k.getParameters(a,c,x||d||{}).catch(function(B){Z(B,A.unableToGetReportParameters)})})}function v(){return U?Promise.resolve(U):(u||(u=k.getDocumentFormats().catch(Z)),u)}function y(){return k.getServiceVersion().catch(Z)}function V(c,x){if(c)for(var B=0,z=c.length;B<z;B++){var j=c[B];if(j.id===x)return j.page;var ae=V(j.items,x);if(ae)return ae}return null}function Q(c){var x={};return Array.isArray(c)&&c.forEach(function(B){x[B.Key]=B.Value}),x}function ne(c){Te(c),e.reportSourceChanged()}function Te(c){t.settings.reportSource&&t.settings.reportSource(c)}function ye(c){t.settings.pageNumber(c),e.currentPageChanged()}var qe={sorting:function(c){he(c.Id)},toggleVisibility:function(c){he(c.Id)},navigateToReport:function(c){var x=c.Value;Qe(),e.setReportSource({report:x.Report,parameters:Q(x.ParameterValues)}),e.refreshReport(!1)},navigateToUrl:function(c){var x=c.Value;window.open(x.Url,x.Target)},navigateToBookmark:function(c){var x=c.Value,B=V(I,x);e.navigateToPage(B,{type:"bookmark",id:x})},customAction:function(c){}};function Je(c){e.interactiveActionExecuting(c)}function Ze(c){var x=c.action,B=qe[x.Type];typeof B=="function"&&window.setTimeout(function(){Je(c),c.cancel||B(x)},0)}function Qe(){e.serverActionStarted()}function mt(c){e.interactiveActionEnter({action:c.action,element:c.element})}function ht(c){e.interactiveActionLeave({action:c.action,element:c.element})}function Et(){return W(e.Events.CLIENT_EXPIRED,arguments)}function Ut(){F=!0,e.clientExpired()}function At(c){e.toolTipOpening(c)}function Gt(c){return!c.searchToken||c.searchToken===""?Promise.resolve(null):k.getSearchResults(a,r,n,c.searchToken,c.matchCase,c.matchWholeWord,c.useRegex).catch(on)}function on(c){if(!yt(c.xhr,"System.ArgumentException"))throw Z(c,null,!0),null;var x=It(c.xhr.responseText);throw x.exceptionMessage}function ln(c){for(var x=document.querySelector(".trv-pages-area .trv-error-message"),B=document.createElement("ul"),z=0;z<c.length;z++){var j=document.createElement("li");j.classList.add(c[z].name),j.innerText=re("{0} ({1})",[c[z].text,c[z].name]),B.appendChild(j)}x.appendChild(B)}return e.Events={ERROR:"trv.ERROR",EXPORT_STARTED:"trv.EXPORT_STARTED",EXPORT_DOCUMENT_READY:"trv.EXPORT_DOCUMENT_READY",PRINT_STARTED:"trv.PRINT_STARTED",PRINT_DOCUMENT_READY:"trv.PRINT_DOCUMENT_READY",BEFORE_LOAD_PARAMETERS:"trv.BEFORE_LOAD_PARAMETERS",ON_LOADED_REPORT_CHANGE:"trv.ON_LOADED_REPORT_CHANGE",BEFORE_LOAD_REPORT:"trv.BEFORE_LOAD_REPORT",BEGIN_LOAD_REPORT:"trv.BEGIN_LOAD_REPORT",REPORT_LOAD_COMPLETE:"trv.REPORT_LOAD_COMPLETE",REPORT_LOAD_PROGRESS:"trv.REPORT_LOAD_PROGRESS",REPORT_LOAD_FAIL:"trv.REPORT_LOAD_FAIL",BEGIN_LOAD_PAGE:"trv.BEGIN_LOAD_PAGE",PAGE_READY:"trv.PAGE_READY",VIEW_MODE_CHANGED:"trv.VIEW_MODE_CHANGED",PAGE_MODE_CHANGED:"trv.PAGE_MODE_CHANGED",PRINT_MODE_CHANGED:"trv.PRINT_MODE_CHANGED",REPORT_SOURCE_CHANGED:"trv.REPORT_SOURCE_CHANGED",NAVIGATE_TO_PAGE:"trv.NAVIGATE_TO_PAGE",CURRENT_PAGE_CHANGED:"trv.CURRENT_PAGE_CHANGED",GET_DOCUMENT_MAP_STATE:"trv.GET_DOCUMENT_MAP_STATE",SET_DOCUMENT_MAP_VISIBLE:"trv.SET_DOCUMENT_MAP_VISIBLE",GET_PARAMETER_AREA_STATE:"trv.GET_PARAMETER_AREA_STATE",SET_PARAMETER_AREA_VISIBLE:"trv.SET_PARAMETER_AREA_VISIBLE",PAGE_SCALE:"trv.PAGE_SCALE",GET_PAGE_SCALE:"trv.GET_PAGE_SCALE",SERVER_ACTION_STARTED:"trv.SERVER_ACTION_STARTED",SET_TOGGLE_SIDE_MENU:"trv.SET_TOGGLE_SIDE_MENU",GET_TOGGLE_SIDE_MENU:"trv.GET_TOGGLE_SIDE_MENU",UPDATE_UI:"trv.UPDATE_UI",CSS_LOADED:"trv.CSS_LOADED",RELOAD_PARAMETERS:"trv.RELOAD_PARAMETERS",INTERACTIVE_ACTION_EXECUTING:"trv.INTERACTIVE_ACTION_EXECUTING",INTERACTIVE_ACTION_ENTER:"trv.INTERACTIVE_ACTION_ENTER",INTERACTIVE_ACTION_LEAVE:"trv.INTERACTIVE_ACTION_LEAVE",UPDATE_UI_INTERNAL:"trv.UPDATE_UI_INTERNAL",CLIENT_EXPIRED:"trv.CLIENT_EXPIRED",TOOLTIP_OPENING:"trv.TOOLTIP_OPENING",PAGE_NUMBER:"trv.PAGE_NUMBER",PAGE_COUNT:"trv.PAGE_COUNT",GET_SEARCH_DIALOG_STATE:"trv.GET_SEARCH_DIALOG_STATE",SET_SEARCH_DIALOG_VISIBLE:"trv.SET_SEARCH_DIALOG_VISIBLE",SET_SEND_EMAIL_DIALOG_VISIBLE:"trv.SET_SEND_EMAIL_DIALOG_VISIBLE",SEND_EMAIL_STARTED:"trv.SEND_EMAIL_STARTED",SEND_EMAIL_READY:"trv.SEND_EMAIL_READY",SHOW_NOTIFICATION:"trv.SHOW_NOTIFICATION",HIDE_NOTIFICATION:"trv.HIDE_NOTIFICATION",UI_STATE:"trv.UI_STATE",SCROLL_PAGE_READY:"trv.SCROLL_PAGE_READY",UPDATE_SCROLL_PAGE_DIMENSIONS_READY:"trv.UPDATE_SCROLL_PAGE_DIMENSIONS_READY",MISSING_OR_INVALID_PARAMETERS:"trv.MISSING_OR_INVALID_PARAMETERS",RENDERING_STOPPED:"trv.RENDERING_STOPPED"},ue(e,{getPageData:function(c){if(w)return w.getPageData(c)},getReportSource:function(){return l===null?null:{report:l,parameters:ue({},d)}},setReportSource:function(c){return c===null?(l=d=null,J(),ne(c),this):(l=c.report,d=c.parameters,ne(c),this)},updateSettings:function(c){t.settings=ue({},c,t.settings)},clearReportSource:function(){return l=d=null,J(),ne(void 0),this},getReportDocumentId:function(){return n},setReportDocumentId:function(c){n=c},setParameters:function(c){d=c},setProcessedParameter:function(c){s=c},getPageCount:function(){return g},getCurrentPageNumber:function(){return p},setCurrentPageNumber:function(c){var x=Fe(c);return x!==p&&(p=x,ye(x)),this},getViewMode:function(){return h},setViewMode:function(c){return h!==c&&(h=c,e.viewModeChanged(c),l&&e.refreshReportCore(!1,n)),e},getPageMode:function(){return E},setPageMode:function(c){return E!==c&&(E=c,e.pageModeChanged(c),l&&e.refreshReportCore(!1,n)),e},getPrintMode:function(){return S},setPrintMode:function(c){return S!==c&&(S=c,e.printModeChanged(c)),e},previewReport:function(c,x,B){e.onLoadedReportChange(),e.refreshReportCore(c,x,B)},refreshReportCore:function(c,x,B){$e(c,x,B)},stopRendering:function(){Ae(),De(),Ve(),k.deleteReportDocument(a,r,n).catch(Z).then(function(){w&&w.cancel(),P(),e.renderingStopped()})},getReportParameters:function(){var c={};for(var x in s){var B=s[x],z=d[x];B&&B.availableValues?B.multivalue?c[x]=yn(B,z,x):c[x]=Zr(B,z,x):c[x]=z}return c},refreshReport:function(c,x,B){if(e.onLoadedReportChange(),F&&(F=!1,m()),!l){q(A.noReport);return}var z=e.loadParameters(null);z.then(function(j){var ae={},Ee=[],xe=!1;O(j||[],function(){try{var et=Y.validate(this,this.value);ae[this.id]=et}catch{xe=!0,Ee.push(this);return}}),xe?(q(A.missingOrInvalidParameter),ln(Ee),e.missingOrInvalidParameters()):(e.setParameters(ae),e.refreshReportCore(c,x,B))}),e.reloadParameters(z)},exportReport:function(c,x){Xe(c,x)},sendReport:function(c){N(c)},printReport:function(){Ke()},getReportPage:function(c){se(c)},executeReportAction:function(c){Ze(c)},reportActionEnter:function(c){mt(c)},reportActionLeave:function(c){ht(c)},reportToolTipOpening:function(c){At(c)},loadParameters:function(c){return l===null?{}:(e.beforeLoadParameters(c===null),f(l,c))},getDocumentFormats:function(){return v()},getServiceVersion:function(){return y()},setAuthenticationToken:function(c){k.setAccessToken(c)},clientId:function(){return a},onReportLoadComplete:function(c){g=c.pageCount,I=c.bookmarkNodes,U=c.renderingExtensions,Te(e.getReportSource()),e.reportLoadComplete(c)},raiseError:q,getSearchResults:function(c,x){return Gt(c,x)},on:K.on,showNotification:function(){return W(e.Events.SHOW_NOTIFICATION,arguments)},hideNotification:function(){return W(e.Events.HIDE_NOTIFICATION,arguments)},setUIState:function(){return W(e.Events.UI_STATE,arguments)},error:function(){return W(e.Events.ERROR,arguments)},reloadParameters:function(){return W(e.Events.RELOAD_PARAMETERS,arguments)},exportStarted:function(){return W(e.Events.EXPORT_STARTED,arguments)},exportReady:function(){return W(e.Events.EXPORT_DOCUMENT_READY,arguments)},sendEmailStarted:function(){return W(e.Events.SEND_EMAIL_STARTED,arguments)},sendEmailReady:function(){return W(e.Events.SEND_EMAIL_READY,arguments)},printStarted:function(){return W(e.Events.PRINT_STARTED,arguments)},printReady:function(){return W(e.Events.PRINT_DOCUMENT_READY,arguments)},beforeLoadParameters:function(){return W(e.Events.BEFORE_LOAD_PARAMETERS,arguments)},onLoadedReportChange:function(){return W(e.Events.ON_LOADED_REPORT_CHANGE,arguments)},beforeLoadReport:function(){return W(e.Events.BEFORE_LOAD_REPORT,arguments)},beginLoadReport:function(){return W(e.Events.BEGIN_LOAD_REPORT,arguments)},reportLoadComplete:function(){return W(e.Events.REPORT_LOAD_COMPLETE,arguments)},reportLoadProgress:function(){return W(e.Events.REPORT_LOAD_PROGRESS,arguments)},reportLoadFail:function(){return W(e.Events.REPORT_LOAD_FAIL,arguments)},beginLoadPage:function(){return W(e.Events.BEGIN_LOAD_PAGE,arguments)},pageReady:function(){return W(e.Events.PAGE_READY,arguments)},viewModeChanged:function(){return W(e.Events.VIEW_MODE_CHANGED,arguments)},pageModeChanged:function(){return W(e.Events.PAGE_MODE_CHANGED,arguments)},printModeChanged:function(){return W(e.Events.PRINT_MODE_CHANGED,arguments)},reportSourceChanged:function(){return W(e.Events.REPORT_SOURCE_CHANGED,arguments)},navigateToPage:function(){return W(e.Events.NAVIGATE_TO_PAGE,arguments)},currentPageChanged:function(){return W(e.Events.CURRENT_PAGE_CHANGED,arguments)},getDocumentMapState:function(){return W(e.Events.GET_DOCUMENT_MAP_STATE,arguments)},setDocumentMapVisible:function(){return W(e.Events.SET_DOCUMENT_MAP_VISIBLE,arguments)},getParametersAreaState:function(){return W(e.Events.GET_PARAMETER_AREA_STATE,arguments)},setParametersAreaVisible:function(){return W(e.Events.SET_PARAMETER_AREA_VISIBLE,arguments)},setSideMenuVisible:function(){return W(e.Events.SET_TOGGLE_SIDE_MENU,arguments)},getSideMenuVisible:function(){return W(e.Events.GET_TOGGLE_SIDE_MENU,arguments)},scale:function(){return W(e.Events.PAGE_SCALE,arguments)},getScale:function(){return W(e.Events.GET_PAGE_SCALE,arguments)},serverActionStarted:function(){return W(e.Events.SERVER_ACTION_STARTED,arguments)},cssLoaded:function(){return W(e.Events.CSS_LOADED,arguments)},interactiveActionExecuting:function(){return W(e.Events.INTERACTIVE_ACTION_EXECUTING,arguments)},interactiveActionEnter:function(){return W(e.Events.INTERACTIVE_ACTION_ENTER,arguments)},interactiveActionLeave:function(){return W(e.Events.INTERACTIVE_ACTION_LEAVE,arguments)},updateUI:function(){return W(e.Events.UPDATE_UI,arguments)},updateUIInternal:function(){return W(e.Events.UPDATE_UI_INTERNAL,arguments)},toolTipOpening:function(){return W(e.Events.TOOLTIP_OPENING,arguments)},pageNumberChange:function(){return W(e.Events.PAGE_NUMBER,arguments)},pageCountChange:function(){return W(e.Events.PAGE_COUNT,arguments)},getSearchDialogState:function(){return W(e.Events.GET_SEARCH_DIALOG_STATE,arguments)},getSendEmailDialogState:function(){return W(e.Events.GET_SEND_EMAIL_DIALOG_STATE,arguments)},setSearchDialogVisible:function(){return W(e.Events.SET_SEARCH_DIALOG_VISIBLE,arguments)},setSendEmailDialogVisible:function(){return W(e.Events.SET_SEND_EMAIL_DIALOG_VISIBLE,arguments)},scrollPageReady:function(){return W(e.Events.SCROLL_PAGE_READY,arguments)},updatePageDimensionsReady:function(){return W(e.Events.UPDATE_SCROLL_PAGE_DIMENSIONS_READY,arguments)},missingOrInvalidParameters:function(){return W(e.Events.MISSING_OR_INVALID_PARAMETERS,arguments)},renderingStopped:function(){return W(e.Events.RENDERING_STOPPED,arguments)},clientExpired:Et,dispose:function(){G(),this.keepClientAliveSentinel=null}}),e}function Zr(t,e,a){try{var r=t.availableValues.find(n=>n.value===e);if(!r)throw new Error(`The available values of parameter ${a} do not contain Value property that equals ${e}`);return{valueMember:e,displayMember:r.name}}catch(n){at(n)}}function yn(t,e,a){var r=[];for(var n in e)r.push(Zr(t,e[n],a));return r}function xn(t,e,a){function r(s){return typeof s=="number"&&isFinite(s)}if(!t)throw A.noServiceClient;var n,i;if(!r(a))throw"sessionTimeoutSeconds must a number and must be finite";a<=120?i=o(a)/2:i=o(a-60);function o(s){return s*1e3}function u(){i<=0||(n=setInterval(function(){t.keepClientAlive(e)},i))}function l(){d(),u()}function d(){n&&(clearInterval(n),n=null)}return{start:u,restart:l,stop:d}}var Ne={EXPORT_BEGIN:"EXPORT_BEGIN",EXPORT_END:"EXPORT_END",PRINT_BEGIN:"PRINT_BEGIN",PRINT_END:"PRINT_END",RENDERING_BEGIN:"RENDERING_BEGIN",RENDERING_END:"RENDERING_END",PAGE_READY:"PAGE_READY",ERROR:"ERROR",UPDATE_UI:"UPDATE_UI",INTERACTIVE_ACTION_EXECUTING:"INTERACTIVE_ACTION_EXECUTING",INTERACTIVE_ACTION_ENTER:"INTERACTIVE_ACTION_ENTER",INTERACTIVE_ACTION_LEAVE:"INTERACTIVE_ACTION_LEAVE",VIEWER_TOOLTIP_OPENING:"VIEWER_TOOLTIP_OPENING",SEND_EMAIL_BEGIN:"SEND_EMAIL_BEGIN",SEND_EMAIL_END:"SEND_EMAIL_END"};function vr(t){var e=t.controller,a=!1;if(!e)throw"No controller (telerikReporting.reportViewerController) has been specified.";var r=t.settings,n=r.history()||{records:[],position:-1};e.onLoadedReportChange(function(){a=!1,d(!0)}).currentPageChanged(function(){l()}).reportLoadComplete(function(E,w){d(!1)}).clientExpired(function(){a=!0;for(var E=n.records,w=0;w<E.length;w++)E[w].reportDocumentId=null});function i(){var E=n.records;return E.length>0?E[n.position]:null}function o(E){var w=n.records,S=n.position;w=Array.prototype.slice.call(w,0,S+1),w.push(E),n.records=w,n.position=w.length-1,u()}function u(){r.history(n)}function l(){var E=i();E&&(E.pageNumber=e.getCurrentPageNumber(),E.viewMode=e.getViewMode(),E.reportDocumentId=e.getReportDocumentId(),u())}function d(E){h();var w=i(),S=e.getReportSource();(!w||!Xt(w.reportSource,S))&&o({reportSource:S,pageNumber:1,temp:E})}function s(E){e.setReportDocumentId(E.reportDocumentId),e.setViewMode(E.viewMode),e.setReportSource(E.reportSource),e.refreshReport(!1,E.reportDocumentId),e.navigateToPage(E.pageNumber)}function p(E){var w=n.position,S=n.records.length,I=w+E;return 0<=I&&I<S}function g(E){var w=n.position,S=n.records.length,I=w+E;I<0?I=0:I>=S&&(I=S-1),I!=w&&(n.position=I,u(),s(i()))}function h(){for(var E=n.records.length-1;E>=0&&n.records[E].temp===!0;){n.records.splice(E,1),n.position>=E&&n.position--;E--}}return{back:function(){g(-1)},forward:function(){g(1)},canMoveBack:function(){return p(-1)},canMoveForward:function(){return p(1)},loadCurrent:function(){var E=i();return E&&s(E),!!E}}}function mr(t,e){var a,r;n(t);function n(g){if(typeof $.fn.kendoTouch=="function")try{$(g).mousedown(function(){r=!0}).mouseup(function(){r=!1}).kendoTouch({multiTouch:!0,enableSwipe:!0,swipe:function(h){r||d(h)},gesturestart:function(h){r||o(h)},gestureend:function(h){r||void 0},gesturechange:function(h){r||l(h)},doubletap:function(h){r||i(h)},touchstart:function(h){r||p("touchstart")}})}catch(h){throw console.error("Instantiation of Kendo Touch threw an exception",h),h}}function i(g){p("doubletap",g)}function o(g){a=kendo.touchDelta(g.touches[0],g.touches[1]).distance}function u(g){}function l(g){var h=kendo.touchDelta(g.touches[0],g.touches[1]).distance;s({distance:h,lastDistance:a}),a=h}function d(g){p("swipe",g)}function s(g){p("pinch",g)}function p(g,h){var E=e[g];typeof E=="function"&&E(h)}}var hr={controller:{},$placeholder:null,$pageContainer:null,pageContainer:null,$pageWrapper:null,pageWrapper:null,viewMode:null,loadedPage:{},scrollInProgress:!1,enabled:!1,pageCount:0,additionalTopOffset:130,pageDistance:20,oldScrollTopPosition:0,skeletonTemplate:'<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>',init:function(e,a){var r=this;r.$placeholder=$("[data-selector='"+a.viewerSelector+"']").find(e),r.$pageContainer=this.$placeholder.find(".trv-page-container"),r.pageContainer=this.$pageContainer[0],r.$pageWrapper=this.$placeholder.find(".trv-page-wrapper"),r.pageWrapper=this.$pageWrapper[0],r.controller=a.controller,r.viewMode=null,r.loadedPage={},r.scrollInProgress=!1,r.enabled=!1,r.pageCount=0,r.controller.scale(function(n,i){r.enabled&&setTimeout(function(){r._loadMorePages(),r._keepCurrentPageInToView()},100)}).onLoadedReportChange(function(n){r.enabled&&(r.disable(),n!=="trv.ON_LOADED_REPORT_CHANGE"&&setTimeout(function(){r.controller.getPageData(1).then(function(i){r.renderPage(i)})}))}).viewModeChanged(function(n){r.enabled&&r.disable()}).interactiveActionExecuting(function(n,i){var o=i.action.Type;r.enabled&&(o==="sorting"||o==="toggleVisibility")&&r.disable()}).updatePageDimensionsReady(function(n,i){r.enabled&&r._currentPageNumber()>0&&r._keepCurrentPageInToView()}).pageCountChange(function(n,i){r.enabled&&r.pageCount!==i&&(r._currentPageNumber()>0&&!r.scrollInProgress&&r._loadMorePages(),i>1&&r._initEvents(),r.pageCount=i)})},isEnabled:function(){return this.enabled},disable:function(){this.$pageWrapper.empty(),this.enabled=!1,this.loadedPage={},this.pageCount=0,this.$placeholder.removeClass("scrollable"),this._unbind()},enable:function(){this.enabled=!0,this.$placeholder.addClass("scrollable"),this._initEvents()},renderPage:function(e){var a=this,r=a.controller.getViewMode(),n=a.$placeholder.find('[data-page="'+e.pageNumber+'"]');a.enabled?(r!==a.viewMode||!n.length?a._updatePageArea(e):a._navigateToPage(e,n),a.viewMode=a.controller.getViewMode()):(a.enabled=!0,a.$placeholder.addClass("scrollable"),r!==a.viewMode||!n.length?a._updatePageArea(e):(a._render(e,!0),this.$pageContainer.scrollTop(3),a._setCurrentPage(e.pageNumber)),a.viewMode=a.controller.getViewMode(),a._loadMorePages())},navigateToElement:function(e,a){var r=this;r.scrollInProgress=!0,r._isSkeletonScreen(null,a)?r.controller.getPageData(a).then(function(n){r._render(n,!1),r.$pageContainer.animate({scrollTop:e},500,function(){r._setCurrentPage(a),setTimeout(function(){r.scrollInProgress=!1},100)})}):r.$pageContainer.animate({scrollTop:e},500,function(){r._setCurrentPage(a),setTimeout(function(){r.scrollInProgress=!1},100)})},_setCurrentPage:function(e){var a=this;e!==a._currentPageNumber()&&a.controller.setCurrentPageNumber(e),a.controller.getPageCount()>1&&(a.$placeholder.find(".k-state-default").removeClass("k-state-default"),a.$placeholder.find('[data-page="'+e+'"]').addClass("k-state-default")),a._loadNextPreviousPage(e)},_updatePageArea:function(e){var a=this,r=0,n=e.pageNumber;a.scrollInProgress=!0,n>1&&a._generateSkeletonScreens(n),a._render(e,!1),a._setCurrentPage(e.pageNumber),setTimeout(function(){r=n>1?a.$placeholder.find('[data-page="'+n+'"]').position().top:0,a.$pageContainer.animate({scrollTop:r},0,function(){a.scrollInProgress=!1})},100)},_navigateToPage:function(e,a){var r=this;r.scrollInProgress=!0;var n=a.position().top,i=r.$placeholder.find(".trv-report-page"),o=e.pageNumber,u=$(i[0]).height();r._isSkeletonScreen(a,o)?r.controller.getPageData(o).then(function(l){r._render(l,!1),r.$pageContainer.animate({scrollTop:n},500,function(){setTimeout(function(){r._setCurrentPage(l.pageNumber),r.scrollInProgress=!1})})}):(r._updatePageContent(e,a),r.$pageContainer.animate({scrollTop:n},500,function(){setTimeout(function(){r._setCurrentPage(e.pageNumber),r.scrollInProgress=!1})}))},_updatePageContent:function(e,a){this._updatePageStyle(e);var r=e.pageNumber,n=$($.parseHTML(e.pageContent)),i=n.find("div.sheet"),o=this.$placeholder.find('[data-page="'+r+'"]');i.css("margin",0),o.append(i).append($('<div class="trv-page-overlay"></div>')),a.replaceWith(o),this.controller.scrollPageReady({page:e,target:o})},_currentPageNumber:function(){return this.controller.getCurrentPageNumber()},_isSkeletonScreen:function(e,a){return e||(e=this.$placeholder.find('[data-page="'+a+'"]')),e.hasClass("trv-skeleton-"+a)},_addSkeletonScreen:function(e,a){var r=this,n=parseInt(a?e+1:e-1),i=r.$placeholder.find('[data-page="'+n+'"]'),o=i.attr("style"),u=i.find("sheet").attr("style"),l=re(r.skeletonTemplate,[e,o,u]);a?r.$pageWrapper.prepend(l):r.$pageWrapper.append(l)},_generateSkeletonScreens:function(e){var a=this,r="",n=this.$placeholder.find('[data-page="1"]'),i=n.attr("style"),o=n.find("sheet").attr("style"),u=a.$placeholder.find(".trv-report-page").last().attr("data-page"),l=u?parseInt(u)+1:1;for(l;l<e;l++)r=r+re(a.skeletonTemplate,[l,i,o]);a.$pageWrapper.append($(r))},_loadMorePages:function(){var e=this,a=e.controller.getPageCount(),r=e.$pageContainer.innerHeight()>e.$pageWrapper.innerHeight();if(a>1)if(r){e.scrollInProgress=!0;var n=parseInt(e.$placeholder.find(".trv-report-page").last().attr("data-page")),i=n+1;i<=a&&e.controller.getPageData(i).then(function(o){e._render(o,!1),e._loadMorePages(),e.scrollInProgress=!1})}else e._loadVisiblePages(),e.scrollInProgress=!1},_loadVisiblePages:function(){var e=this,a=e.$placeholder.find(".trv-report-page");$.each(a,function(r,n){var i=$(n),o=parseInt(i.attr("data-page"));e._scrolledInToView(i)&&e._isSkeletonScreen(i,o)&&e.controller.getPageData(o).then(function(u){e._render(u,!1)})})},_scrolledInToView:function(e){var a=e[0].getBoundingClientRect(),r=e.closest(".trv-pages-area")[0].getBoundingClientRect(),n=r.top,i=r.top+r.height,o=a.top,u=o+e.outerHeight(!0),l=this.additionalTopOffset+n,d=o>0&&o<i,s=u<i&&u>l;return d||s},_render:function(e,a){var r=this,n=e.pageNumber,i=r.$placeholder.find('[data-page="'+n+'"]');if(!(!a&&i&&i.length&&!r._isSkeletonScreen(i,n))){r.loadedPage[n]=e,r._updatePageStyle(e);var o=$($.parseHTML(e.pageContent)),u=o.find("div.sheet"),l=$('<div class="trv-report-page" data-page="'+n+'"></div>');u.css("margin",0),l.append(u).append($('<div class="trv-page-overlay"></div>')),a&&r.$pageWrapper.empty(),r.$pageWrapper.removeData().data("pageNumber",n);var d=r.$placeholder.find(".trv-skeleton-"+n);d.length?d.replaceWith(l):r.$pageWrapper.append(l),r.controller.scrollPageReady({page:e,target:l})}},_updatePageStyle:function(e){var a=this,r=a.loadedPage[a._lastLoadedPage()]||e,n="trv-"+a.controller.clientId()+"-styles",i;$("#"+n).remove(),i=$("<style id="+n+"></style>"),i.append(r.pageStyles),i.appendTo("head")},_lastLoadedPage:function(){var e=this,a;for(var r in e.loadedPage)e.loadedPage.hasOwnProperty(r)&&(a=r);return a},_loadNextPreviousPage:function(e){var a=this,r,n,i,o;e<a.controller.getPageCount()&&(r=e+1,i=a.$placeholder.find('[data-page="'+r+'"]')),e>1&&(n=e-1,o=a.$placeholder.find('[data-page="'+n+'"]')),o&&o.length&&a._isSkeletonScreen(o,n)&&a.controller.getPageData(n).then(function(u){a._render(u,!1)}),i&&i.length&&a._isSkeletonScreen(i,r)&&a.controller.getPageData(r).then(function(u){a._render(u,!1)})},_clickPage:function(e){var a=this,r=a._currentPageNumber(),n=parseInt(e.attr("data-page"));r!==n&&(a._isSkeletonScreen(e,n)?a.controller.getPageData(n).then(function(i){a._render(i,!1,!0),a._setCurrentPage(i.pageNumber)}):a._setCurrentPage(n))},_initEvents:function(){var e=this;e.$pageContainer.off("click",".trv-report-page").on("click",".trv-report-page",function(a){e._clickPage($(a.currentTarget))}),e.$pageContainer.scroll(function(){var a=e.$placeholder.find(".trv-report-page"),r=parseInt((e.$pageContainer.scrollTop()+e.$pageContainer.innerHeight()).toFixed(0));!e.scrollInProgress&&e.oldScrollTopPosition!==r&&(e.oldScrollTopPosition>r?e._scrollUp(a):e._scrollDown(a,r)),e.oldScrollTopPosition=r}),e.$pageContainer.scroll(function(){var a=e.$placeholder.find(".trv-report-page"),r=parseInt((e.$pageContainer.scrollTop()+e.$pageContainer.innerHeight()).toFixed(0));!e.scrollInProgress&&a.length&&e.oldScrollTopPosition!==r&&e._advanceCurrentPage(a)})},_unbind:function(){var t=this;t.$pageContainer.off("click",".trv-report-page"),t.$pageContainer.off("scroll")},_advanceCurrentPage:function(e){var a=this,r=a._findNewCurrentPage(e),n,i=a._currentPageNumber(),o=a._scrolledInToView(a.$placeholder.find('[data-page="'+i+'"]'));r!==-1?(r=$(r),n=parseInt(r.attr("data-page")),i!==n&&!o&&(a._isSkeletonScreen(r,n)?a.controller.getPageData(n).then(function(u){a._render(u,!1,!0),a._setCurrentPage(u.pageNumber)}):a._setCurrentPage(n))):console.log("Page not found - ",r)},_findNewCurrentPage:function(e){var a=this,r=Math.floor(e.length/2),n=a._findPageInViewPort(r,e);return e.length===1?e[0]:n===0?e[r]:n<0&&e.length>1?a._findNewCurrentPage(e.splice(r,Number.MAX_VALUE)):n>0&&e.length>1?a._findNewCurrentPage(e.splice(0,r)):-1},_findPageInViewPort:function(e,a){var r=this.$placeholder.find(a[e]),n=r[0].getBoundingClientRect(),i=r.closest(".trv-pages-area")[0].getBoundingClientRect(),o=i.top,u=i.top+i.height,l=n.top,d=l+r.outerHeight(!0),s=this.additionalTopOffset+o,p=l<=s&&s<d;return p?0:d<s?-1:1},_scrollDown:function(e,a){var r=this;if(a>=r.pageContainer.scrollHeight-5){var n=parseInt($(e[e.length-1]).attr("data-page")),i=n+1;r._currentPageNumber()<i&&i<=r.controller.getPageCount()&&(r._addSkeletonScreen(i,!1),r.controller.getPageData(i).then(function(o){r._render(o,!1)}))}else r._advanceCurrentPage(e),r._loadVisiblePages()},_scrollUp:function(e){var a=this;if(a.$pageContainer.scrollTop()===0){var r=$(e[0]),n=parseInt(r.attr("data-page")),i=n-1;a._currentPageNumber()>i&&i>=1&&(a._addSkeletonScreen(i,!0),a.controller.getPageData(i).then(function(o){a._render(o,!1),a.$pageContainer.scrollTop(3)}))}else a._advanceCurrentPage(e),a._loadVisiblePages()},_keepCurrentPageInToView:function(){var e=this,a=e.$placeholder.find('[data-page="'+e._currentPageNumber()+'"]'),r=a.position().top,n=a.innerHeight(),i=e.$pageContainer.innerHeight(),o;e.scrollInProgress=!0,n<i&&(o=(i-n)/2,r=parseInt(r-o)),e.$pageContainer.animate({scrollTop:r},0,function(){setTimeout(function(){e.scrollInProgress=!1},100)})}};var Er={$placeholder:null,$scrollableContainer:null,itemsInitialState:{},xFrozenAreasBounds:{},yFrozenAreasBounds:{},freezeMaxZIndex:{},zIndex:1,freezeBGColor:{},currentlyfreezedContainer:{vertical:{},horizontal:{}},isInitialize:!1,scaleFactor:null,init:function(t){this.$placeholder=t,this.$scrollableContainer=t.find(".trv-page-container"),this.isInitialize&&this.reset(t),this._attachToScrollEvent(),this.isInitialize=!0},reset:function(t){this.$placeholder=t,this.$scrollableContainer=t.find(".trv-page-container"),this.itemsInitialState={},this.xFrozenAreasBounds={},this.yFrozenAreasBounds={},this.currentlyfreezedContainer={vertical:{},horizontal:{}}},setScaleFactor:function(t){this.scaleFactor=t},_attachToScrollEvent:function(){var t=this;this.$scrollableContainer.scroll(function(){var a=t.$scrollableContainer.find("div[data-sticky-id]");if(a.length)for(var r=a.map(function(d,s){return $(s).attr("data-sticky-id")}).get(),n=r.filter(function(d,s){return s===r.indexOf(d)}),i=t.$scrollableContainer.scrollTop(),o=t.$scrollableContainer.scrollLeft(),u=0;u<n.length;u++){var l=n[u];t.itemsInitialState[l]||t._saveFreezeItemsInitialState(l),t._updateFreezeItemsOnScroll(l,i,o)}})},_saveFreezeItemsInitialState:function(t){var e=$("[data-sticky-direction][data-sticky-id='"+t+"']"),a=$("[data-reporting-action][data-sticky-id='"+t+"']"),r,n;this.itemsInitialState[t]={},this.freezeBGColor[t]=$("[data-id='"+t+"']").attr("data-sticky-bg-color");for(var i=0;i<e.length;i++){var o=$(e[i]),u=o.attr("data-sticky-direction"),l=o.attr("data-id"),d=o.position(),s={top:d.top/this.scaleFactor,left:d.left/this.scaleFactor},p=wt(s.left,s.top,o.outerWidth(!0)*this.scaleFactor,o.outerHeight(!0)*this.scaleFactor);switch(u){case"Vertical":r=r?r.union(p):p;break;case"Horizontal":n=n?n.union(p):p;break;default:}this._saveFreezeItemInitialState(t,o,l,s)}this.freezeMaxZIndex[t]=a.length?a.css("zIndex"):this.zIndex,this.yFrozenAreasBounds[t]=r,this.xFrozenAreasBounds[t]=n},_saveFreezeItemInitialState:function(t,e,a,r){var n=e.css("background-color"),i=this._hasSetBgColor(n),o={top:r.top,left:r.left,zIndex:e.css("zIndex"),hasBgColor:i};this.itemsInitialState[t][a]=o},_updateFreezeItemsOnScroll:function(t,e,a){var r=$("div[data-id='"+t+"']");if(this._isInScrollVisibleArea(r)){var n=r.closest(".trv-report-page"),i=n.position(),o=parseFloat(n.css("margin-top")),u=parseFloat(n.css("padding-top")),l=parseFloat(n.css("padding-left")),d=parseFloat(n.css("border-top-width")),s=parseFloat(n.css("border-left-width")),p=$("[data-sticky-direction*='Horizontal'][data-sticky-id='"+t+"']"),g=$("[data-sticky-direction*='Vertical'][data-sticky-id='"+t+"']"),h=p.length>0,E=g.length>0,w=r.position(),S=w.top+i.top+o+u+d,I=w.left+l+s,U=e-S,F=a-I;E&&U>0?e<=r.outerHeight()*this.scaleFactor+S-this.yFrozenAreasBounds[t].height&&(this.currentlyfreezedContainer.vertical[t]=!0,this._updateUIElementsPosition(g,"top",U/this.scaleFactor,t)):this.currentlyfreezedContainer.vertical[t]&&(delete this.currentlyfreezedContainer.vertical[t],this._updateUIElementsPosition(g,"top",-1,t)),h&&F>0?a<=r.outerWidth()*this.scaleFactor+I-this.xFrozenAreasBounds[t].width&&(this.currentlyfreezedContainer.horizontal[t]=!0,this._updateUIElementsPosition(p,"left",F/this.scaleFactor,t)):this.currentlyfreezedContainer.horizontal[t]&&(delete this.currentlyfreezedContainer.horizontal[t],this._updateUIElementsPosition(p,"left",-1,t))}else(this.currentlyfreezedContainer.horizontal[t]||this.currentlyfreezedContainer.vertical[t])&&this._resetToDefaultPosition(t)},_resetToDefaultPosition:function(t){var e=$("[data-sticky-direction*='Horizontal'][data-sticky-id='"+t+"']"),a=$("[data-sticky-direction*='Vertical'][data-sticky-id='"+t+"']");this._updateUIElementsPosition(a,"top",-1,t),this._updateUIElementsPosition(e,"left",-1,t),delete this.currentlyfreezedContainer.horizontal[t],delete this.currentlyfreezedContainer.vertical[t]},_updateUIElementsPosition:function(t,e,a,r){for(var n=0;n<t.length;n++){var i=$(t[n]),o=i.attr("data-sticky-direction"),u=o.indexOf(",")>0,l=i.attr("data-id"),d=this.itemsInitialState[r][l],s=d[e],p=d.zIndex,g=d.hasBgColor,h=1,E=this.freezeMaxZIndex[r]?this.freezeMaxZIndex[r]:h;u?h=p!=="auto"?p:E+2:h=p!=="auto"?p+1:E;var w={"z-index":h};a>=0?s=s+a:w["z-index"]=p,g||this._applyBgColorOnScroll(i,u,g,a>=0,r),w[e]=s+"px",i.css(w)}},_applyBgColorOnScroll:function(t,e,a,r,n){if(t.is("img"))return!0;if(e&&this._isFrozen(n)&&!a)return t.css("background-color",this.freezeBGColor[n]),!0;r?t.css("background-color",this.freezeBGColor[n]):t.css("background-color","initial")},_hasSetBgColor:function(t){return rr(t)>0},_isFrozen:function(t){return this.currentlyfreezedContainer.horizontal[t]||this.currentlyfreezedContainer.vertical[t]},_isInScrollVisibleArea:function(t){var e=t.closest(".trv-report-page"),a=t.position();return this._isVisibleVertically(t,e,a)&&this._isVisibleHorizontally(t,e,a)},_isVisibleHorizontally:function(t,e,a){var r=parseFloat(e.css("padding-left")),n=this.$scrollableContainer.scrollLeft(),i=this.$scrollableContainer.width(),o=t.outerWidth(!0)*this.scaleFactor,u=a.left+r;return u>n-o&&u<n+o+i},_isVisibleVertically:function(t,e,a){var r=parseFloat(e.css("padding-top")),n=e.position(),i=this.$scrollableContainer.scrollTop(),o=this.$scrollableContainer.height(),u=t.outerHeight(!0)*this.scaleFactor,l=a.top+r+n.top;return l>i-u&&l<i+u+o}};var kn={};function $t(t,e,a){e=$.extend({},kn,e,a);var r=e.controller;if(!r)throw"No controller (telerikReportViewer.reportViewerController) has been specified.";var n=$(t),i=n.find(".trv-page-container"),o=i[0],u=n.find(".trv-page-wrapper"),l=u[0],d=n.find(".trv-error-message"),s,p,g=me.SPECIFIC,h=1,E=.1,w=8,S=!0,I,U,F,Y,K=!1,T=!1,k='.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}',C="trv-initial-image-styles",m=ue({},hr,{}),D=null;G(),m&&m.init(t,e);function G(){X(n)}function X(b){b.attr("aria-label",A[b.attr("aria-label")])}$(window).on("resize",function(b,f){q()&&ie()}),H(n);function Z(){Y&&window.clearTimeout(Y)}function _(){var b=Ce(I);b&&ee(b,-1)}function M(b,f){b&&b<=f&&le(b,U)}function J(b,f){b&&(b=Math.min(b,f),le(b,U))}function P(){ce(F),F=!1}r.pageModeChanged(function(){r.getPageMode()===Me.CONTINUOUS_SCROLL?m.enable():m.disable(),r.refreshReport(!0)}).reportSourceChanged(function(){F=!0,I=null,U=null,S=!1}).beforeLoadParameters(function(b,f){f&&R(A.loadingReport)}).beforeLoadReport(function(){S=!1,I||(I=1),Z(),ce(),Ie(!0),R(A.loadingReport)}).beginLoadReport(function(b,f){S=!0,_()}).reportLoadProgress(function(b,f){M(I,f.pageCount),R(re(A.loadingReportPagesInProgress,[f.pageCount]))}).reportLoadComplete(function(b,f){f.pageCount===0?(P(),R(A.noPageToDisplay)):(J(I,f.pageCount),R(re(A.loadedReportPagesComplete,[f.pageCount])),Y=window.setTimeout(R,2e3),Pe()),f.containsFrozenContent&&!D&&(D=ue({},Er,{}),r.getViewMode()===we.INTERACTIVE&&D.init(n))}).navigateToPage(function(b,f,v){le(f,v)}).pageReady(function(b,f){r.getPageMode()===Me.SINGLE_PAGE?(m.isEnabled()&&m.disable(),Ve(f)):m.renderPage(f),T||(T=!0),K&&W(),r.getViewMode()===we.INTERACTIVE&&D&&D.init(n),Ie(!1)}).error(function(b,f){Ie(!1),P(),R(f)}).showNotification(function(b,f){R(A[f.stringResources])}).hideNotification(function(b,f){R()}).scale(function(b,f){pe(f)}).getScale(function(b,f){var v=de(),y=$(v).data("pageScale")||h;f.scale=y,f.scaleMode=g}).serverActionStarted(function(){Ie(!0),R(A.loadingReport)}).scrollPageReady(function(b,f){Ae(f)}).missingOrInvalidParameters(function(b,f){e.initialPageAreaImageUrl&&!T&&(P(),dt())}).renderingStopped(function(){ce(!0),R(A.renderingCanceled)}),r.setDocumentMapVisible(function(){q()&&setTimeout(function(){ie()})}).setParametersAreaVisible(function(){q()&&setTimeout(function(){ie()})});function H(b){var f,v;mr(b,{swipe:function(y){var V=r.getCurrentPageNumber();f&&y.direction==="left"?V<r.getPageCount()&&r.navigateToPage(V+1):v&&y.direction==="right"&&V>1&&r.navigateToPage(V-1)},pinch:function(y){var V=de(),Q=$(V).data("pageScale")||h,ne=y.distance/y.lastDistance;pe({scale:Q*ne,scaleMode:me.SPECIFIC})},doubletap:function(y){e.commands.toggleZoomMode.exec()},touchstart:function(y){var V=l;v=V.scrollLeft===0,f=V.scrollWidth-V.offsetWidth===V.scrollLeft}})}function q(){return[me.FIT_PAGE,me.FIT_PAGE_WIDTH].indexOf(g)!==-1}function ie(){for(var b=0,f=i.find(".trv-report-page"),v=f.length;b<v;b++){var y=parseInt($(f[b]).attr("data-page"));fe(f[b],g,h,y)}r.updatePageDimensionsReady()}function pe(b){g=b.scaleMode||g;var f=h;"scale"in b&&(f=b.scale),h=Math.max(E,Math.min(w,f)),ie()}function ce(b){ve(),p=void 0,b&&u.empty(),R()}function de(){return Ce(r.getCurrentPageNumber())}function Ce(b){var f,v=i.find(".trv-report-page");return r.getPageMode()===Me.SINGLE_PAGE?O(v,function(y,V){return ee(V)===b&&(f=V),!f}):$.each(v,function(y,V){var Q=parseInt($(V).attr("data-page"));if(Q===b)return f=V,!1}),f}function le(b,f){S?Le(b,f):Ge(b,f)}function Ge(b,f){I=b,U=f}function Le(b,f){var v=Ce(b);v?(f&&se(f,b),m.isEnabled()&&!f&&m.navigateToElement(v.offsetTop,b)):(p=f,oe(b))}function se(b,f){if(b){var v=i.find("[data-"+b.type+"-id="+b.id+"]")[0];if(v){if(e.enableAccessibility){var y=$e($(v));y&&y.focus()}for(var V=i[0],Q=0,ne=0;v&&v!==V;){if($(v).is(".trv-page-wrapper")){var Te=$(v).data("pageScale");typeof Te=="number"&&(Q*=Te,ne*=Te)}Q+=v.offsetTop,ne+=v.offsetLeft,v=v.offsetParent}m.isEnabled()&&f?m.navigateToElement(Q,f):(V.scrollTop=Q,V.scrollLeft=ne)}else m.isEnabled()&&f&&m.navigateToElement(n.find('[data-page="'+f+'"]')[0].offsetTop,f)}}function $e(b){if(!b||b.length===0)return null;var f=Fe(b.attr("tabindex"));return!isNaN(f)&&f>-1?b:$e(b.next())}function Ie(b){(b?$.fn.addClass:$.fn.removeClass).call(n,"trv-loading")}function R(b){d.text(b),(b?$.fn.addClass:$.fn.removeClass).call(n,"trv-error")}function ee(b,f){var v=b.$?b:$(b),y="pageNumber";return f===void 0?v.data(y):(v.data(y,f),b)}function oe(b){Ie(!0),window.setTimeout(r.getReportPage.bind(r,b),1),I=null}function fe(b,f,v,y){var V=$(b),Q=y?V:V.find("div.trv-report-page"),ne=Q.find("div.sheet"),Te=Q.find("div.trv-skeleton-wrapper"),ye=ne[0]||Te[0],qe=Te[0];if(ye){var Je,Ze,Qe=V.data("box");if(!Qe){var mt=nr(V),ht=ir(Q),Et=ar(Q);Qe={padLeft:mt.left+ht.left+Et.left,padRight:mt.right+ht.right+Et.right,padTop:mt.top+ht.top+Et.top,padBottom:mt.bottom+ht.bottom+Et.bottom},V.data("box",Qe)}V.data("pageWidth")===void 0?(Je=ye.offsetWidth,Ze=ye.offsetHeight,V.data("pageWidth",Je),V.data("pageHeight",Ze)):(Je=V.data("pageWidth"),Ze=V.data("pageHeight"));var Ut=Ze>Je&&f===me.FIT_PAGE_WIDTH?20:0,At=(o.clientWidth-Ut-Qe.padLeft-Qe.padRight)/Je,Gt=(o.clientHeight-1-Qe.padTop-Qe.padBottom)/Ze;f===me.FIT_PAGE_WIDTH?v=At:(!v||f===me.FIT_PAGE)&&(v=Math.min(At,Gt)),D&&D.setScaleFactor(v),V.data("pageScale",v),Q.data("pageScale",v),qe||or(ne,v,v),Q.css({height:v*Ze,width:v*Je})}}function Pe(){i.on("click","[data-reporting-action]",ke),i.on("mouseenter","[data-reporting-action]",Ke),i.on("mouseleave","[data-reporting-action]",Be),i.on("mouseenter","[data-tooltip-title],[data-tooltip-text]",N),i.on("mouseleave","[data-tooltip-title],[data-tooltip-text]",_e)}function ve(){i.off("click","[data-reporting-action]",ke),i.off("mouseenter","[data-reporting-action]",Ke),i.off("mouseleave","[data-reporting-action]",Be),i.off("mouseenter","[data-tooltip-title],[data-tooltip-text]",N),i.off("mouseleave","[data-tooltip-title],[data-tooltip-text]",_e)}function ke(b){var f=$(this),v=f.attr("data-reporting-action"),y=Xe(v);y&&(I=Re(b,y.Type),r.executeReportAction({element:b.currentTarget,action:y,cancel:!1})),b.stopPropagation()}function Re(b,f){return m.isEnabled()&&(f==="sorting"||f==="toggleVisibility")&&$(b.target).closest(".trv-report-page").attr("data-page")||r.getCurrentPageNumber()}function Ke(b){var f=$(this),v=f.attr("data-reporting-action"),y=Xe(v);y!==null&&b.currentTarget===this&&r.reportActionEnter({element:b.currentTarget,action:y})}function Be(b){var f=$(this),v=f.attr("data-reporting-action"),y=Xe(v);y!==null&&b.currentTarget===this&&r.reportActionLeave({element:b.currentTarget,action:y})}function Xe(b){if(s){var f;return O(s,function(){return this.Id===b&&(f=this),f===void 0}),f}return null}function N(b){var f=$(this),v=f.attr("data-tooltip-title"),y=f.attr("data-tooltip-text");if(!(!v&&!y)){var V={element:b.currentTarget,toolTip:{title:v||"",text:y||""},cancel:!1};if(r.reportToolTipOpening(V),!V.cancel){var Q=L(V),ne=b.currentTarget.viewportElement,Te=he(f,Q);Te.show(f),ne&&ne.nodeName==="svg"&&te(Te,b)}}}function L(b){var f=e.templates["trv-pages-area-kendo-tooltip"],v=$(f),y=v.find(".trv-pages-area-kendo-tooltip-title"),V=v.find(".trv-pages-area-kendo-tooltip-text");return y.text(b.toolTip.title),V.text(b.toolTip.text),v.clone().wrap("<p>").parent().html()}function te(b,f){var v=f.pageX,y=f.pageY,V=b.popup.element.closest("[role=region]");V.css({left:v+10,top:y+5})}function he(b,f){var v=b.data("kendoTooltip");if(!v)try{v=b.kendoTooltip({content:f,autohide:!0,callout:!1}).data("kendoTooltip")}catch(y){throw console.error("Instantiation of Kendo Tooltip threw an exception",y),y}return v}function _e(b){var f=$(this),v=f.data("kendoTooltip");v&&v.hide()}function De(b){var f="trv-"+r.clientId()+"-styles";$("#"+f).remove();var v=$("<style id="+f+"></style>");v.append(b.pageStyles),v.appendTo("head")}function Ve(b){s=JSON.parse(b.pageActions),De(b);var f=b.pageNumber,v=$($.parseHTML(b.pageContent)),y=v.find("div.sheet"),V=$('<div class="trv-report-page" data-page="'+f+'"></div>');y.css("margin",0),V.append(y).append($('<div class="trv-page-overlay"></div>'));var Q=u.empty().removeData().data("pageNumber",f).append(V);r.setCurrentPageNumber(f),r.getViewMode()===we.INTERACTIVE?(n.removeClass("printpreview"),n.addClass("interactive")):(n.removeClass("interactive"),n.addClass("printpreview")),fe(Q,g,h),i.scrollTop(0),i.scrollLeft(0),se(p)}function Ae(b){var f=JSON.parse(b.page.pageActions);s?s=s.concat(f):s=f,r.getViewMode()===we.INTERACTIVE?(n.removeClass("printpreview"),n.addClass("interactive")):(n.removeClass("interactive"),n.addClass("printpreview")),fe(b.target,g,h,b.page.pageNumber)}function dt(){var b=$("<style id="+C+"></style>");W(),b.append(re(k,[e.initialPageAreaImageUrl])),b.appendTo("head"),K=!0}function W(){$("#"+C).remove()}}var br="telerik_ReportViewer_PagesArea";$.fn[br]=function(t,e){return O(this,function(){$.data(this,br)||$.data(this,br,new $t(this,t,e))})};var Ye={MultiSelect:function(t,e){return!!t.availableValues&&t.multivalue&&(!e||!e.multiSelect||e.multiSelect!==ot.COMBO_BOX)},MultiSelectCombo:function(t,e){return!!t.availableValues&&t.multivalue&&e&&e.multiSelect&&e.multiSelect===ot.COMBO_BOX},SingleSelect:function(t,e){return!!t.availableValues&&!t.multivalue&&(!e||!e.singleSelect||e.singleSelect!==ot.COMBO_BOX)},SingleSelectCombo:function(t,e){return!!t.availableValues&&!t.multivalue&&e&&e.singleSelect&&e.singleSelect===ot.COMBO_BOX},MultiValue:function(t){return!!t.multivalue},DateTime:function(t){return t.type===Ue.DATETIME},String:function(t){return t.type===Ue.STRING},Number:function(t){switch(t.type){case Ue.INTEGER:case Ue.FLOAT:return!0;default:return!1}},Boolean:function(t){return t.type===Ue.BOOLEAN},Default:function(t){return!0}},Qr=function(){var t=`
|
11
|
-
`;return{formatValue:function(e){var a="";return e&&[].concat(e).forEach(function(r){a.length>0&&(a+=t),a+=r}),a},parseValues:function(e){return(""+e).split(t)}}}();function On(t){function e(o){return/^(\-|\+)?([0-9]*)$/.test(o)}function a(o){return bt(o.keyCode)?!0:e($(t).val()+String.fromCharCode(o.charCode))}function r(o){}function n(o){$(o).on("keypress",a).on("paste",r)}function i(o){$(o).off("keypress",a).off("paste",r)}return n(t),{dispose:function(){i(t)}}}function Ln(t){function e(o){return/^(\-|\+)?([0-9]*(\.[0-9]*)?)$/.test(o)}function a(o){return bt(o.keyCode)?!0:e($(t).val()+String.fromCharCode(o.charCode))}function r(o){}function n(o){$(o).on("keypress",a).on("paste",r)}function i(o){$(o).off("keypress",a).off("paste",r)}return n(t),{dispose:function(){i(t)}}}function tn(t,e,a){var r=t?$.fn.addClass:$.fn.removeClass;r.call(a,e)}function gt(t,e){tn(!e,"k-disabled",t)}function $n(t,e){tn(e,"k-selected",t),t.attr("aria-selected",e)}function lt(t,e,a,r,n){r||(r="");var i=re("{0}. {1} {2}. {3}",[a,e,A.ariaLabelParameter,r]);t.attr("aria-label",i),nt(t,n)}var st,Vt=0;function ut(t){if(!st){var e=$("div.trv-parameters-area-content");if(e.length>0){var a=e.attr("tabIndex");a&&(st=Fe(a))}(!st||isNaN(st))&&(st=300)}var r=t.closest(".trv-parameter-value"),n=r.find(".trv-select-all"),i=r.find(".trv-select-none"),o=t.closest(".k-widget"),u=o.find(".k-input"),l=u&&u.length;n&&n.length&&n.attr("tabindex",st+ ++Vt),i&&i.length&&i.attr("tabindex",st+ ++Vt),l?u.attr("tabindex",st+ ++Vt):t.attr("tabindex",st+ ++Vt)}function nt(t,e){var a=re(" {0}:",[A.ariaLabelErrorMessage]),r=t.attr("aria-label");if(r){var n=r.indexOf(a);n>-1&&(r=r.substring(0,n)),e&&e!==""?(t.attr("aria-required",!0),t.attr("aria-invalid",!0),r+=a+e):t.removeAttr("aria-invalid"),t.attr("aria-label",r)}}function en(t){return kendo.version>="2017.3.1018"||t}var Pr=[{match:Ye.MultiSelect,createEditor:function(t,e){var a=$(t),r=!0;a.html(e.templates["trv-parameter-editor-available-values-multiselect"]);var n=a.find(".trv-list"),i=a.find(".trv-select-all"),o=a.find(".trv-select-none"),u,l,d,s=e.parameterChanged,p;i.text(A[i.text()]),i.click(function(C){C.preventDefault(),r&&T(l.availableValues.map(function(m){return m.value}))}),o.text(A[o.text()]),o.click(function(C){C.preventDefault(),r&&T([])});function g(C){p&&(h(C),E(C))}function h(C){var m=n.find(".trv-listviewitem");O(m,function(){var D=$(this),G=C.filter(D).length>0;D.attr("aria-selected",G)})}function E(C){var m=l.availableValues,D=$.map(C,function(X){return m[$(X).index()].value});w();var G=!l.autoRefresh&&!l.childParameters;d=window.setTimeout(function(){Nt(l.value,D)||s(l,D),d=null},G?0:1e3)}function w(){d&&window.clearTimeout(d)}function S(){return $(u.element).find(".k-selected")}function I(C){if(r){var m=$(C.target),D=u.select();m.hasClass("k-selected")?D.splice($.inArray(m[0],D),1):D.push(m),u.clearSelection(),u.select(D),u.trigger("change")}}function U(C){g(S())}function F(C){if(r&&C.which===32){var m=u.element.find(".k-focus");m.length>0&&(m.toggleClass("k-selected"),g(S()),C.preventDefault())}}function Y(){ut(n),T(l.value),u.element.off().on("touch click",".trv-listviewitem",I),u.element.on("keydown",F),p=!0}function K(){p=!1,u&&(u.element.off("touch click",".trv-listviewitem",I),u.element.off("keydown",F))}function T(C){k(C),g(S())}function k(C){Array.isArray(C)||(C=[C]);var m=n.find(".trv-listviewitem");O(l.availableValues,function(D,G){var X=!1;O(C,function(Z,_){var M=G.value;return _ instanceof Date&&(M=ct(G.value)),X=_t(_,M),!X}),$n($(m[D]),X)})}return{beginEdit:function(C){K(),l=C;try{u=n.kendoListView({template:kendo.template('<div class="trv-listviewitem" style="cursor: pointer">${name}</div>'),dataSource:{data:l.availableValues},selectable:"MULTIPLE",navigatable:en(e.enableAccessibility),change:U}).data("kendoListView")}catch(m){throw console.error("Instantiation of Kendo ListView as MultiSelect parameter editor threw an exception",m),m}Y()},enable:function(C){r=C,gt(n,r)},clearPendingChange:w,addAccessibility:function(C){var m=re(A.ariaLabelParameterInfo,[C.availableValues.length]);lt(n,A.ariaLabelMultiSelect,C.text,m,C.Error),n.attr("aria-multiselectable","true");var D=n.find(".trv-listviewitem");O(D,function(){$(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(C){nt(n,C.Error)},destroy:function(){u.destroy()}}}},{match:Ye.MultiSelectCombo,createEditor:function(t,e){var a=$(t),r=!0,n=".trv-combo",i="trv-parameter-editor-available-values-multiselect-combo",o=e.parameterChanged,u,l,d,s,p,g=!0,h;a.html(e.templates[i]),u=a.find(n),l=a.find(".trv-select-none"),l&&(l.text(A[l.text()]),l.click(function(K){K.preventDefault(),s.value([]),s.trigger("change")})),d=a.find(".trv-select-all"),d&&(d.text(A[d.text()]),d.click(function(K){if(K.preventDefault(),!!r){var T=$.map(h.availableValues,function(k){return k.value});s.value(T),s.trigger("change")}}));function E(K){w(K)}function w(K){S();var T=!h.autoRefresh&&!h.childParameters;p=window.setTimeout(function(){Nt(h.value,K)||o(h,K),p=null},T?0:1e3)}function S(){p&&window.clearTimeout(p)}function I(){return s.value()}function U(){g&&E(I())}function F(){ut(u),s.bind("change",U)}function Y(){s&&s.unbind("change",U)}return{beginEdit:function(K){Y(),h=K;try{s=u.kendoMultiSelect({itemTemplate:'<div class="trv-editoritem">${name}</div>',dataSource:h.availableValues,dataTextField:"name",dataValueField:"value",value:h.value,filter:"contains",autoClose:!1,open:function(){g=!1},close:function(T){g=!0,U()},autoWidth:!0,clearButton:!1}).data("kendoMultiSelect")}catch(T){throw console.error("Instantiation of Kendo MultiSelect as MultiSelectCombo parameter editor threw an exception",T),T}F(u)},enable:function(K){r=K,s.enable(K)},clearPendingChange:S,addAccessibility:function(K){var T=s.input,k=re(A.ariaLabelParameterInfo,[K.availableValues.length]);lt(T,A.ariaLabelMultiSelect,K.text,k,K.Error);var C=s.items();O(C,function(){$(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(K){nt(u,K.Error)},destroy:function(){s.destroy()}}}},{match:Ye.SingleSelect,createEditor:function(t,e){var a=$(t),r=!0;a.html(e.templates["trv-parameter-editor-available-values"]);var n=a.find(".trv-list"),i=a.find(".trv-select-none"),o,u,l=e.parameterChanged;i&&(i.text(A[i.text()]),i.click(function(S){S.preventDefault(),o.clearSelection(),o.trigger("change")}));function d(S){s(S)}function s(S){var I=u.availableValues,U=$.map(S,function(F){return I[$(F).index()].value});Array.isArray(U)&&(U=U[0]),l(u,U)}function p(){return o.select()}function g(){d(p())}function h(){ut(n),w(u.value),o.bind("change",g)}function E(){o&&o.unbind("change",g)}function w(S){var I=n.find(".trv-listviewitem");O(u.availableValues,function(U,F){var Y=F.value;return S instanceof Date&&(Y=ct(F.value)),_t(S,Y)?(o.select(I[U]),!1):!0})}return{beginEdit:function(S){E(),u=S;try{o=n.kendoListView({template:'<div class="trv-listviewitem">${name}</div>',dataSource:{data:u.availableValues},selectable:!0,navigatable:en(e.enableAccessibility)}).data("kendoListView")}catch(I){throw console.error("Instantiation of Kendo ListView as SingleSelect parameter editor threw an exception",I),I}h(n)},enable:function(S){r=S,gt(n,r),r?(o.bind("change",g),n.addClass("k-selectable")):(o.unbind("change",g),n.removeClass("k-selectable"))},addAccessibility:function(S){var I=re(A.ariaLabelParameterInfo,[S.availableValues.length]);lt(n,A.ariaLabelSingleValue,S.text,I,S.Error);var U=n.find(".trv-listviewitem");O(U,function(){$(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(S){nt(n,S.Error)},destroy:function(){o.destroy()}}}},{match:Ye.SingleSelectCombo,createEditor:function(t,e){var a=$(t),r=!0,n=".trv-combo",i="trv-parameter-editor-available-values-combo",o=e.parameterChanged,u,l,d,s;a.html(e.templates[i]),u=a.find(n),l=a.find(".trv-select-none"),l&&(l.text(A[l.text()]),l.click(function(I){I.preventDefault(),d.value(""),d.trigger("change")}));function p(I,U){g(I,U)}function g(I,U){var F=U||"",Y;!U&&I>=0&&(Y=s.availableValues,F=Y[I].value),o(s,F)}function h(){return d.select()}function E(I){p(h(),this.value())}function w(){ut(u),d.bind("change",E)}function S(){d&&d.unbind("change",E)}return{beginEdit:function(I){S(),s=I;try{d=u.kendoComboBox({template:'<div class="trv-editoritem">${name}</div>',dataSource:s.availableValues,dataTextField:"name",dataValueField:"value",value:s.value,filter:"contains",suggest:!0,clearButton:!1}).data("kendoComboBox")}catch(U){throw console.error("Instantiation of Kendo ComboBox as SingleSelectCombo parameter editor threw an exception",U),U}w(u)},enable:function(I){r=I,d.enable(I)},addAccessibility:function(I){var U=d.input,F=re(A.ariaLabelParameterInfo,[I.availableValues.length]);lt(U,A.ariaLabelSingleValue,I.text,F,I.Error);var Y=d.items();O(Y,function(){$(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(I){nt(u,I.Error)},destroy:function(){d.destroy()}}}},{match:Ye.MultiValue,createEditor:function(t,e){var a=$(t),r;a.html(e.templates["trv-parameter-editor-multivalue"]);var n=a.find("textarea").on("change",function(){e.parameterChanged&&e.parameterChanged(r,Qr.parseValues(this.value))});function i(o){r.value=o,n.val(Qr.formatValue(o))}return{beginEdit:function(o){r=o,i(o.value),ut(n)},enable:function(o){gt(n,o),n.prop("disabled",!o)},addAccessibility:function(o){lt(n,A.ariaLabelMultiValue,o.text,null,o.Error)},setAccessibilityErrorState:function(o){nt(n,o.Error)}}}},{match:Ye.DateTime,createEditor:function(t,e){var a=$(t),r;a.html(e.templates["trv-parameter-editor-datetime"]);try{var n=a.find("input[type=datetime]").kendoDatePicker({change:function(){var u=e.parameterChanged;if(u){var l=this.value();l!==null&&(l=jt(l)),u(r,l)}}}),i=n.data("kendoDatePicker")}catch(u){throw console.error("Instantiation of Kendo DatePicker as DateTime parameter editor threw an exception",u),u}function o(u){r.value=u;var l=null;try{u&&(l=Yt(u))}catch{l=null}i.value(l)}return{beginEdit:function(u){r=u,o(u.value),ut(n)},enable:function(u){i.enable(u),gt(n,u)},addAccessibility:function(u){lt(n,A.ariaLabelParameterDateTime,u.text,null,u.Error),n.attr("aria-live","assertive")},setAccessibilityErrorState:function(u){nt(n,u.Error)},destroy:function(){i.destroy()}}}},{match:Ye.String,createEditor:function(t,e){var a=$(t),r;a.html(e.templates["trv-parameter-editor-text"]);var n=a.find('input[type="text"]').change(function(){e.parameterChanged&&e.parameterChanged(r,n.val())});function i(o){r.value=o,n.val(o)}return{beginEdit:function(o){r=o,i(o.value),ut(n)},enable:function(o){n.prop("disabled",!o),gt(n,o)},addAccessibility:function(o){lt(n,A.ariaLabelParameterString,o.text,null,o.Error),n.attr("aria-live","assertive")},setAccessibilityErrorState:function(o){nt(n,o.Error)}}}},{match:Ye.Number,createEditor:function(t,e){var a=$(t),r,n;a.html(e.templates["trv-parameter-editor-number"]);var i=a.find("input[type=number]").on("change",function(){e.parameterChanged&&e.parameterChanged(r,i.val())});function o(u){r.value=u,i.val(u)}return{beginEdit:function(u){n&&n.dispose(),r=u,i.val(r.value),r.type===Ue.INTEGER?n=On(i):n=Ln(i),ut(i)},enable:function(u){i.prop("disabled",!u),gt(i,u)},addAccessibility:function(u){lt(i,A.ariaLabelParameterNumerical,u.text,null,u.Error),i.attr("aria-live","assertive")},setAccessibilityErrorState:function(u){nt(i,u.Error)}}}},{match:Ye.Boolean,createEditor:function(t,e){var a=$(t),r;a.html(e.templates["trv-parameter-editor-boolean"]);var n=a.find("input[type=checkbox]").on("change",function(){e.parameterChanged&&e.parameterChanged(r,this.checked)});function i(o){r.value=o,n[0].checked=o===!0}return{beginEdit:function(o){r=o,i(o.value),ut(n)},enable:function(o){gt(n,o),n.attr("disabled",!o)},addAccessibility:function(o){lt(n,A.ariaLabelParameterBoolean,o.text,null,o.Error),n.attr("aria-live","assertive")},setAccessibilityErrorState:function(o){nt(n,o.Error)}}}},{match:Ye.Default,createEditor:function(t,e){var a=$(t);return a.html('<div class="trv-parameter-editor-generic"></div>'),{beginEdit:function(r){a.find(".trv-parameter-editor-generic").text(r.Error?"(error)":r.value)},enable:function(r){}}}}];function Tr(t,e){var a=t.querySelectorAll?t.querySelectorAll(".trv-menu-small")[0]:!1,r={small:{documentMapVisible:!1,parametersAreaVisible:!1,onDocumentMapVisibleChanged:function(T,k){k.visible&&e.setParametersAreaVisible({visible:!1})},onParameterAreaVisibleChanged:function(T,k){k.visible&&e.setDocumentMapVisible({visible:!1})},onBeforeLoadReport:function(){e.setParametersAreaVisible({visible:!1}),e.setDocumentMapVisible({visible:!1})},onNavigateToPage:function(){e.setParametersAreaVisible({visible:!1}),e.setDocumentMapVisible({visible:!1})}},large:{documentMapVisible:!0,parametersAreaVisible:!0}},n;function i(){n=I(),U(r.large)}function o(T){var k=I();if(k!==n){var C=r[n],m=r[k];n=k,T&&T.call(void 0,C,m),F(m)}}function u(T,k){E("onDocumentMapVisibleChanged",arguments)}function l(T,k){E("onParameterAreaVisibleChanged",arguments)}function d(){E("onBeforeLoadReport",arguments)}function s(){E("onNavigateToPage",arguments)}function p(){E("onReportLoadComplete",arguments)}function g(){o(function(T,k){U(T)})}function h(){o(null)}function E(T,k){var C=r[n],m=C[T];typeof m=="function"&&m.apply(C,k)}function w(){window.addEventListener("resize",g),e.setDocumentMapVisible(u),e.setParametersAreaVisible(l),e.beforeLoadReport(d),e.navigateToPage(s),e.reportLoadComplete(p),e.cssLoaded(h)}function S(){window.removeEventListener("resize",g)}function I(){var T=$(window).width()/parseFloat($("body").css("font-size")),k=40.5;return a&&T<=k?"small":"large"}function U(T){T.documentMapVisible=Y(),T.parametersAreaVisible=K()}function F(T){Y(T.documentMapVisible),K(T.parametersAreaVisible)}function Y(){if(arguments.length===0){var T={};return e.getDocumentMapState(T),T.visible}return e.setDocumentMapVisible({visible:!!arguments[0]}),this}function K(){if(arguments.length===0){var T={};return e.getParametersAreaState(T),T.visible}return e.setParametersAreaVisible({visible:!!arguments[0]}),this}return i(),{attach:w,dispose:S}}var Rt="application/json; charset=UTF-8",Vn="application/x-www-form-urlencoded; charset=UTF-8",vt="GET",ft="POST";var Sr="DELETE",Fn={};function _r(t){t=ue({},Fn,t);var e=tt(t.serviceUrl||t.baseUrl,"\\/"),a,r=xt;function n(l){if(!l)throw"Invalid clientID"}function i(l,d){return d=ue({},{baseUrl:e},d),re(l,d)}function o(l){return l?{headers:{Authorization:"Bearer "+l}}:{}}function u(){if(!a){var l=t.loginInfo;l&&l.url&&(l.username||l.password)?a=r({url:l.url,type:ft,data:{grant_type:"password",username:l.username,password:l.password},dataType:"json",contentType:Vn}).then(function(d){return d.access_token}):a=Promise.resolve()}return a}return{_urlFromTemplate:i,registerClient:function(l){return u().then(function(d){var s=ue(o(d),l,{type:ft,url:i("{baseUrl}/clients"),dataType:"json",data:JSON.stringify({timeStamp:Date.now()})});return r(s)}).then(function(d){if(d.Message)throw d.Message;return d.clientId})},unregisterClient:function(l,d){return n(l),u().then(function(s){var p=ue(o(s),d,{type:Sr,url:i("{baseUrl}/clients/{clientID}",{clientID:l})});return r(p)})},getParameters:function(l,d,s,p){return n(l),u().then(function(g){var h=ue(o(g),p,{type:ft,url:i("{baseUrl}/clients/{clientID}/parameters",{clientID:l}),contentType:Rt,dataType:"json",data:JSON.stringify({report:d,parameterValues:s})});return r(h)})},createReportInstance:function(l,d,s,p){return n(l),u().then(function(g){var h=ue(o(g),p,{type:ft,url:i("{baseUrl}/clients/{clientID}/instances",{clientID:l}),contentType:Rt,dataType:"json",data:JSON.stringify({report:d,parameterValues:s})});return r(h)}).then(function(g){return g.instanceId})},deleteReportInstance:function(l,d,s){return n(l),u().then(function(p){var g=ue(o(p),s,{type:Sr,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}",{clientID:l,instanceID:d})});return r(g)})},createReportDocument:function(l,d,s,p,g,h,E,w){return n(l),u().then(function(S){p=p||{},p.BasePath=e;var I=ue(o(S),w,{type:ft,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents",{clientID:l,instanceID:d}),contentType:Rt,dataType:"json",data:JSON.stringify({format:s,deviceInfo:p,useCache:g,baseDocumentID:h,actionID:E})});return r(I)}).then(function(S){return S.documentId})},sendDocument:function(l,d,s,p,g){return n(l),u().then(function(h){var E=ue(o(h),g,{type:ft,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/send",{clientID:l,instanceID:d,documentID:s}),contentType:Rt,data:JSON.stringify({from:p.from,to:p.to,cc:p.cc,subject:p.subject,body:p.body})});return r(E)})},deleteReportDocument:function(l,d,s,p){return n(l),u().then(function(g){var h=ue(o(g),p,{type:Sr,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}",{clientID:l,instanceID:d,documentID:s})});return r(h)})},getDocumentInfo:function(l,d,s,p){return n(l),u().then(function(g){var h=ue(o(g),p,{type:vt,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/info",{clientID:l,instanceID:d,documentID:s}),dataType:"json"});return r(h)})},getPage:function(l,d,s,p,g){return n(l),u().then(function(h){var E=ue(o(h),g,{type:vt,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/pages/{pageNumber}",{clientID:l,instanceID:d,documentID:s,pageNumber:p}),dataType:"json"});return r(E)})},get:function(l){var d={type:vt,url:l};return r(d)},formatDocumentUrl:function(l,d,s,p){var g=i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}",{clientID:l,instanceID:d,documentID:s});return p&&(g+="?"+p),g},getDocumentFormats:function(l){return u().then(function(d){var s=ue(o(d),l,{type:vt,url:i("{baseUrl}/formats"),dataType:"json"});return r(s)})},getServiceVersion:function(l){return u().then(function(d){var s=ue(o(d),l,{type:vt,url:i("{baseUrl}/version"),dataType:"json"});return r(s)})},getResource:function(l,d,s,p,g){return n(l),u().then(function(h){var E=ue(o(h),g,{type:vt,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/resources/{resourceID}",{clientID:l,instanceID:d,documentID:s,resourceID:p}),dataType:"json"});return r(E)})},getSearchResults:function(l,d,s,p,g,h,E,w){n(l);var S=i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/search",{clientID:l,instanceID:d,documentID:s});return u().then(function(I){var U=ue(o(I),w,{type:ft,url:S,contentType:Rt,dataType:"json",data:JSON.stringify({searchToken:p,matchCase:g,matchWholeWord:h,useRegularExpressions:E})});return r(U)})},setAccessToken:function(l){a=Promise.resolve(l)},login:u,keepClientAlive:function(l,d){return u().then(function(s){var p=ue(o(s),d,{type:ft,url:i("{baseUrl}/clients/keepAlive/{clientID}",{clientID:l})});return r(p)})},getClientsSessionTimeoutSeconds:function(l){return u().then(function(d){var s=ue(o(d),l,{type:vt,url:i("{baseUrl}/clients/sessionTimeout")});return r(s)}).then(function(d){return d.clientSessionTimeout})}}}function Ir(t){var e={ExportInProgress:1,PrintInProgress:2,RenderInProgress:4};function a(S){return(o&S)!=0}function r(S,I){I?o|=S:o&=~S}var n=t.controller,i=t.history,o=0,u,l=t.commands;if(!n)throw"No controller (telerikReporting.ReportViewerController) has been specified.";function d(){var S={};return n.getDocumentMapState(S),S}function s(){var S={};return n.getParametersAreaState(S),S}function p(){var S={};return n.getSearchDialogState(S),S}function g(){var S={};return n.getSendEmailDialogState(S),S}function h(){u||(u=!0,window.setTimeout(function(){try{E()}finally{u=!1}},10))}function E(){var S=n.getReportSource(),I=n.getPageCount(),U=n.getCurrentPageNumber(),F=S&&S.report,Y=F&&I>0,K=Y&&U<I,T=Y&&U>1,k=Y&&U,C=d(),m=s(),D=p(),G=g(),X=a(e.RenderInProgress),Z=a(e.PrintInProgress),_=a(e.ExportInProgress);l.goToFirstPage.enabled(T),l.goToPrevPage.enabled(T),l.stopRendering.enabled(F&&X),l.goToLastPage.enabled(K),l.goToNextPage.enabled(K),l.goToPage.enabled(Y),l.print.enabled(Y&&!X&&!Z),l.export.enabled(Y&&!X&&!_),l.refresh.enabled(F),l.historyBack.enabled(i&&i.canMoveBack()),l.historyForward.enabled(i&&i.canMoveForward()),l.toggleDocumentMap.enabled(F&&C.enabled).checked(C.enabled&&C.visible),l.toggleParametersArea.enabled(F&&m.enabled).checked(m.enabled&&m.visible),l.togglePrintPreview.enabled(Y).checked(n.getViewMode()==we.PRINT_PREVIEW),l.pageMode.enabled(Y).checked(n.getPageMode()==Me.CONTINUOUS_SCROLL),l.zoom.enabled(k),l.zoomIn.enabled(k),l.zoomOut.enabled(k),l.toggleZoomMode.enabled(k),l.toggleSearchDialog.enabled(Y).checked(D.visible),l.toggleSendEmailDialog.enabled(Y).checked(G.visible),n.updateUI(null),n.pageNumberChange(U),n.pageCountChange(I)}function w(){var S={};return n.getScale(S),S.scaleMode}n.setParametersAreaVisible(h),n.setDocumentMapVisible(h),n.updateUIInternal(h),n.setSearchDialogVisible(h),n.setSendEmailDialogVisible(h),n.scale(function(S,I){l.toggleZoomMode.checked(I.scaleMode===me.FIT_PAGE||I.scaleMode===me.FIT_PAGE_WIDTH)}),n.currentPageChanged(h),n.beforeLoadReport(function(){r(e.RenderInProgress,!0),h()}),n.reportLoadProgress(h),n.reportLoadComplete(function(){r(e.RenderInProgress,!1),h()}),n.reportSourceChanged(h),n.viewModeChanged(h),n.pageModeChanged(function(){h()}),n.setUIState(function(S,I){r(e[I.operationName],I.inProgress),h()}),n.error(function(){r(e.ExportInProgress,!1),r(e.PrintInProgress,!1),r(e.RenderInProgress,!1),h()}),n.renderingStopped(function(){r(e.RenderInProgress,!1),h()}),h()}var Un={};function Rr(t,e,a){e=$.extend({},Un,e,a);var r=e.controller;if(!r)throw"No controller (telerikReporting.reportViewerController) has been specified.";var n=$(t),i,o=e.documentMapVisible!==!1,u=e.enableAccessibility,l=null,d=!1;s();function s(){i=$('<div id="'+e.viewerSelector+'-documentMap"></div>'),i.appendTo(t),T(),k(n)}function p(C){var m=this.dataItem(C.node),D=m.page,G=m.id;r.navigateToPage(D,{type:"bookmark",id:G})}function g(C){u&&window.setTimeout(function(){h(C.node)},100)}function h(C){var m=$(C).find("li");O(m,function(){var D=$(this);D.attr("aria-label",D[0].innerText)})}function E(){w([])}function w(C){var m=C&&!$.isEmptyObject(C),D=i.data("kendoTreeView");if(!D)try{i.kendoTreeView({dataTextField:"text",select:p}),D=i.data("kendoTreeView")}catch(G){throw console.error("Instantiation of Kendo TreeView as Document Map threw an exception",G),G}D.setDataSource(C),u&&S(D),K(m)}function S(C){C.bind("expand",g),C.element.attr("aria-label",A.ariaLabelDocumentMap);var m=C.element.find("ul");O(m,function(){h(this)}),d&&I()}function I(){var C=n.next();e.documentMapAreaPosition===pt.RIGHT&&(C=n.prev()),C.attr("aria-label",A.ariaLabelDocumentMapSplitter)}function U(){var C={};return r.getDocumentMapState(C),C.visible}function F(){n.addClass("trv-loading")}function Y(){n.removeClass("trv-loading")}function K(C){var m=rt.viewerInstances.find(G=>G.id===e.viewerSelector+"-document-map-splitter").instance,D=n.next();e.documentMapAreaPosition===pt.RIGHT&&(D=n.prev()),m&&((d?$.fn.removeClass:$.fn.addClass).call(D,"trv-hidden"),m.toggle(".trv-document-map",C))}function T(){r.beginLoadReport(function(){F();var C=r.getReportSource().report,m=l!==C||!U();l=C,m&&E()}).reportLoadComplete(function(C,m){m.documentMapAvailable?(d=!0,w(m.documentMapNodes),r.setDocumentMapVisible({enabled:!0,visible:o})):(d=!1,K(d)),Y()}).error(function(C,m){Y(),E()}).renderingStopped(function(){d=!1,K(!1)}),r.setDocumentMapVisible(function(C,m){o=m.visible,K(o&&d)}).getDocumentMapState(function(C,m){m.enabled=d,m.visible=o})}function k(C){var m=C.find(".trv-document-map-overlay");m&&m.attr("aria-label",A[m.attr("aria-label")])}}var Cr="telerik_ReportViewer_DocumentMapArea";$.fn[Cr]=function(t,e){return O(this,function(){$.data(this,Cr)||$.data(this,Cr,new Rr(this,t,e))})};var Gn={},rn={PARAMETERS_READY:"pa.parametersReady",ERROR:"pa.Error"};function wr(t,e,a){e=$.extend({},Gn,e,a);var r={},n=$(r),i={},o=e.controller;if(!o)throw"No controller (telerikReporting.reportViewerController) has been specified.";var u=[].concat(e.parameterEditors,Pr),l,d,s,p=void 0,g=$(t),h=g.find(".trv-parameters-area-content"),E=g.find(".trv-error-message"),w=g.find(".trv-parameters-area-preview-button");w.text(A[w.text()]),w.attr("aria-label",A[w.attr("aria-label")]),w.on("click",function(N){N.preventDefault(),_()&&P()});var S=e.templates["trv-parameter"],I=e.parametersAreaVisible!==!1,U=e.enableAccessibility;F();function F(){Y(g)}function Y(N){var L=N.find(".trv-parameters-area-preview-button");L&&(L.attr("aria-label",A[L.attr("aria-label")]),L.text(A[L.text()]))}function K(N,L){N.style.display=L?"none":""}function T(){return $(S)}function k(N){var L=T(),te=L.find(".trv-parameter-value"),he=L.find(".trv-parameter-title"),_e=L.find(".trv-parameter-error"),De=L.find(".trv-parameter-error-message"),Ve=L.find(".trv-parameter-use-default input"),Ae=e.parameters&&e.parameters.editors?e.parameters.editors:null,dt=D(N,Ae),W=Oe(N.text),b=!N.isVisible;b&&(W+=" [<b>hidden</b>]"),he.html(W).attr("title",W),De.text(N.Error),(N.Error?$.fn.show:$.fn.hide).call(_e);var f=dt.createEditor(te,{templates:e.templates,parameterChanged:function(y,V){var Q=document.querySelector(".trv-pages-area .trv-error-message ul li."+y.name);try{V=Tt.validate(y,V),_e.hide(),Q&&K(Q,!0),Ce(y,V)}catch(ne){Q&&K(Q,!1),y.Error=ne,y.value=[],De.text(ne),_e.show(),m(!1)}finally{C(y)}},enableAccessibility:U});if(i[N.id]=f,f.beginEdit(N),U&&!b&&f.addAccessibility(N),Ve.length>0){Ve.on("click",function(){var y=$(this).is(":checked");y?(delete l[N.id],delete s[N.id],ce(N),oe(ke)):(l[N.id]=N.value,s[N.id]=N.value),f.enable(!y),ie()});var v=s!==null;v?N.id in s||(Ve.prop("checked",!0),f.enable(!1)):b&&(Ve.prop("checked",!0),f.enable(!1))}return L}function C(N){var L=i[N.id];!L||!U||L.setAccessibilityErrorState(N)}function m(N){N?(w.prop("disabled",!1),w.removeClass("k-disabled")):(w.prop("disabled",!0),w.addClass("k-disabled"))}function D(N,L){var te;return O(u,function(){return this&&this.match(N,L)&&(te=this),!te}),te}function G(N){E.text(N),(N?$.fn.addClass:$.fn.removeClass).call(g,"trv-error")}function X(){(Z(d)?$.fn.removeClass:$.fn.addClass).call(g,"preview")}function Z(){var N=!0;return O(d,function(){return N=!this.isVisible||this.autoRefresh}),N}function _(){var N=!0;return O(d,function(){return N=!this.Error}),N}function M(){O(i,function(){this.hasOwnProperty("destroy")&&this.destroy()}),i={}}function J(N){l={},p={},d=N||[],M();var L,te=$("<div></div>");O(d,function(){try{this.value=Tt.validate(this,this.value)}catch(Ve){this.Error=this.Error||Ve}var _e=!!this.Error,De=!_e;De?(l[this.id]=this.value,this.availableValues?p[this.id]={valueMember:this.value,displayMember:this.label,availableValues:this.availableValues,multivalue:this.multivalue}:p[this.id]=this.value):this.Error=A.invalidParameter,(this.isVisible||e.showHiddenParameters)&&(L=k(this),L&&te.append(L))}),s!==void 0&&(s===null?(s={},O(d,function(){this.isVisible?s[this.id]=this.value:delete l[this.id]})):O(d,function(){this.id in s||delete l[this.id]})),h.empty(),d.length>0&&(h.append(te.children()),U&&h.attr("aria-label","Parameters area. Contains "+d.length+" parameters.")),X(d);var he=_();m(he),H()}function P(){o.setParameters($.extend({},l)),o.previewReport(!1)}function H(){o.setProcessedParameter($.extend({},p))}function q(){for(var N=!0,L=d.length-1;N&&L>=0;L--){var te=d[L];N=te.id in l&&(!!te.autoRefresh||!te.isVisible)}return N}function ie(){r.parametersReady(l)}function pe(){ie(),q()&&P()}function ce(N){N.childParameters&&O(N.childParameters,function(L,te){var he=le(te);he&&ce(he),delete l[te],de(te)})}function de(N){if(i){var L=i[N];L&&typeof L.clearPendingChange=="function"&&L.clearPendingChange()}}function Ce(N,L){if(delete N.Error,N.value=L,l[N.id]=L,s!==void 0?N.id in s&&(l[N.id]=L):l[N.id]=L,ce(N),N.childParameters)oe(pe);else{var te=_();if(m(te),te){var he=document.querySelector(".trv-pages-area .trv-error-message");w.is(":visible")&&he&&(he.textContent=A.tryReportPreview),pe()}}}function le(N){if(d)for(var L=0;L<d.length;L++){var te=d[L];if(te.id===N)return te}return null}function Ge(N){o.setParametersAreaVisible({visible:N})}function Le(N){if(!N||N===null)return!1;var L=!1;return O(N,function(){return L=this.isVisible,!L}),L}var se=0;function $e(){se++,g.addClass("trv-loading")}function Ie(){se>0&&--se===0&&g.removeClass("trv-loading")}var R=!1;function ee(N,L){R=Le(N),R||Re(!1),J(N),G(""),R&&I&&(Re(!0),U&&Ke()),o.updateUIInternal(),typeof L=="function"&&L(),Ie()}function oe(N){fe(o.loadParameters(l),N)}function fe(N,L){$e(),N.then(function(te){ee(te,L)}).catch(function(te){Ie(),Xe(),g.hasClass("trv-hidden")||G(te),r.error(te)})}function Pe(N){var L;return N&&N.length&&(L=N[0]),typeof L=="function"?L:null}function ve(N,L){var te=Pe(L);return te?n.on(N,te):n.trigger(N,L),o}function ke(){s===null&&(s=$.extend({},l)),ie()}function Re(N){var L=window.telerikReportViewer,te=rt.viewerInstances.find(_e=>_e.id===e.viewerSelector+"-parameters-splitter").instance,he=g.prev();(e.parametersAreaPosition===We.TOP||e.parametersAreaPosition===We.LEFT)&&(he=g.next()),te&&((R?$.fn.removeClass:$.fn.addClass).call(he,"trv-hidden"),te.toggle(".trv-parameters-area",N))}function Ke(){var N=g.prev(),L=g.find(".trv-parameters-area-content").attr("tabIndex");(e.parametersAreaPosition===We.TOP||e.parametersAreaPosition===We.LEFT)&&(N=g.next()),N.attr("aria-label",A.ariaLabelParametersAreaSplitter),N.attr("tabIndex",L)}function Be(N,L){G(),h.empty(),fe(L,ke)}o.reloadParameters(Be).beforeLoadReport(function(){se=0,$e()}).error(Ie).pageReady(Ie),o.getParametersAreaState(function(N,L){var te=!1;d&&(te=Le(d)),L.enabled=te,L.visible=I}).setParametersAreaVisible(function(N,L){I=L.visible,Re(L.visible&&Le(d))});function Xe(){J([])}return $.extend(r,{allParametersValid:function(){return _()},clear:function(){Xe()},error:function(){return ve(rn.ERROR,arguments)},parametersReady:function(){return ve(rn.PARAMETERS_READY,arguments)},setParameters:function(N){s=N===null?null:$.extend({},N)}}),r}var Ar="telerik_ReportViewer_ParametersArea";$.fn[Ar]=function(t,e){return O(this,function(){$.data(this,Ar)||$.data(this,Ar,new wr(this,t,e))})};var Mr,Ft;function Dr(t,e,a){var r=$.extend({},e,a),n=$(t).data("kendoMenu"),i=t.childNodes,o=r.controller,u=r.enableAccessibility;if(!o)throw"No controller (telerikReporting.ReportViewerController) has been specified.";n||l(),o.reportLoadComplete(function(_,M){u||n&&n._oldHoverItem&&n._oldHoverItem.toggleClass("k-focus")});function l(){try{n=$(t).kendoMenu().data("kendoMenu")}catch(_){throw console.error("Instantiation of Kendo Menu as Main Menu threw an exception",_),_}n.bind("open",p),n.bind("activate",S),n.bind("deactivate",I),n.element.off("keydown",F),n.element.on("keydown",F),r.enableAccessibility&&d(),X()}function d(){var _=$.find('[data-role="telerik_ReportViewer_MainMenu"]');O(_,function(){var M=$(this),J=M.find("li"),P=0,H=M.attr("tabIndex");H&&(P=Fe(H),(!P||isNaN(P))&&(P=0)),s(J,P);var q=J.find('input[data-role="telerik_ReportViewer_PageNumberInput"]');q.length>0&&q.attr("tabindex",P)})}function s(_,M){O(_,function(){var J=$(this);J.attr("tabindex",M),J.focus(function(){J.addClass("k-focus")}),J.blur(function(){J.removeClass("k-focus")});var P=J.children("a");if(P.length>0){var H=$(P);H.attr("tabindex",-1),J.attr("title",H.attr("title"))}J.off("keydown"),J.on("keydown",function(q){q.which==kendo.keys.ENTER&&(E(J),Mr=J)})})}function p(_){var M=$(_.item);n.unbind("open",p),n.append({text:A.loadingFormats,spriteCssClass:"k-icon k-loading"},M),o.getDocumentFormats().then(g).then(function(){n.open(M)}).then(function(){n.bind("open",p)})}function g(_){O($(t).find("ul[data-command-list=export-format-list]"),function(){var M=$(this),J=M.parents("li"),P=u?J.attr("tabindex"):-1;P||(P=1),M.empty(),O(_,function(){var H=this,q=u?re('aria-label="{localizedName}" ',H):" ",ie="<li "+q+re('tabindex="'+P+'"><a tabindex="-1" href="#" data-command="telerik_ReportViewer_export" data-command-parameter="{name}"><span>{localizedName}</span></a></li>',H);n.append(ie,J)}),u&&h(J.find("li"))})}function h(_){O(_,function(){var M=$(this);M.off("keydown"),M.on("keydown",function(J){switch(J.which){case kendo.keys.ENTER:E(M);break;case kendo.keys.UP:var P=M.prev();P.length>0?P.focus():M.parents("li").focus();break;case kendo.keys.DOWN:var H=M.next();H.length>0?H.focus():M.parent().children("li").first().focus();break}})})}function E(_){if(G(_))w();else if(_&&_.length>0){var M=_.children("a");M.length>0&&M.click()}}function w(){var _="#trv-main-menu-export-command",M=$("[data-role='telerik_ReportViewer_MainMenu']").data("kendoMenu");M.open(_)}function S(_){var M=$(_.item);U(M)}function I(_){Ft=void 0}function U(_){Mr&&Mr.is(_)&&window.setTimeout(function(){var M=_.find("li");M.length>0&&M[0].focus()},100)}function F(_){switch(_.which){case kendo.keys.ENTER:if(!u){var M=Y();M.length>0&&(G(M)&&Ft&&(M=Ft),E(M))}break;case kendo.keys.RIGHT:u?K():k();break;case kendo.keys.LEFT:u?C():m();break;case kendo.keys.DOWN:case kendo.keys.UP:u||(Ft=D())}}function Y(){var _,M=document.activeElement;if(M&&M.localName=="li")for(var J=$(i).filter("li.k-item"),P=0;P<J.length;P++){var H=J[P];if(M===H){_=$(H);break}}else M&&M.localName=="input"?_=$(M).closest("li.k-item"):(_=n.element.children("li.k-item.k-focus"),_.length===0&&(_=n.element.children("li.k-item").first()));return _}function K(){var _=Y();if(!(!_||!_.length>0)){var M=_.next();M.css("display")=="none"&&(M=M.next()),!M.length>0&&(M=$(i).filter("li.k-item").first()),M.focus()}}var T;function k(){var _=n.element.children("li.k-item"),M=_.filter(".k-focus");if(kendo.version>="2017.3.913"){T=M;return}if(M.hasClass("k-disabled"))if(!T||M.is(T)){var J=M.next();!J.length>0&&(J=_.first()),M.toggleClass("k-focus"),J.toggleClass("k-focus"),T=J,n._oldHoverItem=J}else T=M;else n._oldHoverItem=M,T=M}function C(){var _=Y();if(!(!_||!_.length>0)){var M=_.prev();M.css("display")=="none"&&(M=M.prev()),!M.length>0&&(M=$(i).filter("li.k-item").last()),M.focus()}}function m(){var _=n.element.children("li.k-item.k-focus");T=_}function D(){var _=n.element.find('li.k-item.k-focus [data-command="telerik_ReportViewer_export"]');if(_.length===1)return _.parent("li")}function G(_){if(_.length!==0){var M=_.attr("id");return M=="trv-main-menu-export-command"||M=="trv-side-menu-export-command"}}function X(){var _=Z();_&&O(_,function(){var M=$(this),J=M.children("li.k-item");M.attr("aria-label",A[M.attr("aria-label")]),O(J,function(){var P=$(this);if(P.attr("aria-label",A[P.attr("aria-label")]),P.hasClass("trv-report-pager"))P.attr("title",A[P.attr("title")]);else{var H=P.find("a");H&&H.attr("title",A[H.attr("title")])}})})}function Z(){return je("ul[data-role=telerik_ReportViewer_MainMenu]")}}var Nr="telerik_ReportViewer_MainMenu";$.fn[Nr]=function(t,e){return O(this,function(){$.data(this,Nr)||$.data(this,Nr,new Dr(this,t,e))})};var Bn={};function xr(t,e,a){e=$.extend({},Bn,e);var r=e.controller,n=!1,i=!1,o,u,l,d,s,p,g,h,E,w,S,I,U,F,Y,K,T=[],k,C,m,D,G,X=$("[data-selector='"+a.viewerSelector+"']").find(".trv-report-viewer"),Z="",_={shadedClassName:"trv-search-dialog-shaded-result",highlightedClassName:"trv-search-dialog-highlighted-result",current:null,elements:[]};if(!r)throw"No controller (telerikReporting.ReportViewerController) has been specified.";r.pageReady(Ie).scrollPageReady(Ie).beginLoadReport(M).viewModeChanged(M),r.setSendEmailDialogVisible(function(f,v){v.visible&&i&&P(!i)}).getSearchDialogState(function(f,v){v.visible=i}).setSearchDialogVisible(function(f,v){J(v.visible)});function M(){C||(P(!1),m=!1)}function J(f){if(i=f,f){var v=a.searchMetadataOnDemand;if(v&&!m){C=!0,r.reportLoadComplete(function(){C&&(P(!0),C=!1)}),r.refreshReport(!0);return}}P(f)}function P(f){i=f,f?(m=!0,H(),I.open(),S.value(""),ve(null),De(!1,null)):(te(),I&&I.options.visible&&I.close())}function H(){if(!n){o=$(t),u=o.find(".trv-search-dialog-input-box"),E=o.find(".trv-search-dialog-results-label"),w=o.find(".trv-search-dialog-results-area"),Ge(),Ve(o);try{l=o.find(".trv-search-dialog-search-options").kendoMenu(),s=o.find(".trv-search-dialog-stopsearch-placeholder").kendoMenu(),g=o.find(".trv-search-dialog-navigational-buttons").kendoMenu()}catch(f){throw console.error("Instantiation of Kendo Menu for Search Dialog threw an exception",f),f}d=l.data("kendoMenu"),p=s.data("kendoMenu"),h=g.data("kendoMenu"),d.element.on("keydown",ie),p.element.on("keydown",ie),h.element.on("keydown",ie),q(".trv-search-dialog-search-options");try{S=u.kendoComboBox({dataTextField:"value",dataValueField:"value",dataSource:T,contentElement:"",change:ee,ignoreCase:!1,filtering:R,filter:"startswith",delay:1e3,open:function(f){k&&f.preventDefault()},select:de}).data("kendoComboBox")}catch(f){throw console.error("Instantiation of Kendo ComboBox as search input threw an exception",f),f}try{I=X.find(".trv-search-window").kendoWindow({title:A.searchDialogTitle,height:390,width:310,minWidth:310,minHeight:390,maxHeight:700,scrollable:!1,close:function(){pe(),Z=""},open:function(){ce()},deactivate:function(){r.setSearchDialogVisible({visible:!1})},activate:function(){S.input.focus()}}).data("kendoWindow")}catch(f){throw console.error("Instantiation of Kendo Window for Search dialog threw an exception",f),f}I.wrapper.addClass("trv-search"),le(),n=!0}}function q(f){for(var v=$(f).find(".k-menu-item"),y=0;y<v.length;y++)$(v[y]).removeClass("k-item")}function ie(f){var v=$(f.target).find(".k-focus");if(f.keyCode===13&&v&&v.length>0){var y=v.children("a");y.length>0&&y.click()}}$(window).resize(function(){I&&I.options.visible&&(pe(),ce())});function pe(){var f=I.element.parent(".k-window");G=f.offset()}function ce(){var f=$(window).innerWidth(),v=$(window).innerHeight(),y=I.wrapper,V=y.outerWidth(!0),Q=y.outerHeight(!0),ne=10;if(G){var ye=G.left,qe=G.top,Je=ye+V,Ze=qe+Q;Je>f-ne&&(ye=Math.max(ne,f-V-ne),y.css({left:ye}),I.setOptions({position:{left:ye}})),Ze>v-ne&&(qe=Math.max(ne,v-Q-ne),y.css({top:qe}),I.setOptions({position:{top:qe}}))}else{var Te=X[0].getBoundingClientRect();y.css({top:Te.top+ne,left:Te.right-V-ne}),I.setOptions({position:{top:Te.top+ne,left:Te.right-V-ne}})}}function de(f){if(window.event||window.event.type){var v=window.event;v.type==="keydown"&&(f.preventDefault(),v.keyCode===40?he(1):v.keyCode===38&&he(-1))}}var Ce={matchCase:"searchDialog_MatchCase",matchWholeWord:"searchDialog_MatchWholeWord",useRegex:"searchDialog_UseRegex"};function le(){F={searchDialog_MatchCase:new b(function(){se(this)}),searchDialog_MatchWholeWord:new b(function(){se(this)}),searchDialog_UseRegex:new b(function(){se(this)})},it.bind(l,{controller:r,commands:F},a),U=new b(function(){Le()}),it.bind(s,{controller:r,commands:{searchDialog_StopSearch:U}},a),Y={searchDialog_NavigateUp:new b(function(){he(-1)}),searchDialog_NavigateDown:new b(function(){he(1)})},it.bind(g,{controller:r,commands:Y},a)}function Ge(){try{w.kendoListView({selectable:!0,navigatable:!0,dataSource:{},contentElement:"",template:"<div class='trv-search-dialog-results-row'><span>#: description #</span> <span class='trv-search-dialog-results-pageSpan'>"+A.searchDialogPageText+" #:page#</span></div>",change:function(){var f=this.select().index(),v=this.dataSource.view(),y=v[f];N(y),L(f,v.length)}})}catch(f){throw console.error("Instantiation of Kendo ListView as search result area threw an exception",f),f}}function Le(){$e(!1)}function se(f){f.checked(!f.checked()),oe()}function $e(f){U.enabled(f)}function Ie(f,v){i&&Ke(K)}function R(f){f.preventDefault(),f.filter&&f.filter.value!==Z&&(Z=f.filter.value,fe(Z))}function ee(f){var v=f.sender.value();v&&Z!==v&&(Z=v,fe(Z))}function oe(){S&&fe(S.value())}function fe(f){Pe(),ke(f),r.getSearchResults({searchToken:f,matchCase:F.searchDialog_MatchCase.checked(),matchWholeWord:F.searchDialog_MatchWholeWord.checked(),useRegex:F.searchDialog_UseRegex.checked()}).then(function(v){ve(v,null)}).catch(function(v){v&&ve(null,v)})}function Pe(){E.text(A.searchDialogSearchInProgress),te(),K=null,$e(!0),De(!1,null)}function ve(f,v){$e(!1),v&&De(!0,v),Re(f),K=f,f&&f.length>0?(Ke(f),Xe()):L(-1,0)}function ke(f){if(!(!f||f==="")){var v=T.filter(function(y){return y.value===f});v&&v.length>0||(T.unshift({value:f}),T.length>10&&T.pop(),k=!0,S.dataSource.data(T),S.select(function(y){return y.value===f}),k=!1)}}function Re(f){var v=w.data("kendoListView");f||(f=[]),v.dataSource.data(f)}function Ke(f){if(!(!f||f.length===0)){var v=o.parent(),y=v.find(".trv-page-container"),V=y.find("[data-search-id]");O(f,function(){var Q=V.filter("[data-search-id="+this.id+"]");Q&&(Q.addClass(_.shadedClassName),_.elements.push(Q))}),Be(D),D=null}}function Be(f){if(f){var v=f.id,y=$(_.elements.filter(function(Q){return Q.attr("data-search-id")===v})).first();if(y&&(_.current=y[0],_.current)){var V=$("[data-search-id='"+v+"']");V.removeClass(_.shadedClassName),V.addClass(_.highlightedClassName)}}}function Xe(){var f=w.data("kendoListView"),v=f.element.children().first();f.select(v),f.trigger("change")}function N(f){f&&(_.current&&(_.current.removeClass(_.highlightedClassName),_.current.addClass(_.shadedClassName)),f.page===r.getCurrentPageNumber()?Be(f):r.getPageMode()!==Me.CONTINUOUS_SCROLL?te():Be(f),D=f,r.navigateToPage(f.page,{type:"search",id:f.id}))}function L(f,v){var y=v===0?A.searchDialogNoResultsLabel:re(A.searchDialogResultsFormatLabel,[f+1,v]);E.text(y);var V=f>0,Q=f<v-1;Y.searchDialog_NavigateUp.enabled(V),Y.searchDialog_NavigateDown.enabled(Q)}function te(){_.elements&&_.elements.length>0&&O(_.elements,function(){this.removeClass(_.shadedClassName)}),_.current&&_.current.removeClass(_.highlightedClassName),_.elements=[],_.current=null}function he(f){var v=w.data("kendoListView"),y=v.select();if(!y)y=v.element.children().first(),v.select(y),v.trigger("change");else{var V=v.select().trigger("change").index(),Q=v.dataSource.view(),ne=Math.min(Q.length-1,Math.max(0,V+f));if(ne!==V){var Te=Q[ne],ye=v.element.find('[data-uid="'+Te.uid+'"]');ye&&(v.select(ye),v.trigger("change"),_e(ye[0],v.element[0]))}}}function _e(f,v){if(f.offsetTop-f.clientHeight<v.scrollTop)f.scrollIntoView();else{var y=f.offsetTop+f.offsetHeight,V=v.scrollTop+v.offsetHeight;y>V&&(v.scrollTop=y-v.offsetHeight)}}function De(f,v){var y=l.find("i[data-role='telerik_ReportViewer_SearchDialog_Error']");if(!y||y.length===0){console.log(v);return}var V=l.data("kendoMenu").element.find("li").last();f?(y[0].title=v,V.show()):V.hide()}function Ve(f){if(f){var v=f.find(".trv-search-dialog-caption-label"),y=f.find(".trv-search-dialog-search-options"),V=f.find("a[data-command='telerik_ReportViewer_searchDialog_StopSearch']"),Q=f.find("a[data-command='telerik_ReportViewer_searchDialog_MatchCase']"),ne=f.find("a[data-command='telerik_ReportViewer_searchDialog_MatchWholeWord']"),Te=f.find("a[data-command='telerik_ReportViewer_searchDialog_UseRegex']"),ye=f.find("a[data-command='telerik_ReportViewer_searchDialog_NavigateUp']"),qe=f.find("a[data-command='telerik_ReportViewer_searchDialog_NavigateDown']");W(f,"aria-label"),W(y,"aria-label"),dt(v),Ae(V),Ae(Q),Ae(ne),Ae(Te),Ae(ye),Ae(qe)}}function Ae(f){W(f,"title"),W(f,"aria-label")}function dt(f){f&&f.text(A[f.text()])}function W(f,v){f&&f.attr(v,A[f.attr(v)])}function b(f){var v=!0,y=!1,V={enabled:function(Q){if(arguments.length===0)return v;var ne=!!Q;return v=ne,$(this).trigger("enabledChanged"),V},checked:function(Q){if(arguments.length===0)return y;var ne=!!Q;return y=ne,$(this).trigger("checkedChanged"),V},exec:f};return V}}var yr="telerik_ReportViewer_SearchDialog";$.fn[yr]=function(t,e){return O(this,function(){$.data(this,yr)||$.data(this,yr,new xr(this,t,e))})};var Hn={};function Or(t,e,a){e=$.extend({},Hn,e);var r=e.controller,n=!1,i=!1,o,u,l=a.viewerSelector,d,s,p,g,h,E,w,S,I,U,F,Y=$("[data-selector='"+l+"']").find(".trv-report-viewer");if(!r)throw"No controller (telerikReporting.ReportViewerController) has been specified.";if(!a.sendEmail||!a.sendEmail.enabled){var K=$("[data-selector='"+l+"']").find("a[data-command='telerik_ReportViewer_toggleSendEmailDialog']").closest(".k-item ");K.hide();return}r.beginLoadReport(T).viewModeChanged(T),r.getSendEmailDialogState(function(R,ee){ee.visible=i}).setSendEmailDialogVisible(function(R,ee){k(ee.visible)}).setSearchDialogVisible(function(R,ee){ee.visible&&i&&k(!i)}),r.getDocumentFormats().then(function(R){I=R});function T(){k(!1)}function k(R){i=R,R?(m(),q(a.sendEmail),u.open()):u&&u.options.visible&&u.close()}function C(){return S?S.value():bodyText.val()}function m(){if(!n){o=$(t),d=o.find("[name='from']"),s=o.find("[name='to']"),p=o.find("[name='cc']"),g=o.find("[name='subject']"),E=o.find("[name='format']"),w=o.find("textarea"),D(),M(),Le(o);try{u=Y.find(".trv-send-email-window").kendoWindow({title:A.sendEmailDialogTitle,minWidth:350,minHeight:350,maxHeight:900,modal:!0,close:function(){G(),Ge()},open:function(){X(),Z()},deactivate:function(){r.setSendEmailDialogVisible({visible:!1})},activate:function(){u.wrapper.find(".trv-send-email-fields input[type='email']:visible").first().focus(),setTimeout(function(){P()},250)}}).data("kendoWindow")}catch(R){throw console.error("Instantiation of Kendo Window for Send Email dialog threw an exception",R),R}u.wrapper.addClass("trv-send-email");try{h=E.kendoComboBox({dataTextField:"localizedName",dataValueField:"name",dataSource:I||[],filter:"startswith",dataBound:function(){this.select(0),this.trigger("change")}}).data("kendoComboBox")}catch(R){throw console.error("Instantiation of Kendo ComboBox as document format selector threw an exception",R),R}o.on("keydown",'[name="format_input"]',function(R){var ee=9;R.keyCode===ee&&S&&setTimeout(function(){S.focus()})});try{S=w.kendoEditor({tools:["bold","italic","underline","strikethrough","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","createLink","unlink","cleanFormatting","formatting","fontName","fontSize","foreColor","backColor","subscript","superscript"]}).data("kendoEditor")}catch(R){throw console.error("Instantiation of Kendo Editor for Email body editor threw an exception",R),R}q(a.sendEmail),n=!0}}$(window).resize(function(){u&&u.options.visible&&(G(),X(),Z())});function D(){o.find(".trv-send-email-field input").each(function(){var R=$(this),ee=R.attr("name");R.attr("id",l+"-"+ee)}),o.find(".trv-send-email-label label").each(function(){var R=$(this),ee=R.attr("for");R.attr("for",l+"-"+ee)})}function G(){var R=u.element.parent(".k-window");F=R.offset()}function X(){var R=u.element.parent(".k-window"),ee=$(window).width(),oe=350;ee>800&&(oe=720),R.css({width:oe}),u.refresh({width:oe})}function Z(){if(!F)u.center();else{var R=10,ee=$(window).innerWidth(),oe=$(window).innerHeight(),fe=u.wrapper,Pe=fe.outerWidth(!0),ve=fe.outerHeight(!0),ke=F.left,Re=F.top,Ke=ke+Pe,Be=Re+ve;Ke>ee-R&&(ke=Math.max(R,ee-Pe-R),fe.css({left:ke}),u.setOptions({position:{left:ke}})),Be>oe-R&&(Re=Math.max(R,oe-ve-R),fe.css({top:Re}),u.setOptions({position:{top:Re}}))}}var _={Send:"sendEmail_Send",Cancel:"sendEmail_Cancel"};function M(){U={sendEmail_Cancel:new Ie(function(){le()}),sendEmail_Send:new Ie(function(R){J()})},it.bind(o.find(".trv-send-email-actions"),{controller:r,commands:U},a)}function J(R,ee){var oe={from:d.val(),to:s.val(),cc:p.val(),subject:g.val(),format:h.value(),body:C(),deviceInfo:{}};H()&&(r.sendReport(oe),le())}function P(){d.off("blur").on("blur",function(R){ie($(this))||de($(this),!1)}),s.off("blur").on("blur",function(R){ie($(this))||de($(this),!0)}),p.off("blur").on("blur",function(R){$(this).val().length?de($(this),!0):ce($(this))})}function H(){var R=ie(d)||!de(d,!1),ee=ie(s)||!de(s,!0),oe=p.val().length&&!de(p,!0),fe=h.value().length;return fe||pe(E,"data-required-msg"),!(R||ee||oe||!fe)}function q(R){d.val(R&&R.from||""),s.val(R&&R.to||""),p.val(R&&R.cc||""),g.val(R&&R.subject||""),R&&R.format?h.value(R.format):h.select(0),h.trigger("change"),S.value(R&&R.body||"")}function ie(R){return R.val().length?(ce(R),!1):(pe(R,"data-required-msg"),!0)}function pe(R,ee){var oe=A[R.attr(ee)];$('[data-for="'+R.attr("name")+'"]').addClass("-visible").text(oe)}function ce(R){$('[data-for="'+R.attr("name")+'"]').removeClass("-visible")}function de(R,ee){var oe=R.val();if(ee){for(var fe=oe.split(/[\s,;]+/),Pe=0;Pe<fe.length;Pe++)if(!Ce(fe[Pe].trim(),R))return!1;return!0}else return Ce(oe,R)}function Ce(R,ee){var oe=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;return R.indexOf(",")>-1||R.indexOf(";")>-1?(pe(ee,"data-single-email-msg"),!1):oe.test(R)?!0:(pe(ee,"data-email-msg"),!1)}function le(){u.close()}function Ge(){$(".k-invalid-msg").removeClass("-visible")}function Le(R){if(R){var ee=R.find(".trv-replace-string"),oe=R.find("[aria-label]"),fe=R.find("[title]");ee.length&&$.each(ee,function(Pe,ve){se($(ve))}),oe.length&&$.each(oe,function(Pe,ve){$e($(ve),"aria-label")}),fe.length&&$.each(fe,function(Pe,ve){$e($(ve),"title")})}}function se(R){R&&R.text(A[R.text()])}function $e(R,ee){R&&R.attr(ee,A[R.attr(ee)])}function Ie(R){var ee=!0,oe=!1,fe={enabled:function(Pe){if(arguments.length===0)return ee;var ve=!!Pe;return ee=ve,$(this).trigger("enabledChanged"),fe},checked:function(Pe){if(arguments.length===0)return oe;var ve=!!Pe;return oe=ve,$(this).trigger("checkedChanged"),fe},exec:R};return fe}}var kr="telerik_ReportViewer_SendEmail";$.fn[kr]=function(t,e){return O(this,function(){$.data(this,kr)||$.data(this,kr,new Or(this,t,e))})};function $r(t,e,a){var r=$.extend({},e,a),n=$(t).data("kendoMenu"),i=r.enableAccessibility,o,u=3,l,d,s=!1,p=r.controller;if(!p)throw"No controller (telerikReporting.ReportViewerController) has been specified.";n||g(t);function g(m){var D=$(m);try{l=D.children("ul").kendoPanelBar().data("kendoPanelBar")}catch(G){throw console.error("Instantiation of Kendo PanelBar as side menu threw an exception",G),G}l.bind("expand",E),l.element.off("keydown",Y),l.element.on("keydown",Y),U(D),I(D),D.click(function(G){G.target==m&&p.setSideMenuVisible({visible:!s})}),k()}p.setSideMenuVisible(function(m,D){h(),i&&l.element.focus(),s=D.visible,s||l.collapse($("#trv-side-menu-export-command"))}).getSideMenuVisible(function(m,D){D.visible=s});function h(){var m=l.element.parent(),D=m.position().left<0||!m.is(":visible");D?m.show():window.setTimeout(function(){m.hide()},500)}function E(m){var D=$(m.item);l.unbind("expand",E),l.append({text:A.loadingFormats,spriteCssClass:"k-icon k-loading"},D),r.controller.getDocumentFormats().then(w).then(function(){l.expand(D)}).then(function(){l.bind("expand",E)})}function w(m){O($(t).find("ul[data-command-list=export-format-list]"),function(){var D=$(this),G=D.parents("li"),X=G.attr("tabindex");X||(X=u),D.empty(),O(m,function(Z){var _=this,M=i?re('aria-label="{localizedName}" ',_):" ",J="<li "+M+re('tabindex="'+X+'"><a tabindex="-1" href="#" data-command="telerik_ReportViewer_export" data-command-parameter="{name}"><span>{localizedName}</span></a></li>',_);l.append(J,G)}),F(G.find("li"),X),I(G)})}function S(m){o&&o.is(m)&&window.setTimeout(function(){var D=m.find("li");D.length>0&&D[0].focus()},100)}function I(m){O(m.find("li"),function(){var D=$(this).children("ul").length===0;D&&$(this).children("a").click(function(){p.setSideMenuVisible({visible:!s})})})}function U(m){if(m){var D=m.children("ul"),G=m.attr("tabindex"),X=G||u;F(D,X)}}function F(m,D){m.attr("tabindex",D);var G=m.find("li");O(G,function(){var X=$(this);X.attr("tabindex",D);var Z=X.children("a");if(Z.length>0){var _=$(Z);_.attr("tabindex",-1)}X.focus(function(){var M=X.children("a");M.length>0&&M.addClass("k-focus")}),X.blur(function(){var M=X.children("a");M.length>0&&M.removeClass("k-focus")}),X.off("keydown",K),X.on("keydown",K)})}function Y(m){if(m.which==kendo.keys.ENTER){var D,G=!1,X=document.activeElement;if(X&&X.localName=="li")for(var Z=l.element.find("li.k-item"),_=0;_<Z.length;_++){var M=Z[_];if(X===M){D=$(M),G=!0;break}}else D=l.select();if(!D||!D.length>0)return;T(D,G)}}function K(m){m.which==kendo.keys.ENTER&&T($(m.target),!1)}function T(m,D){if(!(!m.length>0)){o=m;var G=m.children("ul").length===0;if(!G)D&&(m.hasClass("k-active")?l.collapse(m):l.expand(m));else{var X=m.find("a");X.length>0&&X[0].click()}}}function k(){var m=C();m&&O(m,function(){var D=$(this),G=D.children("li.k-panelbar-header");D.attr("aria-label",A[D.attr("aria-label")]),O(G,function(){var X=$(this),Z=X.find("a");if(X.attr("aria-label",A[X.attr("aria-label")]),Z){var _=Z.find("span:not(.k-icon)");Z.attr("title",A[Z.attr("title")]),_&&_.text(A[_.text()])}})})}function C(){return je("div[data-role=telerik_ReportViewer_SideMenu] > ul")}}var Lr="telerik_ReportViewer_SideMenu";$.fn[Lr]=function(t,e){return O(this,function(){$.data(this,Lr)||$.data(this,Lr,new $r(this,t,e))})};var nn=rt.viewerInstances,Wn=function(){var t={};return{load:function(e,a,r){var n=t[e];return n||(t[e]=n=r.get(e).then(function(i){var o={},u=[],l=tt(a,"\\/")+"/";i=St(i,"{service}/",l),i=St(i,"{service}",l);var d=$("<div></div>").html(i);return O(d.find("template"),function(s,p){var g=$(p);o[g.attr("id")]=Mt(g.html(),`
|
12
|
-
`)}),
|
13
|
-
`))}),u=tr(u),{templates:o,styleSheets:u}})),n}}}();function Kn(){var t={};return{getItem:function(e){return t[e]},setItem:function(e,a){t[e]=a},removeItem:function(e){delete t[e]}}}function zn(t,e,a){var r={};function n(p){var g=e.getItem(u(p));return g??a[p]}function i(p,g){var h="state",E=n(h),w=typeof E=="string"?JSON.parse(E):{};if(g.length){if(w){var S=g[0];S===void 0?delete w[p]:w[p]=S}return o(h,JSON.stringify(w)),r}else return w[p]}function o(p,g){var h=u(p);if(e.setItem(h,g),e instanceof window.Storage){var E=e.getItem(h),w=document.createEvent("StorageEvent");w.initStorageEvent("telerikReportingStorage",!1,!1,h,E,g,null,e),window.dispatchEvent(w)}}function u(p){return t+"_"+p}function l(p,g){return g.length?(o(p,g[0]),r):n(p)}function d(p,g){return g.length?(o(p,g[0]),r):parseFloat(n(p))}function s(p,g){if(g.length)return o(p,JSON.stringify(g[0])),r;var h=n(p);return typeof h=="string"?JSON.parse(h):null}return ue(r,{viewMode:function(){return i("viewMode",arguments)},pageMode:function(){return i("pageMode",arguments)},printMode:function(){return i("printMode",arguments)},scale:function(){return i("scale",arguments)},scaleMode:function(){return i("scaleMode",arguments)},documentMapVisible:function(){return i("documentMapVisible",arguments)},parametersAreaVisible:function(){return i("parametersAreaVisible",arguments)},history:function(){return s("history",arguments)},clientId:function(){return l("clientId",arguments)},reportSource:function(){return i("reportSource",arguments)},pageNumber:function(){return i("pageNumber",arguments)},enableAccessibility:function(){return l("enableAccessibility",arguments)},accessibilityKeyMap:function(){return i("accessibilityKeyMap",arguments)},searchMetadataOnDemand:function(){return l("searchMetadataOnDemand",arguments)},keepClientAlive:function(){return l("keepClientAlive",arguments)}}),r}function jn(t,e){return{id:null,serviceUrl:null,templateUrl:tt(t,"\\/")+"/resources/templates/telerikReportViewerTemplate-"+e+".html/",reportSource:null,reportServer:null,authenticationToken:null,sendEmail:null,scale:1,scaleMode:me.FIT_PAGE,viewMode:we.INTERACTIVE,pageMode:Me.CONTINUOUS_SCROLL,parametersAreaPosition:We.RIGHT,documentMapAreaPosition:pt.LEFT,parameters:{editors:{multiSelect:ot.LIST_VIEW,singleSelect:ot.LIST_VIEW}},persistSession:!1,parameterEditors:[],disabledButtonClass:null,checkedButtonClass:null,parametersAreaVisible:!0,documentMapVisible:!0,enableAccessibility:!1,searchMetadataOnDemand:!1,initialPageAreaImageUrl:null,keepClientAlive:!0}}function an(t,e){var a=e.serviceUrl,r="";e.reportServer&&(r=tt(e.reportServer.url,"\\/"),a=r+"/api/reports");var n=$(t),i={},o=e.id||"#"+n.attr("id"),u,l={},d={},s={},p={},g={},h={},E={},w={},S="";if(e.viewerSelector="reportViewer-"+zt(),n.attr("data-selector",e.viewerSelector),!U(e))return;var I="17.2.23.1010";e=ue({},jn(a,I),e),l=new zn(o,e.persistSession?window.sessionStorage:new Kn,{scale:e.scale,scaleMode:e.scaleMode,printMode:e.printMode?e.printMode:e.directPrint,enableAccessibility:e.enableAccessibility,searchMetadataOnDemand:e.searchMetadataOnDemand,sendEmail:e.sendEmail,parametersAreaPosition:e.parametersAreaPosition,documentMapAreaPosition:e.documentMapAreaPosition,keepClientAlive:e.keepClientAlive}),e.reportServer?(S=tt(e.reportServer.url,"\\/"),w.serviceUrl=S+"/api/reports",w.loginInfo={url:S+"/Token",username:e.reportServer.username,password:e.reportServer.password}):w.serviceUrl=e.serviceUrl,d=new _r(w),s=e.controller,s?s.updateSettings(l):s=new gr({serviceClient:d,settings:l}),g=new vr({controller:s,settings:l}),h=new dr({controller:s,history:g}),new Ir({controller:s,history:g,commands:h}),E={stringResources:A,refreshReport:function(P){return arguments.length===0&&(P=!0),s.refreshReport(P),E},reportSource:function(P){return P||P===null?(s.setReportSource(P),s.refreshReport(!1),E):s.getReportSource()},clearReportSource:function(){return s.clearReportSource(),E},viewMode:function(P){return P?(s.setViewMode(P),E):s.getViewMode()},pageMode:function(P){return P?(s.setPageMode(P),E):s.getPageMode()},printMode:function(P){return P?(s.setPrintMode(P),E):s.getPrintMode()},scale:function(P){return P?(s.scale(P),E):(P={},s.getScale(P),P)},currentPage:function(){return s.getCurrentPageNumber()},pageCount:function(){return s.getPageCount()},parametersAreaVisible:function(P){s.setParametersAreaVisible({visible:P})},getReportParameters:function(){return s.getReportParameters()},authenticationToken:function(P){return P&&s.setAuthenticationToken(P),E},bind:function(P,H){F(P,H,!0)},unbind:function(P,H){F(P,H,!1)},accessibilityKeyMap:function(P){if(u)return P?(u.setKeyMap(P),E):u.getKeyMap()},commands:h,dispose:function(){s.dispose(),p&&p.dispose()}};function U(P){if(!P)return n.text("The report viewer configuration options are not initialized."),!1;if(P.reportServer){if(!P.reportServer.url)return n.text("The report server URL is not specified."),!1}else if(!P.serviceUrl)return n.text("The serviceUrl is not specified."),!1;return!0}function F(P,H,q){typeof H=="function"?q?$(E).on(P,{sender:E},H):$(E).off(P,H):!H&&!q&&$(E).off(P)}function Y(){var P={EXPORT_BEGIN:s.Events.EXPORT_STARTED,EXPORT_END:s.Events.EXPORT_DOCUMENT_READY,PRINT_BEGIN:s.Events.PRINT_STARTED,PRINT_END:s.Events.PRINT_DOCUMENT_READY,RENDERING_BEGIN:s.Events.BEFORE_LOAD_REPORT,RENDERING_END:s.Events.REPORT_LOAD_COMPLETE,PAGE_READY:s.Events.PAGE_READY,ERROR:s.Events.ERROR,UPDATE_UI:s.Events.UPDATE_UI,INTERACTIVE_ACTION_EXECUTING:s.Events.INTERACTIVE_ACTION_EXECUTING,INTERACTIVE_ACTION_ENTER:s.Events.INTERACTIVE_ACTION_ENTER,INTERACTIVE_ACTION_LEAVE:s.Events.INTERACTIVE_ACTION_LEAVE,VIEWER_TOOLTIP_OPENING:s.Events.TOOLTIP_OPENING,SEND_EMAIL_BEGIN:s.Events.SEND_EMAIL_STARTED,SEND_EMAIL_END:s.Events.SEND_EMAIL_READY},H=$(E);for(var q in P){var ie=P[q];s.on(ie,function(pe,ce){return function(de,Ce){pe.trigger({type:ce,data:de.data},Ce)}}(H,q))}}function K(){F(Ne.EXPORT_BEGIN,e.exportBegin,!0),F(Ne.EXPORT_END,e.exportEnd,!0),F(Ne.PRINT_BEGIN,e.printBegin,!0),F(Ne.PRINT_END,e.printEnd,!0),F(Ne.RENDERING_BEGIN,e.renderingBegin,!0),F(Ne.RENDERING_END,e.renderingEnd,!0),F(Ne.PAGE_READY,e.pageReady,!0),F(Ne.ERROR,e.error,!0),F(Ne.UPDATE_UI,e.updateUi,!0),F(Ne.INTERACTIVE_ACTION_EXECUTING,e.interactiveActionExecuting,!0),F(Ne.INTERACTIVE_ACTION_ENTER,e.interactiveActionEnter,!0),F(Ne.INTERACTIVE_ACTION_LEAVE,e.interactiveActionLeave,!0),F(Ne.VIEWER_TOOLTIP_OPENING,e.viewerToolTipOpening,!0),F(Ne.SEND_EMAIL_BEGIN,e.sendEmailBegin,!0),F(Ne.SEND_EMAIL_END,e.sendEmailEnd,!0)}function T(){n.html(i["trv-report-viewer"]),it.bind(n,{controller:s,commands:h,templates:i},e),p=new Tr(t,s),p.attach(),k(),Y(),K(),m(),D(e)}function k(){var P={max:"500px",min:"50px",size:"210px",collapsible:!0},H=n.find(".trv-parameters-area"),q=[{}],ie={max:"500px",min:"50px",size:"210px",collapsible:!0,collapsed:!0},pe=n.find(".trv-document-map"),ce=[{}],de="horizontal";e.documentMapAreaPosition===pt.RIGHT?(pe.insertAfter(n.find(".trv-pages-area")),ce.push(ie)):ce.unshift(ie),(e.parametersAreaPosition===We.TOP||e.parametersAreaPosition===We.BOTTOM)&&(de="vertical",H.addClass("-vertical"),P.size="130px"),e.parametersAreaPosition===We.LEFT||e.parametersAreaPosition===We.TOP?(H.insertBefore(n.find(".trv-document-map-splitter")),q.unshift(P)):q.push(P);try{var Ce=n.find(".trv-document-map-splitter").kendoSplitter({panes:ce,expand:function(se){C(se.pane,!0)},collapse:function(se){C(se.pane,!1)},resize:function(se){}}).data("kendoSplitter")}catch(se){throw console.error("Instantiation of Kendo Splitter as Document Map splitter threw an exception",se),se}try{var le=n.find(".trv-parameters-splitter").kendoSplitter({panes:q,orientation:de,expand:function(se){C(se.pane,!0)},collapse:function(se){C(se.pane,!1)},resize:function(se){}}).data("kendoSplitter")}catch(se){throw console.error("Instantiation of Kendo Splitter as Parameters area splitter threw an exception",se),se}var Ge={id:e.viewerSelector+"-parameters-splitter",instance:le},Le={id:e.viewerSelector+"-document-map-splitter",instance:Ce};nn.push(Ge),nn.push(Le)}function C(P,H){var q=$(P).attr("data-id");switch(q){case"trv-document-map":s.setDocumentMapVisible({visible:H});break;case"trv-parameters-area":s.setParametersAreaVisible({visible:H});break}}function m(){var P=l.viewMode(),H=l.pageMode(),q=l.printMode(),ie=l.scale(),pe=l.scaleMode(),ce=l.documentMapVisible(),de=l.parametersAreaVisible(),Ce=l.accessibilityKeyMap();s.setViewMode(P||e.viewMode),s.setPageMode(H||e.pageMode),s.setPrintMode(q||e.printMode),s.scale({scale:ie||e.scale,scaleMode:pe||e.scaleMode}),s.setDocumentMapVisible({visible:ce||e.documentMapVisible}),s.setParametersAreaVisible({visible:de||e.parametersAreaVisible}),s.printModeChanged(function(){l.printMode(s.getPrintMode())}),s.viewModeChanged(function(){l.viewMode(s.getViewMode())}),s.pageModeChanged(function(){l.pageMode(s.getPageMode())}),s.scale(function(){var le={};s.getScale(le),l.scale(le.scale),l.scaleMode(le.scaleMode)}),s.setSideMenuVisible(function(le,Ge){window.setTimeout(function(){(Ge.visible?$.fn.addClass:$.fn.removeClass).call(n,"trv-side-menu-visible")},1)}),s.setDocumentMapVisible(function(){var le={};s.getDocumentMapState(le),l.documentMapVisible(le.visible)}),s.setParametersAreaVisible(function(){var le={};s.getParametersAreaState(le),l.parametersAreaVisible(le.visible)})}function D(P){if(P.enableAccessibility){u=new lr({controller:s,templates:i});var H=P.accessibilityKeyMap;H&&u.setKeyMap(H),l.contentTabIndex=G()}}function G(){var P="div.trv-pages-area";try{var H=n.find(P);if(H.length===0)throw"Selector "+P+" did not return a result.";return parseInt(H.attr("tabindex"))}catch(q){return console&&console.log(q),0}}function X(){var P=!1;T(),s.reportLoadComplete(function(){e.documentMapVisible===!1&&s.setDocumentMapVisible({visible:!1})});var H=l.reportSource();if(H!==void 0){s.setReportSource(H);var q=l.pageNumber();q!==void 0&&s.navigateToPage(q),P=!0}else e.viewMode&&s.setViewMode(e.viewMode),e.pageMode&&s.setPageMode(e.pageMode),e.reportSource&&(s.setReportSource(e.reportSource),P=!0);typeof e.ready=="function"&&e.ready.call(E),P&&s.refreshReport(!1)}function Z(P){if(!P)return Promise.resolve();var H=$("head"),q=H.find("link").map(function(pe,ce){return ce.outerHTML}).toArray(),ie=[];return O(P,function(pe,ce){q.indexOf(ce)===-1&&ie.push(new Promise(function(de,Ce){var le=$(ce);le.on("load",de),le.on("onerror",function(){at("error loading stylesheet "+ce),de()}),H.append(le)}))}),Promise.all(ie).then(s.cssLoaded)}function _(){return window.Promise}function M(P){if(window.kendo)return Promise.resolve();var H=tt(a,"\\/")+"/resources/js/telerikReportViewer.kendo-"+P+".min.js/";return er(H).catch(function(q){at("Kendo could not be loaded automatically. Make sure 'options.serviceUrl' / 'options.reportServer.url' is correct and accessible. The error is: "+q.error)})}function J(P){M(P).then(function(){}).then(function(){E.authenticationToken(e.authenticationToken),s.getServiceVersion().catch(function(){return n.text(re(A.errorServiceUrl,[Oe(a)])),Promise.reject()}).then(function(H){if(H!==P)return n.text(re(A.errorServiceVersion,[H,P])),Promise.reject();Wn.load(e.templateUrl,a,d).catch(function(){return n.text(re(A.errorLoadingTemplates,[Oe(e.templateUrl)])),Promise.reject()}).then(function(q){return i=q.templates,Z(q.styleSheets)}).then(X)})})}return _()?J(I):Qt("https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise",J,I),E}var Vr="telerik_ReportViewer";$.fn[Vr]=function(t){return this.selector&&!t.selector&&(t.selector=this.selector),O(this,function(){$.data(this,Vr)||$.data(this,Vr,new an(this,t))})};var Yn=[{name:"telerik_ReportViewer_DocumentMapArea",constructor:Rr},{name:"telerik_ReportViewer_MainMenu",constructor:Dr},{name:"telerik_ReportViewer_PagesArea",constructor:$t},{name:"telerik_ReportViewer_ParametersArea",constructor:wr},{name:"telerik_ReportViewer_SearchDialog",constructor:xr},{name:"telerik_ReportViewer_SendEmail",constructor:Or},{name:"telerik_ReportViewer_SideMenu",constructor:$r}];Yn.forEach(t=>{$.fn[t.name]=function(e,a){return O(this,function(){$.data(this,t.name)||$.data(this,t.name,new t.constructor(this,e,a))})}});return vn(Xn);})();
|
9
|
+
var telerikReportViewer=(()=>{var jt=Object.defineProperty;var mn=Object.getOwnPropertyDescriptor;var hn=Object.getOwnPropertyNames;var En=Object.prototype.hasOwnProperty;var Yt=(t,e)=>{for(var a in e)jt(t,a,{get:e[a],enumerable:!0})},bn=(t,e,a,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hn(e))!En.call(t,n)&&n!==a&&jt(t,n,{get:()=>e[n],enumerable:!(r=mn(e,n))||r.enumerable});return t};var Pn=t=>bn(jt({},"__esModule",{value:!0}),t);var ta={};Yt(ta,{Accessibility:()=>dr,Binder:()=>it,CommandSet:()=>hr,DocumentMapAreaPositions:()=>gt,Events:()=>Ne,GlobalSettings:()=>rt,HistoryManager:()=>Pr,PageModes:()=>Me,PagesArea:()=>Ut,ParameterEditorTypes:()=>ot,ParameterEditors:()=>Cr,ParameterTypes:()=>Ue,ParameterValidators:()=>St,ParametersAreaPositions:()=>We,PerspectiveManager:()=>Rr,PrintManager:()=>Ft,PrintModes:()=>Rt,ReportViewer:()=>cn,ReportViewerController:()=>br,ScaleModes:()=>he,Scroll:()=>Sr,ServiceClient:()=>wr,TouchBehavior:()=>Tr,UIController:()=>Mr,UIFreezeCoordinator:()=>Ir,ViewModes:()=>we,domUtils:()=>$t,parameterEditorsMatch:()=>Ye,utils:()=>Se});var $t={};Yt($t,{getBorderWidth:()=>cr,getMargins:()=>sr,getPadding:()=>ur,scale:()=>fr});var Se={};Yt(Se,{$ajax:()=>Ot,adjustTimezone:()=>qt,areEqual:()=>_t,areEqualArrays:()=>Dt,each:()=>L,escapeHtml:()=>Le,exceptionTypeNamesMatch:()=>Lt,extend:()=>se,filterUniqueLastOccurance:()=>or,findElement:()=>je,generateGuidString:()=>Xt,getColorAlphaValue:()=>lr,getExceptionInstance:()=>pt,isApplicationException:()=>rr,isApplicationExceptionInstance:()=>xt,isArray:()=>Jr,isExceptionOfType:()=>In,isInternalServerError:()=>er,isInvalidClientException:()=>yt,isRgbColor:()=>Qr,isSpecialKey:()=>Pt,isSvgSupported:()=>Qt,isSystemArgumentException:()=>tr,loadScript:()=>ir,loadScriptWithCallback:()=>ar,logError:()=>at,ltrim:()=>qr,parseJSON:()=>Ct,parseToLocalDate:()=>ct,rectangle:()=>Mt,replaceAll:()=>It,reportSourcesAreEqual:()=>Zt,rtrim:()=>tt,selector:()=>nr,stringFormat:()=>re,toRgbColor:()=>Zr,trim:()=>Nt,tryParseFloat:()=>Tt,tryParseInt:()=>Fe,unadjustTimezone:()=>Jt});var Tn=/{(\w+?)}/g,Xr={DELETE:46,BACKSPACE:8,TAB:9,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36};function Pt(){var t=window.navigator.userAgent.toLowerCase();if(t.indexOf("firefox")>-1){var e=Object.keys(Xr),a=e.length;return function(r){for(var n=0;n<a;n++)if(Xr[e[n]]==r)return!0}}return function(r){return!1}}function Sn(t,e,a){return{xhr:t,status:e,error:a}}function Mt(t,e,a,r){return{left:t,top:e,width:a,height:r,right:function(){return t+a},bottom:function(){return e+r},union:function(n){var i=Math.min(t,n.left),o=Math.min(e,n.top),u=Math.max(this.right(),n.right())-i,l=Math.max(this.bottom(),n.bottom())-o;return Mt(i,o,u,l)}}}function Xt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,a=t=="x"?e:e&3|8;return a.toString(16)})}function Nt(t,e){return tt(qr(t,e),e)}function It(t,e,a){return t.replace(new RegExp(e,"g"),a)}function qr(t,e){return e===void 0&&(e="s"),t.replace(new RegExp("^["+e+"]+"),"")}function tt(t,e){return e===void 0&&(e="s"),t.replace(new RegExp("["+e+"]+$"),"")}function re(t,e){var a=Array.isArray(e);return t.replace(Tn,function(r,n){return e[a?parseInt(n):n]})}function Le(t){return $("<div>").text(t).html()}function Fe(t){return/^(\-|\+)?([0-9]+)$/.test(t)?Number(t):NaN}function Tt(t){return/^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(t)?Number(t):NaN}function ct(t){if(t instanceof Date)return t;var e=/Z|[\+\-]\d\d:?\d\d/i.test(t);return e||(t+="Z"),new Date(t)}function qt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))}function Jt(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())}function _t(t,e){if(t instanceof Date&&e instanceof Date){if(t.getTime()!==e.getTime())return!1}else if(t!==e)return!1;return!0}function Zt(t,e){if(t&&e&&t.report===e.report){var a="";t.parameters&&(a=JSON.stringify(t.parameters));var r="";return e.parameters&&(r=JSON.stringify(e.parameters)),a===r}return!1}function Dt(t,e){if(t===null)return e===null;if(e===null||t.length!==e.length)return!1;for(var a=t.length-1;a>=0;a--)if(!_t(t[a],e[a]))return!1;return!0}function Qt(){var t=/Version\/(\d+.\d+.\d+) Safari/.exec(navigator.userAgent);if(t&&t.length>1){var e=parseFloat(t[1]);return e>=6}return!0}function er(t){return t?It(t," ","").toLowerCase()==="internalservererror":!1}function tr(t){var e="ArgumentException",a=pt(t);return kt(a,e,"System."+e)}function yt(t){var e="InvalidClientException",a=pt(t);return kt(a,e,"Telerik.Reporting.Services.Engine."+e)}function rr(t){return xt(pt(t))}function xt(t){var e="DrawingFactoryUnavailableException";return kt(t,e,"Telerik.Drawing.Contract."+e)}function In(t,e){return kt(pt(t),e,e)}function kt(t,e,a){return t&&t.exceptionType&&Lt(t.exceptionType,e,a)}function Lt(t,e,a){return t&&(t===a||t.endsWith(e))}function Ct(t){try{return JSON.parse(t,function(e,a){if(e&&a){var r=e.charAt(0);if(r===r.toUpperCase()){var n=r.toLowerCase()+e.slice(1);this[n]=a}}return a})}catch{return null}}function pt(t){return!t||!t.responseText?!1:Ct(t.responseText)}function se(){var t,e,a,r,n,i=0,o=arguments.length;for(n=o>1?arguments[i++]||{}:{};i<o;i++)if((r=arguments[i])!=null)for(a in r)t=n[a],e=r[a],n!==e&&e!==void 0&&(n[a]=e);return n}function L(t,e){var a,r=0;if(Jr(t))for(a=t.length;r<a&&e.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(e.call(t[r],r,t[r])===!1)break;return t}function nr(){return document.querySelectorAll(arguments[0])}function Jr(t){if(Array.isArray(t))return!0;var e=!!t&&"length"in t&&t.length;return typeof e=="number"}function ar(t,e,a){var r=document.createElement("script");r.src=t,r.onload=function(){e(a)},r.onerror=function(){at(new Error("Failed to load script "+t))},document.head.appendChild(r)}function ir(t){var e={dataType:"script",cache:!0,url:t};return Ot(e)}function or(t){function e(a,r,n){return n.lastIndexOf(a)===r}return t.filter(e)}function at(t){var e=window.console;e&&e.error&&e.error(t)}function je(t){t.constructor!=Array&&(t=[t]);for(var e=$(t[0]),a=1;a<t.length;a++)e=e.find(t[a]);return e}function Zr(t){if(t&&t.length<6){var e=1,a=t.split("");for(a[0]!=="#"&&(e=0),e;e<a.length;e++)a[e]=a[e]+a[e];t=a.join("")}var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r?parseInt(r[1],16)+", "+parseInt(r[2],16)+", "+parseInt(r[3],16):null}function Qr(t){return t?t.indexOf(",")>-1:!1}function lr(t){if(t.toLowerCase()==="transparent")return 0;if(!Qr(t))return 1;t.indexOf("#")!==-1&&(t=Zr(t));var e=t.split(",").map(function(r){return r.trim()}),a=e.length===4?parseFloat((parseFloat(e[3].replace(/[()]/g,""))/255).toFixed(2)):1;return a}function Ot(t){return new Promise(function(e,a){$.ajax(t).done(function(r){return e(r)}).fail(function(r,n,i){a(Sn(r,n,i))})})}function He(t){return parseInt(t,10)||0}function sr(t){var e=$(t);return{left:He(e.css("marginLeft")),right:He(e.css("marginRight")),top:He(e.css("marginTop")),bottom:He(e.css("marginBottom"))}}function ur(t){var e=$(t);return{left:He(e.css("paddingLeft")),right:He(e.css("paddingRight")),top:He(e.css("paddingTop")),bottom:He(e.css("paddingBottom"))}}function cr(t){var e=$(t);return{left:He(e.css("borderLeftWidth")),right:He(e.css("borderRightWidth")),top:He(e.css("borderTopWidth")),bottom:He(e.css("borderBottomWidth"))}}function fr(t,e,a,r,n){e=e||1,a=a||1,r=r||0,n=n||0;var i=re("scale({0}, {1})",[e,a]),o=re("{0} {1}",[r,n]);$(t).css("transform",i).css("transform-origin",o)}var _n={controllerNotInitialized:"Controller is not initialized.",noReportInstance:"No report instance.",missingTemplate:"!obsolete resource!",noReport:"No report.",noReportDocument:"No report document.",missingOrInvalidParameter:`There are missing or invalid parameter values. Please input valid data for the following parameters:
|
10
|
+
`,invalidParameter:"Please input a valid value.",invalidDateTimeValue:"Please input a valid date.",parameterIsEmpty:"Parameter value cannot be empty.",cannotValidateType:"Cannot validate parameter of type {type}.",loadingFormats:"Loading...",loadingReport:"Loading report...",preparingDownload:"Preparing document to download. Please wait...",preparingPrint:"Preparing document to print. Please wait...",errorLoadingTemplates:"Error loading the report viewer's templates. (templateUrl = '{0}').",errorServiceUrl:"Cannot access the Reporting REST service. (serviceUrl = '{0}'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)",errorServiceVersion:"The version of the Report Viewer '{1}' does not match the version of the Reporting REST Service '{0}'. Please make sure both are running same version.",loadingReportPagesInProgress:"{0} pages loaded so far...",loadedReportPagesComplete:"Done. Total {0} pages loaded.",noPageToDisplay:"No page to display.",errorDeletingReportInstance:"Error deleting report instance: '{0}'.",errorRegisteringViewer:"Error registering the viewer with the service.",noServiceClient:"No serviceClient has been specified for this controller.",errorRegisteringClientInstance:"Error registering client instance.",errorCreatingReportInstance:"Error creating report instance (Report = '{0}').",errorCreatingReportDocument:"Error creating report document (Report = '{0}'; Format = '{1}').",unableToGetReportParameters:"Unable to get report parameters.",errorObtainingAuthenticationToken:"Error obtaining authentication token.",clientExpired:"Click 'Refresh' to restore client session.",promisesChainStopError:"Error shown. Throwing promises chain stop error.",renderingCanceled:"Report processing was canceled.",tryReportPreview:"The report may now be previewed.",parameterEditorSelectNone:"clear selection",parameterEditorSelectAll:"select all",parametersAreaPreviewButton:"Preview",menuNavigateBackwardText:"Navigate Backward",menuNavigateBackwardTitle:"Navigate Backward",menuNavigateForwardText:"Navigate Forward",menuNavigateForwardTitle:"Navigate Forward",menuStopRenderingText:"Stop Rendering",menuStopRenderingTitle:"Stop Rendering",menuRefreshText:"Refresh",menuRefreshTitle:"Refresh",menuFirstPageText:"First Page",menuFirstPageTitle:"First Page",menuLastPageText:"Last Page",menuLastPageTitle:"Last Page",menuPreviousPageTitle:"Previous Page",menuNextPageTitle:"Next Page",menuPageNumberTitle:"Page Number Selector",menuDocumentMapTitle:"Toggle Document Map",menuParametersAreaTitle:"Toggle Parameters Area",menuZoomInTitle:"Zoom In",menuZoomOutTitle:"Zoom Out",menuPageStateTitle:"Toggle FullPage/PageWidth",menuPrintText:"Print...",menuContinuousScrollText:"Toggle Continuous Scrolling",menuSendMailText:"Send an email",menuPrintTitle:"Print",menuContinuousScrollTitle:"Toggle Continuous Scrolling",menuSendMailTitle:"Send an email",menuExportText:"Export",menuExportTitle:"Export",menuPrintPreviewText:"Toggle Print Preview",menuPrintPreviewTitle:"Toggle Print Preview",menuSearchText:"Search",menuSearchTitle:"Toggle Search",menuSideMenuTitle:"Toggle Side Menu",sendEmailFromLabel:"From:",sendEmailToLabel:"To:",sendEmailCCLabel:"CC:",sendEmailSubjectLabel:"Subject:",sendEmailFormatLabel:"Format:",sendEmailSendLabel:"Send",sendEmailCancelLabel:"Cancel",ariaLabelPageNumberSelector:"Page number selector. Showing page {0} of {1}.",ariaLabelPageNumberEditor:"Page number editor",ariaLabelExpandable:"Expandable",ariaLabelSelected:"Selected",ariaLabelParameter:"parameter",ariaLabelErrorMessage:"Error message",ariaLabelParameterInfo:"Contains {0} options",ariaLabelMultiSelect:"Multiselect",ariaLabelMultiValue:"Multivalue",ariaLabelSingleValue:"Single value",ariaLabelParameterDateTime:"DateTime",ariaLabelParameterString:"String",ariaLabelParameterNumerical:"Numerical",ariaLabelParameterBoolean:"Boolean",ariaLabelParametersAreaPreviewButton:"Preview the report",ariaLabelMainMenu:"Main menu",ariaLabelCompactMenu:"Compact menu",ariaLabelSideMenu:"Side menu",ariaLabelDocumentMap:"Document map area",ariaLabelDocumentMapSplitter:"Document map area splitbar.",ariaLabelParametersAreaSplitter:"Parameters area splitbar.",ariaLabelPagesArea:"Report contents area",ariaLabelSearchDialogArea:"Search area",ariaLabelSendEmailDialogArea:"Send email area",ariaLabelSearchDialogStop:"Stop search",ariaLabelSearchDialogOptions:"Search options",ariaLabelSearchDialogNavigateUp:"Navigate up",ariaLabelSearchDialogNavigateDown:"Navigate down",ariaLabelSearchDialogMatchCase:"Match case",ariaLabelSearchDialogMatchWholeWord:"Match whole word",ariaLabelSearchDialogUseRegex:"Use regex",ariaLabelMenuNavigateBackward:"Navigate backward",ariaLabelMenuNavigateForward:"Navigate forward",ariaLabelMenuStopRendering:"Stop rendering",ariaLabelMenuRefresh:"Refresh",ariaLabelMenuFirstPage:"First page",ariaLabelMenuLastPage:"Last page",ariaLabelMenuPreviousPage:"Previous page",ariaLabelMenuNextPage:"Next page",ariaLabelMenuPageNumber:"Page number selector",ariaLabelMenuDocumentMap:"Toggle document map",ariaLabelMenuParametersArea:"Toggle parameters area",ariaLabelMenuZoomIn:"Zoom in",ariaLabelMenuZoomOut:"Zoom out",ariaLabelMenuPageState:"Toggle FullPage/PageWidth",ariaLabelMenuPrint:"Print",ariaLabelMenuContinuousScroll:"Continuous scrolling",ariaLabelMenuSendMail:"Send an email",ariaLabelMenuExport:"Export",ariaLabelMenuPrintPreview:"Toggle print preview",ariaLabelMenuSearch:"Search in report contents",ariaLabelMenuSideMenu:"Toggle side menu",ariaLabelSendEmailFrom:"From email address",ariaLabelSendEmailTo:"Recipient email address",ariaLabelSendEmailCC:"Carbon Copy email address",ariaLabelSendEmailSubject:"Email subject:",ariaLabelSendEmailFormat:"Report format:",ariaLabelSendEmailSend:"Send email",ariaLabelSendEmailCancel:"Cancel sending email",searchDialogTitle:"Search in report contents",searchDialogSearchInProgress:"searching...",searchDialogNoResultsLabel:"No results",searchDialogResultsFormatLabel:"Result {0} of {1}",searchDialogStopTitle:"Stop Search",searchDialogNavigateUpTitle:"Navigate Up",searchDialogNavigateDownTitle:"Navigate Down",searchDialogMatchCaseTitle:"Match Case",searchDialogMatchWholeWordTitle:"Match Whole Word",searchDialogUseRegexTitle:"Use Regex",searchDialogCaptionText:"Find",searchDialogPageText:"page",sendEmailDialogTitle:"Send Email",sendEmailValidationEmailRequired:"Email field is required",sendEmailValidationEmailFormat:"Email format is not valid",sendEmailValidationSingleEmail:"The field accepts a single email address only",sendEmailValidationFormatRequired:"Format field is required",errorSendingDocument:"Error sending report document (Report = '{0}')."};window.telerikReportViewer||={};window.telerikReportViewer.sr||=_n;var en=en||{},Cn=(window.telerikReportViewer||{}).sr||{},A=$.extend({},en,Cn);var Rn={};function dr(t){var e,a=!1,r,n,i={CONFIRM_KEY:13,CONTENT_AREA_KEY:67,DOCUMENT_MAP_AREA_KEY:68,MENU_AREA_KEY:77,PARAMETERS_AREA_KEY:80};if(t=$.extend({},Rn,t),e=t.controller,!e)throw"No controller (telerikReporting.ReportViewerController) has been specified.";e.reportLoadComplete(function(){o();var _=p();_.length>0&&_.focus()}).pageReady(function(_,k){l(k),a=!0}).error(function(_,k){u(),window.setTimeout(o,500)}),e.updateUI(function(_){a&&(d(),F())});function o(){r||(s(),$(document.body).off("keydown",w),$(document.body).on("keydown",w))}function u(){var _=["div.trv-pages-area","div.trv-error-message"],k=je(_);k.length!==0&&(k.attr("tabIndex",0),k.focus())}function l(_){if(_){o();var k=r[i.CONTENT_AREA_KEY];U(k)}}function d(){var _=$(".trv-report-pager");if(_.length>0){var k=e.getCurrentPageNumber(),I=e.getPageCount();L(_,function(){var m=$(this);m.attr("aria-label",re(A.ariaLabelPageNumberSelector,[k,I]));var N=m.find("input[data-role=telerik_ReportViewer_PageNumberInput]");N.length>0&&L(N,function(){var G=$(this);G.attr("aria-label",A.ariaLabelPageNumberEditor),G.attr("min","1"),G.attr("max",""+I)})})}}function s(){r={},r[i.DOCUMENT_MAP_AREA_KEY]=g(),r[i.MENU_AREA_KEY]=h(),r[i.CONTENT_AREA_KEY]=p();var _=b();_&&(r[i.PARAMETERS_AREA_KEY]=_,T(_))}function p(){return je(["div[data-role=telerik_ReportViewer_PagesArea]"])}function g(){return je(["div[data-role=telerik_ReportViewer_DocumentMapArea]","div[data-role=treeview]"])}function h(){return je("ul[data-role=telerik_ReportViewer_MainMenu]")}function b(){return je(["div[data-role=telerik_ReportViewer_ParametersArea]","div.trv-parameters-area-content"])}function w(_){if(r&&_.altKey&&_.ctrlKey){var k=r[_.which];if(k&&S(k.parent())){var I="k-focus";n&&n.removeClass(I),k.addClass(I),k.focus(),n=k,_.preventDefault()}}}function T(_){if(_.length!==0){var k=_.parent("div[data-role=telerik_ReportViewer_ParametersArea]");S(k)&&L(_.children(),function(){$(this).keydown(function(I){if(I.which==i.CONFIRM_KEY){var m=k.find("button.trv-parameters-area-preview-button");m.focus(),I.preventDefault()}})})}}function S(_){return _&&!(_.hasClass("k-collapsed")||_.hasClass("trv-hidden"))}function U(_){if(_){var k=_.find("div [data-reporting-action]");!k.length>0||L(k,function(){var I=$(this);I.keydown(function(m){m.which==i.CONFIRM_KEY&&I.click()})})}}function F(){var _=r[i.MENU_AREA_KEY];_&&L(_,function(){var k=$(this),I=k.children("li.k-item");L(I,function(){var m=$(this);if(!m.hasClass("trv-report-pager")){var N=m.attr("aria-label"),G=re(". {0}",[A.ariaLabelExpandable]),Y=m.find("ul").length>0&&N.indexOf(G)<0?G:"",M=re(". {0}",[A.ariaLabelSelected]),P=m.hasClass("k-selected")&&N.indexOf(M)<0?M:"",K=N+Y+P;m.attr("aria-label",K),m.hasClass("k-disabled")?m.attr("aria-disabled","true"):m.removeAttr("aria-disabled")}})})}function q(_){i=_,r=void 0}function W(){return i}return{getKeyMap:W,setKeyMap:q}}var rt={viewerInstances:[]};var it={bind:function(t){var e=Array.prototype.slice.call(arguments,1);An(t,e);var a=nr('[data-role^="telerik_ReportViewer_"]');L(a,function(){var r=$(this),n=$.fn[r.attr("data-role")];typeof n=="function"&&n.apply(r,e)})}};function An(t,e){var a=e[0].commands,r=e[1],n='[data-command^="telerik_ReportViewer_"]',i="[data-target-report-viewer]"+n;t.on("click",n,o),rt.CommandHandlerAttached||($(document.body).on("click",i,u),rt.CommandHandlerAttached=!0),L(a,function(l,d){wn(l,d,r,t)});function o(l){var d=$(this).attr("data-command");if(d){var s=d.substring(21),p=a[s];p&&p.enabled()&&p.exec($(this).attr("data-command-parameter")),l.preventDefault()}}function u(l){var d=$(this),s=d.attr("data-command"),p=d.attr("data-target-report-viewer");if(s&&p){var g=s.substring(21),h=$(p).data("telerik_ReportViewer"),b=h.commands[g];b.enabled()&&b.exec($(this).attr("data-command-parameter")),l.preventDefault()}}}function wn(t,e,a,r){if(e){var n='[data-command="telerik_ReportViewer_'+t+'"]',i='[data-target-report-viewer="'+a.selector+'"]'+n,o=r.find(n),u=$(i);$(e).on("enabledChanged",function(l){(e.enabled()?$.fn.removeClass:$.fn.addClass).call(o.parent("li"),"k-disabled"),(e.enabled()?$.fn.removeClass:$.fn.addClass).call(u,a.disabledButtonClass)}).on("checkedChanged",function(l){var d=o.parent("li");(e.checked()?$.fn.addClass:$.fn.removeClass).call(d,Mn(d)),(e.checked()?$.fn.addClass:$.fn.removeClass).call(u,a.checkedButtonClass)})}}function Mn(t){return t.hasClass("trv-menu-toggleable")?"k-selected !k-bg-primary":"k-selected"}function Nn(t,e){var a,r=$(t),n=r.attr("data-command");n&&(a=e.commands[n]),a&&(r.click(function(i){a.enabled()?a.exec($(this).attr("data-command-parameter")):i.preventDefault()}),$(a).on("enabledChanged",function(i){(a.enabled()?$.fn.removeClass:$.fn.addClass).call(r,"disabled")}).on("checkedChanged",function(i){(a.checked()?$.fn.addClass:$.fn.removeClass).call(r,"checked")}))}var pr="telerik_ReportViewer_LinkButton";$.fn[pr]=function(t){return L(this,function(){$.data(this,pr)||$.data(this,pr,new Nn(this,t))})};function Dn(t,e){var a=$(t),r=0,n=e.commands.goToPage;function i(u){(r!==u||!a.is(":focus"))&&(a.val(u),r=u)}e.controller.pageNumberChange(function(u,l){i(l)}),a.change(function(){var u=$(this).val(),l=Fe(u);if(!isNaN(l)){var d=n.exec(l);i(d)}}),a.keydown(function(u){if(u.which==13)return $(this).change(),u.preventDefault()});function o(u){return/^([0-9]+)$/.test(u)}a.keypress(function(u){if(Pt(u.keyCode))return!0;var l=a.val()+String.fromCharCode(u.charCode);return o(l)}).on("paste",function(u){})}var gr="telerik_ReportViewer_PageNumberInput";$.fn[gr]=function(t){return L(this,function(){$.data(this,gr)||$.data(this,gr,new Dn(this,t))})};function yn(t,e){var a=$(t);e.controller.pageCountChange(function(r,n){a.text(n)})}var vr="telerik_ReportViewer_PageCountLabel";$.fn[vr]=function(t){return L(this,function(){$.data(this,vr)||$.data(this,vr,new yn(this,t))})};var we={INTERACTIVE:"INTERACTIVE",PRINT_PREVIEW:"PRINT_PREVIEW"},Rt={AUTO_SELECT:"AUTO_SELECT",FORCE_PDF_PLUGIN:"FORCE_PDF_PLUGIN",FORCE_PDF_FILE:"FORCE_PDF_FILE"},Me={SINGLE_PAGE:"SINGLE_PAGE",CONTINUOUS_SCROLL:"CONTINUOUS_SCROLL"},he={FIT_PAGE_WIDTH:"FIT_PAGE_WIDTH",FIT_PAGE:"FIT_PAGE",SPECIFIC:"SPECIFIC"},Ue={INTEGER:"System.Int64",FLOAT:"System.Double",STRING:"System.String",DATETIME:"System.DateTime",BOOLEAN:"System.Boolean"},ot={COMBO_BOX:"COMBO_BOX",LIST_VIEW:"LIST_VIEW"},We={RIGHT:"RIGHT",LEFT:"LEFT",TOP:"TOP",BOTTOM:"BOTTOM"},gt={RIGHT:"RIGHT",LEFT:"LEFT"};var Vt={};Vt[he.FIT_PAGE]={scaleMode:he.FIT_PAGE_WIDTH};Vt[he.FIT_PAGE_WIDTH]={scaleMode:he.SPECIFIC,scale:1};Vt[he.SPECIFIC]={scaleMode:he.FIT_PAGE};var mr=[.1,.25,.5,.75,1,1.5,2,4,8];function hr(t){var e=t.controller;if(!e)throw"No options.controller.";var a=t.history;if(!a)throw"No options.history.";function r(){var s={};return e.getDocumentMapState(s),!!s.visible}function n(){var s={};return e.getParametersAreaState(s),!!s.visible}function i(){var s={};return e.getSideMenuVisible(s),!!s.visible}function o(){var s={};return e.getSearchDialogState(s),!!s.visible}function u(){var s={};return e.getSendEmailDialogState(s),!!s.visible}return{historyBack:new be(function(){a.back()}),historyForward:new be(function(){a.forward()}),stopRendering:new be(function(){e.stopRendering()}),goToPrevPage:new be(function(){e.navigateToPage(e.getCurrentPageNumber()-1)}),goToNextPage:new be(function(){e.navigateToPage(e.getCurrentPageNumber()+1)}),goToFirstPage:new be(function(){e.navigateToPage(1)}),goToLastPage:new be(function(){e.navigateToPage(e.getPageCount())}),goToPage:new be(function(s){if(!isNaN(s)){var p=e.getPageCount();return s>p?s=p:s<1&&(s=1),e.navigateToPage(s),s}}),refresh:new be(function(){e.refreshReport(!0)}),export:new be(function(s){s&&e.exportReport(s)}),print:new be(function(){e.printReport()}),pageMode:new be(function(){e.setPageMode(e.getPageMode()===Me.SINGLE_PAGE?Me.CONTINUOUS_SCROLL:Me.SINGLE_PAGE)}),togglePrintPreview:new be(function(){e.setViewMode(e.getViewMode()===we.PRINT_PREVIEW?we.INTERACTIVE:we.PRINT_PREVIEW)}),toggleDocumentMap:new be(function(){e.setDocumentMapVisible({visible:!r()})}),toggleParametersArea:new be(function(){e.setParametersAreaVisible({visible:!n()})}),zoom:new be(function(s){var p={};p.scale=s,p.scaleMode=he.SPECIFIC,e.scale(p)}),zoomIn:new be(function(){l(1)}),zoomOut:new be(function(){l(-1)}),toggleSideMenu:new be(function(){e.setSideMenuVisible({visible:!i()})}),toggleZoomMode:new be(function(s){var p={};e.getScale(p),e.scale(Vt[p.scaleMode])}),toggleSearchDialog:new be(function(){e.setSearchDialogVisible({visible:!o()})}),toggleSendEmailDialog:new be(function(){e.setSendEmailDialogVisible({visible:!u()})})};function l(s){var p={};e.getScale(p),p.scale=d(p.scale,s),p.scaleMode=he.SPECIFIC,e.scale(p)}function d(s,p){for(var g=-1,h=mr.length,b=0;b<h;b++){var w=mr[b];if(s<w){g=b-.5;break}if(s===w){g=b;break}}return g=g+p,p>=0?g=Math.round(g-.49):g=Math.round(g+.49),g<0?g=0:g>h-1&&(g=h-1),mr[g]}}function be(t){var e=!0,a=!1,r={enabled:function(n){if(arguments.length===0)return e;var i=!!n;return e=i,$(this).trigger("enabledChanged"),r},checked:function(n){if(arguments.length===0)return a;var i=!!n;return a=i,$(this).trigger("checkedChanged"),r},exec:t};return r}function xn(){function t(){var e=["AcroPDF.PDF.1","PDF.PdfCtrl.6","PDF.PdfCtrl.5"],a=null;return L(e,function(r,n){try{if(a=new ActiveXObject(n),a)return!1}catch{}}),a}return{hasPdfPlugin:function(){return t()!==null}}}function kn(){function t(){var e=/Firefox[\/\s](\d+\.\d+)/.exec(navigator.userAgent);if(e!==null&&e.length>1){var a=parseFloat(e[1]);if(a>=19)return!1}var r=navigator.mimeTypes["application/pdf"],n=r!==null?r.enabledPlugin:null;if(n){var i=n.description;return i.indexOf("Adobe")!==-1&&(i.indexOf("Version")===-1||parseFloat(i.split("Version")[1])>=6)}return!1}return{hasPdfPlugin:function(){return t()}}}function Er(t){function e(){var a=navigator.plugins,r=!1;return L(a,function(n,i){if(a[n].name===t||a[n].name==="Adobe Acrobat")return r=!0,!1}),r}return{hasPdfPlugin:function(){return e()}}}function Ln(){return{hasPdfPlugin:function(){return!1}}}function On(){if(window.navigator){var t=window.navigator.userAgent.toLowerCase();return t.indexOf("msie")>-1||t.indexOf("mozilla")>-1&&t.indexOf("trident")>-1?xn():t.indexOf("firefox")>-1?kn():t.indexOf("edg/")>-1?Er("Microsoft Edge PDF Plugin"):t.indexOf("chrome")>-1?Er("Chrome PDF Viewer"):t.indexOf("safari")>-1?Er("WebKit built-in PDF"):Ln()}return null}var tn=On(),$n=tn?tn.hasPdfPlugin():!1,Ft=function(){var t;function e(u){var l=null;if(t||(t=document.createElement("iframe"),t.style.display="none",t.onload=function(){try{t.contentDocument.execCommand("print",!0,null)}catch(s){at(s)}finally{l&&(window.URL||window.webkitURL).revokeObjectURL(l)}}),r(u)&&a()){t.src=u,document.body.appendChild(t);return}var d=new XMLHttpRequest;d.open("GET",u,!0),d.responseType="arraybuffer",d.onload=function(s){if(this.status===200){var p=new Blob([this.response],{type:"application/pdf"});a()?window.navigator.msSaveOrOpenBlob(p):(l=(window.URL||window.webkitURL).createObjectURL(p),t.src=l,document.body.appendChild(t))}else console.log("Could not retrieve remote PDF document.")},d.send()}function a(){return window.navigator&&window.navigator.msSaveOrOpenBlob}function r(u){var l=window.location,d=document.createElement("a");return d.setAttribute("href",u),d.host==""&&(d.href=d.href),l.hostname===d.hostname&&l.protocol===d.protocol&&l.port===d.port}function n(u){window.open(u,"_self")}var i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),o=i?n:e;return{print:function(u){o(u)},getDirectPrintState:function(){return $n}}}();var St=function(){var t={};function e(n,i,o,u){var l=[].concat(i).map(function(d){return r(n,o(d),u)});if(n.multivalue){if(i==null||i.length==0){if(n.allowNull)return i;throw A.invalidParameter}return l}return l[0]}function a(n,i){return n.allowNull&&[null,"",void 0].indexOf(i)!=-1}function r(n,i,o){if(n.availableValues){var u=!1;if(L(n.availableValues,function(l,d){return u=o(i,d.value),!u}),!u){if(n.allowNull&&!i)return i;throw A.invalidParameter}}return i}return t[Ue.STRING]={validate:function(n,i){return e(n,i,function(o){if(!o){if(n.allowNull)return null;if(n.allowBlank)return"";throw A.parameterIsEmpty}return o},function(o,u){return o==u})}},t[Ue.FLOAT]={validate:function(n,i){return e(n,i,function(o){var u=Tt(o);if(isNaN(u)){if(a(n,o))return null;throw A.parameterIsEmpty}return u},function(o,u){return Tt(o)==Tt(u)})}},t[Ue.INTEGER]={validate:function(n,i){return e(n,i,function(o){var u=Fe(o);if(isNaN(u)){if(a(n,o))return null;throw A.parameterIsEmpty}return u},function(o,u){return Fe(o)==Tt(u)})}},t[Ue.DATETIME]={validate:function(n,i){return e(n,i,function(o){if(n.allowNull&&(o===null||o===""||o===void 0))return null;if(!isNaN(Date.parse(o)))return n.availableValues?o:ct(o);throw A.invalidDateTimeValue},function(o,u){return o=ct(o),u=ct(u),o.getTime()==u.getTime()})}},t[Ue.BOOLEAN]={validate:function(n,i){return e(n,i,function(o){if(["true","false"].indexOf((""+o).toLowerCase())!=-1)return!!o;if(a(n,o))return null;throw A.parameterIsEmpty},function(o,u){return!!o==!!u})}},{validate:function(n,i){var o=t[n.type];if(!o)throw re(A.cannotValidateType,n);return o.validate(n,i)}}}();var rn={pagePollIntervalMs:500,documentInfoPollIntervalMs:2e3},rn={pagePollIntervalMs:500,documentInfoPollIntervalMs:2e3};function br(t){var e={},a,r,n,i,o,u,l,d,s,p,g,h=we.INTERACTIVE,b=Me.CONTINUOUS_SCROLL,w,T=Rt.AUTO_SELECT,S,U,F=!1,q=St,W=new E,_;Z(),t=se({},rn,t),t.settings.printMode&&(T=t.settings.printMode());var k=t.serviceClient;if(!k)throw A.noServiceClient;a=t.settings.clientId(),N();function I(f){a=f,G(),t.settings.clientId(a),N()}function m(){a=null,i=null,G(),_=null,t.settings.clientId(null)}function N(){if(!t.settings.keepClientAlive)throw new Error("Required settings.keepClientAlive() is not supplied for ReportViewerController");if(t.settings.keepClientAlive()&&a)return k.getClientsSessionTimeoutSeconds().then(function(f){_=new Fn(k,a,f),_.start()})}function G(){t.settings.keepClientAlive()&&_&&_.stop()}function Y(){return h===we.PRINT_PREVIEW?"HTML5":"HTML5Interactive"}function M(f,x,B){var X="";if(!f.xhr)throw X=f,J(Oe({responseText:X},null,null,null)),X;var z=f.xhr;yt(z)&&Ht();var ae=Oe(z,f.status,er(f.error)?"":f.error,x);if(J(ae),!B){if(rr(z)){var pe=pt(z);if(pe)throw pe}throw z.responseJSON&&pe.exceptionMessage?z.responseJSON.exceptionMessage:A.promisesChainStopError}}function P(){return i||(i=k.registerClient().catch(function(f){M(f,A.errorRegisteringViewer)}).then(function(f){I(f)}).catch(m)),i}function K(){return o||(o=ue(l,d).then(function(f){r=f}),o.catch(function(f){o=null})),o}function Z(){n=null,r=null,o=null,R()}function R(){p=g=0}function j(f){var x=f.length;return x===1?f[0]:x>1?re(f[0],Array.prototype.slice.call(f,1)):""}function J(){var f=j(arguments);e.error(f)}function ue(f,x){return Ie(),k.createReportInstance(a,f,x).catch(function(B){M(B,re(A.errorCreatingReportInstance,[Le(f)]))})}function ge(f,x,B,X,z){return Ie(),De(),k.createReportDocument(a,r,f,x,B,X,z).catch(function(ae){M(ae,re(A.errorCreatingReportDocument,[Le(l),Le(f)]))})}function ce(f,x){return Ie(),De(),k.sendDocument(a,r,f,x).catch(function(B){M(B,re(A.errorSendingDocument,[Le(l)]))})}function de(f,x,B,X){return!X.isCanceled&&x===r?k.getDocumentInfo(f,x,B).catch(M).then(function(z){return z&&z.documentReady||(z.promise=new Promise(function(ae,pe){window.setTimeout(ae,X.documentInfoPollIntervalMs)}).then(function(){return de(f,x,B,X)})),z}):Promise.reject()}function Ce(f,x,B,X){var z={};function ae(ve){f&&(n=ve,xe(),pn())}function pe(ve){z.documentInfoPollIntervalMs=t.pagePollIntervalMs,f&&f.beforeLoadReport(ve)}function xe(){f&&f.beginLoadReport()}function et(ve){f&&f.onReportLoadComplete(ve)}function Wr(ve){f&&(g=ve.pageCount,f.reportLoadProgress(ve))}function pn(){Ie(),De(),Ve(),Kr(de(a,r,n,z))}function Kr(ve){ve.then(function(ze){ze.documentReady?et(ze):(Wr(ze),Kr(ze.promise))})}function ra(){f&&f.raiseError.apply(this,arguments)}function zr(ve){return new Promise(function(ze,na){var jr=function(){k.getPage(a,r,n,ve).catch(M).then(function(Yr){Yr.pageReady?ze(Yr):window.setTimeout(jr,t.pagePollIntervalMs)})};jr()})}function gn(ve){f&&f.beginLoadPage(ve)}var Kt;function zt(){if(!Kt){var ve=Y(),ze=vn();pe({deviceInfo:ze}),Kt=P().then(K).then(function(){return ge(ve,ze,x,B,X)}).then(ae)}return Kt}function vn(){var ve=oe();return ve.ContentOnly=!0,ve.UseSVG=Qt(),ve}return{beginLoad:function(){zt()},beginGetPage:function(ve){Ie(),zt().then(function(){return gn(ve),zr(ve)}).then(function(ze){z.documentInfoPollIntervalMs=t.documentInfoPollIntervalMs,f&&f.pageReady(ze)})},getPageData:function(ve){return Ie(),zt().then(function(){return zr(ve)})},dispose:function(){f=null},cancel:function(){z.isCanceled=!0}}}function oe(){var f={};t.settings.enableAccessibility()&&(f.enableAccessibility=!0,f.contentTabIndex=t.settings.contentTabIndex);var x={};e.getSearchDialogState(x);var B=x.visible,X=t.settings.searchMetadataOnDemand(),z=!X||B;return f.enableSearch=z,f}function Ge(f){var x="InvalidParameterException";return Lt(f,x,"Telerik.Reporting.Services.Engine."+x)?A.missingOrInvalidParameter:""}function Oe(f,x,B,X){var z=Ct(f.responseText),ae="";if(z){var pe=Ge(z.exceptionType||z.error);if(pe)return pe;ae=Le(z.message);var xe=Le(z.exceptionMessage||z.error_description);xe&&(ae?ae+=" "+xe:ae=xe)}else ae=Le(f.responseText);return(X||B)&&(ae&&(ae=" "+ae),ae=Le(X||B)+ae),yt(f)&&(ae+="<br />"+A.clientExpired),ae}function le(f){w&&w.beginGetPage(f)}function $e(f,x,B){if(!l){J(A.noReport);return}w&&(w.dispose(),w=null),Z(),w=new Ce(e,!f,x,B),w.beginLoad()}function _e(f){e.exportStarted(f)}function C(f){e.exportReady(f)}function ee(f){e.sendEmailStarted(f)}function ie(f){e.sendEmailReady(f)}function fe(f){e.printStarted(f)}function Pe(f){e.printReady(f)}function me(f){e.showNotification(f)}function ke(f){e.hideNotification(f)}function Re(f){e.setUIState(f)}function Ke(){Ae();var f={ImmediatePrint:!0},x={deviceInfo:f,handled:!1};if(fe(x),!x.handled){Re({operationName:"PrintInProgress",inProgress:!0}),me({stringResources:"preparingPrint"});var B=Be(),X=B?"inline":"attachment",z="response-content-disposition="+X;O("PDF",f).then(function(ae){var pe=k.formatDocumentUrl(ae.clientId,ae.instanceId,ae.documentId,z),xe={url:pe,handled:!1};Pe(xe),ke(),Re({operationName:"PrintInProgress",inProgress:!1}),xe.handled||Ft.print(pe)})}}function Be(){switch(T){case Rt.FORCE_PDF_FILE:case!1:return!1;case Rt.FORCE_PDF_PLUGIN:case!0:return!0;default:return Ft.getDirectPrintState()}}function Xe(f,x){Ae(),x||(x=oe());var B={format:f,deviceInfo:x,handled:!1};if(_e(B),!B.handled){var X="response-content-disposition=attachment";Re({operationName:"ExportInProgress",inProgress:!0}),me({stringResources:"preparingDownload"}),O(f,B.deviceInfo).then(function(z){var ae=k.formatDocumentUrl(z.clientId,z.instanceId,z.documentId,X),pe={url:ae,format:f,handled:!1,windowOpenTarget:"_self"};C(pe),ke(),Re({operationName:"ExportInProgress",inProgress:!1}),pe.handled||window.open(ae,pe.windowOpenTarget)})}}function D(f){Ae(),f.deviceInfo||(f.deviceInfo=oe());var x={deviceInfo:f.deviceInfo,handled:!1,format:f.format};ee(x);var B="response-content-disposition=attachment";x.handled||O(f.format,f.deviceInfo).then(function(X){var z=k.formatDocumentUrl(X.clientId,X.instanceId,X.documentId,B);f.url=z,f.handled=!1,ie(f),delete f.deviceInfo,f.handled||ce(X.documentId,f)})}function O(f,x){return Ae(),P().then(K).then(function(){return ge(f,x,!0,n)}).then(function(B){return te(a,r,B,t)})}function te(f,x,B,X){return new Promise(function(z,ae){var pe=function(xe){xe.then(function(et){et.documentReady?z({clientId:f,instanceId:x,documentId:B}):pe(et.promise)})};pe(de(f,x,B,X))})}function Ee(f){Ae(),De(),Ve(),Qe(),e.refreshReportCore(!1,n,f)}function Ie(){if(!a)throw A.controllerNotInitialized}function De(){if(!r)throw A.noReportInstance}function Ve(){if(!n)throw A.noReportDocument}function Ae(){if(!l)throw A.noReport}function dt(f){var x;return f&&f.length&&(x=f[0]),typeof x=="function"?x:null}function H(f,x){var B=dt(x);return B?W.on(f,B):W.trigger(f,x),e}function E(){var f={};function x(X){var z=f[X];return z||(f[X]=z=new B(X)),z}return{on:function(X,z){x(X).on(z)},trigger:function(X,z){x(X).trigger(z)}};function B(X){var z=[],ae={on:function(pe){z.push(pe)},trigger:function(pe){var xe=[].slice.call(pe);xe.unshift(X);for(var et=0;et<z.length;et++)z[et].apply(e,xe)}};return ae}}function c(f,x){return P().then(function(){return k.getParameters(a,f,x||d||{}).catch(function(B){M(B,A.unableToGetReportParameters)})})}function v(){return U?Promise.resolve(U):(u||(u=k.getDocumentFormats().catch(M)),u)}function y(){return k.getServiceVersion().catch(M)}function V(f,x){if(f)for(var B=0,X=f.length;B<X;B++){var z=f[B];if(z.id===x)return z.page;var ae=V(z.items,x);if(ae)return ae}return null}function Q(f){var x={};return Array.isArray(f)&&f.forEach(function(B){x[B.Key]=B.Value}),x}function ne(f){Te(f),e.reportSourceChanged()}function Te(f){t.settings.reportSource&&t.settings.reportSource(f)}function ye(f){t.settings.pageNumber(f),e.currentPageChanged()}var qe={sorting:function(f){Ee(f.Id)},toggleVisibility:function(f){Ee(f.Id)},navigateToReport:function(f){var x=f.Value;Qe(),e.setReportSource({report:x.Report,parameters:Q(x.ParameterValues)}),e.refreshReport(!1)},navigateToUrl:function(f){var x=f.Value;window.open(x.Url,x.Target)},navigateToBookmark:function(f){var x=f.Value,B=V(S,x);e.navigateToPage(B,{type:"bookmark",id:x})},customAction:function(f){}};function Je(f){e.interactiveActionExecuting(f)}function Ze(f){var x=f.action,B=qe[x.Type];typeof B=="function"&&window.setTimeout(function(){Je(f),f.cancel||B(x)},0)}function Qe(){e.serverActionStarted()}function ht(f){e.interactiveActionEnter({action:f.action,element:f.element})}function Et(f){e.interactiveActionLeave({action:f.action,element:f.element})}function bt(){return H(e.Events.CLIENT_EXPIRED,arguments)}function Ht(){F=!0,e.clientExpired()}function wt(f){e.toolTipOpening(f)}function Wt(f){return!f.searchToken||f.searchToken===""?Promise.resolve(null):k.getSearchResults(a,r,n,f.searchToken,f.matchCase,f.matchWholeWord,f.useRegex).catch(fn)}function fn(f){if(!tr(f.xhr))throw M(f,null,!0),null;var x=Ct(f.xhr.responseText);throw x.exceptionMessage}function dn(f){for(var x=document.querySelector(".trv-pages-area .trv-error-message"),B=document.createElement("ul"),X=0;X<f.length;X++){var z=document.createElement("li");z.classList.add(f[X].name),z.innerText=re("{0} ({1})",[f[X].text,f[X].name]),B.appendChild(z)}x.appendChild(B)}return e.Events={ERROR:"trv.ERROR",EXPORT_STARTED:"trv.EXPORT_STARTED",EXPORT_DOCUMENT_READY:"trv.EXPORT_DOCUMENT_READY",PRINT_STARTED:"trv.PRINT_STARTED",PRINT_DOCUMENT_READY:"trv.PRINT_DOCUMENT_READY",BEFORE_LOAD_PARAMETERS:"trv.BEFORE_LOAD_PARAMETERS",ON_LOADED_REPORT_CHANGE:"trv.ON_LOADED_REPORT_CHANGE",BEFORE_LOAD_REPORT:"trv.BEFORE_LOAD_REPORT",BEGIN_LOAD_REPORT:"trv.BEGIN_LOAD_REPORT",REPORT_LOAD_COMPLETE:"trv.REPORT_LOAD_COMPLETE",REPORT_LOAD_PROGRESS:"trv.REPORT_LOAD_PROGRESS",REPORT_LOAD_FAIL:"trv.REPORT_LOAD_FAIL",BEGIN_LOAD_PAGE:"trv.BEGIN_LOAD_PAGE",PAGE_READY:"trv.PAGE_READY",VIEW_MODE_CHANGED:"trv.VIEW_MODE_CHANGED",PAGE_MODE_CHANGED:"trv.PAGE_MODE_CHANGED",PRINT_MODE_CHANGED:"trv.PRINT_MODE_CHANGED",REPORT_SOURCE_CHANGED:"trv.REPORT_SOURCE_CHANGED",NAVIGATE_TO_PAGE:"trv.NAVIGATE_TO_PAGE",CURRENT_PAGE_CHANGED:"trv.CURRENT_PAGE_CHANGED",GET_DOCUMENT_MAP_STATE:"trv.GET_DOCUMENT_MAP_STATE",SET_DOCUMENT_MAP_VISIBLE:"trv.SET_DOCUMENT_MAP_VISIBLE",GET_PARAMETER_AREA_STATE:"trv.GET_PARAMETER_AREA_STATE",SET_PARAMETER_AREA_VISIBLE:"trv.SET_PARAMETER_AREA_VISIBLE",PAGE_SCALE:"trv.PAGE_SCALE",GET_PAGE_SCALE:"trv.GET_PAGE_SCALE",SERVER_ACTION_STARTED:"trv.SERVER_ACTION_STARTED",SET_TOGGLE_SIDE_MENU:"trv.SET_TOGGLE_SIDE_MENU",GET_TOGGLE_SIDE_MENU:"trv.GET_TOGGLE_SIDE_MENU",UPDATE_UI:"trv.UPDATE_UI",CSS_LOADED:"trv.CSS_LOADED",RELOAD_PARAMETERS:"trv.RELOAD_PARAMETERS",INTERACTIVE_ACTION_EXECUTING:"trv.INTERACTIVE_ACTION_EXECUTING",INTERACTIVE_ACTION_ENTER:"trv.INTERACTIVE_ACTION_ENTER",INTERACTIVE_ACTION_LEAVE:"trv.INTERACTIVE_ACTION_LEAVE",UPDATE_UI_INTERNAL:"trv.UPDATE_UI_INTERNAL",CLIENT_EXPIRED:"trv.CLIENT_EXPIRED",TOOLTIP_OPENING:"trv.TOOLTIP_OPENING",PAGE_NUMBER:"trv.PAGE_NUMBER",PAGE_COUNT:"trv.PAGE_COUNT",GET_SEARCH_DIALOG_STATE:"trv.GET_SEARCH_DIALOG_STATE",SET_SEARCH_DIALOG_VISIBLE:"trv.SET_SEARCH_DIALOG_VISIBLE",SET_SEND_EMAIL_DIALOG_VISIBLE:"trv.SET_SEND_EMAIL_DIALOG_VISIBLE",SEND_EMAIL_STARTED:"trv.SEND_EMAIL_STARTED",SEND_EMAIL_READY:"trv.SEND_EMAIL_READY",SHOW_NOTIFICATION:"trv.SHOW_NOTIFICATION",HIDE_NOTIFICATION:"trv.HIDE_NOTIFICATION",UI_STATE:"trv.UI_STATE",SCROLL_PAGE_READY:"trv.SCROLL_PAGE_READY",UPDATE_SCROLL_PAGE_DIMENSIONS_READY:"trv.UPDATE_SCROLL_PAGE_DIMENSIONS_READY",MISSING_OR_INVALID_PARAMETERS:"trv.MISSING_OR_INVALID_PARAMETERS",RENDERING_STOPPED:"trv.RENDERING_STOPPED"},se(e,{getPageData:function(f){if(w)return w.getPageData(f)},getReportSource:function(){return l===null?null:{report:l,parameters:se({},d)}},setReportSource:function(f){return f===null?(l=d=null,Z(),ne(f),this):(l=f.report,d=f.parameters,ne(f),this)},updateSettings:function(f){t.settings=se({},f,t.settings)},clearReportSource:function(){return l=d=null,Z(),ne(void 0),this},getReportDocumentId:function(){return n},setReportDocumentId:function(f){n=f},setParameters:function(f){d=f},setProcessedParameter:function(f){s=f},getPageCount:function(){return g},getCurrentPageNumber:function(){return p},setCurrentPageNumber:function(f){var x=Fe(f);return x!==p&&(p=x,ye(x)),this},getViewMode:function(){return h},setViewMode:function(f){return h!==f&&(h=f,e.viewModeChanged(f),l&&e.refreshReportCore(!1,n)),e},getPageMode:function(){return b},setPageMode:function(f){return b!==f&&(b=f,e.pageModeChanged(f),l&&e.refreshReportCore(!1,n)),e},getPrintMode:function(){return T},setPrintMode:function(f){return T!==f&&(T=f,e.printModeChanged(f)),e},previewReport:function(f,x,B){e.onLoadedReportChange(),e.refreshReportCore(f,x,B)},refreshReportCore:function(f,x,B){$e(f,x,B)},stopRendering:function(){Ae(),De(),Ve(),k.deleteReportDocument(a,r,n).catch(M).then(function(){w&&w.cancel(),R(),e.renderingStopped()})},getReportParameters:function(){var f={};for(var x in s){var B=s[x],X=d[x];B&&B.availableValues?B.multivalue?f[x]=Vn(B,X,x):f[x]=nn(B,X,x):f[x]=X}return f},refreshReport:function(f,x,B){if(e.onLoadedReportChange(),F&&(F=!1,m()),!l){J(A.noReport);return}var X=e.loadParameters(null);X.then(function(z){var ae={},pe=[],xe=!1;L(z||[],function(){try{var et=q.validate(this,this.value);ae[this.id]=et}catch{xe=!0,pe.push(this);return}}),xe?(J(A.missingOrInvalidParameter),dn(pe),e.missingOrInvalidParameters()):(e.setParameters(ae),e.refreshReportCore(f,x,B))}),e.reloadParameters(X)},exportReport:function(f,x){Xe(f,x)},sendReport:function(f){D(f)},printReport:function(){Ke()},getReportPage:function(f){le(f)},executeReportAction:function(f){Ze(f)},reportActionEnter:function(f){ht(f)},reportActionLeave:function(f){Et(f)},reportToolTipOpening:function(f){wt(f)},loadParameters:function(f){return l===null?{}:(e.beforeLoadParameters(f===null),c(l,f))},getDocumentFormats:function(){return v()},getServiceVersion:function(){return y()},setAuthenticationToken:function(f){k.setAccessToken(f)},clientId:function(){return a},onReportLoadComplete:function(f){g=f.pageCount,S=f.bookmarkNodes,U=f.renderingExtensions,Te(e.getReportSource()),e.reportLoadComplete(f)},raiseError:J,getSearchResults:function(f,x){return Wt(f,x)},on:W.on,showNotification:function(){return H(e.Events.SHOW_NOTIFICATION,arguments)},hideNotification:function(){return H(e.Events.HIDE_NOTIFICATION,arguments)},setUIState:function(){return H(e.Events.UI_STATE,arguments)},error:function(){return H(e.Events.ERROR,arguments)},reloadParameters:function(){return H(e.Events.RELOAD_PARAMETERS,arguments)},exportStarted:function(){return H(e.Events.EXPORT_STARTED,arguments)},exportReady:function(){return H(e.Events.EXPORT_DOCUMENT_READY,arguments)},sendEmailStarted:function(){return H(e.Events.SEND_EMAIL_STARTED,arguments)},sendEmailReady:function(){return H(e.Events.SEND_EMAIL_READY,arguments)},printStarted:function(){return H(e.Events.PRINT_STARTED,arguments)},printReady:function(){return H(e.Events.PRINT_DOCUMENT_READY,arguments)},beforeLoadParameters:function(){return H(e.Events.BEFORE_LOAD_PARAMETERS,arguments)},onLoadedReportChange:function(){return H(e.Events.ON_LOADED_REPORT_CHANGE,arguments)},beforeLoadReport:function(){return H(e.Events.BEFORE_LOAD_REPORT,arguments)},beginLoadReport:function(){return H(e.Events.BEGIN_LOAD_REPORT,arguments)},reportLoadComplete:function(){return H(e.Events.REPORT_LOAD_COMPLETE,arguments)},reportLoadProgress:function(){return H(e.Events.REPORT_LOAD_PROGRESS,arguments)},reportLoadFail:function(){return H(e.Events.REPORT_LOAD_FAIL,arguments)},beginLoadPage:function(){return H(e.Events.BEGIN_LOAD_PAGE,arguments)},pageReady:function(){return H(e.Events.PAGE_READY,arguments)},viewModeChanged:function(){return H(e.Events.VIEW_MODE_CHANGED,arguments)},pageModeChanged:function(){return H(e.Events.PAGE_MODE_CHANGED,arguments)},printModeChanged:function(){return H(e.Events.PRINT_MODE_CHANGED,arguments)},reportSourceChanged:function(){return H(e.Events.REPORT_SOURCE_CHANGED,arguments)},navigateToPage:function(){return H(e.Events.NAVIGATE_TO_PAGE,arguments)},currentPageChanged:function(){return H(e.Events.CURRENT_PAGE_CHANGED,arguments)},getDocumentMapState:function(){return H(e.Events.GET_DOCUMENT_MAP_STATE,arguments)},setDocumentMapVisible:function(){return H(e.Events.SET_DOCUMENT_MAP_VISIBLE,arguments)},getParametersAreaState:function(){return H(e.Events.GET_PARAMETER_AREA_STATE,arguments)},setParametersAreaVisible:function(){return H(e.Events.SET_PARAMETER_AREA_VISIBLE,arguments)},setSideMenuVisible:function(){return H(e.Events.SET_TOGGLE_SIDE_MENU,arguments)},getSideMenuVisible:function(){return H(e.Events.GET_TOGGLE_SIDE_MENU,arguments)},scale:function(){return H(e.Events.PAGE_SCALE,arguments)},getScale:function(){return H(e.Events.GET_PAGE_SCALE,arguments)},serverActionStarted:function(){return H(e.Events.SERVER_ACTION_STARTED,arguments)},cssLoaded:function(){return H(e.Events.CSS_LOADED,arguments)},interactiveActionExecuting:function(){return H(e.Events.INTERACTIVE_ACTION_EXECUTING,arguments)},interactiveActionEnter:function(){return H(e.Events.INTERACTIVE_ACTION_ENTER,arguments)},interactiveActionLeave:function(){return H(e.Events.INTERACTIVE_ACTION_LEAVE,arguments)},updateUI:function(){return H(e.Events.UPDATE_UI,arguments)},updateUIInternal:function(){return H(e.Events.UPDATE_UI_INTERNAL,arguments)},toolTipOpening:function(){return H(e.Events.TOOLTIP_OPENING,arguments)},pageNumberChange:function(){return H(e.Events.PAGE_NUMBER,arguments)},pageCountChange:function(){return H(e.Events.PAGE_COUNT,arguments)},getSearchDialogState:function(){return H(e.Events.GET_SEARCH_DIALOG_STATE,arguments)},getSendEmailDialogState:function(){return H(e.Events.GET_SEND_EMAIL_DIALOG_STATE,arguments)},setSearchDialogVisible:function(){return H(e.Events.SET_SEARCH_DIALOG_VISIBLE,arguments)},setSendEmailDialogVisible:function(){return H(e.Events.SET_SEND_EMAIL_DIALOG_VISIBLE,arguments)},scrollPageReady:function(){return H(e.Events.SCROLL_PAGE_READY,arguments)},updatePageDimensionsReady:function(){return H(e.Events.UPDATE_SCROLL_PAGE_DIMENSIONS_READY,arguments)},missingOrInvalidParameters:function(){return H(e.Events.MISSING_OR_INVALID_PARAMETERS,arguments)},renderingStopped:function(){return H(e.Events.RENDERING_STOPPED,arguments)},clientExpired:bt,dispose:function(){G(),this.keepClientAliveSentinel=null}}),e}function nn(t,e,a){try{var r=t.availableValues.find(n=>n.value===e);if(!r)throw new Error(`The available values of parameter ${a} do not contain Value property that equals ${e}`);return{valueMember:e,displayMember:r.name}}catch(n){at(n)}}function Vn(t,e,a){var r=[];for(var n in e)r.push(nn(t,e[n],a));return r}function Fn(t,e,a){function r(s){return typeof s=="number"&&isFinite(s)}if(!t)throw A.noServiceClient;var n,i;if(!r(a))throw"sessionTimeoutSeconds must a number and must be finite";a<=120?i=o(a)/2:i=o(a-60);function o(s){return s*1e3}function u(){i<=0||(n=setInterval(function(){t.keepClientAlive(e)},i))}function l(){d(),u()}function d(){n&&(clearInterval(n),n=null)}return{start:u,restart:l,stop:d}}var Ne={EXPORT_BEGIN:"EXPORT_BEGIN",EXPORT_END:"EXPORT_END",PRINT_BEGIN:"PRINT_BEGIN",PRINT_END:"PRINT_END",RENDERING_BEGIN:"RENDERING_BEGIN",RENDERING_END:"RENDERING_END",PAGE_READY:"PAGE_READY",ERROR:"ERROR",UPDATE_UI:"UPDATE_UI",INTERACTIVE_ACTION_EXECUTING:"INTERACTIVE_ACTION_EXECUTING",INTERACTIVE_ACTION_ENTER:"INTERACTIVE_ACTION_ENTER",INTERACTIVE_ACTION_LEAVE:"INTERACTIVE_ACTION_LEAVE",VIEWER_TOOLTIP_OPENING:"VIEWER_TOOLTIP_OPENING",SEND_EMAIL_BEGIN:"SEND_EMAIL_BEGIN",SEND_EMAIL_END:"SEND_EMAIL_END"};function Pr(t){var e=t.controller,a=!1;if(!e)throw"No controller (telerikReporting.reportViewerController) has been specified.";var r=t.settings,n=r.history()||{records:[],position:-1};e.onLoadedReportChange(function(){a=!1,d(!0)}).currentPageChanged(function(){l()}).reportLoadComplete(function(b,w){d(!1)}).clientExpired(function(){a=!0;for(var b=n.records,w=0;w<b.length;w++)b[w].reportDocumentId=null});function i(){var b=n.records;return b.length>0?b[n.position]:null}function o(b){var w=n.records,T=n.position;w=Array.prototype.slice.call(w,0,T+1),w.push(b),n.records=w,n.position=w.length-1,u()}function u(){r.history(n)}function l(){var b=i();b&&(b.pageNumber=e.getCurrentPageNumber(),b.viewMode=e.getViewMode(),b.reportDocumentId=e.getReportDocumentId(),u())}function d(b){h();var w=i(),T=e.getReportSource();(!w||!Zt(w.reportSource,T))&&o({reportSource:T,pageNumber:1,temp:b})}function s(b){e.setReportDocumentId(b.reportDocumentId),e.setViewMode(b.viewMode),e.setReportSource(b.reportSource),e.refreshReport(!1,b.reportDocumentId),e.navigateToPage(b.pageNumber)}function p(b){var w=n.position,T=n.records.length,S=w+b;return 0<=S&&S<T}function g(b){var w=n.position,T=n.records.length,S=w+b;S<0?S=0:S>=T&&(S=T-1),S!=w&&(n.position=S,u(),s(i()))}function h(){for(var b=n.records.length-1;b>=0&&n.records[b].temp===!0;){n.records.splice(b,1),n.position>=b&&n.position--;b--}}return{back:function(){g(-1)},forward:function(){g(1)},canMoveBack:function(){return p(-1)},canMoveForward:function(){return p(1)},loadCurrent:function(){var b=i();return b&&s(b),!!b}}}function Tr(t,e){var a,r;n(t);function n(g){if(typeof $.fn.kendoTouch=="function")try{$(g).mousedown(function(){r=!0}).mouseup(function(){r=!1}).kendoTouch({multiTouch:!0,enableSwipe:!0,swipe:function(h){r||d(h)},gesturestart:function(h){r||o(h)},gestureend:function(h){r||void 0},gesturechange:function(h){r||l(h)},doubletap:function(h){r||i(h)},touchstart:function(h){r||p("touchstart")}})}catch(h){throw console.error("Instantiation of Kendo Touch threw an exception",h),h}}function i(g){p("doubletap",g)}function o(g){a=kendo.touchDelta(g.touches[0],g.touches[1]).distance}function u(g){}function l(g){var h=kendo.touchDelta(g.touches[0],g.touches[1]).distance;s({distance:h,lastDistance:a}),a=h}function d(g){p("swipe",g)}function s(g){p("pinch",g)}function p(g,h){var b=e[g];typeof b=="function"&&b(h)}}var Sr={controller:{},$placeholder:null,$pageContainer:null,pageContainer:null,$pageWrapper:null,pageWrapper:null,viewMode:null,loadedPage:{},scrollInProgress:!1,enabled:!1,pageCount:0,additionalTopOffset:130,pageDistance:20,oldScrollTopPosition:0,skeletonTemplate:'<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>',init:function(e,a){var r=this;r.$placeholder=$("[data-selector='"+a.viewerSelector+"']").find(e),r.$pageContainer=this.$placeholder.find(".trv-page-container"),r.pageContainer=this.$pageContainer[0],r.$pageWrapper=this.$placeholder.find(".trv-page-wrapper"),r.pageWrapper=this.$pageWrapper[0],r.controller=a.controller,r.viewMode=null,r.loadedPage={},r.scrollInProgress=!1,r.enabled=!1,r.pageCount=0,r.controller.scale(function(n,i){r.enabled&&setTimeout(function(){r._loadMorePages(),r._keepCurrentPageInToView()},100)}).onLoadedReportChange(function(n){r.enabled&&(r.disable(),n!=="trv.ON_LOADED_REPORT_CHANGE"&&setTimeout(function(){r.controller.getPageData(1).then(function(i){r.renderPage(i)})}))}).viewModeChanged(function(n){r.enabled&&r.disable()}).interactiveActionExecuting(function(n,i){var o=i.action.Type;r.enabled&&(o==="sorting"||o==="toggleVisibility")&&r.disable()}).updatePageDimensionsReady(function(n,i){r.enabled&&r._currentPageNumber()>0&&r._keepCurrentPageInToView()}).pageCountChange(function(n,i){r.enabled&&r.pageCount!==i&&(r._currentPageNumber()>0&&!r.scrollInProgress&&r._loadMorePages(),i>1&&r._initEvents(),r.pageCount=i)})},isEnabled:function(){return this.enabled},disable:function(){this.$pageWrapper.empty(),this.enabled=!1,this.loadedPage={},this.pageCount=0,this.$placeholder.removeClass("scrollable"),this._unbind()},enable:function(){this.enabled=!0,this.$placeholder.addClass("scrollable"),this._initEvents()},renderPage:function(e){var a=this,r=a.controller.getViewMode(),n=a.$placeholder.find('[data-page="'+e.pageNumber+'"]');a.enabled?(r!==a.viewMode||!n.length?a._updatePageArea(e):a._navigateToPage(e,n),a.viewMode=a.controller.getViewMode()):(a.enabled=!0,a.$placeholder.addClass("scrollable"),r!==a.viewMode||!n.length?a._updatePageArea(e):(a._render(e,!0),this.$pageContainer.scrollTop(3),a._setCurrentPage(e.pageNumber)),a.viewMode=a.controller.getViewMode(),a._loadMorePages())},navigateToElement:function(e,a){var r=this;r.scrollInProgress=!0,r._isSkeletonScreen(null,a)?r.controller.getPageData(a).then(function(n){r._render(n,!1),r.$pageContainer.animate({scrollTop:e},500,function(){r._setCurrentPage(a),setTimeout(function(){r.scrollInProgress=!1},100)})}):r.$pageContainer.animate({scrollTop:e},500,function(){r._setCurrentPage(a),setTimeout(function(){r.scrollInProgress=!1},100)})},_setCurrentPage:function(e){var a=this;e!==a._currentPageNumber()&&a.controller.setCurrentPageNumber(e),a.controller.getPageCount()>1&&(a.$placeholder.find(".k-state-default").removeClass("k-state-default"),a.$placeholder.find('[data-page="'+e+'"]').addClass("k-state-default")),a._loadNextPreviousPage(e)},_updatePageArea:function(e){var a=this,r=0,n=e.pageNumber;a.scrollInProgress=!0,n>1&&a._generateSkeletonScreens(n),a._render(e,!1),a._setCurrentPage(e.pageNumber),setTimeout(function(){r=n>1?a.$placeholder.find('[data-page="'+n+'"]').position().top:0,a.$pageContainer.animate({scrollTop:r},0,function(){a.scrollInProgress=!1})},100)},_navigateToPage:function(e,a){var r=this;r.scrollInProgress=!0;var n=a.position().top,i=r.$placeholder.find(".trv-report-page"),o=e.pageNumber,u=$(i[0]).height();r._isSkeletonScreen(a,o)?r.controller.getPageData(o).then(function(l){r._render(l,!1),r.$pageContainer.animate({scrollTop:n},500,function(){setTimeout(function(){r._setCurrentPage(l.pageNumber),r.scrollInProgress=!1})})}):(r._updatePageContent(e,a),r.$pageContainer.animate({scrollTop:n},500,function(){setTimeout(function(){r._setCurrentPage(e.pageNumber),r.scrollInProgress=!1})}))},_updatePageContent:function(e,a){this._updatePageStyle(e);var r=e.pageNumber,n=$($.parseHTML(e.pageContent)),i=n.find("div.sheet"),o=this.$placeholder.find('[data-page="'+r+'"]');i.css("margin",0),o.append(i).append($('<div class="trv-page-overlay"></div>')),a.replaceWith(o),this.controller.scrollPageReady({page:e,target:o})},_currentPageNumber:function(){return this.controller.getCurrentPageNumber()},_isSkeletonScreen:function(e,a){return e||(e=this.$placeholder.find('[data-page="'+a+'"]')),e.hasClass("trv-skeleton-"+a)},_addSkeletonScreen:function(e,a){var r=this,n=parseInt(a?e+1:e-1),i=r.$placeholder.find('[data-page="'+n+'"]'),o=i.attr("style"),u=i.find("sheet").attr("style"),l=re(r.skeletonTemplate,[e,o,u]);a?r.$pageWrapper.prepend(l):r.$pageWrapper.append(l)},_generateSkeletonScreens:function(e){var a=this,r="",n=this.$placeholder.find('[data-page="1"]'),i=n.attr("style"),o=n.find("sheet").attr("style"),u=a.$placeholder.find(".trv-report-page").last().attr("data-page"),l=u?parseInt(u)+1:1;for(l;l<e;l++)r=r+re(a.skeletonTemplate,[l,i,o]);a.$pageWrapper.append($(r))},_loadMorePages:function(){var e=this,a=e.controller.getPageCount(),r=e.$pageContainer.innerHeight()>e.$pageWrapper.innerHeight();if(a>1)if(r){e.scrollInProgress=!0;var n=parseInt(e.$placeholder.find(".trv-report-page").last().attr("data-page")),i=n+1;i<=a&&e.controller.getPageData(i).then(function(o){e._render(o,!1),e._loadMorePages(),e.scrollInProgress=!1})}else e._loadVisiblePages(),e.scrollInProgress=!1},_loadVisiblePages:function(){var e=this,a=e.$placeholder.find(".trv-report-page");$.each(a,function(r,n){var i=$(n),o=parseInt(i.attr("data-page"));e._scrolledInToView(i)&&e._isSkeletonScreen(i,o)&&e.controller.getPageData(o).then(function(u){e._render(u,!1)})})},_scrolledInToView:function(e){var a=e[0].getBoundingClientRect(),r=e.closest(".trv-pages-area")[0].getBoundingClientRect(),n=r.top,i=r.top+r.height,o=a.top,u=o+e.outerHeight(!0),l=this.additionalTopOffset+n,d=o>0&&o<i,s=u<i&&u>l;return d||s},_render:function(e,a){var r=this,n=e.pageNumber,i=r.$placeholder.find('[data-page="'+n+'"]');if(!(!a&&i&&i.length&&!r._isSkeletonScreen(i,n))){r.loadedPage[n]=e,r._updatePageStyle(e);var o=$($.parseHTML(e.pageContent)),u=o.find("div.sheet"),l=$('<div class="trv-report-page" data-page="'+n+'"></div>');u.css("margin",0),l.append(u).append($('<div class="trv-page-overlay"></div>')),a&&r.$pageWrapper.empty(),r.$pageWrapper.removeData().data("pageNumber",n);var d=r.$placeholder.find(".trv-skeleton-"+n);d.length?d.replaceWith(l):r.$pageWrapper.append(l),r.controller.scrollPageReady({page:e,target:l})}},_updatePageStyle:function(e){var a=this,r=a.loadedPage[a._lastLoadedPage()]||e,n="trv-"+a.controller.clientId()+"-styles",i;$("#"+n).remove(),i=$("<style id="+n+"></style>"),i.append(r.pageStyles),i.appendTo("head")},_lastLoadedPage:function(){var e=this,a;for(var r in e.loadedPage)e.loadedPage.hasOwnProperty(r)&&(a=r);return a},_loadNextPreviousPage:function(e){var a=this,r,n,i,o;e<a.controller.getPageCount()&&(r=e+1,i=a.$placeholder.find('[data-page="'+r+'"]')),e>1&&(n=e-1,o=a.$placeholder.find('[data-page="'+n+'"]')),o&&o.length&&a._isSkeletonScreen(o,n)&&a.controller.getPageData(n).then(function(u){a._render(u,!1)}),i&&i.length&&a._isSkeletonScreen(i,r)&&a.controller.getPageData(r).then(function(u){a._render(u,!1)})},_clickPage:function(e){var a=this,r=a._currentPageNumber(),n=parseInt(e.attr("data-page"));r!==n&&(a._isSkeletonScreen(e,n)?a.controller.getPageData(n).then(function(i){a._render(i,!1,!0),a._setCurrentPage(i.pageNumber)}):a._setCurrentPage(n))},_initEvents:function(){var e=this;e.$pageContainer.off("click",".trv-report-page").on("click",".trv-report-page",function(a){e._clickPage($(a.currentTarget))}),e.$pageContainer.scroll(function(){var a=e.$placeholder.find(".trv-report-page"),r=parseInt((e.$pageContainer.scrollTop()+e.$pageContainer.innerHeight()).toFixed(0));!e.scrollInProgress&&e.oldScrollTopPosition!==r&&(e.oldScrollTopPosition>r?e._scrollUp(a):e._scrollDown(a,r)),e.oldScrollTopPosition=r}),e.$pageContainer.scroll(function(){var a=e.$placeholder.find(".trv-report-page"),r=parseInt((e.$pageContainer.scrollTop()+e.$pageContainer.innerHeight()).toFixed(0));!e.scrollInProgress&&a.length&&e.oldScrollTopPosition!==r&&e._advanceCurrentPage(a)})},_unbind:function(){var t=this;t.$pageContainer.off("click",".trv-report-page"),t.$pageContainer.off("scroll")},_advanceCurrentPage:function(e){var a=this,r=a._findNewCurrentPage(e),n,i=a._currentPageNumber(),o=a._scrolledInToView(a.$placeholder.find('[data-page="'+i+'"]'));r!==-1?(r=$(r),n=parseInt(r.attr("data-page")),i!==n&&!o&&(a._isSkeletonScreen(r,n)?a.controller.getPageData(n).then(function(u){a._render(u,!1,!0),a._setCurrentPage(u.pageNumber)}):a._setCurrentPage(n))):console.log("Page not found - ",r)},_findNewCurrentPage:function(e){var a=this,r=Math.floor(e.length/2),n=a._findPageInViewPort(r,e);return e.length===1?e[0]:n===0?e[r]:n<0&&e.length>1?a._findNewCurrentPage(e.splice(r,Number.MAX_VALUE)):n>0&&e.length>1?a._findNewCurrentPage(e.splice(0,r)):-1},_findPageInViewPort:function(e,a){var r=this.$placeholder.find(a[e]),n=r[0].getBoundingClientRect(),i=r.closest(".trv-pages-area")[0].getBoundingClientRect(),o=i.top,u=i.top+i.height,l=n.top,d=l+r.outerHeight(!0),s=this.additionalTopOffset+o,p=l<=s&&s<d;return p?0:d<s?-1:1},_scrollDown:function(e,a){var r=this;if(a>=r.pageContainer.scrollHeight-5){var n=parseInt($(e[e.length-1]).attr("data-page")),i=n+1;r._currentPageNumber()<i&&i<=r.controller.getPageCount()&&(r._addSkeletonScreen(i,!1),r.controller.getPageData(i).then(function(o){r._render(o,!1)}))}else r._advanceCurrentPage(e),r._loadVisiblePages()},_scrollUp:function(e){var a=this;if(a.$pageContainer.scrollTop()===0){var r=$(e[0]),n=parseInt(r.attr("data-page")),i=n-1;a._currentPageNumber()>i&&i>=1&&(a._addSkeletonScreen(i,!0),a.controller.getPageData(i).then(function(o){a._render(o,!1),a.$pageContainer.scrollTop(3)}))}else a._advanceCurrentPage(e),a._loadVisiblePages()},_keepCurrentPageInToView:function(){var e=this,a=e.$placeholder.find('[data-page="'+e._currentPageNumber()+'"]'),r=a.position().top,n=a.innerHeight(),i=e.$pageContainer.innerHeight(),o;e.scrollInProgress=!0,n<i&&(o=(i-n)/2,r=parseInt(r-o)),e.$pageContainer.animate({scrollTop:r},0,function(){setTimeout(function(){e.scrollInProgress=!1},100)})}};var Ir={$placeholder:null,$scrollableContainer:null,itemsInitialState:{},xFrozenAreasBounds:{},yFrozenAreasBounds:{},freezeMaxZIndex:{},zIndex:1,freezeBGColor:{},currentlyfreezedContainer:{vertical:{},horizontal:{}},isInitialize:!1,scaleFactor:null,init:function(t){this.$placeholder=t,this.$scrollableContainer=t.find(".trv-page-container"),this.isInitialize&&this.reset(t),this._attachToScrollEvent(),this.isInitialize=!0},reset:function(t){this.$placeholder=t,this.$scrollableContainer=t.find(".trv-page-container"),this.itemsInitialState={},this.xFrozenAreasBounds={},this.yFrozenAreasBounds={},this.currentlyfreezedContainer={vertical:{},horizontal:{}}},setScaleFactor:function(t){this.scaleFactor=t},_attachToScrollEvent:function(){var t=this;this.$scrollableContainer.scroll(function(){var a=t.$scrollableContainer.find("div[data-sticky-id]");if(a.length)for(var r=a.map(function(d,s){return $(s).attr("data-sticky-id")}).get(),n=r.filter(function(d,s){return s===r.indexOf(d)}),i=t.$scrollableContainer.scrollTop(),o=t.$scrollableContainer.scrollLeft(),u=0;u<n.length;u++){var l=n[u];t.itemsInitialState[l]||t._saveFreezeItemsInitialState(l),t._updateFreezeItemsOnScroll(l,i,o)}})},_saveFreezeItemsInitialState:function(t){var e=$("[data-sticky-direction][data-sticky-id='"+t+"']"),a=$("[data-reporting-action][data-sticky-id='"+t+"']"),r,n;this.itemsInitialState[t]={},this.freezeBGColor[t]=$("[data-id='"+t+"']").attr("data-sticky-bg-color");for(var i=0;i<e.length;i++){var o=$(e[i]),u=o.attr("data-sticky-direction"),l=o.attr("data-id"),d=o.position(),s={top:d.top/this.scaleFactor,left:d.left/this.scaleFactor},p=Mt(s.left,s.top,o.outerWidth(!0)*this.scaleFactor,o.outerHeight(!0)*this.scaleFactor);switch(u){case"Vertical":r=r?r.union(p):p;break;case"Horizontal":n=n?n.union(p):p;break;default:}this._saveFreezeItemInitialState(t,o,l,s)}this.freezeMaxZIndex[t]=a.length?a.css("zIndex"):this.zIndex,this.yFrozenAreasBounds[t]=r,this.xFrozenAreasBounds[t]=n},_saveFreezeItemInitialState:function(t,e,a,r){var n=e.css("background-color"),i=this._hasSetBgColor(n),o={top:r.top,left:r.left,zIndex:e.css("zIndex"),hasBgColor:i};this.itemsInitialState[t][a]=o},_updateFreezeItemsOnScroll:function(t,e,a){var r=$("div[data-id='"+t+"']");if(this._isInScrollVisibleArea(r)){var n=r.closest(".trv-report-page"),i=n.position(),o=parseFloat(n.css("margin-top")),u=parseFloat(n.css("padding-top")),l=parseFloat(n.css("padding-left")),d=parseFloat(n.css("border-top-width")),s=parseFloat(n.css("border-left-width")),p=$("[data-sticky-direction*='Horizontal'][data-sticky-id='"+t+"']"),g=$("[data-sticky-direction*='Vertical'][data-sticky-id='"+t+"']"),h=p.length>0,b=g.length>0,w=r.position(),T=w.top+i.top+o+u+d,S=w.left+l+s,U=e-T,F=a-S;b&&U>0?e<=r.outerHeight()*this.scaleFactor+T-this.yFrozenAreasBounds[t].height&&(this.currentlyfreezedContainer.vertical[t]=!0,this._updateUIElementsPosition(g,"top",U/this.scaleFactor,t)):this.currentlyfreezedContainer.vertical[t]&&(delete this.currentlyfreezedContainer.vertical[t],this._updateUIElementsPosition(g,"top",-1,t)),h&&F>0?a<=r.outerWidth()*this.scaleFactor+S-this.xFrozenAreasBounds[t].width&&(this.currentlyfreezedContainer.horizontal[t]=!0,this._updateUIElementsPosition(p,"left",F/this.scaleFactor,t)):this.currentlyfreezedContainer.horizontal[t]&&(delete this.currentlyfreezedContainer.horizontal[t],this._updateUIElementsPosition(p,"left",-1,t))}else(this.currentlyfreezedContainer.horizontal[t]||this.currentlyfreezedContainer.vertical[t])&&this._resetToDefaultPosition(t)},_resetToDefaultPosition:function(t){var e=$("[data-sticky-direction*='Horizontal'][data-sticky-id='"+t+"']"),a=$("[data-sticky-direction*='Vertical'][data-sticky-id='"+t+"']");this._updateUIElementsPosition(a,"top",-1,t),this._updateUIElementsPosition(e,"left",-1,t),delete this.currentlyfreezedContainer.horizontal[t],delete this.currentlyfreezedContainer.vertical[t]},_updateUIElementsPosition:function(t,e,a,r){for(var n=0;n<t.length;n++){var i=$(t[n]),o=i.attr("data-sticky-direction"),u=o.indexOf(",")>0,l=i.attr("data-id"),d=this.itemsInitialState[r][l],s=d[e],p=d.zIndex,g=d.hasBgColor,h=1,b=this.freezeMaxZIndex[r]?this.freezeMaxZIndex[r]:h;u?h=p!=="auto"?p:b+2:h=p!=="auto"?p+1:b;var w={"z-index":h};a>=0?s=s+a:w["z-index"]=p,g||this._applyBgColorOnScroll(i,u,g,a>=0,r),w[e]=s+"px",i.css(w)}},_applyBgColorOnScroll:function(t,e,a,r,n){if(t.is("img"))return!0;if(e&&this._isFrozen(n)&&!a)return t.css("background-color",this.freezeBGColor[n]),!0;r?t.css("background-color",this.freezeBGColor[n]):t.css("background-color","initial")},_hasSetBgColor:function(t){return lr(t)>0},_isFrozen:function(t){return this.currentlyfreezedContainer.horizontal[t]||this.currentlyfreezedContainer.vertical[t]},_isInScrollVisibleArea:function(t){var e=t.closest(".trv-report-page"),a=t.position();return this._isVisibleVertically(t,e,a)&&this._isVisibleHorizontally(t,e,a)},_isVisibleHorizontally:function(t,e,a){var r=parseFloat(e.css("padding-left")),n=this.$scrollableContainer.scrollLeft(),i=this.$scrollableContainer.width(),o=t.outerWidth(!0)*this.scaleFactor,u=a.left+r;return u>n-o&&u<n+o+i},_isVisibleVertically:function(t,e,a){var r=parseFloat(e.css("padding-top")),n=e.position(),i=this.$scrollableContainer.scrollTop(),o=this.$scrollableContainer.height(),u=t.outerHeight(!0)*this.scaleFactor,l=a.top+r+n.top;return l>i-u&&l<i+u+o}};var Un={};function Ut(t,e,a){e=$.extend({},Un,e,a);var r=e.controller;if(!r)throw"No controller (telerikReportViewer.reportViewerController) has been specified.";var n=$(t),i=n.find(".trv-page-container"),o=i[0],u=n.find(".trv-page-wrapper"),l=u[0],d=n.find(".trv-error-message"),s,p,g=he.SPECIFIC,h=1,b=.1,w=8,T=!0,S,U,F,q,W=!1,_=!1,k='.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}',I="trv-initial-image-styles",m=se({},Sr,{}),N=null;G(),m&&m.init(t,e);function G(){Y(n)}function Y(E){E.attr("aria-label",A[E.attr("aria-label")])}$(window).on("resize",function(E,c){J()&&ue()}),j(n);function M(){q&&window.clearTimeout(q)}function P(){var E=Ce(S);E&&ee(E,-1)}function K(E,c){E&&E<=c&&oe(E,U)}function Z(E,c){E&&(E=Math.min(E,c),oe(E,U))}function R(){ce(F),F=!1}r.pageModeChanged(function(){r.getPageMode()===Me.CONTINUOUS_SCROLL?m.enable():m.disable(),r.refreshReport(!0)}).reportSourceChanged(function(){F=!0,S=null,U=null,T=!1}).beforeLoadParameters(function(E,c){c&&C(A.loadingReport)}).beforeLoadReport(function(){T=!1,S||(S=1),M(),ce(),_e(!0),C(A.loadingReport)}).beginLoadReport(function(E,c){T=!0,P()}).reportLoadProgress(function(E,c){K(S,c.pageCount),C(re(A.loadingReportPagesInProgress,[c.pageCount]))}).reportLoadComplete(function(E,c){c.pageCount===0?(R(),C(A.noPageToDisplay)):(Z(S,c.pageCount),C(re(A.loadedReportPagesComplete,[c.pageCount])),q=window.setTimeout(C,2e3),Pe()),c.containsFrozenContent&&!N&&(N=se({},Ir,{}),r.getViewMode()===we.INTERACTIVE&&N.init(n))}).navigateToPage(function(E,c,v){oe(c,v)}).pageReady(function(E,c){r.getPageMode()===Me.SINGLE_PAGE?(m.isEnabled()&&m.disable(),Ve(c)):m.renderPage(c),_||(_=!0),W&&H(),r.getViewMode()===we.INTERACTIVE&&N&&N.init(n),_e(!1)}).error(function(E,c){_e(!1),R(),C(c)}).showNotification(function(E,c){C(A[c.stringResources])}).hideNotification(function(E,c){C()}).scale(function(E,c){ge(c)}).getScale(function(E,c){var v=de(),y=$(v).data("pageScale")||h;c.scale=y,c.scaleMode=g}).serverActionStarted(function(){_e(!0),C(A.loadingReport)}).scrollPageReady(function(E,c){Ae(c)}).missingOrInvalidParameters(function(E,c){e.initialPageAreaImageUrl&&!_&&(R(),dt())}).renderingStopped(function(){ce(!0),C(A.renderingCanceled)}),r.setDocumentMapVisible(function(){J()&&setTimeout(function(){ue()})}).setParametersAreaVisible(function(){J()&&setTimeout(function(){ue()})});function j(E){var c,v;Tr(E,{swipe:function(y){var V=r.getCurrentPageNumber();c&&y.direction==="left"?V<r.getPageCount()&&r.navigateToPage(V+1):v&&y.direction==="right"&&V>1&&r.navigateToPage(V-1)},pinch:function(y){var V=de(),Q=$(V).data("pageScale")||h,ne=y.distance/y.lastDistance;ge({scale:Q*ne,scaleMode:he.SPECIFIC})},doubletap:function(y){e.commands.toggleZoomMode.exec()},touchstart:function(y){var V=l;v=V.scrollLeft===0,c=V.scrollWidth-V.offsetWidth===V.scrollLeft}})}function J(){return[he.FIT_PAGE,he.FIT_PAGE_WIDTH].indexOf(g)!==-1}function ue(){for(var E=0,c=i.find(".trv-report-page"),v=c.length;E<v;E++){var y=parseInt($(c[E]).attr("data-page"));fe(c[E],g,h,y)}r.updatePageDimensionsReady()}function ge(E){g=E.scaleMode||g;var c=h;"scale"in E&&(c=E.scale),h=Math.max(b,Math.min(w,c)),ue()}function ce(E){me(),p=void 0,E&&u.empty(),C()}function de(){return Ce(r.getCurrentPageNumber())}function Ce(E){var c,v=i.find(".trv-report-page");return r.getPageMode()===Me.SINGLE_PAGE?L(v,function(y,V){return ee(V)===E&&(c=V),!c}):$.each(v,function(y,V){var Q=parseInt($(V).attr("data-page"));if(Q===E)return c=V,!1}),c}function oe(E,c){T?Oe(E,c):Ge(E,c)}function Ge(E,c){S=E,U=c}function Oe(E,c){var v=Ce(E);v?(c&&le(c,E),m.isEnabled()&&!c&&m.navigateToElement(v.offsetTop,E)):(p=c,ie(E))}function le(E,c){if(E){var v=i.find("[data-"+E.type+"-id="+E.id+"]")[0];if(v){if(e.enableAccessibility){var y=$e($(v));y&&y.focus()}for(var V=i[0],Q=0,ne=0;v&&v!==V;){if($(v).is(".trv-page-wrapper")){var Te=$(v).data("pageScale");typeof Te=="number"&&(Q*=Te,ne*=Te)}Q+=v.offsetTop,ne+=v.offsetLeft,v=v.offsetParent}m.isEnabled()&&c?m.navigateToElement(Q,c):(V.scrollTop=Q,V.scrollLeft=ne)}else m.isEnabled()&&c&&m.navigateToElement(n.find('[data-page="'+c+'"]')[0].offsetTop,c)}}function $e(E){if(!E||E.length===0)return null;var c=Fe(E.attr("tabindex"));return!isNaN(c)&&c>-1?E:$e(E.next())}function _e(E){(E?$.fn.addClass:$.fn.removeClass).call(n,"trv-loading")}function C(E){d.text(E),(E?$.fn.addClass:$.fn.removeClass).call(n,"trv-error")}function ee(E,c){var v=E.$?E:$(E),y="pageNumber";return c===void 0?v.data(y):(v.data(y,c),E)}function ie(E){_e(!0),window.setTimeout(r.getReportPage.bind(r,E),1),S=null}function fe(E,c,v,y){var V=$(E),Q=y?V:V.find("div.trv-report-page"),ne=Q.find("div.sheet"),Te=Q.find("div.trv-skeleton-wrapper"),ye=ne[0]||Te[0],qe=Te[0];if(ye){var Je,Ze,Qe=V.data("box");if(!Qe){var ht=sr(V),Et=cr(Q),bt=ur(Q);Qe={padLeft:ht.left+Et.left+bt.left,padRight:ht.right+Et.right+bt.right,padTop:ht.top+Et.top+bt.top,padBottom:ht.bottom+Et.bottom+bt.bottom},V.data("box",Qe)}V.data("pageWidth")===void 0?(Je=ye.offsetWidth,Ze=ye.offsetHeight,V.data("pageWidth",Je),V.data("pageHeight",Ze)):(Je=V.data("pageWidth"),Ze=V.data("pageHeight"));var Ht=Ze>Je&&c===he.FIT_PAGE_WIDTH?20:0,wt=(o.clientWidth-Ht-Qe.padLeft-Qe.padRight)/Je,Wt=(o.clientHeight-1-Qe.padTop-Qe.padBottom)/Ze;c===he.FIT_PAGE_WIDTH?v=wt:(!v||c===he.FIT_PAGE)&&(v=Math.min(wt,Wt)),N&&N.setScaleFactor(v),V.data("pageScale",v),Q.data("pageScale",v),qe||fr(ne,v,v),Q.css({height:v*Ze,width:v*Je})}}function Pe(){i.on("click","[data-reporting-action]",ke),i.on("mouseenter","[data-reporting-action]",Ke),i.on("mouseleave","[data-reporting-action]",Be),i.on("mouseenter","[data-tooltip-title],[data-tooltip-text]",D),i.on("mouseleave","[data-tooltip-title],[data-tooltip-text]",Ie)}function me(){i.off("click","[data-reporting-action]",ke),i.off("mouseenter","[data-reporting-action]",Ke),i.off("mouseleave","[data-reporting-action]",Be),i.off("mouseenter","[data-tooltip-title],[data-tooltip-text]",D),i.off("mouseleave","[data-tooltip-title],[data-tooltip-text]",Ie)}function ke(E){var c=$(this),v=c.attr("data-reporting-action"),y=Xe(v);y&&(S=Re(E,y.Type),r.executeReportAction({element:E.currentTarget,action:y,cancel:!1})),E.stopPropagation()}function Re(E,c){return m.isEnabled()&&(c==="sorting"||c==="toggleVisibility")&&$(E.target).closest(".trv-report-page").attr("data-page")||r.getCurrentPageNumber()}function Ke(E){var c=$(this),v=c.attr("data-reporting-action"),y=Xe(v);y!==null&&E.currentTarget===this&&r.reportActionEnter({element:E.currentTarget,action:y})}function Be(E){var c=$(this),v=c.attr("data-reporting-action"),y=Xe(v);y!==null&&E.currentTarget===this&&r.reportActionLeave({element:E.currentTarget,action:y})}function Xe(E){if(s){var c;return L(s,function(){return this.Id===E&&(c=this),c===void 0}),c}return null}function D(E){var c=$(this),v=c.attr("data-tooltip-title"),y=c.attr("data-tooltip-text");if(!(!v&&!y)){var V={element:E.currentTarget,toolTip:{title:v||"",text:y||""},cancel:!1};if(r.reportToolTipOpening(V),!V.cancel){var Q=O(V),ne=E.currentTarget.viewportElement,Te=Ee(c,Q);Te.show(c),ne&&ne.nodeName==="svg"&&te(Te,E)}}}function O(E){var c=e.templates["trv-pages-area-kendo-tooltip"],v=$(c),y=v.find(".trv-pages-area-kendo-tooltip-title"),V=v.find(".trv-pages-area-kendo-tooltip-text");return y.text(E.toolTip.title),V.text(E.toolTip.text),v.clone().wrap("<p>").parent().html()}function te(E,c){var v=c.pageX,y=c.pageY,V=E.popup.element.closest("[role=region]");V.css({left:v+10,top:y+5})}function Ee(E,c){var v=E.data("kendoTooltip");if(!v)try{v=E.kendoTooltip({content:c,autohide:!0,callout:!1}).data("kendoTooltip")}catch(y){throw console.error("Instantiation of Kendo Tooltip threw an exception",y),y}return v}function Ie(E){var c=$(this),v=c.data("kendoTooltip");v&&v.hide()}function De(E){var c="trv-"+r.clientId()+"-styles";$("#"+c).remove();var v=$("<style id="+c+"></style>");v.append(E.pageStyles),v.appendTo("head")}function Ve(E){s=JSON.parse(E.pageActions),De(E);var c=E.pageNumber,v=$($.parseHTML(E.pageContent)),y=v.find("div.sheet"),V=$('<div class="trv-report-page" data-page="'+c+'"></div>');y.css("margin",0),V.append(y).append($('<div class="trv-page-overlay"></div>'));var Q=u.empty().removeData().data("pageNumber",c).append(V);r.setCurrentPageNumber(c),r.getViewMode()===we.INTERACTIVE?(n.removeClass("printpreview"),n.addClass("interactive")):(n.removeClass("interactive"),n.addClass("printpreview")),fe(Q,g,h),i.scrollTop(0),i.scrollLeft(0),le(p)}function Ae(E){var c=JSON.parse(E.page.pageActions);s?s=s.concat(c):s=c,r.getViewMode()===we.INTERACTIVE?(n.removeClass("printpreview"),n.addClass("interactive")):(n.removeClass("interactive"),n.addClass("printpreview")),fe(E.target,g,h,E.page.pageNumber)}function dt(){var E=$("<style id="+I+"></style>");H(),E.append(re(k,[e.initialPageAreaImageUrl])),E.appendTo("head"),W=!0}function H(){$("#"+I).remove()}}var _r="telerik_ReportViewer_PagesArea";$.fn[_r]=function(t,e){return L(this,function(){$.data(this,_r)||$.data(this,_r,new Ut(this,t,e))})};var Ye={MultiSelect:function(t,e){return!!t.availableValues&&t.multivalue&&(!e||!e.multiSelect||e.multiSelect!==ot.COMBO_BOX)},MultiSelectCombo:function(t,e){return!!t.availableValues&&t.multivalue&&e&&e.multiSelect&&e.multiSelect===ot.COMBO_BOX},SingleSelect:function(t,e){return!!t.availableValues&&!t.multivalue&&(!e||!e.singleSelect||e.singleSelect!==ot.COMBO_BOX)},SingleSelectCombo:function(t,e){return!!t.availableValues&&!t.multivalue&&e&&e.singleSelect&&e.singleSelect===ot.COMBO_BOX},MultiValue:function(t){return!!t.multivalue},DateTime:function(t){return t.type===Ue.DATETIME},String:function(t){return t.type===Ue.STRING},Number:function(t){switch(t.type){case Ue.INTEGER:case Ue.FLOAT:return!0;default:return!1}},Boolean:function(t){return t.type===Ue.BOOLEAN},Default:function(t){return!0}},an=function(){var t=`
|
11
|
+
`;return{formatValue:function(e){var a="";return e&&[].concat(e).forEach(function(r){a.length>0&&(a+=t),a+=r}),a},parseValues:function(e){return(""+e).split(t)}}}();function Gn(t){function e(o){return/^(\-|\+)?([0-9]*)$/.test(o)}function a(o){return Pt(o.keyCode)?!0:e($(t).val()+String.fromCharCode(o.charCode))}function r(o){}function n(o){$(o).on("keypress",a).on("paste",r)}function i(o){$(o).off("keypress",a).off("paste",r)}return n(t),{dispose:function(){i(t)}}}function Bn(t){function e(o){return/^(\-|\+)?([0-9]*(\.[0-9]*)?)$/.test(o)}function a(o){return Pt(o.keyCode)?!0:e($(t).val()+String.fromCharCode(o.charCode))}function r(o){}function n(o){$(o).on("keypress",a).on("paste",r)}function i(o){$(o).off("keypress",a).off("paste",r)}return n(t),{dispose:function(){i(t)}}}function ln(t,e,a){var r=t?$.fn.addClass:$.fn.removeClass;r.call(a,e)}function vt(t,e){ln(!e,"k-disabled",t)}function Hn(t,e){ln(e,"k-selected",t),t.attr("aria-selected",e)}function lt(t,e,a,r,n){r||(r="");var i=re("{0}. {1} {2}. {3}",[a,e,A.ariaLabelParameter,r]);t.attr("aria-label",i),nt(t,n)}var st,Gt=0;function ut(t){if(!st){var e=$("div.trv-parameters-area-content");if(e.length>0){var a=e.attr("tabIndex");a&&(st=Fe(a))}(!st||isNaN(st))&&(st=300)}var r=t.closest(".trv-parameter-value"),n=r.find(".trv-select-all"),i=r.find(".trv-select-none"),o=t.closest(".k-widget"),u=o.find(".k-input"),l=u&&u.length;n&&n.length&&n.attr("tabindex",st+ ++Gt),i&&i.length&&i.attr("tabindex",st+ ++Gt),l?u.attr("tabindex",st+ ++Gt):t.attr("tabindex",st+ ++Gt)}function nt(t,e){var a=re(" {0}:",[A.ariaLabelErrorMessage]),r=t.attr("aria-label");if(r){var n=r.indexOf(a);n>-1&&(r=r.substring(0,n)),e&&e!==""?(t.attr("aria-required",!0),t.attr("aria-invalid",!0),r+=a+e):t.removeAttr("aria-invalid"),t.attr("aria-label",r)}}function on(t){return kendo.version>="2017.3.1018"||t}var Cr=[{match:Ye.MultiSelect,createEditor:function(t,e){var a=$(t),r=!0;a.html(e.templates["trv-parameter-editor-available-values-multiselect"]);var n=a.find(".trv-list"),i=a.find(".trv-select-all"),o=a.find(".trv-select-none"),u,l,d,s=e.parameterChanged,p;i.text(A[i.text()]),i.click(function(I){I.preventDefault(),r&&_(l.availableValues.map(function(m){return m.value}))}),o.text(A[o.text()]),o.click(function(I){I.preventDefault(),r&&_([])});function g(I){p&&(h(I),b(I))}function h(I){var m=n.find(".trv-listviewitem");L(m,function(){var N=$(this),G=I.filter(N).length>0;N.attr("aria-selected",G)})}function b(I){var m=l.availableValues,N=$.map(I,function(Y){return m[$(Y).index()].value});w();var G=!l.autoRefresh&&!l.childParameters;d=window.setTimeout(function(){Dt(l.value,N)||s(l,N),d=null},G?0:1e3)}function w(){d&&window.clearTimeout(d)}function T(){return $(u.element).find(".k-selected")}function S(I){if(r){var m=$(I.target),N=u.select();m.hasClass("k-selected")?N.splice($.inArray(m[0],N),1):N.push(m),u.clearSelection(),u.select(N),u.trigger("change")}}function U(I){g(T())}function F(I){if(r&&I.which===32){var m=u.element.find(".k-focus");m.length>0&&(m.toggleClass("k-selected"),g(T()),I.preventDefault())}}function q(){ut(n),_(l.value),u.element.off().on("touch click",".trv-listviewitem",S),u.element.on("keydown",F),p=!0}function W(){p=!1,u&&(u.element.off("touch click",".trv-listviewitem",S),u.element.off("keydown",F))}function _(I){k(I),g(T())}function k(I){Array.isArray(I)||(I=[I]);var m=n.find(".trv-listviewitem");L(l.availableValues,function(N,G){var Y=!1;L(I,function(M,P){var K=G.value;return P instanceof Date&&(K=ct(G.value)),Y=_t(P,K),!Y}),Hn($(m[N]),Y)})}return{beginEdit:function(I){W(),l=I;try{u=n.kendoListView({template:kendo.template('<div class="trv-listviewitem" style="cursor: pointer">${name}</div>'),dataSource:{data:l.availableValues},selectable:"MULTIPLE",navigatable:on(e.enableAccessibility),change:U}).data("kendoListView")}catch(m){throw console.error("Instantiation of Kendo ListView as MultiSelect parameter editor threw an exception",m),m}q()},enable:function(I){r=I,vt(n,r)},clearPendingChange:w,addAccessibility:function(I){var m=re(A.ariaLabelParameterInfo,[I.availableValues.length]);lt(n,A.ariaLabelMultiSelect,I.text,m,I.Error),n.attr("aria-multiselectable","true");var N=n.find(".trv-listviewitem");L(N,function(){$(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(I){nt(n,I.Error)},destroy:function(){u.destroy()}}}},{match:Ye.MultiSelectCombo,createEditor:function(t,e){var a=$(t),r=!0,n=".trv-combo",i="trv-parameter-editor-available-values-multiselect-combo",o=e.parameterChanged,u,l,d,s,p,g=!0,h;a.html(e.templates[i]),u=a.find(n),l=a.find(".trv-select-none"),l&&(l.text(A[l.text()]),l.click(function(W){W.preventDefault(),s.value([]),s.trigger("change")})),d=a.find(".trv-select-all"),d&&(d.text(A[d.text()]),d.click(function(W){if(W.preventDefault(),!!r){var _=$.map(h.availableValues,function(k){return k.value});s.value(_),s.trigger("change")}}));function b(W){w(W)}function w(W){T();var _=!h.autoRefresh&&!h.childParameters;p=window.setTimeout(function(){Dt(h.value,W)||o(h,W),p=null},_?0:1e3)}function T(){p&&window.clearTimeout(p)}function S(){return s.value()}function U(){g&&b(S())}function F(){ut(u),s.bind("change",U)}function q(){s&&s.unbind("change",U)}return{beginEdit:function(W){q(),h=W;try{s=u.kendoMultiSelect({itemTemplate:'<div class="trv-editoritem">${name}</div>',dataSource:h.availableValues,dataTextField:"name",dataValueField:"value",value:h.value,filter:"contains",autoClose:!1,open:function(){g=!1},close:function(_){g=!0,U()},autoWidth:!0,clearButton:!1}).data("kendoMultiSelect")}catch(_){throw console.error("Instantiation of Kendo MultiSelect as MultiSelectCombo parameter editor threw an exception",_),_}F(u)},enable:function(W){r=W,s.enable(W)},clearPendingChange:T,addAccessibility:function(W){var _=s.input,k=re(A.ariaLabelParameterInfo,[W.availableValues.length]);lt(_,A.ariaLabelMultiSelect,W.text,k,W.Error);var I=s.items();L(I,function(){$(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(W){nt(u,W.Error)},destroy:function(){s.destroy()}}}},{match:Ye.SingleSelect,createEditor:function(t,e){var a=$(t),r=!0;a.html(e.templates["trv-parameter-editor-available-values"]);var n=a.find(".trv-list"),i=a.find(".trv-select-none"),o,u,l=e.parameterChanged;i&&(i.text(A[i.text()]),i.click(function(T){T.preventDefault(),o.clearSelection(),o.trigger("change")}));function d(T){s(T)}function s(T){var S=u.availableValues,U=$.map(T,function(F){return S[$(F).index()].value});Array.isArray(U)&&(U=U[0]),l(u,U)}function p(){return o.select()}function g(){d(p())}function h(){ut(n),w(u.value),o.bind("change",g)}function b(){o&&o.unbind("change",g)}function w(T){var S=n.find(".trv-listviewitem");L(u.availableValues,function(U,F){var q=F.value;return T instanceof Date&&(q=ct(F.value)),_t(T,q)?(o.select(S[U]),!1):!0})}return{beginEdit:function(T){b(),u=T;try{o=n.kendoListView({template:'<div class="trv-listviewitem">${name}</div>',dataSource:{data:u.availableValues},selectable:!0,navigatable:on(e.enableAccessibility)}).data("kendoListView")}catch(S){throw console.error("Instantiation of Kendo ListView as SingleSelect parameter editor threw an exception",S),S}h(n)},enable:function(T){r=T,vt(n,r),r?(o.bind("change",g),n.addClass("k-selectable")):(o.unbind("change",g),n.removeClass("k-selectable"))},addAccessibility:function(T){var S=re(A.ariaLabelParameterInfo,[T.availableValues.length]);lt(n,A.ariaLabelSingleValue,T.text,S,T.Error);var U=n.find(".trv-listviewitem");L(U,function(){$(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(T){nt(n,T.Error)},destroy:function(){o.destroy()}}}},{match:Ye.SingleSelectCombo,createEditor:function(t,e){var a=$(t),r=!0,n=".trv-combo",i="trv-parameter-editor-available-values-combo",o=e.parameterChanged,u,l,d,s;a.html(e.templates[i]),u=a.find(n),l=a.find(".trv-select-none"),l&&(l.text(A[l.text()]),l.click(function(S){S.preventDefault(),d.value(""),d.trigger("change")}));function p(S,U){g(S,U)}function g(S,U){var F=U||"",q;!U&&S>=0&&(q=s.availableValues,F=q[S].value),o(s,F)}function h(){return d.select()}function b(S){p(h(),this.value())}function w(){ut(u),d.bind("change",b)}function T(){d&&d.unbind("change",b)}return{beginEdit:function(S){T(),s=S;try{d=u.kendoComboBox({template:'<div class="trv-editoritem">${name}</div>',dataSource:s.availableValues,dataTextField:"name",dataValueField:"value",value:s.value,filter:"contains",suggest:!0,clearButton:!1}).data("kendoComboBox")}catch(U){throw console.error("Instantiation of Kendo ComboBox as SingleSelectCombo parameter editor threw an exception",U),U}w(u)},enable:function(S){r=S,d.enable(S)},addAccessibility:function(S){var U=d.input,F=re(A.ariaLabelParameterInfo,[S.availableValues.length]);lt(U,A.ariaLabelSingleValue,S.text,F,S.Error);var q=d.items();L(q,function(){$(this).attr("aria-label",this.innerText)})},setAccessibilityErrorState:function(S){nt(u,S.Error)},destroy:function(){d.destroy()}}}},{match:Ye.MultiValue,createEditor:function(t,e){var a=$(t),r;a.html(e.templates["trv-parameter-editor-multivalue"]);var n=a.find("textarea").on("change",function(){e.parameterChanged&&e.parameterChanged(r,an.parseValues(this.value))});function i(o){r.value=o,n.val(an.formatValue(o))}return{beginEdit:function(o){r=o,i(o.value),ut(n)},enable:function(o){vt(n,o),n.prop("disabled",!o)},addAccessibility:function(o){lt(n,A.ariaLabelMultiValue,o.text,null,o.Error)},setAccessibilityErrorState:function(o){nt(n,o.Error)}}}},{match:Ye.DateTime,createEditor:function(t,e){var a=$(t),r;a.html(e.templates["trv-parameter-editor-datetime"]);try{var n=a.find("input[type=datetime]").kendoDatePicker({change:function(){var u=e.parameterChanged;if(u){var l=this.value();l!==null&&(l=qt(l)),u(r,l)}}}),i=n.data("kendoDatePicker")}catch(u){throw console.error("Instantiation of Kendo DatePicker as DateTime parameter editor threw an exception",u),u}function o(u){r.value=u;var l=null;try{u&&(l=Jt(u))}catch{l=null}i.value(l)}return{beginEdit:function(u){r=u,o(u.value),ut(n)},enable:function(u){i.enable(u),vt(n,u)},addAccessibility:function(u){lt(n,A.ariaLabelParameterDateTime,u.text,null,u.Error),n.attr("aria-live","assertive")},setAccessibilityErrorState:function(u){nt(n,u.Error)},destroy:function(){i.destroy()}}}},{match:Ye.String,createEditor:function(t,e){var a=$(t),r;a.html(e.templates["trv-parameter-editor-text"]);var n=a.find('input[type="text"]').change(function(){e.parameterChanged&&e.parameterChanged(r,n.val())});function i(o){r.value=o,n.val(o)}return{beginEdit:function(o){r=o,i(o.value),ut(n)},enable:function(o){n.prop("disabled",!o),vt(n,o)},addAccessibility:function(o){lt(n,A.ariaLabelParameterString,o.text,null,o.Error),n.attr("aria-live","assertive")},setAccessibilityErrorState:function(o){nt(n,o.Error)}}}},{match:Ye.Number,createEditor:function(t,e){var a=$(t),r,n;a.html(e.templates["trv-parameter-editor-number"]);var i=a.find("input[type=number]").on("change",function(){e.parameterChanged&&e.parameterChanged(r,i.val())});function o(u){r.value=u,i.val(u)}return{beginEdit:function(u){n&&n.dispose(),r=u,i.val(r.value),r.type===Ue.INTEGER?n=Gn(i):n=Bn(i),ut(i)},enable:function(u){i.prop("disabled",!u),vt(i,u)},addAccessibility:function(u){lt(i,A.ariaLabelParameterNumerical,u.text,null,u.Error),i.attr("aria-live","assertive")},setAccessibilityErrorState:function(u){nt(i,u.Error)}}}},{match:Ye.Boolean,createEditor:function(t,e){var a=$(t),r;a.html(e.templates["trv-parameter-editor-boolean"]);var n=a.find("input[type=checkbox]").on("change",function(){e.parameterChanged&&e.parameterChanged(r,this.checked)});function i(o){r.value=o,n[0].checked=o===!0}return{beginEdit:function(o){r=o,i(o.value),ut(n)},enable:function(o){vt(n,o),n.attr("disabled",!o)},addAccessibility:function(o){lt(n,A.ariaLabelParameterBoolean,o.text,null,o.Error),n.attr("aria-live","assertive")},setAccessibilityErrorState:function(o){nt(n,o.Error)}}}},{match:Ye.Default,createEditor:function(t,e){var a=$(t);return a.html('<div class="trv-parameter-editor-generic"></div>'),{beginEdit:function(r){a.find(".trv-parameter-editor-generic").text(r.Error?"(error)":r.value)},enable:function(r){}}}}];function Rr(t,e){var a=t.querySelectorAll?t.querySelectorAll(".trv-menu-small")[0]:!1,r={small:{documentMapVisible:!1,parametersAreaVisible:!1,onDocumentMapVisibleChanged:function(_,k){k.visible&&e.setParametersAreaVisible({visible:!1})},onParameterAreaVisibleChanged:function(_,k){k.visible&&e.setDocumentMapVisible({visible:!1})},onBeforeLoadReport:function(){e.setParametersAreaVisible({visible:!1}),e.setDocumentMapVisible({visible:!1})},onNavigateToPage:function(){e.setParametersAreaVisible({visible:!1}),e.setDocumentMapVisible({visible:!1})}},large:{documentMapVisible:!0,parametersAreaVisible:!0}},n;function i(){n=S(),U(r.large)}function o(_){var k=S();if(k!==n){var I=r[n],m=r[k];n=k,_&&_.call(void 0,I,m),F(m)}}function u(_,k){b("onDocumentMapVisibleChanged",arguments)}function l(_,k){b("onParameterAreaVisibleChanged",arguments)}function d(){b("onBeforeLoadReport",arguments)}function s(){b("onNavigateToPage",arguments)}function p(){b("onReportLoadComplete",arguments)}function g(){o(function(_,k){U(_)})}function h(){o(null)}function b(_,k){var I=r[n],m=I[_];typeof m=="function"&&m.apply(I,k)}function w(){window.addEventListener("resize",g),e.setDocumentMapVisible(u),e.setParametersAreaVisible(l),e.beforeLoadReport(d),e.navigateToPage(s),e.reportLoadComplete(p),e.cssLoaded(h)}function T(){window.removeEventListener("resize",g)}function S(){var _=$(window).width()/parseFloat($("body").css("font-size")),k=40.5;return a&&_<=k?"small":"large"}function U(_){_.documentMapVisible=q(),_.parametersAreaVisible=W()}function F(_){q(_.documentMapVisible),W(_.parametersAreaVisible)}function q(){if(arguments.length===0){var _={};return e.getDocumentMapState(_),_.visible}return e.setDocumentMapVisible({visible:!!arguments[0]}),this}function W(){if(arguments.length===0){var _={};return e.getParametersAreaState(_),_.visible}return e.setParametersAreaVisible({visible:!!arguments[0]}),this}return i(),{attach:w,dispose:T}}var At="application/json; charset=UTF-8",Wn="application/x-www-form-urlencoded; charset=UTF-8",mt="GET",ft="POST";var Ar="DELETE",Kn={};function wr(t){t=se({},Kn,t);var e=tt(t.serviceUrl||t.baseUrl,"\\/"),a,r=Ot;function n(l){if(!l)throw"Invalid clientID"}function i(l,d){return d=se({},{baseUrl:e},d),re(l,d)}function o(l){return l?{headers:{Authorization:"Bearer "+l}}:{}}function u(){if(!a){var l=t.loginInfo;l&&l.url&&(l.username||l.password)?a=r({url:l.url,type:ft,data:{grant_type:"password",username:l.username,password:l.password},dataType:"json",contentType:Wn}).then(function(d){return d.access_token}):a=Promise.resolve()}return a}return{_urlFromTemplate:i,registerClient:function(l){return u().then(function(d){var s=se(o(d),l,{type:ft,url:i("{baseUrl}/clients"),dataType:"json",data:JSON.stringify({timeStamp:Date.now()})});return r(s)}).then(function(d){if(d.Message)throw d.Message;return d.clientId})},unregisterClient:function(l,d){return n(l),u().then(function(s){var p=se(o(s),d,{type:Ar,url:i("{baseUrl}/clients/{clientID}",{clientID:l})});return r(p)})},getParameters:function(l,d,s,p){return n(l),u().then(function(g){var h=se(o(g),p,{type:ft,url:i("{baseUrl}/clients/{clientID}/parameters",{clientID:l}),contentType:At,dataType:"json",data:JSON.stringify({report:d,parameterValues:s})});return r(h)})},createReportInstance:function(l,d,s,p){return n(l),u().then(function(g){var h=se(o(g),p,{type:ft,url:i("{baseUrl}/clients/{clientID}/instances",{clientID:l}),contentType:At,dataType:"json",data:JSON.stringify({report:d,parameterValues:s})});return r(h)}).then(function(g){return g.instanceId})},deleteReportInstance:function(l,d,s){return n(l),u().then(function(p){var g=se(o(p),s,{type:Ar,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}",{clientID:l,instanceID:d})});return r(g)})},createReportDocument:function(l,d,s,p,g,h,b,w){return n(l),u().then(function(T){p=p||{},p.BasePath=e;var S=se(o(T),w,{type:ft,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents",{clientID:l,instanceID:d}),contentType:At,dataType:"json",data:JSON.stringify({format:s,deviceInfo:p,useCache:g,baseDocumentID:h,actionID:b})});return r(S)}).then(function(T){return T.documentId})},sendDocument:function(l,d,s,p,g){return n(l),u().then(function(h){var b=se(o(h),g,{type:ft,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/send",{clientID:l,instanceID:d,documentID:s}),contentType:At,data:JSON.stringify({from:p.from,to:p.to,cc:p.cc,subject:p.subject,body:p.body})});return r(b)})},deleteReportDocument:function(l,d,s,p){return n(l),u().then(function(g){var h=se(o(g),p,{type:Ar,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}",{clientID:l,instanceID:d,documentID:s})});return r(h)})},getDocumentInfo:function(l,d,s,p){return n(l),u().then(function(g){var h=se(o(g),p,{type:mt,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/info",{clientID:l,instanceID:d,documentID:s}),dataType:"json"});return r(h)})},getPage:function(l,d,s,p,g){return n(l),u().then(function(h){var b=se(o(h),g,{type:mt,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/pages/{pageNumber}",{clientID:l,instanceID:d,documentID:s,pageNumber:p}),dataType:"json"});return r(b)})},get:function(l){var d={type:mt,url:l};return r(d)},formatDocumentUrl:function(l,d,s,p){var g=i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}",{clientID:l,instanceID:d,documentID:s});return p&&(g+="?"+p),g},getDocumentFormats:function(l){return u().then(function(d){var s=se(o(d),l,{type:mt,url:i("{baseUrl}/formats"),dataType:"json"});return r(s)})},getServiceVersion:function(l){return u().then(function(d){var s=se(o(d),l,{type:mt,url:i("{baseUrl}/version"),dataType:"json"});return r(s)})},getResource:function(l,d,s,p,g){return n(l),u().then(function(h){var b=se(o(h),g,{type:mt,url:i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/resources/{resourceID}",{clientID:l,instanceID:d,documentID:s,resourceID:p}),dataType:"json"});return r(b)})},getSearchResults:function(l,d,s,p,g,h,b,w){n(l);var T=i("{baseUrl}/clients/{clientID}/instances/{instanceID}/documents/{documentID}/search",{clientID:l,instanceID:d,documentID:s});return u().then(function(S){var U=se(o(S),w,{type:ft,url:T,contentType:At,dataType:"json",data:JSON.stringify({searchToken:p,matchCase:g,matchWholeWord:h,useRegularExpressions:b})});return r(U)})},setAccessToken:function(l){a=Promise.resolve(l)},login:u,keepClientAlive:function(l,d){return u().then(function(s){var p=se(o(s),d,{type:ft,url:i("{baseUrl}/clients/keepAlive/{clientID}",{clientID:l})});return r(p)})},getClientsSessionTimeoutSeconds:function(l){return u().then(function(d){var s=se(o(d),l,{type:mt,url:i("{baseUrl}/clients/sessionTimeout")});return r(s)}).then(function(d){return d.clientSessionTimeout})}}}function Mr(t){var e={ExportInProgress:1,PrintInProgress:2,RenderInProgress:4};function a(T){return(o&T)!=0}function r(T,S){S?o|=T:o&=~T}var n=t.controller,i=t.history,o=0,u,l=t.commands;if(!n)throw"No controller (telerikReporting.ReportViewerController) has been specified.";function d(){var T={};return n.getDocumentMapState(T),T}function s(){var T={};return n.getParametersAreaState(T),T}function p(){var T={};return n.getSearchDialogState(T),T}function g(){var T={};return n.getSendEmailDialogState(T),T}function h(){u||(u=!0,window.setTimeout(function(){try{b()}finally{u=!1}},10))}function b(){var T=n.getReportSource(),S=n.getPageCount(),U=n.getCurrentPageNumber(),F=T&&T.report,q=F&&S>0,W=q&&U<S,_=q&&U>1,k=q&&U,I=d(),m=s(),N=p(),G=g(),Y=a(e.RenderInProgress),M=a(e.PrintInProgress),P=a(e.ExportInProgress);l.goToFirstPage.enabled(_),l.goToPrevPage.enabled(_),l.stopRendering.enabled(F&&Y),l.goToLastPage.enabled(W),l.goToNextPage.enabled(W),l.goToPage.enabled(q),l.print.enabled(q&&!Y&&!M),l.export.enabled(q&&!Y&&!P),l.refresh.enabled(F),l.historyBack.enabled(i&&i.canMoveBack()),l.historyForward.enabled(i&&i.canMoveForward()),l.toggleDocumentMap.enabled(F&&I.enabled).checked(I.enabled&&I.visible),l.toggleParametersArea.enabled(F&&m.enabled).checked(m.enabled&&m.visible),l.togglePrintPreview.enabled(q).checked(n.getViewMode()==we.PRINT_PREVIEW),l.pageMode.enabled(q).checked(n.getPageMode()==Me.CONTINUOUS_SCROLL),l.zoom.enabled(k),l.zoomIn.enabled(k),l.zoomOut.enabled(k),l.toggleZoomMode.enabled(k),l.toggleSearchDialog.enabled(q).checked(N.visible),l.toggleSendEmailDialog.enabled(q).checked(G.visible),n.updateUI(null),n.pageNumberChange(U),n.pageCountChange(S)}function w(){var T={};return n.getScale(T),T.scaleMode}n.setParametersAreaVisible(h),n.setDocumentMapVisible(h),n.updateUIInternal(h),n.setSearchDialogVisible(h),n.setSendEmailDialogVisible(h),n.scale(function(T,S){l.toggleZoomMode.checked(S.scaleMode===he.FIT_PAGE||S.scaleMode===he.FIT_PAGE_WIDTH)}),n.currentPageChanged(h),n.beforeLoadReport(function(){r(e.RenderInProgress,!0),h()}),n.reportLoadProgress(h),n.reportLoadComplete(function(){r(e.RenderInProgress,!1),h()}),n.reportSourceChanged(h),n.viewModeChanged(h),n.pageModeChanged(function(){h()}),n.setUIState(function(T,S){r(e[S.operationName],S.inProgress),h()}),n.error(function(){r(e.ExportInProgress,!1),r(e.PrintInProgress,!1),r(e.RenderInProgress,!1),h()}),n.renderingStopped(function(){r(e.RenderInProgress,!1),h()}),h()}var zn={};function Dr(t,e,a){e=$.extend({},zn,e,a);var r=e.controller;if(!r)throw"No controller (telerikReporting.reportViewerController) has been specified.";var n=$(t),i,o=e.documentMapVisible!==!1,u=e.enableAccessibility,l=null,d=!1;s();function s(){i=$('<div id="'+e.viewerSelector+'-documentMap"></div>'),i.appendTo(t),_(),k(n)}function p(I){var m=this.dataItem(I.node),N=m.page,G=m.id;r.navigateToPage(N,{type:"bookmark",id:G})}function g(I){u&&window.setTimeout(function(){h(I.node)},100)}function h(I){var m=$(I).find("li");L(m,function(){var N=$(this);N.attr("aria-label",N[0].innerText)})}function b(){w([])}function w(I){var m=I&&!$.isEmptyObject(I),N=i.data("kendoTreeView");if(!N)try{i.kendoTreeView({dataTextField:"text",select:p}),N=i.data("kendoTreeView")}catch(G){throw console.error("Instantiation of Kendo TreeView as Document Map threw an exception",G),G}N.setDataSource(I),u&&T(N),W(m)}function T(I){I.bind("expand",g),I.element.attr("aria-label",A.ariaLabelDocumentMap);var m=I.element.find("ul");L(m,function(){h(this)}),d&&S()}function S(){var I=n.next();e.documentMapAreaPosition===gt.RIGHT&&(I=n.prev()),I.attr("aria-label",A.ariaLabelDocumentMapSplitter)}function U(){var I={};return r.getDocumentMapState(I),I.visible}function F(){n.addClass("trv-loading")}function q(){n.removeClass("trv-loading")}function W(I){var m=rt.viewerInstances.find(G=>G.id===e.viewerSelector+"-document-map-splitter").instance,N=n.next();e.documentMapAreaPosition===gt.RIGHT&&(N=n.prev()),m&&((d?$.fn.removeClass:$.fn.addClass).call(N,"trv-hidden"),m.toggle(".trv-document-map",I))}function _(){r.beginLoadReport(function(){F();var I=r.getReportSource().report,m=l!==I||!U();l=I,m&&b()}).reportLoadComplete(function(I,m){m.documentMapAvailable?(d=!0,w(m.documentMapNodes),r.setDocumentMapVisible({enabled:!0,visible:o})):(d=!1,W(d)),q()}).error(function(I,m){q(),b()}).renderingStopped(function(){d=!1,W(!1)}),r.setDocumentMapVisible(function(I,m){o=m.visible,W(o&&d)}).getDocumentMapState(function(I,m){m.enabled=d,m.visible=o})}function k(I){var m=I.find(".trv-document-map-overlay");m&&m.attr("aria-label",A[m.attr("aria-label")])}}var Nr="telerik_ReportViewer_DocumentMapArea";$.fn[Nr]=function(t,e){return L(this,function(){$.data(this,Nr)||$.data(this,Nr,new Dr(this,t,e))})};var jn={},sn={PARAMETERS_READY:"pa.parametersReady",ERROR:"pa.Error"};function xr(t,e,a){e=$.extend({},jn,e,a);var r={},n=$(r),i={},o=e.controller;if(!o)throw"No controller (telerikReporting.reportViewerController) has been specified.";var u=[].concat(e.parameterEditors,Cr),l,d,s,p=void 0,g=$(t),h=g.find(".trv-parameters-area-content"),b=g.find(".trv-error-message"),w=g.find(".trv-parameters-area-preview-button");w.text(A[w.text()]),w.attr("aria-label",A[w.attr("aria-label")]),w.on("click",function(D){D.preventDefault(),P()&&R()});var T=e.templates["trv-parameter"],S=e.parametersAreaVisible!==!1,U=e.enableAccessibility;F();function F(){q(g)}function q(D){var O=D.find(".trv-parameters-area-preview-button");O&&(O.attr("aria-label",A[O.attr("aria-label")]),O.text(A[O.text()]))}function W(D,O){D.style.display=O?"none":""}function _(){return $(T)}function k(D){var O=_(),te=O.find(".trv-parameter-value"),Ee=O.find(".trv-parameter-title"),Ie=O.find(".trv-parameter-error"),De=O.find(".trv-parameter-error-message"),Ve=O.find(".trv-parameter-use-default input"),Ae=e.parameters&&e.parameters.editors?e.parameters.editors:null,dt=N(D,Ae),H=Le(D.text),E=!D.isVisible;E&&(H+=" [<b>hidden</b>]"),Ee.html(H).attr("title",H),De.text(D.Error),(D.Error?$.fn.show:$.fn.hide).call(Ie);var c=dt.createEditor(te,{templates:e.templates,parameterChanged:function(y,V){var Q=document.querySelector(".trv-pages-area .trv-error-message ul li."+y.name);try{V=St.validate(y,V),Ie.hide(),Q&&W(Q,!0),Ce(y,V)}catch(ne){Q&&W(Q,!1),y.Error=ne,y.value=[],De.text(ne),Ie.show(),m(!1)}finally{I(y)}},enableAccessibility:U});if(i[D.id]=c,c.beginEdit(D),U&&!E&&c.addAccessibility(D),Ve.length>0){Ve.on("click",function(){var y=$(this).is(":checked");y?(delete l[D.id],delete s[D.id],ce(D),ie(ke)):(l[D.id]=D.value,s[D.id]=D.value),c.enable(!y),ue()});var v=s!==null;v?D.id in s||(Ve.prop("checked",!0),c.enable(!1)):E&&(Ve.prop("checked",!0),c.enable(!1))}return O}function I(D){var O=i[D.id];!O||!U||O.setAccessibilityErrorState(D)}function m(D){D?(w.prop("disabled",!1),w.removeClass("k-disabled")):(w.prop("disabled",!0),w.addClass("k-disabled"))}function N(D,O){var te;return L(u,function(){return this&&this.match(D,O)&&(te=this),!te}),te}function G(D){b.text(D),(D?$.fn.addClass:$.fn.removeClass).call(g,"trv-error")}function Y(){(M(d)?$.fn.removeClass:$.fn.addClass).call(g,"preview")}function M(){var D=!0;return L(d,function(){return D=!this.isVisible||this.autoRefresh}),D}function P(){var D=!0;return L(d,function(){return D=!this.Error}),D}function K(){L(i,function(){this.hasOwnProperty("destroy")&&this.destroy()}),i={}}function Z(D){l={},p={},d=D||[],K();var O,te=$("<div></div>");L(d,function(){try{this.value=St.validate(this,this.value)}catch(Ve){this.Error=this.Error||Ve}var Ie=!!this.Error,De=!Ie;De?(l[this.id]=this.value,this.availableValues?p[this.id]={valueMember:this.value,displayMember:this.label,availableValues:this.availableValues,multivalue:this.multivalue}:p[this.id]=this.value):this.Error=A.invalidParameter,(this.isVisible||e.showHiddenParameters)&&(O=k(this),O&&te.append(O))}),s!==void 0&&(s===null?(s={},L(d,function(){this.isVisible?s[this.id]=this.value:delete l[this.id]})):L(d,function(){this.id in s||delete l[this.id]})),h.empty(),d.length>0&&(h.append(te.children()),U&&h.attr("aria-label","Parameters area. Contains "+d.length+" parameters.")),Y(d);var Ee=P();m(Ee),j()}function R(){o.setParameters($.extend({},l)),o.previewReport(!1)}function j(){o.setProcessedParameter($.extend({},p))}function J(){for(var D=!0,O=d.length-1;D&&O>=0;O--){var te=d[O];D=te.id in l&&(!!te.autoRefresh||!te.isVisible)}return D}function ue(){r.parametersReady(l)}function ge(){ue(),J()&&R()}function ce(D){D.childParameters&&L(D.childParameters,function(O,te){var Ee=oe(te);Ee&&ce(Ee),delete l[te],de(te)})}function de(D){if(i){var O=i[D];O&&typeof O.clearPendingChange=="function"&&O.clearPendingChange()}}function Ce(D,O){if(delete D.Error,D.value=O,l[D.id]=O,s!==void 0?D.id in s&&(l[D.id]=O):l[D.id]=O,ce(D),D.childParameters)ie(ge);else{var te=P();if(m(te),te){var Ee=document.querySelector(".trv-pages-area .trv-error-message");w.is(":visible")&&Ee&&(Ee.textContent=A.tryReportPreview),ge()}}}function oe(D){if(d)for(var O=0;O<d.length;O++){var te=d[O];if(te.id===D)return te}return null}function Ge(D){o.setParametersAreaVisible({visible:D})}function Oe(D){if(!D||D===null)return!1;var O=!1;return L(D,function(){return O=this.isVisible,!O}),O}var le=0;function $e(){le++,g.addClass("trv-loading")}function _e(){le>0&&--le===0&&g.removeClass("trv-loading")}var C=!1;function ee(D,O){C=Oe(D),C||Re(!1),Z(D),G(""),C&&S&&(Re(!0),U&&Ke()),o.updateUIInternal(),typeof O=="function"&&O(),_e()}function ie(D){fe(o.loadParameters(l),D)}function fe(D,O){$e(),D.then(function(te){ee(te,O)}).catch(function(te){_e(),Xe(),g.hasClass("trv-hidden")||G(te),r.error(te)})}function Pe(D){var O;return D&&D.length&&(O=D[0]),typeof O=="function"?O:null}function me(D,O){var te=Pe(O);return te?n.on(D,te):n.trigger(D,O),o}function ke(){s===null&&(s=$.extend({},l)),ue()}function Re(D){var O=window.telerikReportViewer,te=rt.viewerInstances.find(Ie=>Ie.id===e.viewerSelector+"-parameters-splitter").instance,Ee=g.prev();(e.parametersAreaPosition===We.TOP||e.parametersAreaPosition===We.LEFT)&&(Ee=g.next()),te&&((C?$.fn.removeClass:$.fn.addClass).call(Ee,"trv-hidden"),te.toggle(".trv-parameters-area",D))}function Ke(){var D=g.prev(),O=g.find(".trv-parameters-area-content").attr("tabIndex");(e.parametersAreaPosition===We.TOP||e.parametersAreaPosition===We.LEFT)&&(D=g.next()),D.attr("aria-label",A.ariaLabelParametersAreaSplitter),D.attr("tabIndex",O)}function Be(D,O){G(),h.empty(),fe(O,ke)}o.reloadParameters(Be).beforeLoadReport(function(){le=0,$e()}).error(_e).pageReady(_e),o.getParametersAreaState(function(D,O){var te=!1;d&&(te=Oe(d)),O.enabled=te,O.visible=S}).setParametersAreaVisible(function(D,O){S=O.visible,Re(O.visible&&Oe(d))});function Xe(){Z([])}return $.extend(r,{allParametersValid:function(){return P()},clear:function(){Xe()},error:function(){return me(sn.ERROR,arguments)},parametersReady:function(){return me(sn.PARAMETERS_READY,arguments)},setParameters:function(D){s=D===null?null:$.extend({},D)}}),r}var yr="telerik_ReportViewer_ParametersArea";$.fn[yr]=function(t,e){return L(this,function(){$.data(this,yr)||$.data(this,yr,new xr(this,t,e))})};var kr,Bt;function Or(t,e,a){var r=$.extend({},e,a),n=$(t).data("kendoMenu"),i=t.childNodes,o=r.controller,u=r.enableAccessibility;if(!o)throw"No controller (telerikReporting.ReportViewerController) has been specified.";n||l(),o.reportLoadComplete(function(M,P){u||n&&n._oldHoverItem&&n._oldHoverItem.toggleClass("k-focus"),P.renderingExtensions?p(P.renderingExtensions):o.getDocumentFormats().then(p)});function l(){try{n=$(t).kendoMenu().data("kendoMenu")}catch(M){throw console.error("Instantiation of Kendo Menu as Main Menu threw an exception",M),M}n.bind("activate",w),n.bind("deactivate",T),n.element.off("keydown",U),n.element.on("keydown",U),r.enableAccessibility&&d(),G()}function d(){var M=$.find('[data-role="telerik_ReportViewer_MainMenu"]');L(M,function(){var P=$(this),K=P.find("li"),Z=0,R=P.attr("tabIndex");R&&(Z=Fe(R),(!Z||isNaN(Z))&&(Z=0)),s(K,Z);var j=K.find('input[data-role="telerik_ReportViewer_PageNumberInput"]');j.length>0&&j.attr("tabindex",Z)})}function s(M,P){L(M,function(){var K=$(this);K.attr("tabindex",P),K.focus(function(){K.addClass("k-focus")}),K.blur(function(){K.removeClass("k-focus")});var Z=K.children("a");if(Z.length>0){var R=$(Z);R.attr("tabindex",-1),K.attr("title",R.attr("title"))}K.off("keydown"),K.on("keydown",function(j){j.which==kendo.keys.ENTER&&(h(K),kr=K)})})}function p(M){L($(t).find("ul[data-command-list=export-format-list]"),function(){var P=$(this),K=P.parents("li"),Z=u?K.attr("tabindex"):-1;Z||(Z=1),P.empty(),L(M,function(){var R=this,j=u?re('aria-label="{localizedName}" ',R):" ",J="<li "+j+re('tabindex="'+Z+'"><a tabindex="-1" href="#" data-command="telerik_ReportViewer_export" data-command-parameter="{name}"><span>{localizedName}</span></a></li>',R);n.append(J,K)}),u&&g(K.find("li"))})}function g(M){L(M,function(){var P=$(this);P.off("keydown"),P.on("keydown",function(K){switch(K.which){case kendo.keys.ENTER:h(P);break;case kendo.keys.UP:var Z=P.prev();Z.length>0?Z.focus():P.parents("li").focus();break;case kendo.keys.DOWN:var R=P.next();R.length>0?R.focus():P.parent().children("li").first().focus();break}})})}function h(M){if(N(M))b();else if(M&&M.length>0){var P=M.children("a");P.length>0&&P.click()}}function b(){var M="#trv-main-menu-export-command",P=$("[data-role='telerik_ReportViewer_MainMenu']").data("kendoMenu");P.open(M)}function w(M){var P=$(M.item);S(P)}function T(M){Bt=void 0}function S(M){kr&&kr.is(M)&&window.setTimeout(function(){var P=M.find("li");P.length>0&&P[0].focus()},100)}function U(M){switch(M.which){case kendo.keys.ENTER:if(!u){var P=F();P.length>0&&(N(P)&&Bt&&(P=Bt),h(P))}break;case kendo.keys.RIGHT:u?q():_();break;case kendo.keys.LEFT:u?k():I();break;case kendo.keys.DOWN:case kendo.keys.UP:u||(Bt=m())}}function F(){var M,P=document.activeElement;if(P&&P.localName=="li")for(var K=$(i).filter("li.k-item"),Z=0;Z<K.length;Z++){var R=K[Z];if(P===R){M=$(R);break}}else P&&P.localName=="input"?M=$(P).closest("li.k-item"):(M=n.element.children("li.k-item.k-focus"),M.length===0&&(M=n.element.children("li.k-item").first()));return M}function q(){var M=F();if(!(!M||!M.length>0)){var P=M.next();P.css("display")=="none"&&(P=P.next()),!P.length>0&&(P=$(i).filter("li.k-item").first()),P.focus()}}var W;function _(){var M=n.element.children("li.k-item"),P=M.filter(".k-focus");if(kendo.version>="2017.3.913"){W=P;return}if(P.hasClass("k-disabled"))if(!W||P.is(W)){var K=P.next();!K.length>0&&(K=M.first()),P.toggleClass("k-focus"),K.toggleClass("k-focus"),W=K,n._oldHoverItem=K}else W=P;else n._oldHoverItem=P,W=P}function k(){var M=F();if(!(!M||!M.length>0)){var P=M.prev();P.css("display")=="none"&&(P=P.prev()),!P.length>0&&(P=$(i).filter("li.k-item").last()),P.focus()}}function I(){var M=n.element.children("li.k-item.k-focus");W=M}function m(){var M=n.element.find('li.k-item.k-focus [data-command="telerik_ReportViewer_export"]');if(M.length===1)return M.parent("li")}function N(M){if(M.length!==0){var P=M.attr("id");return P=="trv-main-menu-export-command"||P=="trv-side-menu-export-command"}}function G(){var M=Y();M&&L(M,function(){var P=$(this),K=P.children("li.k-item");P.attr("aria-label",A[P.attr("aria-label")]),L(K,function(){var Z=$(this);if(Z.attr("aria-label",A[Z.attr("aria-label")]),Z.hasClass("trv-report-pager"))Z.attr("title",A[Z.attr("title")]);else{var R=Z.find("a");R&&R.attr("title",A[R.attr("title")])}})})}function Y(){return je("ul[data-role=telerik_ReportViewer_MainMenu]")}}var Lr="telerik_ReportViewer_MainMenu";$.fn[Lr]=function(t,e){return L(this,function(){$.data(this,Lr)||$.data(this,Lr,new Or(this,t,e))})};var Yn={};function Vr(t,e,a){e=$.extend({},Yn,e);var r=e.controller,n=!1,i=!1,o,u,l,d,s,p,g,h,b,w,T,S,U,F,q,W,_=[],k,I,m,N,G,Y=$("[data-selector='"+a.viewerSelector+"']").find(".trv-report-viewer"),M="",P={shadedClassName:"trv-search-dialog-shaded-result",highlightedClassName:"trv-search-dialog-highlighted-result",current:null,elements:[]};if(!r)throw"No controller (telerikReporting.ReportViewerController) has been specified.";r.pageReady(_e).scrollPageReady(_e).beginLoadReport(K).viewModeChanged(K),r.setSendEmailDialogVisible(function(c,v){v.visible&&i&&R(!i)}).getSearchDialogState(function(c,v){v.visible=i}).setSearchDialogVisible(function(c,v){Z(v.visible)});function K(){I||(R(!1),m=!1)}function Z(c){if(i=c,c){var v=a.searchMetadataOnDemand;if(v&&!m){I=!0,r.reportLoadComplete(function(){I&&(R(!0),I=!1)}),r.refreshReport(!0);return}}R(c)}function R(c){i=c,c?(m=!0,j(),S.open(),T.value(""),me(null),De(!1,null)):(te(),S&&S.options.visible&&S.close())}function j(){if(!n){o=$(t),u=o.find(".trv-search-dialog-input-box"),b=o.find(".trv-search-dialog-results-label"),w=o.find(".trv-search-dialog-results-area"),Ge(),Ve(o);try{l=o.find(".trv-search-dialog-search-options").kendoMenu(),s=o.find(".trv-search-dialog-stopsearch-placeholder").kendoMenu(),g=o.find(".trv-search-dialog-navigational-buttons").kendoMenu()}catch(c){throw console.error("Instantiation of Kendo Menu for Search Dialog threw an exception",c),c}d=l.data("kendoMenu"),p=s.data("kendoMenu"),h=g.data("kendoMenu"),d.element.on("keydown",ue),p.element.on("keydown",ue),h.element.on("keydown",ue),J(".trv-search-dialog-search-options");try{T=u.kendoComboBox({dataTextField:"value",dataValueField:"value",dataSource:_,contentElement:"",change:ee,ignoreCase:!1,filtering:C,filter:"startswith",delay:1e3,open:function(c){k&&c.preventDefault()},select:de}).data("kendoComboBox")}catch(c){throw console.error("Instantiation of Kendo ComboBox as search input threw an exception",c),c}try{S=Y.find(".trv-search-window").kendoWindow({title:A.searchDialogTitle,height:390,width:310,minWidth:310,minHeight:390,maxHeight:700,scrollable:!1,close:function(){ge(),M=""},open:function(){ce()},deactivate:function(){r.setSearchDialogVisible({visible:!1})},activate:function(){T.input.focus()}}).data("kendoWindow")}catch(c){throw console.error("Instantiation of Kendo Window for Search dialog threw an exception",c),c}S.wrapper.addClass("trv-search"),oe(),n=!0}}function J(c){for(var v=$(c).find(".k-menu-item"),y=0;y<v.length;y++)$(v[y]).removeClass("k-item")}function ue(c){var v=$(c.target).find(".k-focus");if(c.keyCode===13&&v&&v.length>0){var y=v.children("a");y.length>0&&y.click()}}$(window).resize(function(){S&&S.options.visible&&(ge(),ce())});function ge(){var c=S.element.parent(".k-window");G=c.offset()}function ce(){var c=$(window).innerWidth(),v=$(window).innerHeight(),y=S.wrapper,V=y.outerWidth(!0),Q=y.outerHeight(!0),ne=10;if(G){var ye=G.left,qe=G.top,Je=ye+V,Ze=qe+Q;Je>c-ne&&(ye=Math.max(ne,c-V-ne),y.css({left:ye}),S.setOptions({position:{left:ye}})),Ze>v-ne&&(qe=Math.max(ne,v-Q-ne),y.css({top:qe}),S.setOptions({position:{top:qe}}))}else{var Te=Y[0].getBoundingClientRect();y.css({top:Te.top+ne,left:Te.right-V-ne}),S.setOptions({position:{top:Te.top+ne,left:Te.right-V-ne}})}}function de(c){if(window.event||window.event.type){var v=window.event;v.type==="keydown"&&(c.preventDefault(),v.keyCode===40?Ee(1):v.keyCode===38&&Ee(-1))}}var Ce={matchCase:"searchDialog_MatchCase",matchWholeWord:"searchDialog_MatchWholeWord",useRegex:"searchDialog_UseRegex"};function oe(){F={searchDialog_MatchCase:new E(function(){le(this)}),searchDialog_MatchWholeWord:new E(function(){le(this)}),searchDialog_UseRegex:new E(function(){le(this)})},it.bind(l,{controller:r,commands:F},a),U=new E(function(){Oe()}),it.bind(s,{controller:r,commands:{searchDialog_StopSearch:U}},a),q={searchDialog_NavigateUp:new E(function(){Ee(-1)}),searchDialog_NavigateDown:new E(function(){Ee(1)})},it.bind(g,{controller:r,commands:q},a)}function Ge(){try{w.kendoListView({selectable:!0,navigatable:!0,dataSource:{},contentElement:"",template:"<div class='trv-search-dialog-results-row'><span>#: description #</span> <span class='trv-search-dialog-results-pageSpan'>"+A.searchDialogPageText+" #:page#</span></div>",change:function(){var c=this.select().index(),v=this.dataSource.view(),y=v[c];D(y),O(c,v.length)}})}catch(c){throw console.error("Instantiation of Kendo ListView as search result area threw an exception",c),c}}function Oe(){$e(!1)}function le(c){c.checked(!c.checked()),ie()}function $e(c){U.enabled(c)}function _e(c,v){i&&Ke(W)}function C(c){c.preventDefault(),c.filter&&c.filter.value!==M&&(M=c.filter.value,fe(M))}function ee(c){var v=c.sender.value();v&&M!==v&&(M=v,fe(M))}function ie(){T&&fe(T.value())}function fe(c){Pe(),ke(c),r.getSearchResults({searchToken:c,matchCase:F.searchDialog_MatchCase.checked(),matchWholeWord:F.searchDialog_MatchWholeWord.checked(),useRegex:F.searchDialog_UseRegex.checked()}).then(function(v){me(v,null)}).catch(function(v){v&&me(null,v)})}function Pe(){b.text(A.searchDialogSearchInProgress),te(),W=null,$e(!0),De(!1,null)}function me(c,v){$e(!1),v&&De(!0,v),Re(c),W=c,c&&c.length>0?(Ke(c),Xe()):O(-1,0)}function ke(c){if(!(!c||c==="")){var v=_.filter(function(y){return y.value===c});v&&v.length>0||(_.unshift({value:c}),_.length>10&&_.pop(),k=!0,T.dataSource.data(_),T.select(function(y){return y.value===c}),k=!1)}}function Re(c){var v=w.data("kendoListView");c||(c=[]),v.dataSource.data(c)}function Ke(c){if(!(!c||c.length===0)){var v=o.parent(),y=v.find(".trv-page-container"),V=y.find("[data-search-id]");L(c,function(){var Q=V.filter("[data-search-id="+this.id+"]");Q&&(Q.addClass(P.shadedClassName),P.elements.push(Q))}),Be(N),N=null}}function Be(c){if(c){var v=c.id,y=$(P.elements.filter(function(Q){return Q.attr("data-search-id")===v})).first();if(y&&(P.current=y[0],P.current)){var V=$("[data-search-id='"+v+"']");V.removeClass(P.shadedClassName),V.addClass(P.highlightedClassName)}}}function Xe(){var c=w.data("kendoListView"),v=c.element.children().first();c.select(v),c.trigger("change")}function D(c){c&&(P.current&&(P.current.removeClass(P.highlightedClassName),P.current.addClass(P.shadedClassName)),c.page===r.getCurrentPageNumber()?Be(c):r.getPageMode()!==Me.CONTINUOUS_SCROLL?te():Be(c),N=c,r.navigateToPage(c.page,{type:"search",id:c.id}))}function O(c,v){var y=v===0?A.searchDialogNoResultsLabel:re(A.searchDialogResultsFormatLabel,[c+1,v]);b.text(y);var V=c>0,Q=c<v-1;q.searchDialog_NavigateUp.enabled(V),q.searchDialog_NavigateDown.enabled(Q)}function te(){P.elements&&P.elements.length>0&&L(P.elements,function(){this.removeClass(P.shadedClassName)}),P.current&&P.current.removeClass(P.highlightedClassName),P.elements=[],P.current=null}function Ee(c){var v=w.data("kendoListView"),y=v.select();if(!y)y=v.element.children().first(),v.select(y),v.trigger("change");else{var V=v.select().trigger("change").index(),Q=v.dataSource.view(),ne=Math.min(Q.length-1,Math.max(0,V+c));if(ne!==V){var Te=Q[ne],ye=v.element.find('[data-uid="'+Te.uid+'"]');ye&&(v.select(ye),v.trigger("change"),Ie(ye[0],v.element[0]))}}}function Ie(c,v){if(c.offsetTop-c.clientHeight<v.scrollTop)c.scrollIntoView();else{var y=c.offsetTop+c.offsetHeight,V=v.scrollTop+v.offsetHeight;y>V&&(v.scrollTop=y-v.offsetHeight)}}function De(c,v){var y=l.find("i[data-role='telerik_ReportViewer_SearchDialog_Error']");if(!y||y.length===0){console.log(v);return}var V=l.data("kendoMenu").element.find("li").last();c?(y[0].title=v,V.show()):V.hide()}function Ve(c){if(c){var v=c.find(".trv-search-dialog-caption-label"),y=c.find(".trv-search-dialog-search-options"),V=c.find("a[data-command='telerik_ReportViewer_searchDialog_StopSearch']"),Q=c.find("a[data-command='telerik_ReportViewer_searchDialog_MatchCase']"),ne=c.find("a[data-command='telerik_ReportViewer_searchDialog_MatchWholeWord']"),Te=c.find("a[data-command='telerik_ReportViewer_searchDialog_UseRegex']"),ye=c.find("a[data-command='telerik_ReportViewer_searchDialog_NavigateUp']"),qe=c.find("a[data-command='telerik_ReportViewer_searchDialog_NavigateDown']");H(c,"aria-label"),H(y,"aria-label"),dt(v),Ae(V),Ae(Q),Ae(ne),Ae(Te),Ae(ye),Ae(qe)}}function Ae(c){H(c,"title"),H(c,"aria-label")}function dt(c){c&&c.text(A[c.text()])}function H(c,v){c&&c.attr(v,A[c.attr(v)])}function E(c){var v=!0,y=!1,V={enabled:function(Q){if(arguments.length===0)return v;var ne=!!Q;return v=ne,$(this).trigger("enabledChanged"),V},checked:function(Q){if(arguments.length===0)return y;var ne=!!Q;return y=ne,$(this).trigger("checkedChanged"),V},exec:c};return V}}var $r="telerik_ReportViewer_SearchDialog";$.fn[$r]=function(t,e){return L(this,function(){$.data(this,$r)||$.data(this,$r,new Vr(this,t,e))})};var Xn={};function Ur(t,e,a){e=$.extend({},Xn,e);var r=e.controller,n=!1,i=!1,o,u,l=a.viewerSelector,d,s,p,g,h,b,w,T,S,U,F,q=$("[data-selector='"+l+"']").find(".trv-report-viewer");if(!r)throw"No controller (telerikReporting.ReportViewerController) has been specified.";if(!a.sendEmail||!a.sendEmail.enabled){var W=$("[data-selector='"+l+"']").find("a[data-command='telerik_ReportViewer_toggleSendEmailDialog']").closest(".k-item ");W.hide();return}r.beginLoadReport(_).viewModeChanged(_),r.getSendEmailDialogState(function(C,ee){ee.visible=i}).setSendEmailDialogVisible(function(C,ee){k(ee.visible)}).setSearchDialogVisible(function(C,ee){ee.visible&&i&&k(!i)}),r.getDocumentFormats().then(function(C){S=C});function _(){k(!1)}function k(C){i=C,C?(m(),J(a.sendEmail),u.open()):u&&u.options.visible&&u.close()}function I(){return T?T.value():bodyText.val()}function m(){if(!n){o=$(t),d=o.find("[name='from']"),s=o.find("[name='to']"),p=o.find("[name='cc']"),g=o.find("[name='subject']"),b=o.find("[name='format']"),w=o.find("textarea"),N(),K(),Oe(o);try{u=q.find(".trv-send-email-window").kendoWindow({title:A.sendEmailDialogTitle,minWidth:350,minHeight:350,maxHeight:900,modal:!0,close:function(){G(),Ge()},open:function(){Y(),M()},deactivate:function(){r.setSendEmailDialogVisible({visible:!1})},activate:function(){u.wrapper.find(".trv-send-email-fields input[type='email']:visible").first().focus(),setTimeout(function(){R()},250)}}).data("kendoWindow")}catch(C){throw console.error("Instantiation of Kendo Window for Send Email dialog threw an exception",C),C}u.wrapper.addClass("trv-send-email");try{h=b.kendoComboBox({dataTextField:"localizedName",dataValueField:"name",dataSource:S||[],filter:"startswith",dataBound:function(){this.select(0),this.trigger("change")}}).data("kendoComboBox")}catch(C){throw console.error("Instantiation of Kendo ComboBox as document format selector threw an exception",C),C}o.on("keydown",'[name="format_input"]',function(C){var ee=9;C.keyCode===ee&&T&&setTimeout(function(){T.focus()})});try{T=w.kendoEditor({tools:["bold","italic","underline","strikethrough","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","createLink","unlink","cleanFormatting","formatting","fontName","fontSize","foreColor","backColor","subscript","superscript"]}).data("kendoEditor")}catch(C){throw console.error("Instantiation of Kendo Editor for Email body editor threw an exception",C),C}J(a.sendEmail),n=!0}}$(window).resize(function(){u&&u.options.visible&&(G(),Y(),M())});function N(){o.find(".trv-send-email-field input").each(function(){var C=$(this),ee=C.attr("name");C.attr("id",l+"-"+ee)}),o.find(".trv-send-email-label label").each(function(){var C=$(this),ee=C.attr("for");C.attr("for",l+"-"+ee)})}function G(){var C=u.element.parent(".k-window");F=C.offset()}function Y(){var C=u.element.parent(".k-window"),ee=$(window).width(),ie=350;ee>800&&(ie=720),C.css({width:ie}),u.refresh({width:ie})}function M(){if(!F)u.center();else{var C=10,ee=$(window).innerWidth(),ie=$(window).innerHeight(),fe=u.wrapper,Pe=fe.outerWidth(!0),me=fe.outerHeight(!0),ke=F.left,Re=F.top,Ke=ke+Pe,Be=Re+me;Ke>ee-C&&(ke=Math.max(C,ee-Pe-C),fe.css({left:ke}),u.setOptions({position:{left:ke}})),Be>ie-C&&(Re=Math.max(C,ie-me-C),fe.css({top:Re}),u.setOptions({position:{top:Re}}))}}var P={Send:"sendEmail_Send",Cancel:"sendEmail_Cancel"};function K(){U={sendEmail_Cancel:new _e(function(){oe()}),sendEmail_Send:new _e(function(C){Z()})},it.bind(o.find(".trv-send-email-actions"),{controller:r,commands:U},a)}function Z(C,ee){var ie={from:d.val(),to:s.val(),cc:p.val(),subject:g.val(),format:h.value(),body:I(),deviceInfo:{}};j()&&(r.sendReport(ie),oe())}function R(){d.off("blur").on("blur",function(C){ue($(this))||de($(this),!1)}),s.off("blur").on("blur",function(C){ue($(this))||de($(this),!0)}),p.off("blur").on("blur",function(C){$(this).val().length?de($(this),!0):ce($(this))})}function j(){var C=ue(d)||!de(d,!1),ee=ue(s)||!de(s,!0),ie=p.val().length&&!de(p,!0),fe=h.value().length;return fe||ge(b,"data-required-msg"),!(C||ee||ie||!fe)}function J(C){d.val(C&&C.from||""),s.val(C&&C.to||""),p.val(C&&C.cc||""),g.val(C&&C.subject||""),C&&C.format?h.value(C.format):h.select(0),h.trigger("change"),T.value(C&&C.body||"")}function ue(C){return C.val().length?(ce(C),!1):(ge(C,"data-required-msg"),!0)}function ge(C,ee){var ie=A[C.attr(ee)];$('[data-for="'+C.attr("name")+'"]').addClass("-visible").text(ie)}function ce(C){$('[data-for="'+C.attr("name")+'"]').removeClass("-visible")}function de(C,ee){var ie=C.val();if(ee){for(var fe=ie.split(/[\s,;]+/),Pe=0;Pe<fe.length;Pe++)if(!Ce(fe[Pe].trim(),C))return!1;return!0}else return Ce(ie,C)}function Ce(C,ee){var ie=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;return C.indexOf(",")>-1||C.indexOf(";")>-1?(ge(ee,"data-single-email-msg"),!1):ie.test(C)?!0:(ge(ee,"data-email-msg"),!1)}function oe(){u.close()}function Ge(){$(".k-invalid-msg").removeClass("-visible")}function Oe(C){if(C){var ee=C.find(".trv-replace-string"),ie=C.find("[aria-label]"),fe=C.find("[title]");ee.length&&$.each(ee,function(Pe,me){le($(me))}),ie.length&&$.each(ie,function(Pe,me){$e($(me),"aria-label")}),fe.length&&$.each(fe,function(Pe,me){$e($(me),"title")})}}function le(C){C&&C.text(A[C.text()])}function $e(C,ee){C&&C.attr(ee,A[C.attr(ee)])}function _e(C){var ee=!0,ie=!1,fe={enabled:function(Pe){if(arguments.length===0)return ee;var me=!!Pe;return ee=me,$(this).trigger("enabledChanged"),fe},checked:function(Pe){if(arguments.length===0)return ie;var me=!!Pe;return ie=me,$(this).trigger("checkedChanged"),fe},exec:C};return fe}}var Fr="telerik_ReportViewer_SendEmail";$.fn[Fr]=function(t,e){return L(this,function(){$.data(this,Fr)||$.data(this,Fr,new Ur(this,t,e))})};function Br(t,e,a){var r=$.extend({},e,a),n=$(t).data("kendoMenu"),i=r.enableAccessibility,o,u=3,l,d,s=!1,p=r.controller;if(!p)throw"No controller (telerikReporting.ReportViewerController) has been specified.";n||g(t);function g(m){var N=$(m);try{l=N.children("ul").kendoPanelBar().data("kendoPanelBar")}catch(G){throw console.error("Instantiation of Kendo PanelBar as side menu threw an exception",G),G}l.bind("expand",b),l.element.off("keydown",q),l.element.on("keydown",q),U(N),S(N),N.click(function(G){G.target==m&&p.setSideMenuVisible({visible:!s})}),k()}p.setSideMenuVisible(function(m,N){h(),i&&l.element.focus(),s=N.visible,s||l.collapse($("#trv-side-menu-export-command"))}).getSideMenuVisible(function(m,N){N.visible=s});function h(){var m=l.element.parent(),N=m.position().left<0||!m.is(":visible");N?m.show():window.setTimeout(function(){m.hide()},500)}function b(m){var N=$(m.item);l.unbind("expand",b),l.append({text:A.loadingFormats,spriteCssClass:"k-icon k-loading"},N),r.controller.getDocumentFormats().then(w).then(function(){l.expand(N)}).then(function(){l.bind("expand",b)})}function w(m){L($(t).find("ul[data-command-list=export-format-list]"),function(){var N=$(this),G=N.parents("li"),Y=G.attr("tabindex");Y||(Y=u),N.empty(),L(m,function(M){var P=this,K=i?re('aria-label="{localizedName}" ',P):" ",Z="<li "+K+re('tabindex="'+Y+'"><a tabindex="-1" href="#" data-command="telerik_ReportViewer_export" data-command-parameter="{name}"><span>{localizedName}</span></a></li>',P);l.append(Z,G)}),F(G.find("li"),Y),S(G)})}function T(m){o&&o.is(m)&&window.setTimeout(function(){var N=m.find("li");N.length>0&&N[0].focus()},100)}function S(m){L(m.find("li"),function(){var N=$(this).children("ul").length===0;N&&$(this).children("a").click(function(){p.setSideMenuVisible({visible:!s})})})}function U(m){if(m){var N=m.children("ul"),G=m.attr("tabindex"),Y=G||u;F(N,Y)}}function F(m,N){m.attr("tabindex",N);var G=m.find("li");L(G,function(){var Y=$(this);Y.attr("tabindex",N);var M=Y.children("a");if(M.length>0){var P=$(M);P.attr("tabindex",-1)}Y.focus(function(){var K=Y.children("a");K.length>0&&K.addClass("k-focus")}),Y.blur(function(){var K=Y.children("a");K.length>0&&K.removeClass("k-focus")}),Y.off("keydown",W),Y.on("keydown",W)})}function q(m){if(m.which==kendo.keys.ENTER){var N,G=!1,Y=document.activeElement;if(Y&&Y.localName=="li")for(var M=l.element.find("li.k-item"),P=0;P<M.length;P++){var K=M[P];if(Y===K){N=$(K),G=!0;break}}else N=l.select();if(!N||!N.length>0)return;_(N,G)}}function W(m){m.which==kendo.keys.ENTER&&_($(m.target),!1)}function _(m,N){if(!(!m.length>0)){o=m;var G=m.children("ul").length===0;if(!G)N&&(m.hasClass("k-active")?l.collapse(m):l.expand(m));else{var Y=m.find("a");Y.length>0&&Y[0].click()}}}function k(){var m=I();m&&L(m,function(){var N=$(this),G=N.children("li.k-panelbar-header");N.attr("aria-label",A[N.attr("aria-label")]),L(G,function(){var Y=$(this),M=Y.find("a");if(Y.attr("aria-label",A[Y.attr("aria-label")]),M){var P=M.find("span:not(.k-icon)");M.attr("title",A[M.attr("title")]),P&&P.text(A[P.text()])}})})}function I(){return je("div[data-role=telerik_ReportViewer_SideMenu] > ul")}}var Gr="telerik_ReportViewer_SideMenu";$.fn[Gr]=function(t,e){return L(this,function(){$.data(this,Gr)||$.data(this,Gr,new Br(this,t,e))})};var un=rt.viewerInstances,qn=function(){var t={};return{load:function(e,a,r){var n=t[e];return n||(t[e]=n=r.get(e).then(function(i){var o={},u=[],l=tt(a,"\\/")+"/";i=It(i,"{service}/",l),i=It(i,"{service}",l);var d=$("<div></div>").html(i);return L(d.find("template"),function(s,p){var g=$(p);o[g.attr("id")]=Nt(g.html(),`
|
12
|
+
`)}),L(d.find("link"),function(s,p){u.push(Nt(p.outerHTML,`
|
13
|
+
`))}),u=or(u),{templates:o,styleSheets:u}})),n}}}();function Jn(){var t={};return{getItem:function(e){return t[e]},setItem:function(e,a){t[e]=a},removeItem:function(e){delete t[e]}}}function Zn(t,e,a){var r={};function n(p){var g=e.getItem(u(p));return g??a[p]}function i(p,g){var h="state",b=n(h),w=typeof b=="string"?JSON.parse(b):{};if(g.length){if(w){var T=g[0];T===void 0?delete w[p]:w[p]=T}return o(h,JSON.stringify(w)),r}else return w[p]}function o(p,g){var h=u(p);if(e.setItem(h,g),e instanceof window.Storage){var b=e.getItem(h),w=document.createEvent("StorageEvent");w.initStorageEvent("telerikReportingStorage",!1,!1,h,b,g,null,e),window.dispatchEvent(w)}}function u(p){return t+"_"+p}function l(p,g){return g.length?(o(p,g[0]),r):n(p)}function d(p,g){return g.length?(o(p,g[0]),r):parseFloat(n(p))}function s(p,g){if(g.length)return o(p,JSON.stringify(g[0])),r;var h=n(p);return typeof h=="string"?JSON.parse(h):null}return se(r,{viewMode:function(){return i("viewMode",arguments)},pageMode:function(){return i("pageMode",arguments)},printMode:function(){return i("printMode",arguments)},scale:function(){return i("scale",arguments)},scaleMode:function(){return i("scaleMode",arguments)},documentMapVisible:function(){return i("documentMapVisible",arguments)},parametersAreaVisible:function(){return i("parametersAreaVisible",arguments)},history:function(){return s("history",arguments)},clientId:function(){return l("clientId",arguments)},reportSource:function(){return i("reportSource",arguments)},pageNumber:function(){return i("pageNumber",arguments)},enableAccessibility:function(){return l("enableAccessibility",arguments)},accessibilityKeyMap:function(){return i("accessibilityKeyMap",arguments)},searchMetadataOnDemand:function(){return l("searchMetadataOnDemand",arguments)},keepClientAlive:function(){return l("keepClientAlive",arguments)}}),r}function Qn(t,e){return{id:null,serviceUrl:null,templateUrl:tt(t,"\\/")+"/resources/templates/telerikReportViewerTemplate-"+e+".html/",reportSource:null,reportServer:null,authenticationToken:null,sendEmail:null,scale:1,scaleMode:he.FIT_PAGE,viewMode:we.INTERACTIVE,pageMode:Me.CONTINUOUS_SCROLL,parametersAreaPosition:We.RIGHT,documentMapAreaPosition:gt.LEFT,parameters:{editors:{multiSelect:ot.LIST_VIEW,singleSelect:ot.LIST_VIEW}},persistSession:!1,parameterEditors:[],disabledButtonClass:null,checkedButtonClass:null,parametersAreaVisible:!0,documentMapVisible:!0,enableAccessibility:!1,searchMetadataOnDemand:!1,initialPageAreaImageUrl:null,keepClientAlive:!0}}function cn(t,e){var a=e.serviceUrl,r="";e.reportServer&&(r=tt(e.reportServer.url,"\\/"),a=r+"/api/reports");var n=$(t),i={},o=e.id||"#"+n.attr("id"),u,l={},d={},s={},p={},g={},h={},b={},w={},T="";if(e.viewerSelector="reportViewer-"+Xt(),n.attr("data-selector",e.viewerSelector),!U(e))return;var S="18.0.24.116";e=se({},Qn(a,S),e),l=new Zn(o,e.persistSession?window.sessionStorage:new Jn,{scale:e.scale,scaleMode:e.scaleMode,printMode:e.printMode?e.printMode:e.directPrint,enableAccessibility:e.enableAccessibility,searchMetadataOnDemand:e.searchMetadataOnDemand,sendEmail:e.sendEmail,parametersAreaPosition:e.parametersAreaPosition,documentMapAreaPosition:e.documentMapAreaPosition,keepClientAlive:e.keepClientAlive}),e.reportServer?(T=tt(e.reportServer.url,"\\/"),w.serviceUrl=T+"/api/reports",w.loginInfo={url:T+"/Token",username:e.reportServer.username,password:e.reportServer.password}):w.serviceUrl=e.serviceUrl,d=new wr(w),s=e.controller,s?s.updateSettings(l):s=new br({serviceClient:d,settings:l}),g=new Pr({controller:s,settings:l}),h=new hr({controller:s,history:g}),new Mr({controller:s,history:g,commands:h}),b={stringResources:A,refreshReport:function(R){return arguments.length===0&&(R=!0),s.refreshReport(R),b},reportSource:function(R){return R||R===null?(s.setReportSource(R),s.refreshReport(!1),b):s.getReportSource()},clearReportSource:function(){return s.clearReportSource(),b},viewMode:function(R){return R?(s.setViewMode(R),b):s.getViewMode()},pageMode:function(R){return R?(s.setPageMode(R),b):s.getPageMode()},printMode:function(R){return R?(s.setPrintMode(R),b):s.getPrintMode()},scale:function(R){return R?(s.scale(R),b):(R={},s.getScale(R),R)},currentPage:function(){return s.getCurrentPageNumber()},pageCount:function(){return s.getPageCount()},parametersAreaVisible:function(R){s.setParametersAreaVisible({visible:R})},getReportParameters:function(){return s.getReportParameters()},authenticationToken:function(R){return R&&s.setAuthenticationToken(R),b},bind:function(R,j){F(R,j,!0)},unbind:function(R,j){F(R,j,!1)},accessibilityKeyMap:function(R){if(u)return R?(u.setKeyMap(R),b):u.getKeyMap()},commands:h,dispose:function(){s.dispose(),p&&p.dispose()}};function U(R){if(!R)return n.text("The report viewer configuration options are not initialized."),!1;if(R.reportServer){if(!R.reportServer.url)return n.text("The report server URL is not specified."),!1}else if(!R.serviceUrl)return n.text("The serviceUrl is not specified."),!1;return!0}function F(R,j,J){typeof j=="function"?J?$(b).on(R,{sender:b},j):$(b).off(R,j):!j&&!J&&$(b).off(R)}function q(){var R={EXPORT_BEGIN:s.Events.EXPORT_STARTED,EXPORT_END:s.Events.EXPORT_DOCUMENT_READY,PRINT_BEGIN:s.Events.PRINT_STARTED,PRINT_END:s.Events.PRINT_DOCUMENT_READY,RENDERING_BEGIN:s.Events.BEFORE_LOAD_REPORT,RENDERING_END:s.Events.REPORT_LOAD_COMPLETE,PAGE_READY:s.Events.PAGE_READY,ERROR:s.Events.ERROR,UPDATE_UI:s.Events.UPDATE_UI,INTERACTIVE_ACTION_EXECUTING:s.Events.INTERACTIVE_ACTION_EXECUTING,INTERACTIVE_ACTION_ENTER:s.Events.INTERACTIVE_ACTION_ENTER,INTERACTIVE_ACTION_LEAVE:s.Events.INTERACTIVE_ACTION_LEAVE,VIEWER_TOOLTIP_OPENING:s.Events.TOOLTIP_OPENING,SEND_EMAIL_BEGIN:s.Events.SEND_EMAIL_STARTED,SEND_EMAIL_END:s.Events.SEND_EMAIL_READY},j=$(b);for(var J in R){var ue=R[J];s.on(ue,function(ge,ce){return function(de,Ce){ge.trigger({type:ce,data:de.data},Ce)}}(j,J))}}function W(){F(Ne.EXPORT_BEGIN,e.exportBegin,!0),F(Ne.EXPORT_END,e.exportEnd,!0),F(Ne.PRINT_BEGIN,e.printBegin,!0),F(Ne.PRINT_END,e.printEnd,!0),F(Ne.RENDERING_BEGIN,e.renderingBegin,!0),F(Ne.RENDERING_END,e.renderingEnd,!0),F(Ne.PAGE_READY,e.pageReady,!0),F(Ne.ERROR,e.error,!0),F(Ne.UPDATE_UI,e.updateUi,!0),F(Ne.INTERACTIVE_ACTION_EXECUTING,e.interactiveActionExecuting,!0),F(Ne.INTERACTIVE_ACTION_ENTER,e.interactiveActionEnter,!0),F(Ne.INTERACTIVE_ACTION_LEAVE,e.interactiveActionLeave,!0),F(Ne.VIEWER_TOOLTIP_OPENING,e.viewerToolTipOpening,!0),F(Ne.SEND_EMAIL_BEGIN,e.sendEmailBegin,!0),F(Ne.SEND_EMAIL_END,e.sendEmailEnd,!0)}function _(){n.html(i["trv-report-viewer"]),it.bind(n,{controller:s,commands:h,templates:i},e),p=new Rr(t,s),p.attach(),k(),q(),W(),m(),N(e)}function k(){var R={max:"500px",min:"50px",size:"210px",collapsible:!0},j=n.find(".trv-parameters-area"),J=[{}],ue={max:"500px",min:"50px",size:"210px",collapsible:!0,collapsed:!0},ge=n.find(".trv-document-map"),ce=[{}],de="horizontal";e.documentMapAreaPosition===gt.RIGHT?(ge.insertAfter(n.find(".trv-pages-area")),ce.push(ue)):ce.unshift(ue),(e.parametersAreaPosition===We.TOP||e.parametersAreaPosition===We.BOTTOM)&&(de="vertical",j.addClass("-vertical"),R.size="130px"),e.parametersAreaPosition===We.LEFT||e.parametersAreaPosition===We.TOP?(j.insertBefore(n.find(".trv-document-map-splitter")),J.unshift(R)):J.push(R);try{var Ce=n.find(".trv-document-map-splitter").kendoSplitter({panes:ce,expand:function(le){I(le.pane,!0)},collapse:function(le){I(le.pane,!1)},resize:function(le){}}).data("kendoSplitter")}catch(le){throw console.error("Instantiation of Kendo Splitter as Document Map splitter threw an exception",le),le}try{var oe=n.find(".trv-parameters-splitter").kendoSplitter({panes:J,orientation:de,expand:function(le){I(le.pane,!0)},collapse:function(le){I(le.pane,!1)},resize:function(le){}}).data("kendoSplitter")}catch(le){throw console.error("Instantiation of Kendo Splitter as Parameters area splitter threw an exception",le),le}var Ge={id:e.viewerSelector+"-parameters-splitter",instance:oe},Oe={id:e.viewerSelector+"-document-map-splitter",instance:Ce};un.push(Ge),un.push(Oe)}function I(R,j){var J=$(R).attr("data-id");switch(J){case"trv-document-map":s.setDocumentMapVisible({visible:j});break;case"trv-parameters-area":s.setParametersAreaVisible({visible:j});break}}function m(){var R=l.viewMode(),j=l.pageMode(),J=l.printMode(),ue=l.scale(),ge=l.scaleMode(),ce=l.documentMapVisible(),de=l.parametersAreaVisible(),Ce=l.accessibilityKeyMap();s.setViewMode(R||e.viewMode),s.setPageMode(j||e.pageMode),s.setPrintMode(J||e.printMode),s.scale({scale:ue||e.scale,scaleMode:ge||e.scaleMode}),s.setDocumentMapVisible({visible:ce||e.documentMapVisible}),s.setParametersAreaVisible({visible:de||e.parametersAreaVisible}),s.printModeChanged(function(){l.printMode(s.getPrintMode())}),s.viewModeChanged(function(){l.viewMode(s.getViewMode())}),s.pageModeChanged(function(){l.pageMode(s.getPageMode())}),s.scale(function(){var oe={};s.getScale(oe),l.scale(oe.scale),l.scaleMode(oe.scaleMode)}),s.setSideMenuVisible(function(oe,Ge){window.setTimeout(function(){(Ge.visible?$.fn.addClass:$.fn.removeClass).call(n,"trv-side-menu-visible")},1)}),s.setDocumentMapVisible(function(){var oe={};s.getDocumentMapState(oe),l.documentMapVisible(oe.visible)}),s.setParametersAreaVisible(function(){var oe={};s.getParametersAreaState(oe),l.parametersAreaVisible(oe.visible)})}function N(R){if(R.enableAccessibility){u=new dr({controller:s,templates:i});var j=R.accessibilityKeyMap;j&&u.setKeyMap(j),l.contentTabIndex=G()}}function G(){var R="div.trv-pages-area";try{var j=n.find(R);if(j.length===0)throw"Selector "+R+" did not return a result.";return parseInt(j.attr("tabindex"))}catch(J){return console&&console.log(J),0}}function Y(){var R=!1;_(),s.reportLoadComplete(function(){e.documentMapVisible===!1&&s.setDocumentMapVisible({visible:!1})});var j=l.reportSource();if(j!==void 0){s.setReportSource(j);var J=l.pageNumber();J!==void 0&&s.navigateToPage(J),R=!0}else e.viewMode&&s.setViewMode(e.viewMode),e.pageMode&&s.setPageMode(e.pageMode),e.reportSource&&(s.setReportSource(e.reportSource),R=!0);typeof e.ready=="function"&&e.ready.call(b),R&&s.refreshReport(!1)}function M(R){if(!R)return Promise.resolve();var j=$("head"),J=j.find("link").map(function(ge,ce){return ce.outerHTML}).toArray(),ue=[];return L(R,function(ge,ce){J.indexOf(ce)===-1&&ue.push(new Promise(function(de,Ce){var oe=$(ce);oe.on("load",de),oe.on("onerror",function(){at("error loading stylesheet "+ce),de()}),j.append(oe)}))}),Promise.all(ue).then(s.cssLoaded)}function P(){return window.Promise}function K(R){if(window.kendo)return Promise.resolve();var j=tt(a,"\\/")+"/resources/js/telerikReportViewer.kendo-"+R+".min.js/";return ir(j).catch(function(J){at("Kendo could not be loaded automatically. Make sure 'options.serviceUrl' / 'options.reportServer.url' is correct and accessible. The error is: "+J.error)})}function Z(R){K(R).then(function(){}).then(function(){b.authenticationToken(e.authenticationToken),s.getServiceVersion().catch(function(j){var J=xt(j)?j.exceptionMessage:re(A.errorServiceUrl,[Le(a)]);return n.text(J),Promise.reject()}).then(function(j){if(j!==R)return n.text(re(A.errorServiceVersion,[j,R])),Promise.reject();qn.load(e.templateUrl,a,d).catch(function(){return n.text(re(A.errorLoadingTemplates,[Le(e.templateUrl)])),Promise.reject()}).then(function(J){return i=J.templates,M(J.styleSheets)}).then(Y)})})}return P()?Z(S):ar("https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise",Z,S),b}var Hr="telerik_ReportViewer";$.fn[Hr]=function(t){return this.selector&&!t.selector&&(t.selector=this.selector),L(this,function(){$.data(this,Hr)||$.data(this,Hr,new cn(this,t))})};var ea=[{name:"telerik_ReportViewer_DocumentMapArea",constructor:Dr},{name:"telerik_ReportViewer_MainMenu",constructor:Or},{name:"telerik_ReportViewer_PagesArea",constructor:Ut},{name:"telerik_ReportViewer_ParametersArea",constructor:xr},{name:"telerik_ReportViewer_SearchDialog",constructor:Vr},{name:"telerik_ReportViewer_SendEmail",constructor:Ur},{name:"telerik_ReportViewer_SideMenu",constructor:Br}];ea.forEach(t=>{$.fn[t.name]=function(e,a){return L(this,function(){$.data(this,t.name)||$.data(this,t.name,new t.constructor(this,e,a))})}});return Pn(ta);})();
|
14
14
|
|
15
|
-
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM
|
15
|
+
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 681f0713be83c3f84ebee34fafd10254 */
|