UNPKG

@progress/telerik-jquery-report-viewer

Version:

Progress® Telerik® Report Viewer for jQuery

1 lines 235 kB
var telerikReportViewer=function(e){"use strict";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var t,i,r={exports:{}};function n(){if(i)return t;i=1;const{entries:e,setPrototypeOf:r,isFrozen:n,getPrototypeOf:a,getOwnPropertyDescriptor:o}=Object;let{freeze:s,seal:l,create:c}=Object,{apply:h,construct:d}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e){return e}),l||(l=function(e){return e}),h||(h=function(e,t){for(var i=arguments.length,r=new Array(i>2?i-2:0),n=2;n<i;n++)r[n-2]=arguments[n];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return new e(...i)});const u=k(Array.prototype.forEach),p=k(Array.prototype.lastIndexOf),m=k(Array.prototype.pop),g=k(Array.prototype.push),f=k(Array.prototype.splice),v=Array.isArray,b=k(String.prototype.toLowerCase),P=k(String.prototype.toString),C=k(String.prototype.match),E=k(String.prototype.replace),S=k(String.prototype.indexOf),w=k(String.prototype.trim),y=k(Number.prototype.toString),T=k(Boolean.prototype.toString),A="undefined"==typeof BigInt?null:k(BigInt.prototype.toString),I="undefined"==typeof Symbol?null:k(Symbol.prototype.toString),L=k(Object.prototype.hasOwnProperty),R=k(Object.prototype.toString),_=k(RegExp.prototype.test),M=(D=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return d(D,t)});var D;function k(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return h(e,t,r)}}function N(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;if(r&&r(e,null),!v(t))return e;let a=t.length;for(;a--;){let r=t[a];if("string"==typeof r){const e=i(r);e!==r&&(n(t)||(t[a]=e),r=e)}e[r]=!0}return e}function x(e){for(let t=0;t<e.length;t++){L(e,t)||(e[t]=null)}return e}function V(t){const i=c(null);for(const[r,n]of e(t)){L(t,r)&&(v(n)?i[r]=x(n):n&&"object"==typeof n&&n.constructor===Object?i[r]=V(n):i[r]=n)}return i}function O(e,t){for(;null!==e;){const i=o(e,t);if(i){if(i.get)return k(i.get);if("function"==typeof i.value)return k(i.value)}e=a(e)}return function(){return null}}const F=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=s(["#text"]),W=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),q=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=s(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=l(/<%[\w\W]*|[\w\W]*%>/gm),X=l(/\$\{[\w\W]*/gm),J=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),Q=l(/^aria-[\-\w]+$/),ee=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),te=l(/^(?:\w+script|data):/i),ie=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),re=l(/^html$/i),ne=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var ae=Object.freeze({__proto__:null,ARIA_ATTR:Q,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:ne,DATA_ATTR:J,DOCTYPE_NAME:re,ERB_EXPR:Y,IS_ALLOWED_URI:ee,IS_SCRIPT_OR_DATA:te,MUSTACHE_EXPR:K,TMPLIT_EXPR:X});const oe=1,se=3,le=7,ce=8,he=9,de=function(){return"undefined"==typeof window?null:window};var ue=function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();const r=e=>t(e);if(r.version="3.4.2",r.removed=[],!i||!i.document||i.document.nodeType!==he||!i.Element)return r.isSupported=!1,r;let{document:n}=i;const a=n,o=a.currentScript,{DocumentFragment:l,HTMLTemplateElement:h,Node:d,Element:D,NodeFilter:k,NamedNodeMap:x=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:K,DOMParser:Y,trustedTypes:X}=i,J=D.prototype,Q=O(J,"cloneNode"),te=O(J,"remove"),ie=O(J,"nextSibling"),ne=O(J,"childNodes"),ue=O(J,"parentNode");if("function"==typeof h){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let pe,me="";const{implementation:ge,createNodeIterator:fe,createDocumentFragment:ve,getElementsByTagName:be}=n,{importNode:Pe}=a;let Ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof e&&"function"==typeof ue&&ge&&void 0!==ge.createHTMLDocument;const{MUSTACHE_EXPR:Ee,ERB_EXPR:Se,TMPLIT_EXPR:we,DATA_ATTR:ye,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:Ie,CUSTOM_ELEMENT:Le}=ae;let{IS_ALLOWED_URI:Re}=ae,_e=null;const Me=N({},[...F,...$,...B,...H,...G]);let De=null;const ke=N({},[...W,...q,...j,...Z]);let Ne=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,Ve=null;const Oe=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Fe=!0,$e=!0,Be=!1,Ue=!0,He=!1,ze=!0,Ge=!1,We=!1,qe=!1,je=!1,Ze=!1,Ke=!1,Ye=!0,Xe=!1;const Je="user-content-";let Qe=!0,et=!1,tt={},it=null;const rt=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let nt=null;const at=N({},["audio","video","img","source","image","track"]);let ot=null;const st=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),lt="http://www.w3.org/1998/Math/MathML",ct="http://www.w3.org/2000/svg",ht="http://www.w3.org/1999/xhtml";let dt=ht,ut=!1,pt=null;const mt=N({},[lt,ct,ht],P);let gt=N({},["mi","mo","mn","ms","mtext"]),ft=N({},["annotation-xml"]);const vt=N({},["title","style","font","a","script"]);let bt=null;const Pt=["application/xhtml+xml","text/html"];let Ct=null,Et=null;const St=n.createElement("form"),wt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Et&&Et===e)return;e&&"object"==typeof e||(e={}),e=V(e),bt=-1===Pt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ct="application/xhtml+xml"===bt?P:b,_e=L(e,"ALLOWED_TAGS")&&v(e.ALLOWED_TAGS)?N({},e.ALLOWED_TAGS,Ct):Me,De=L(e,"ALLOWED_ATTR")&&v(e.ALLOWED_ATTR)?N({},e.ALLOWED_ATTR,Ct):ke,pt=L(e,"ALLOWED_NAMESPACES")&&v(e.ALLOWED_NAMESPACES)?N({},e.ALLOWED_NAMESPACES,P):mt,ot=L(e,"ADD_URI_SAFE_ATTR")&&v(e.ADD_URI_SAFE_ATTR)?N(V(st),e.ADD_URI_SAFE_ATTR,Ct):st,nt=L(e,"ADD_DATA_URI_TAGS")&&v(e.ADD_DATA_URI_TAGS)?N(V(at),e.ADD_DATA_URI_TAGS,Ct):at,it=L(e,"FORBID_CONTENTS")&&v(e.FORBID_CONTENTS)?N({},e.FORBID_CONTENTS,Ct):rt,xe=L(e,"FORBID_TAGS")&&v(e.FORBID_TAGS)?N({},e.FORBID_TAGS,Ct):V({}),Ve=L(e,"FORBID_ATTR")&&v(e.FORBID_ATTR)?N({},e.FORBID_ATTR,Ct):V({}),tt=!!L(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?V(e.USE_PROFILES):e.USE_PROFILES),Fe=!1!==e.ALLOW_ARIA_ATTR,$e=!1!==e.ALLOW_DATA_ATTR,Be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,He=e.SAFE_FOR_TEMPLATES||!1,ze=!1!==e.SAFE_FOR_XML,Ge=e.WHOLE_DOCUMENT||!1,je=e.RETURN_DOM||!1,Ze=e.RETURN_DOM_FRAGMENT||!1,Ke=e.RETURN_TRUSTED_TYPE||!1,qe=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,Xe=e.SANITIZE_NAMED_PROPS||!1,Qe=!1!==e.KEEP_CONTENT,et=e.IN_PLACE||!1,Re=function(e){try{return _(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ee,dt="string"==typeof e.NAMESPACE?e.NAMESPACE:ht,gt=L(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?V(e.MATHML_TEXT_INTEGRATION_POINTS):N({},["mi","mo","mn","ms","mtext"]),ft=L(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?V(e.HTML_INTEGRATION_POINTS):N({},["annotation-xml"]);const t=L(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?V(e.CUSTOM_ELEMENT_HANDLING):c(null);if(Ne=c(null),L(t,"tagNameCheck")&&wt(t.tagNameCheck)&&(Ne.tagNameCheck=t.tagNameCheck),L(t,"attributeNameCheck")&&wt(t.attributeNameCheck)&&(Ne.attributeNameCheck=t.attributeNameCheck),L(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),He&&($e=!1),Ze&&(je=!0),tt&&(_e=N({},G),De=c(null),!0===tt.html&&(N(_e,F),N(De,W)),!0===tt.svg&&(N(_e,$),N(De,q),N(De,Z)),!0===tt.svgFilters&&(N(_e,B),N(De,q),N(De,Z)),!0===tt.mathMl&&(N(_e,H),N(De,j),N(De,Z))),Oe.tagCheck=null,Oe.attributeCheck=null,L(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Oe.tagCheck=e.ADD_TAGS:v(e.ADD_TAGS)&&(_e===Me&&(_e=V(_e)),N(_e,e.ADD_TAGS,Ct))),L(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Oe.attributeCheck=e.ADD_ATTR:v(e.ADD_ATTR)&&(De===ke&&(De=V(De)),N(De,e.ADD_ATTR,Ct))),L(e,"ADD_URI_SAFE_ATTR")&&v(e.ADD_URI_SAFE_ATTR)&&N(ot,e.ADD_URI_SAFE_ATTR,Ct),L(e,"FORBID_CONTENTS")&&v(e.FORBID_CONTENTS)&&(it===rt&&(it=V(it)),N(it,e.FORBID_CONTENTS,Ct)),L(e,"ADD_FORBID_CONTENTS")&&v(e.ADD_FORBID_CONTENTS)&&(it===rt&&(it=V(it)),N(it,e.ADD_FORBID_CONTENTS,Ct)),Qe&&(_e["#text"]=!0),Ge&&N(_e,["html","head","body"]),_e.table&&(N(_e,["tbody"]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');pe=e.TRUSTED_TYPES_POLICY,me=pe.createHTML("")}else void 0===pe&&(pe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(i=t.getAttribute(r));const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(X,o)),null!==pe&&"string"==typeof me&&(me=pe.createHTML(""));s&&s(e),Et=e},Tt=N({},[...$,...B,...U]),At=N({},[...H,...z]),It=function(e){g(r.removed,{element:e});try{ue(e).removeChild(e)}catch(t){te(e)}},Lt=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(je||Ze)try{It(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Rt=function(e){let t=null,i=null;if(qe)e="<remove></remove>"+e;else{const t=C(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===bt&&dt===ht&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=pe?pe.createHTML(e):e;if(dt===ht)try{t=(new Y).parseFromString(r,bt)}catch(e){}if(!t||!t.documentElement){t=ge.createDocument(dt,"template",null);try{t.documentElement.innerHTML=ut?me:r}catch(e){}}const a=t.body||t.documentElement;return e&&i&&a.insertBefore(n.createTextNode(i),a.childNodes[0]||null),dt===ht?be.call(t,Ge?"html":"body")[0]:Ge?t.documentElement:a},_t=function(e){return fe.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT|k.SHOW_PROCESSING_INSTRUCTION|k.SHOW_CDATA_SECTION,null)},Mt=function(e){return e instanceof K&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof x)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Dt=function(e){return"function"==typeof d&&e instanceof d};function kt(e,t,i){u(e,e=>{e.call(r,t,i,Et)})}const Nt=function(e){let t=null;if(kt(Ce.beforeSanitizeElements,e,null),Mt(e))return It(e),!0;const i=Ct(e.nodeName);if(kt(Ce.uponSanitizeElement,e,{tagName:i,allowedTags:_e}),ze&&e.hasChildNodes()&&!Dt(e.firstElementChild)&&_(/<[/\w!]/g,e.innerHTML)&&_(/<[/\w!]/g,e.textContent))return It(e),!0;if(ze&&e.namespaceURI===ht&&"style"===i&&Dt(e.firstElementChild))return It(e),!0;if(e.nodeType===le)return It(e),!0;if(ze&&e.nodeType===ce&&_(/<[/\w]/g,e.data))return It(e),!0;if(xe[i]||!(Oe.tagCheck instanceof Function&&Oe.tagCheck(i))&&!_e[i]){if(!xe[i]&&Ot(i)){if(Ne.tagNameCheck instanceof RegExp&&_(Ne.tagNameCheck,i))return!1;if(Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(i))return!1}if(Qe&&!it[i]){const t=ue(e)||e.parentNode,i=ne(e)||e.childNodes;if(i&&t){for(let r=i.length-1;r>=0;--r){const n=Q(i[r],!0);t.insertBefore(n,ie(e))}}}return It(e),!0}return e instanceof D&&!function(e){let t=ue(e);t&&t.tagName||(t={namespaceURI:dt,tagName:"template"});const i=b(e.tagName),r=b(t.tagName);return!!pt[e.namespaceURI]&&(e.namespaceURI===ct?t.namespaceURI===ht?"svg"===i:t.namespaceURI===lt?"svg"===i&&("annotation-xml"===r||gt[r]):Boolean(Tt[i]):e.namespaceURI===lt?t.namespaceURI===ht?"math"===i:t.namespaceURI===ct?"math"===i&&ft[r]:Boolean(At[i]):e.namespaceURI===ht?!(t.namespaceURI===ct&&!ft[r])&&!(t.namespaceURI===lt&&!gt[r])&&!At[i]&&(vt[i]||!Tt[i]):!("application/xhtml+xml"!==bt||!pt[e.namespaceURI]))}(e)?(It(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(He&&e.nodeType===se&&(t=e.textContent,u([Ee,Se,we],e=>{t=E(t,e," ")}),e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)),kt(Ce.afterSanitizeElements,e,null),!1):(It(e),!0)},xt=function(e,t,i){if(Ve[t])return!1;if(Ye&&("id"===t||"name"===t)&&(i in n||i in St))return!1;const r=De[t]||Oe.attributeCheck instanceof Function&&Oe.attributeCheck(t,e);if($e&&!Ve[t]&&_(ye,t));else if(Fe&&_(Te,t));else if(!r||Ve[t]){if(!(Ot(e)&&(Ne.tagNameCheck instanceof RegExp&&_(Ne.tagNameCheck,e)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(e))&&(Ne.attributeNameCheck instanceof RegExp&&_(Ne.attributeNameCheck,t)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(t,e))||"is"===t&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&_(Ne.tagNameCheck,i)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(i))))return!1}else if(ot[t]);else if(_(Re,E(i,Ie,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(i,"data:")||!nt[e]){if(Be&&!_(Ae,E(i,Ie,"")));else if(i)return!1}else;return!0},Vt=N({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ot=function(e){return!Vt[b(e)]&&_(Le,e)},Ft=function(e){kt(Ce.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Mt(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:De,forceKeepAttr:void 0};let n=t.length;for(;n--;){const a=t[n],{name:o,namespaceURI:s,value:l}=a,c=Ct(o),h=l;let d="value"===o?h:w(h);if(i.attrName=c,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,kt(Ce.uponSanitizeAttribute,e,i),d=i.attrValue,!Xe||"id"!==c&&"name"!==c||0===S(d,Je)||(Lt(o,e),d=Je+d),ze&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Lt(o,e);continue}if("attributename"===c&&C(d,"href")){Lt(o,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Lt(o,e);continue}if(!Ue&&_(/\/>/i,d)){Lt(o,e);continue}He&&u([Ee,Se,we],e=>{d=E(d,e," ")});const p=Ct(e.nodeName);if(xt(p,c,d)){if(pe&&"object"==typeof X&&"function"==typeof X.getAttributeType)if(s);else switch(X.getAttributeType(p,c)){case"TrustedHTML":d=pe.createHTML(d);break;case"TrustedScriptURL":d=pe.createScriptURL(d)}if(d!==h)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),Mt(e)?It(e):m(r.removed)}catch(t){Lt(o,e)}}else Lt(o,e)}kt(Ce.afterSanitizeAttributes,e,null)},$t=function(e){let t=null;const i=_t(e);for(kt(Ce.beforeSanitizeShadowDOM,e,null);t=i.nextNode();)kt(Ce.uponSanitizeShadowNode,t,null),Nt(t),Ft(t),t.content instanceof l&&$t(t.content);kt(Ce.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,n=null,o=null,s=null;if(ut=!e,ut&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Dt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return y(e);case"boolean":return T(e);case"bigint":return A?A(e):"0";case"symbol":return I?I(e):"Symbol()";case"undefined":default:return R(e);case"function":case"object":{if(null===e)return R(e);const t=e,i=O(t,"toString");if("function"==typeof i){const e=i(t);return"string"==typeof e?e:R(e)}return R(e)}}}(e)))throw M("dirty is not a string, aborting");if(!r.isSupported)return e;if(We||yt(t),r.removed=[],"string"==typeof e&&(et=!1),et){const t=e.nodeName;if("string"==typeof t){const e=Ct(t);if(!_e[e]||xe[e])throw M("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)i=Rt("\x3c!----\x3e"),n=i.ownerDocument.importNode(e,!0),n.nodeType===oe&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n);else{if(!je&&!He&&!Ge&&-1===e.indexOf("<"))return pe&&Ke?pe.createHTML(e):e;if(i=Rt(e),!i)return je?null:Ke?me:""}i&&qe&&It(i.firstChild);const c=_t(et?e:i);for(;o=c.nextNode();)Nt(o),Ft(o),o.content instanceof l&&$t(o.content);if(et)return e;if(je){if(He){i.normalize();let e=i.innerHTML;u([Ee,Se,we],t=>{e=E(e,t," ")}),i.innerHTML=e}if(Ze)for(s=ve.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(De.shadowroot||De.shadowrootmode)&&(s=Pe.call(a,s,!0)),s}let h=Ge?i.outerHTML:i.innerHTML;return Ge&&_e["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&_(re,i.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+h),He&&u([Ee,Se,we],e=>{h=E(h,e," ")}),pe&&Ke?pe.createHTML(h):h},r.setConfig=function(){yt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),We=!0},r.clearConfig=function(){Et=null,We=!1},r.isValidAttribute=function(e,t,i){Et||yt({});const r=Ct(e),n=Ct(t);return xt(r,n,i)},r.addHook=function(e,t){"function"==typeof t&&g(Ce[e],t)},r.removeHook=function(e,t){if(void 0!==t){const i=p(Ce[e],t);return-1===i?void 0:f(Ce[e],i,1)[0]}return m(Ce[e])},r.removeHooks=function(e){Ce[e]=[]},r.removeAllHooks=function(){Ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();return t=ue}(function(e,t){function i(e,t,i,r){return new(i||(i=Promise))(function(n,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class r{constructor(){this.BasePath="",this.ImmediatePrint=!1,this.ContentOnly=!1,this.UseSVG=!1,this.enableSearch=!1,this.enableAccessibility=!1,this.contentTabIndex=0}}class n{constructor(){this.from="",this.to="",this.cc="",this.subject="",this.format="",this.body=""}}class a{constructor(e,t){this.cancel=!1,this.element=e,this.action=t}}class o{constructor(e,t){this.id="",this.type="",this.id=e,this.type=t}}class s{constructor(e,t){this.isCancelled=!1,this.format="",this.deviceInfo=e,this.format=t}}class l{constructor(e,t){this.handled=!1,this.deviceInfo=e,this.format=t}}class c{constructor(e,t,i){this.handled=!1,this.url=e,this.format=t,this.windowOpenTarget=i}}class h{constructor(e){this.handled=!1,this.deviceInfo=e}}class d{constructor(e){this.handled=!1,this.url=e}}class u{constructor(e,t){this.handled=!1,this.deviceInfo=e,this.format=t}}class p extends n{constructor(e,t,i){super(),this.handled=!1,this.body=e.body,this.cc=e.cc,this.format=e.format,this.from=e.from,this.subject=e.subject,this.to=e.to,this.deviceInfo=t,this.url=i}}class m{constructor(e,t){this.page=e,this.reportDocumentId=t}}class g{constructor(e,t,i,r=null){this.element=e,this.text=t,this.title=i,this.eventArgs=r}}class f{constructor(e,t){this._responseText=e,this._error=t;try{this._responseJSON=JSON.parse(e)}catch(e){this._responseJSON=null}}get responseText(){return this._responseText}get responseJSON(){return this._responseJSON}get error(){return this._error}get exceptionMessage(){var e,t;return(null===(e=this.responseJSON)||void 0===e?void 0:e.exceptionMessage)||(null===(t=this.responseJSON)||void 0===t?void 0:t.ExceptionMessage)}}function v(e,t=!1,i=!1){let r={Accept:"application/json, text/javascript, */*; q=0.01"};return t&&(r["Content-Type"]=i?"application/x-www-form-urlencoded; charset=UTF-8":"application/json; charset=UTF-8"),e&&(r.authorization="Bearer "+e),r}function b(e){return i(this,void 0,void 0,function*(){if(!e.ok){let t=yield e.text(),i=new f(t,e.statusText);return Promise.reject(i)}return 204==e.status?Promise.resolve():(e.headers.get("content-type")||"").includes("application/json")?e.json():e.text()})}function P(e,t={},i="",r=!1){return fetch(e,{method:"POST",headers:v(i,!0,r),body:r?t:JSON.stringify(t)}).then(b)}class C{authenticatePromise(){return Promise.resolve("")}}class E{constructor(e){this.connectionConfig=e}authenticatePromise(){var e,t;if(this.connectionConfig&&this.connectionConfig.tokenUrl&&(this.connectionConfig.username||this.connectionConfig.password)){let i=`grant_type=password&username=${encodeURIComponent((null===(e=this.connectionConfig)||void 0===e?void 0:e.username)||"")}&password=${encodeURIComponent((null===(t=this.connectionConfig)||void 0===t?void 0:t.password)||"")}`;return P(this.connectionConfig.tokenUrl,i,"",!0).then(e=>(e.expiresAt=Date.now()+1e3*e.expiresIn,e))}return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?")}}class S{constructor(e){this.connectionConfig=e}authenticatePromise(e,t){return e?P(this.connectionConfig.refreshTokenUrl,{RefreshToken:t}).then(e=>(e.expiresAt=Date.now()+1e3*e.expiresIn,e)):this.connectionConfig&&this.connectionConfig.personalTokenUrl&&this.connectionConfig.getPersonalAccessToken?this.connectionConfig.getPersonalAccessToken().then(e=>P(this.connectionConfig.personalTokenUrl,e).then(e=>(e.expiresAt=Date.now()+1e3*e.expiresIn,e))):Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?")}}var w,y;e.AuthType=void 0,(w=e.AuthType||(e.AuthType={}))[w.None=0]="None",w[w.Basic=1]="Basic",w[w.PersonalToken=2]="PersonalToken";class T{constructor(e){this.baseUrl=null==e?void 0:e.replace(/\/$/,"")}}class A extends T{constructor(t){super(t),this.authType=e.AuthType.None,this.serviceUrl=this.baseUrl}}class I extends T{constructor(t){super(t),this.authType=e.AuthType.None,this.serviceUrl=this.baseUrl+"/api/reports"}}class L extends I{constructor(t,i,r){super(t),this.authType=e.AuthType.Basic,this.username=i,this.password=r,this.tokenUrl=this.baseUrl+"/Token"}}class R extends I{constructor(t,i){super(t),this.authType=e.AuthType.PersonalToken,this.getPersonalAccessToken=i,this.personalTokenUrl=this.baseUrl+"/PersonalToken",this.refreshTokenUrl=this.baseUrl+"/refresh"}}function _(){}function M(){M.init.call(this)}function D(e){return void 0===e._maxListeners?M.defaultMaxListeners:e._maxListeners}function k(e,t,i,r){var n,a,o,s;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),a=e._events),o=a[t]):(a=e._events=new _,e._eventsCount=0),o){if("function"==typeof o?o=a[t]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),!o.warned&&(n=D(e))&&n>0&&o.length>n){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s=l,"function"==typeof console.warn?console.warn(s):console.log(s)}}else o=a[t]=i,++e._eventsCount;return e}function N(e,t,i){var r=!1;function n(){e.removeListener(t,n),r||(r=!0,i.apply(e,arguments))}return n.listener=i,n}function x(e){var t=this._events;if(t){var i=t[e];if("function"==typeof i)return 1;if(i)return i.length}return 0}function V(e,t){for(var i=new Array(t);t--;)i[t]=e[t];return i}_.prototype=Object.create(null),M.EventEmitter=M,M.usingDomains=!1,M.prototype.domain=void 0,M.prototype._events=void 0,M.prototype._maxListeners=void 0,M.defaultMaxListeners=10,M.init=function(){this.domain=null,M.usingDomains&&(!y.active||this instanceof y.Domain||(this.domain=y.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new _,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},M.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},M.prototype.getMaxListeners=function(){return D(this)},M.prototype.emit=function(e){var t,i,r,n,a,o,s,l="error"===e;if(o=this._events)l=l&&null==o.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(i=o[e]))return!1;var h="function"==typeof i;switch(r=arguments.length){case 1:!function(e,t,i){if(t)e.call(i);else for(var r=e.length,n=V(e,r),a=0;a<r;++a)n[a].call(i)}(i,h,this);break;case 2:!function(e,t,i,r){if(t)e.call(i,r);else for(var n=e.length,a=V(e,n),o=0;o<n;++o)a[o].call(i,r)}(i,h,this,arguments[1]);break;case 3:!function(e,t,i,r,n){if(t)e.call(i,r,n);else for(var a=e.length,o=V(e,a),s=0;s<a;++s)o[s].call(i,r,n)}(i,h,this,arguments[1],arguments[2]);break;case 4:!function(e,t,i,r,n,a){if(t)e.call(i,r,n,a);else for(var o=e.length,s=V(e,o),l=0;l<o;++l)s[l].call(i,r,n,a)}(i,h,this,arguments[1],arguments[2],arguments[3]);break;default:for(n=new Array(r-1),a=1;a<r;a++)n[a-1]=arguments[a];!function(e,t,i,r){if(t)e.apply(i,r);else for(var n=e.length,a=V(e,n),o=0;o<n;++o)a[o].apply(i,r)}(i,h,this,n)}return!0},M.prototype.addListener=function(e,t){return k(this,e,t,!1)},M.prototype.on=M.prototype.addListener,M.prototype.prependListener=function(e,t){return k(this,e,t,!0)},M.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,N(this,e,t)),this},M.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,N(this,e,t)),this},M.prototype.removeListener=function(e,t){var i,r,n,a,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(i=r[e]))return this;if(i===t||i.listener&&i.listener===t)0===--this._eventsCount?this._events=new _:(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(n=-1,a=i.length;a-- >0;)if(i[a]===t||i[a].listener&&i[a].listener===t){o=i[a].listener,n=a;break}if(n<0)return this;if(1===i.length){if(i[0]=void 0,0===--this._eventsCount)return this._events=new _,this;delete r[e]}else!function(e,t){for(var i=t,r=i+1,n=e.length;r<n;i+=1,r+=1)e[i]=e[r];e.pop()}(i,n);r.removeListener&&this.emit("removeListener",e,o||t)}return this},M.prototype.off=function(e,t){return this.removeListener(e,t)},M.prototype.removeAllListeners=function(e){var t,i;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=new _,this._eventsCount=0):i[e]&&(0===--this._eventsCount?this._events=new _:delete i[e]),this;if(0===arguments.length){for(var r,n=Object.keys(i),a=0;a<n.length;++a)"removeListener"!==(r=n[a])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new _,this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},M.prototype.listeners=function(e){var t,i=this._events;return i&&(t=i[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(t):[]},M.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):x.call(e,t)},M.prototype.listenerCount=x,M.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};const O="function"==typeof Symbol?Symbol.for("--[[await-event-emitter]]--"):"--[[await-event-emitter]]--";function F(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new TypeError("type is not type of string or symbol!")}function $(e){if("function"!=typeof e)throw new TypeError("fn is not type of Function!")}function B(e){return{[O]:"always",fn:e}}function U(e){return{[O]:"once",fn:e}}class H{constructor(){this._events={}}addListener(e,t){return this.on(e,t)}on(e,t){return F(e),$(t),this._events[e]=this._events[e]||[],this._events[e].push(B(t)),this}prependListener(e,t){return this.prepend(e,t)}prepend(e,t){return F(e),$(t),this._events[e]=this._events[e]||[],this._events[e].unshift(B(t)),this}prependOnceListener(e,t){return this.prependOnce(e,t)}prependOnce(e,t){return F(e),$(t),this._events[e]=this._events[e]||[],this._events[e].unshift(U(t)),this}listeners(e){return(this._events[e]||[]).map(e=>e.fn)}once(e,t){return F(e),$(t),this._events[e]=this._events[e]||[],this._events[e].push(U(t)),this}removeAllListeners(){this._events={}}off(e,t){return this.removeListener(e,t)}removeListener(e,t){F(e);const i=this.listeners(e);if("function"==typeof t){let r=-1,n=!1;for(;(r=i.indexOf(t))>=0;)i.splice(r,1),this._events[e].splice(r,1),n=!0;return n}return delete this._events[e]}emit(e,...t){return i(this,void 0,void 0,function*(){F(e);const i=this.listeners(e),r=[];if(i&&i.length){for(let n=0;n<i.length;n++){const a=i[n],o=a.apply(this,t);o instanceof Promise&&(yield o),this._events[e]&&this._events[e][n]&&"once"===this._events[e][n][O]&&r.push(a)}return r.forEach(t=>this.removeListener(e,t)),!0}return!1})}emitSync(e,...t){F(e);const i=this.listeners(e),r=[];if(i&&i.length){for(let n=0;n<i.length;n++){const a=i[n];a.apply(this,t),this._events[e]&&this._events[e][n]&&"once"===this._events[e][n][O]&&r.push(a)}return r.forEach(t=>this.removeListener(e,t)),!0}return!1}}class z{constructor(){this.eventEmitter=new M,this.awaitEventEmitter=new H}on(e,t){return this.eventEmitter.on(e,t),this}emit(e,...t){this.eventEmitter.emit(e,...t)}onAsync(e,t){return this.awaitEventEmitter.on(e,t),this}emitAsync(e,...t){return i(this,void 0,void 0,function*(){yield this.awaitEventEmitter.emit(e,...t)})}}class G{hasPdfPlugin(){let e=["AcroPDF.PDF.1","PDF.PdfCtrl.6","PDF.PdfCtrl.5"];for(let t of e)try{let e=new ActiveXObject(t);if(e)return null!==e}catch(e){}return!1}}class W{hasPdfPlugin(){let e=/Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);if(null!==e&&e.length>1&&parseFloat(e[1])>=19)return!1;let t=navigator.mimeTypes["application/pdf"],i=null!==t?t.enabledPlugin:null;if(i){let e=i.description;return-1!==e.indexOf("Adobe")&&(-1===e.indexOf("Version")||parseFloat(e.split("Version")[1])>=6)}return!1}}class q{constructor(e){this.defaultPlugin=e}hasPdfPlugin(){for(let e of navigator.plugins)if(e.name===this.defaultPlugin||"Adobe Acrobat"===e.name)return!0;return!1}}class j{hasPdfPlugin(){return!1}}function Z(){return window.navigator&&window.navigator.msSaveOrOpenBlob}class K{constructor(){this.hasPdfPlugin=!1,this.iframe=null,this.hasPdfPlugin=function(){if(window.navigator){let e=window.navigator.userAgent.toLowerCase();return e.indexOf("msie")>-1||e.indexOf("mozilla")>-1&&e.indexOf("trident")>-1?new G:e.indexOf("firefox")>-1?new W:e.indexOf("edg/")>-1?new q("Microsoft Edge PDF Plugin"):e.indexOf("chrome")>-1?new q("Chrome PDF Viewer"):e.indexOf("safari")>-1?new q("WebKit built-in PDF"):new j}return new j}().hasPdfPlugin(),this.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}destroy(){this.iframe=null}printDesktop(e){let t=null;if(this.iframe||(this.iframe=document.createElement("iframe"),this.iframe.style.display="none",this.iframe.onload=()=>{var e,i;try{null===(i=null===(e=this.iframe)||void 0===e?void 0:e.contentDocument)||void 0===i||i.execCommand("print",!0)}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}),function(e){let t=window.location,i=document.createElement("a");return i.setAttribute("href",e),""==i.host&&(i.href=i.href),t.hostname===i.hostname&&t.protocol===i.protocol&&t.port===i.port}(e)&&Z())return this.iframe.src=e,void document.body.appendChild(this.iframe);let i=new XMLHttpRequest,r=this;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=function(){if(200===this.status){let e=new Blob([this.response],{type:"application/pdf"});Z()?window.navigator.msSaveOrOpenBlob(e):(t=(window.URL||window.webkitURL).createObjectURL(e),null!=r.iframe&&(r.iframe.src=t,document.body.appendChild(r.iframe)))}else console.log("Could not retrieve remote PDF document.")},i.send()}printMobile(e){window.open(e,"_self")}print(e){this.isMobile?this.printMobile(e):this.printDesktop(e)}getDirectPrintState(){return this.hasPdfPlugin}}function Y(e){return 1e3*e}class X{constructor(e,t,i){if(this.pingMilliseconds=0,!e)throw"Error";this.serviceClient=e,this.clientID=t,this.initSessionTimeout(i)}initSessionTimeout(e){if(!isFinite(e))throw"sessionTimeoutSeconds must be finite";this.pingMilliseconds=e<=120?Y(e)/2:Y(e-60)}start(){this.pingMilliseconds<=0||(this.interval=setInterval(()=>{this.serviceClient.keepClientAlive(this.clientID)},this.pingMilliseconds))}stop(){this.interval&&(clearInterval(this.interval),this.interval=null)}}var J,Q,ee,te,ie;function re(e,t="",i=""){let r=document.createElement(e);return t&&(r.id=t),ne(r,i),r}function ne(e,t){if(""===t||!e)return;let i=t.trim().split(" ");i=i.filter(e=>""!==e.trim()),e.classList.add(...i)}function ae(e,t){if(""===t||!e)return;let i=t.trim().split(" ");i=i.filter(e=>""!==e.trim()),e.classList.remove(...i)}function oe(e,t){return e.classList.contains(t)}function se(e){return e.offsetParent}function le(e){return parseInt(e,10)||0}function ce(e,t,i,r=0,n=0){let a=`${r=r||0} ${n=n||0}`;var o,s;s=`scale(${t=t||1}, ${i=i||1})`,(o=e).style.setProperty("transform",s),o.style.setProperty("-moz-transform",s),o.style.setProperty("-ms-transform",s),o.style.setProperty("-webkit-transform",s),o.style.setProperty("-o-transform",s),function(e,t){e.style.setProperty("transform-origin",t),e.style.setProperty("-moz-transform-origin",t),e.style.setProperty("-ms-transform-origin",t),e.style.setProperty("-webkit-transform-origin",t),e.style.setProperty("-o-transform-origin",t)}(e,a)}function he(e){let t=re("div");return t.textContent=e,t.innerHTML}function de(e){if(e&&e.length<6){let t=1,i=e.split("");for("#"!==i[0]&&(t=0);t<i.length;t++)i[t]=i[t]+i[t];e=i.join("")}let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null}function ue(e){return!!e&&e.indexOf(",")>-1}function pe(e){if("transparent"===e.toLowerCase())return 0;if(!ue(e))return 1;if(-1!==e.indexOf("#")){let t=de(e);if(null===t)return 1;e=t}let t=e.split(",").map(function(e){return e.trim()});return 4===t.length?parseFloat((parseFloat(t[3].replace(/[()]/g,""))/255).toFixed(2)):1}function me(e,t){let i=re("div");for(i.innerHTML=t;i.childNodes.length;)e.appendChild(i.childNodes[0])}function ge(e,t){let i=re("div");for(i.innerHTML=t;i.childNodes.length;)e.prepend(i.childNodes[i.childNodes.length-1])}function fe(e,t){return e?e.querySelector(t):null}function ve(e,t){var i;return e&&e.attributes&&(null===(i=e.attributes[t])||void 0===i?void 0:i.value)||""}function be(e){let t=e.parentElement;return t?t.clientHeight!=t.scrollHeight?t:be(t):null}function Pe(e,t=300){let i;return function(...r){clearTimeout(i),i=setTimeout(()=>e.apply(this,r),t)}}function Ce(e,t){let i=null;return function(r,...n){i||(i=setTimeout(function(){e.apply(r,n),i=null},t))}}function Ee(e,t){return!!e.responseJSON&&e.responseJSON.exceptionType===t}function Se(e){return Ee(e,"Telerik.Reporting.Services.Engine.InvalidClientException")}function we(e){return Ee(e,"Telerik.Reporting.Services.Engine.InvalidParameterException")}function ye(e){return!!e&&"internalservererror"===e.split(" ").join("").toLowerCase()}function Te(e,...t){return e.replace(/{(\d+)}/g,(e,i)=>t[i]||"")}function Ae(e,t){let i,r;if(Ie(e))for(i=e.length,r=0;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e}function Ie(e){return!!Array.isArray(e)||"number"==typeof(!!e&&"length"in e&&e.length)}function Le(e){return/^(\-|\+)?([0-9]+)$/.test(e)?Number(e):NaN}function Re(e){return/^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e)?Number(e):NaN}function _e(e){return e instanceof Date?e:(/Z|[\+\-]\d\d:?\d\d/i.test(e)||(e+="Z"),new Date(e))}e.PageMode=void 0,(J=e.PageMode||(e.PageMode={}))[J.ContinuousScroll=0]="ContinuousScroll",J[J.SinglePage=1]="SinglePage",e.PrintMode=void 0,(Q=e.PrintMode||(e.PrintMode={}))[Q.AutoSelect=0]="AutoSelect",Q[Q.ForcePDFPlugin=1]="ForcePDFPlugin",Q[Q.ForcePDFFile=2]="ForcePDFFile",e.ScaleMode=void 0,(ee=e.ScaleMode||(e.ScaleMode={}))[ee.FitPageWidth=0]="FitPageWidth",ee[ee.FitPage=1]="FitPage",ee[ee.Specific=2]="Specific",e.ServiceType=void 0,(te=e.ServiceType||(e.ServiceType={}))[te.REST=0]="REST",te[te.ReportServer=1]="ReportServer",e.ViewMode=void 0,(ie=e.ViewMode||(e.ViewMode={}))[ie.Interactive=0]="Interactive",ie[ie.PrintPreview=1]="PrintPreview";const Me="System.Int64",De="System.Double",ke="System.String",Ne="System.DateTime",xe="System.Boolean";var Ve=function(){var e={};function t(e,t,i,r){var n=[].concat(t).map(function(t){return function(e,t,i){if(e.availableValues){var r=!1;if(Ae(e.availableValues,function(e,n){return!(r=i(t,n.value))}),!r){if(e.allowNull&&!t)return t;throw"Please input a valid value."}}return t}(e,i(t),r)});if(e.multivalue){if(null==t||0==t.length){if(e.allowNull)return t;throw"Please input a valid value."}return n}return n[0]}function i(e,t){return e.allowNull&&-1!=[null,"",void 0].indexOf(t)}return e[ke]={validate:function(e,i){return t(e,i,function(t){if(!t){if(e.allowNull)return null;if(e.allowBlank)return"";throw"Parameter value cannot be empty."}return t},function(e,t){return e==t})}},e[De]={validate:function(e,r){return t(e,r,function(t){var r=Re(t);if(isNaN(r)){if(i(e,t))return null;throw"Parameter value cannot be empty."}return r},function(e,t){return Re(e)==Re(t)})}},e[Me]={validate:function(e,r){return t(e,r,function(t){var r=Le(t);if(isNaN(r)){if(i(e,t))return null;throw"Parameter value cannot be empty."}return r},function(e,t){return Le(e)==Re(t)})}},e[Ne]={validate:function(e,i){return t(e,i,function(t){if(e.allowNull&&(null===t||""===t||void 0===t))return null;if(!isNaN(Date.parse(t)))return e.availableValues?t:_e(t);throw"Please input a valid date."},function(e,t){return e=_e(e),t=_e(t),e.getTime()==t.getTime()})}},e[xe]={validate:function(e,r){return t(e,r,function(t){if(-1!=["true","false"].indexOf(String(t).toLowerCase()))return Boolean(t);if(i(e,t))return null;throw"Parameter value cannot be empty."},function(e,t){return Boolean(e)==Boolean(t)})}},{validate:function(t,i){var r=e[t.type];if(!r)throw Te("Cannot validate parameter of type {type}.",t);return r.validate(t,i)}}}();function Oe(e,t,i){try{const r=e.availableValues.find(e=>e.value===t);if(!r){if(e.allowNull&&null===t)return{valueMember:null,displayMember:null};throw new Error(`The available values of parameter ${i} do not contain Value property that equals ${t}`)}return{valueMember:t,displayMember:r.name}}catch(e){return}}function Fe(e,t,i){const r=[];for(let n in t)r.push(Oe(e,t[n],i));return r}class $e{constructor(e="",t={}){this.report=e,this.parameters=t}}class Be extends z{constructor(e){super(),this.resizeObserver=null,this.element=e,this.initResizeObserver()}destroy(){this.destroyResizeObserver()}initResizeObserver(){this.debounceResize=Pe(this.onResize.bind(this),50),this.resizeObserver=new ResizeObserver(this.debounceResize),this.resizeObserver.observe(this.element)}destroyResizeObserver(){this.resizeObserver&&this.resizeObserver.unobserve(this.element),this.resizeObserver=this.debounceResize=null}onResize(e){e[0].target===this.element&&this.emit("resize")}}const Ue='<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>';class He{constructor(t,i,r){this.enabled=!1,this.viewMode=e.ViewMode.Interactive,this.scrollInProgress=!1,this.additionalTopOffset=130,this.onClickHandler=null,this.debounceScroll=null,this.throttleScroll=null,this.oldScrollTopPosition=0,this.lastLoadedPage=null,this.placeholder=t,this.pageContainer=t.querySelector(".trv-page-container"),this.pageWrapper=t.querySelector(".trv-page-wrapper"),this.contentArea=i,this.controller=r,this.controller.getPageMode()===e.PageMode.ContinuousScroll&&this.enable(),this.controller.on("loadedReportChange",this.disable.bind(this)).on("viewModeChanged",this.disable.bind(this)).on("scaleChanged",this.onScaleChanged.bind(this)).on("interactiveActionExecuting",this.onInteractiveActionExecuting.bind(this)).on("pageLoaded",this.onPageLoaded.bind(this))}onPageLoaded(){this.currentPageNumber()>0&&!this.scrollInProgress&&setTimeout(()=>{this.loadMorePages()},100)}onScaleChanged(){this.enabled&&setTimeout(()=>{this.loadMorePages(),this.keepCurrentPageInToView()},100)}onInteractiveActionExecuting(e){const t=e.action.Type;!this.enabled||"sorting"!==t&&"toggleVisibility"!==t||this.disable()}getEnabled(){return this.enabled}enable(){this.enabled=!0,ne(this.placeholder,"scrollable"),this.initEvents()}disable(){this.enabled&&(this.lastLoadedPage=null,this.pageWrapper.innerHTML="",this.enabled=!1,ae(this.placeholder,"scrollable"),this.unbind())}renderPage(e){let t=this.controller.getViewMode(),i=this.findPageElement(e.pageNumber);this.enabled?(t===this.viewMode&&i?this.navigateToPage(e,i):this.updatePageArea(e),this.viewMode=this.controller.getViewMode()):(this.enable(),t===this.viewMode&&i?(this.render(e,!0),this.pageContainer.scrollTop=3,this.setCurrentPage(e.pageNumber)):this.updatePageArea(e),this.viewMode=this.controller.getViewMode(),this.loadMorePages())}navigateToElement(e,t){this.scrollInProgress=!0,this.isSkeletonScreen(null,t)?this.getAndRenderPage(t).then(()=>{this.scrollToPage(e,t)}):this.scrollToPage(e,t)}updatePageDimensionsReady(){this.enabled&&this.currentPageNumber()>0&&this.keepCurrentPageInToView()}setCurrentPage(e){e!==this.currentPageNumber()&&this.controller.setCurrentPageNumber(e),this.controller.getPageCount()>1&&(ae(this.findElement(".k-state-default"),"k-state-default"),ne(this.findPageElement(e),"k-state-default")),this.loadNextPreviousPage(e)}updatePageArea(e){var t;let i=0,r=e.pageNumber;this.scrollInProgress=!0,r>1&&this.generateSkeletonScreens(r),this.render(e,!1),this.setCurrentPage(e.pageNumber),i=r>1&&(null===(t=this.findPageElement(r))||void 0===t?void 0:t.offsetTop)||0,this.animateScroll(i,0,()=>{this.scrollInProgress=!1})}navigateToPage(e,t){this.scrollInProgress=!0;let i=t.offsetTop,r=e.pageNumber;this.isSkeletonScreen(t,r)?this.getAndRenderPage(r).then(()=>{this.scrollToPage(i,r)}):(this.updatePageContent(e,t),this.scrollToPage(i,r))}updatePageContent(e,t){this.contentArea.updatePageStyle(e);let i=this.contentArea.renderPageElement(e);t.after(i),t.remove(),this.contentArea.setScrollablePage(i,e),this.controller.applySearchColors()}currentPageNumber(){return this.controller.getCurrentPageNumber()}isSkeletonScreen(e,t){return!(!e&&!(e=this.findPageElement(t)))&&oe(e