1/*! 2 * Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16!function(n,t){t("kendo.popup.min",["kendo.core.min"],n)}(function(){return function(n,t){function k(t,i){return!(!t||!i)&&(t===i||n.contains(t,i))}var et,a,ot,st,i=window.kendo,d=i.ui,g=d.Widget,kt=i.Class,r=i.support,e=i.getOffset,o=i._outerWidth,f=i._outerHeight,nt="open",tt="close",ht="deactivate",ct="activate",s="center",lt="left",v="right",y="top",p="bottom",w="absolute",it="hidden",rt="body",ut="location",l="position",at="visible",vt="effects",yt="k-state-active",b="k-state-border",dt=/k-state-border-(\w+)/,pt=".k-picker-wrap, .k-dropdown-wrap, .k-link",gt="down",ft=n(document.documentElement),ni=n.proxy,ti=n(window),wt="scroll",ii=r.transitions.css,bt=ii+"transform",u=n.extend,h=".kendoPopup",c=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],ri=g.extend({init:function(t,f){var o,e=this;f=f||{};f.isRtl&&(f.origin=f.origin||p+" "+v,f.position=f.position||y+" "+v);g.fn.init.call(e,t,f);t=e.element;f=e.options;e.collisions=f.collision?f.collision.split(" "):[];e.downEvent=i.applyEventMap(gt,i.guid());1===e.collisions.length&&e.collisions.push(e.collisions[0]);o=n(e.options.anchor).closest(".k-popup,.k-group").filter(":not([class^=km-])");f.appendTo=n(n(f.appendTo)[0]||o[0]||document.body);e.element.hide().addClass("k-popup k-group k-reset").toggleClass("k-rtl",!!f.isRtl).css({position:w}).appendTo(f.appendTo).attr("aria-hidden",!0).on("mouseenter"+h,function(){e._hovered=!0}).on("wheel"+h,function(t){var r=n(t.target).find(".k-list"),i=r.parent();r.length&&r.is(":visible")&&(0===i.scrollTop()&&t.originalEvent.deltaY<0||i.scrollTop()===i.prop("scrollHeight")-i.prop("offsetHeight")&&t.originalEvent.deltaY>0)&&t.preventDefault()}).on("mouseleave"+h,function(){e._hovered=!1});e.wrapper=n();f.animation===!1&&(f.animation={open:{effects:{}},close:{hide:!0,effects:{}}});u(f.animation.open,{complete:function(){e.wrapper.css({overflow:at});e._activated=!0;e._trigger(ct)}});u(f.animation.close,{complete:function(){e._animationClose()}});e._mousedownProxy=function(n){e._mousedown(n)};e._resizeProxy=r.mobileOS.android?function(n){setTimeout(function(){e._resize(n)},600)}:function(n){e._resize(n)};f.toggleTarget&&n(f.toggleTarget).on(f.toggleEvent+h,n.proxy(e.toggle,e))},events:[nt,ct,tt,ht],options:{name:"Popup",toggleEvent:"click",origin:p+" "+lt,position:y+" "+lt,anchor:rt,appendTo:null,collision:"flip fit",viewport:window,copyAnchorStyles:!0,autosize:!1,modal:!1,adjustSize:{width:0,height:0},animation:{open:{effects:"slideIn:down",transition:!0,duration:200},close:{duration:100,hide:!0}}},_animationClose:function(){var n=this,t=n.wrapper.data(ut);n.wrapper.hide();t&&n.wrapper.css(t);n.options.anchor!=rt&&n._hideDirClass();n._closing=!1;n._trigger(ht)},destroy:function(){var u,t=this,r=t.options,f=t.element.off(h);g.fn.destroy.call(t);r.toggleTarget&&n(r.toggleTarget).off(h);r.modal||(ft.off(t.downEvent,t._mousedownProxy),t._toggleResize(!1));i.destroy(t.element.children());f.removeData();r.appendTo[0]===document.body&&(u=f.parent(".k-animation-container"),u[0]?u.remove():f.remove())},open:function(t,u){var s,h,f=this,a={isFixed:!isNaN(parseInt(u,10)),x:t,y:u},e=f.element,o=f.options,v=n(o.anchor),p=e[0]&&e.hasClass("km-widget");if(!f.visible()){if(o.copyAnchorStyles&&(p&&"font-size"==c[0]&&c.shift(),e.css(i.getComputedStyles(v[0],c))),e.data("animating")||f._trigger(nt))return;f._activated=!1;o.modal||(ft.off(f.downEvent,f._mousedownProxy).on(f.downEvent,f._mousedownProxy),f._toggleResize(!1),f._toggleResize(!0));f.wrapper=h=i.wrap(e,o.autosize).css({overflow:it,display:"block",position:w}).attr("aria-hidden",!1);r.mobileOS.android&&h.css(bt,"translatez(0)");h.css(l);n(o.appendTo)[0]==document.body&&h.css(y,"-10000px");f.flipped=f._position(a);s=f._openAnimation();o.anchor!=rt&&f._showDirClass(s);e.data(vt,s.effects).kendoStop(!0).kendoAnimate(s).attr("aria-hidden",!1)}},_location:function(t){var u,s,f=this,e=f.element,o=f.options,h=n(o.anchor),a=e[0]&&e.hasClass("km-widget");return o.copyAnchorStyles&&(a&&"font-size"==c[0]&&c.shift(),e.css(i.getComputedStyles(h[0],c
16))),f.wrapper=u=i.wrap(e,o.autosize).css({overflow:it,display:"block",position:w}),r.mobileOS.android&&u.css(bt,"translatez(0)"),u.css(l),n(o.appendTo)[0]==document.body&&u.css(y,"-10000px"),f._position(t||{}),s=u.offset(),{width:i._outerWidth(u),height:i._outerHeight(u),left:s.left,top:s.top}},_openAnimation:function(){var n=u(!0,{},this.options.animation.open);return n.effects=i.parseEffects(n.effects,this.flipped),n},_hideDirClass:function(){var t=n(this.options.anchor),r=((t.attr("class")||"").match(dt)||["","down"])[1],u=b+"-"+r;t.removeClass(u).children(pt).removeClass(yt).removeClass(u);this.element.removeClass(b+"-"+i.directions[r].reverse)},_showDirClass:function(t){var r=t.effects.slideIn?t.effects.slideIn.direction:"down",u=b+"-"+r;n(this.options.anchor).addClass(u).children(pt).addClass(yt).addClass(u);this.element.addClass(b+"-"+i.directions[r].reverse)},position:function(){this.visible()&&(this.flipped=this._position())},toggle:function(){var n=this;n[n.visible()?tt:nt]()},visible:function(){return this.element.is(":"+at)},close:function(r){var h,e,o,s,f=this,c=f.options;if(f.visible()){if(h=f.wrapper[0]?f.wrapper:i.wrap(f.element).hide(),f._toggleResize(!1),f._closing||f._trigger(tt))return f._toggleResize(!0),t;f.element.find(".k-popup").each(function(){var i=n(this),t=i.data("kendoPopup");t&&t.close(r)});ft.off(f.downEvent,f._mousedownProxy);r?e={hide:!0,effects:{}}:(e=u(!0,{},c.animation.close),o=f.element.data(vt),s=e.effects,!s&&!i.size(s)&&o&&i.size(o)&&(e.effects=o,e.reverse=!0),f._closing=!0);f.element.kendoStop(!0).attr("aria-hidden",!0);h.css({overflow:it}).attr("aria-hidden",!0);f.element.kendoAnimate(e);r&&f._animationClose()}},_trigger:function(n){return this.trigger(n,{type:n})},_resize:function(n){var t=this;r.resize.indexOf(n.type)!==-1?(clearTimeout(t._resizeTimeout),t._resizeTimeout=setTimeout(function(){t._position();t._resizeTimeout=null},50)):(!t._hovered||t._activated&&t.element.hasClass("k-list-container"))&&t.close()},_toggleResize:function(n){var t=n?"on":"off",i=r.resize;r.mobileOS.ios||r.mobileOS.android||r.browser.safari||(i+=" "+wt);n&&!this.scrollableParents&&(this.scrollableParents=this._scrollableParents());this.scrollableParents&&this.scrollableParents.length&&this.scrollableParents[t](wt,this._resizeProxy);ti[t](i,this._resizeProxy)},_mousedown:function(t){var u=this,s=u.element[0],e=u.options,h=n(e.anchor)[0],o=e.toggleTarget,f=i.eventTarget(t),r=n(f).closest(".k-popup"),c=r.parent().parent(".km-shim").length;r=r[0];!c&&r&&r!==u.element[0]||"popover"!==n(t.target).closest("a").data("rel")&&(k(s,f)||k(h,f)||o&&k(n(o)[0],f)||u.close())},_fit:function(n,t,i){var r=0;return n+t>i&&(r=i-(n+t)),n<0&&(r=-n),r},_flip:function(n,t,i,r,u,f,e){var o=0;return e=e||t,f!==u&&f!==s&&u!==s&&(n+e>r&&(o+=-(i+t)),n+o<0&&(o+=i+t)),o},_scrollableParents:function(){return n(this.options.anchor).parentsUntil("body").filter(function(n,t){return i.isScrollable(t)})},_position:function(t){var g,ot,v,wt,st,p,nt,bt,tt,b,kt,k,c,ht,ct,it,lt,h=this,at=h.element,s=h.wrapper,a=h.options,rt=n(a.viewport),d=r.zoomLevel(),dt=!!(rt[0]==window&&window.innerWidth&&d<=1.02),y=n(a.anchor),vt=a.origin.toLowerCase().split(" "),yt=a.position.toLowerCase().split(" "),ft=h.collisions,et=10002,pt=0,gt=document.documentElement;if(st=a.viewport===window?{top:window.pageYOffset||document.documentElement.scrollTop||0,left:window.pageXOffset||document.documentElement.scrollLeft||0}:rt.offset(),dt?(p=window.innerWidth,nt=window.innerHeight):(p=rt.width(),nt=rt.height()),dt&>.scrollHeight-gt.clientHeight>0&&(bt=a.isRtl?-1:1,p-=bt*i.support.scrollbar()),g=y.parents().filter(s.siblings()),g[0])if(v=Math.max(+g.css("zIndex"),0))et=v+10;else for(ot=y.parentsUntil(g),wt=ot.length;pt<wt;pt++)v=+n(ot[pt]).css("zIndex"),v&&et<v&&(et=v+10);return s.css("zIndex",et),s.css(t&&t.isFixed?{left:t.x,top:t.y}:h._align(vt,yt)),tt=e(s,l,y[0]===s.offsetParent()[0]),b=e(s),kt=y.offsetParent().parent(".k-animation-container,.k-popup,.k-group"),kt.length&&(tt=e(s,l,!0),b=e(s)),b.top-=st.top,b.left-=st.left,h.wrapper.data(ut)||s.data(ut,u({},tt)),k=u({},b),c=u({},tt),ht=a.adjustSize,"fit"===ft[0]&&(c.top+=h._fit(k.top,f(s)+ht.height,nt/d)),"fit"===ft[1]&&(c.left+=h._fit(k.left,o(s)+ht.width,p/d)),ct=u({},c),it=f(at),lt=f(s),!s.height()&&it&&(lt+=it),"flip"===ft[0]&&(c.top+=h._flip(k.top,it,f(y),nt/d,vt[0],yt[0],lt)),"flip"===ft[1]&&(c.left+=h._flip(k.left,o(at),o(y),p/d,vt[1],yt[1],o(s))),at.css(l,w),s.css(c),c.left!=ct.left||c.top!=ct.top},_align:function(t,i){var c,l=this,a=l.wrapper,y=n(l.options.anchor),w=t[0],b=t[1],k=i[0],d=i[1],g=e(y),nt=n(l.options.appendTo),tt=o(a),it=f(a)||f(a.children().first()),rt=o(y),ut=f(y),r=g.top,u=g.left,h=Math.round;return nt[0]!=document.body&&(c=e(nt),r-=c.top,u-=c.left),w===p&&(r+=ut),w===s&&(r+=h(ut/2)),k===p&&(r-=it),k===s&&(r-=h(it/2)),b===v&&(u+=rt),b===s&&(u+=h(rt/2)),d===v&&(u-=tt),d===s&&(u-=h(tt/2)),{top:r,left:u}}});d.plugin(ri);et=i.support.stableSort;a="kendoTabKeyTrap";
16ot="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], *[contenteditable]";st=kt.extend({init:function(t){this.element=n(t);this.element.autoApplyNS(a)},trap:function(){this.element.on("keydown",ni(this._keepInTrap,this))},removeTrap:function(){this.element.kendoDestroy(a)},destroy:function(){this.element.kendoDestroy(a);this.element=t},shouldTrap:function(){return!0},_keepInTrap:function(n){var t,i,r;9===n.which&&this.shouldTrap()&&!n.isDefaultPrevented()&&(t=this._focusableElements(),i=this._sortFocusableElements(t),r=this._nextFocusable(n,i),this._focus(r),n.preventDefault())},_focusableElements:function(){var t=this.element.find(ot).filter(function(t,i){return i.tabIndex>=0&&n(i).is(":visible")&&!n(i).is("[disabled]")});return this.element.is("[tabindex]")&&t.push(this.element[0]),t},_sortFocusableElements:function(n){var i,t;return et?i=n.sort(function(n,t){return n.tabIndex-t.tabIndex}):(t="__k_index",n.each(function(n,i){i.setAttribute(t,n)}),i=n.sort(function(n,i){return n.tabIndex===i.tabIndex?parseInt(n.getAttribute(t),10)-parseInt(i.getAttribute(t),10):n.tabIndex-i.tabIndex}),n.removeAttr(t)),i},_nextFocusable:function(n,t){var i=t.length,r=t.index(n.target);return t.get((r+(n.shiftKey?-1:1))%i)},_focus:function(n){return"IFRAME"==n.nodeName?(n.contentWindow.document.body.focus(),t):(n.focus(),"INPUT"==n.nodeName&&n.setSelectionRange&&this._haveSelectionRange(n)&&n.setSelectionRange(0,n.value.length),t)},_haveSelectionRange:function(n){var t=n.type.toLowerCase();return"text"===t||"search"===t||"url"===t||"tel"===t||"password"===t}});d.Popup.TabKeyTrap=st}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(n,t,i){(i||t)()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.