PageSourceSearch

https://sgr.su/assets/materialize_lite-c0c3e530f0d6ba2ddf7c29e0b9932d8736cd0dd4d7697b47df8c8acb7ac1f56f.js

js sgr.su collected 2026-10-09 22:41:35 UTC 43,173 bytes, 2 lines download raw bytes

vendor: 23,023 bytes, line 1
1function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),Component=function(){function e(t,n){_classCallCheck(this,e),n instanceof Element||console.error(Error(n+" is not an HTML Element"));var o=t.getInstance(n);o&&o.destroy(),this.el=n,this.$el=jQuery(n)}return _createClass(e,null,[{key:"init",value:function(e,t,n){var o=null;if(t instanceof Element)o=new e(t,n);else if(t&&(t.jquery||t.cash||t instanceof NodeList)){for(var i=[],s=0;s<t.length;s++)i.push(new e(t[s],n));o=i}return o}}]),e}();!function(e){e.Package?M={}:e.M={},M.jQueryLoaded=!!e.jQuery}(window),"function"==typeof define&&define.amd?define("M",[],function(){return M}):"undefined"==typeof exports||exports.nodeType||("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=M),exports.default=M),M.version="1.0.0",M.keys={TAB:9,ENTER:13,ESC:27,ARROW_UP:38,ARROW_DOWN:40},M.tabPressed=!1,M.keyDown=!1;var docHandleKeydown=function(e){M.keyDown=!0,e.which!==M.keys.TAB&&e.which!==M.keys.ARROW_DOWN&&e.which!==M.keys.ARROW_UP||(M.tabPressed=!0)},docHandleKeyup=function(e){M.keyDown=!1,e.which!==M.keys.TAB&&e.which!==M.keys.ARROW_DOWN&&e.which!==M.keys.ARROW_UP||(M.tabPressed=!1)},docHandleFocus=function(){M.keyDown&&document.body.classList.add("keyboard-focused")},docHandleBlur=function(){document.body.classList.remove("keyboard-focused")};document.addEventListener("keydown",docHandleKeydown,!0),document.addEventListener("keyup",docHandleKeyup,!0),document.addEventListener("focus",docHandleFocus,!0),document.addEventListener("blur",docHandleBlur,!0),M.initializeJqueryWrapper=function(e,t,n){jQuery.fn[t]=function(o){if(e.prototype[o]){var i=Array.prototype.slice.call(arguments,1);if("get"===o.slice(0,3)){var s=this.first()[0][n];return s[o].apply(s,i)}return this.each(function(){var e=this[n];e[o].apply(e,i)})}if("object"==typeof o||!o)return e.init(this,arguments[0]),this;jQuery.error("Method "+o+" does not exist on jQuery."+t)}},M.AutoInit=function(e){var t=e||document.body,n={Autocomplete:t.querySelectorAll(".autocomplete:not(.no-autoinit)"),Carousel:t.querySelectorAll(".carousel:not(.no-autoinit)"),Chips:t.querySelectorAll(".chips:not(.no-autoinit)"),Collapsible:t.querySelectorAll(".collapsible:not(.no-autoinit)"),Datepicker:t.querySelectorAll(".datepicker:not(.no-autoinit)"),Dropdown:t.querySelectorAll(".dropdown-trigger:not(.no-autoinit)"),Materialbox:t.querySelectorAll(".materialboxed:not(.no-autoinit)"),Modal:t.querySelectorAll(".modal:not(.no-autoinit)"),Parallax:t.querySelectorAll(".parallax:not(.no-autoinit)"),Pushpin:t.querySelectorAll(".pushpin:not(.no-autoinit)"),ScrollSpy:t.querySelectorAll(".scrollspy:not(.no-autoinit)"),FormSelect:t.querySelectorAll("select:not(.no-autoinit)"),Sidenav:t.querySelectorAll(".sidenav:not(.no-autoinit)"),Tabs:t.querySelectorAll(".tabs:not(.no-autoinit)"),TapTarget:t.querySelectorAll(".tap-target:not(.no-autoinit)"),Timepicker:t.querySelectorAll(".timepicker:not(.no-autoinit)"),Tooltip:t.querySelectorAll(".tooltipped:not(.no-autoinit)"),FloatingActionButton:t.querySelectorAll(".fixed-action-btn:not(.no-autoinit)")};for(var o in n){M[o].init(n[o])}},M.objectSelectorString=function(e){return((e.prop("tagName")||"")+(e.attr("id")||"")+(e.attr("class")||"")).replace(/\s/g,"")},M.guid=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}(),M.escapeHash=function(e){return e.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1")},M.elementOrParentIsFixed=function(e){var t=$(e),n=t.add(t.parents()),o=!1;return n.each(function(){if("fixed"===$(this).css("position"))return o=!0,!1}),o},M.checkWithinContainer=function(e,t,n){var o={top:!1,right:!1,bottom:!1,left:!1},i=e.getBoundingClientRect(),s=e===document.body?Math.max(i.bottom,window.innerHeight):i.bottom,l=e.scrollLeft,r=e.scrollTop,a=t.left-l,d=t.top-r;return(a<i.left+n||a<n)&&(o.left=!0),(a+t.width>i.right-n||a+t.width>window.innerWidth-n)&&(o.right=!0),(d<i.top+n||d<n)&&(o.top=!0),(d+t.height>s-n||d+t.height>window.innerHeight-n)&&(o.bottom=!0),o},M.checkPossibleAlignments=function(e,t,n,o){var i={top:!0,right:!0,bottom:!0,left:!0,spaceOnTop:null,spaceOnRight:null,spaceOnBottom:null,spaceOnLeft:null},s="visible"===getComputedStyle(t).overflow,l=t.getBoundingClientRect(),r=Math.min(l.height,window.innerHeight),a=Math.min(l.width,window.innerWidth),d=e.getBoundingClientRect(),c=t.scrollLeft,u=t.scrollTop,p=n.left-c,h=n.top-u,f=n.top+d.height-u;return i.spaceOnRight=s?window.innerWidth-(d.left+n.width):a-(p+n.width),i.spaceOnRight<0&&(i.left=!1),i.spaceOnLeft=s?d.right-n.width:p-n.width+d.width,i.spaceOnLeft<0&&(i.right=!1),i.spaceOnBottom=s?window.innerHeight-(d.top+n.height+o):r-(h+n.height+o),i.spaceOnBottom<0&&(i.top=!1),i.spaceOnTop=s?d.bottom-(n.height+o):f-(n.height-o),i.spaceOnTop<0&&(i.bottom=!1),i},M.getOverflowParent=function(e){return null==e?null:e===document.body||"visible"!==getComputedStyle(e).overflow?e:M.getOverflowParent(e.parentElement)},M.getIdFromTrigger=function(e){var t=e.getAttribute("data-target");return t||(t=(t=e.getAttribute("href"))?t.slice(1):""),t},M.getDocumentScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},M.getDocumentScrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};var getTime=Date.now||function(){return(new Date).getTime()};M.throttle=function(e,t,n){var o=void 0,i=void 0,s=void 0,l=null,r=0;n||(n={});var a=function(){r=!1===n.leading?0:getTime(),l=null,s=e.apply(o,i),o=i=null};return function(){var d=getTime();r||!1!==n.leading||(r=d);var c=t-(d-r);return o=this,i=arguments,c<=0?(clearTimeout(l),l=null,r=d,s=e.apply(o,i),o=i=null):l||!1===n.trailing||(l=setTimeout(a,c)),s}},function(){"use strict";function e(e){return e&&"object"==typeof e&&!Array.isArray(e)&&(e=e.value),e}function t(t){return t=e(t),Array.isArray(t)?t[t.length-1]:t}function n(t){return t=e(t),Array.isArray(t)?t[0]:void 0}function o(e,t){return null==t?t:"number"==typeof t&&"opacity"!==e?t+"px":String(t)}function i(e,t){var n=[];return r.forEach(function(o){var i=t(e[o]);if(void 0!==i){var s=0===o.indexOf("translate")?"px":"";"number"==typeof i&&(i+=s),n.push(o+"("+i+")")}}),n.join(" ")}function s(e){var r=e.targets;if(r&&r.jquery&&(r=r[0]),r&&1===r.nodeType){s.remove(r);var c="number"==typeof e.duration?e.duration:300,u=l[e.easing]||"ease",p=i(e,n),h=!!p;r.style.transition="none",a.forEach(function(t){var i=n(e[t]);void 0!==i&&(r.style[t]=o(t,i),h=!0)}),p&&(r.style.transform=p),h&&r.offsetHeight,r.style.transition="all "+c+"ms "+u,a.forEach(function(n){var i=t(e[n]);void 0!==i&&(r.style[n]=o(n,i))});var f=i(e,t);f&&(r.style.transform=f);var v=setTimeout(function(){d.delete(r),r.style.transition="","function"==typeof e.complete&&e.complete({animatables:[{target:r}]})},c+20);d.set(r,v)}}var l={easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)"},r=["scaleX","scaleY","translateX","translateY"],a=["opacity","top","bottom","left","right"],d=new WeakMap;s.remove=function(e){if(e&&e.jquery&&(e=e[0]),e){var t=d.get(e);void 0!==t&&(clearTimeout(t),d.delete(e),e.style.transition="")}},M.anime=s}();_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var _get=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var s=Object.getPrototypeOf(t);return null===s?void 0:e(s,n,o)}if("value"in i)return i.value;var l=i.get;return void 0!==l?l.call(o):void 0};!function(e,t){"use strict";var n={alignment:"left",autoFocus:!0,constrainWidth:!0,container:null,coverTrigger:!0,closeOnClick:!0,hover:!1,inDuration:150,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,onItemClick:null},o=function(){function o(t,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,t,n));return i.el.M_Dropdown=i,o._dropdowns.push(i),i.id=M.getIdFromTrigger(t),i.dropdownEl=document.getElementById(i.id),i.$dropdownEl=e(i.dropdownEl),i.options=e.extend({},o.defaults,n),i.isOpen=!1,i.isScrollable=!1,i.isTouchMoving=!1,i.focusedIndex=-1,i.filterQuery=[],i.options.container?e(i.options.container).append(i.dropdownEl):i.$el.after(i.dropdownEl),i._makeDropdownFocusable(),i._resetFilterQueryBound=i._resetFilterQuery.bind(i),i._handleDocumentClickBound=i._handleDocumentClick.bind(i),i._handleDocumentTouchmoveBound=i._handleDocumentTouchmove.bind(i),i._handleDropdownClickBound=i._handleDropdownClick.bind(i),i._handleDropdownKeydownBound=i._handleDropdownKeydown.bind(i),i._handleTriggerKeydownBound=i._handleTriggerKeydown.bind(i),i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this._resetDropdownStyles(),this._removeEventHandlers(),o._dropdowns.splice(o._dropdowns.indexOf(this),1),this.el.M_Dropdown=void 0}},{key:"_setupEventHandlers",value:function(){this.el.addEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.addEventListener("click",this._handleDropdownClickBound),this.options.hover?(this._handleMouseEnterBound=this._handleMouseEnter.bind(this),this.el.addEventListener("mouseenter",this._handleMouseEnterBound),this._handleMouseLeaveBound=this._handleMouseLeave.bind(this),this.el.addEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.addEventListener("mouseleave",this._handleMouseLeaveBound)):(this._handleClickBound=this._handleClick.bind(this),this.el.addEventListener("click",this._handleClickBound))}},{key:"_removeEventHandlers",value:function(){this.el.removeEventListener("keydown",this._handleTriggerKeydownBound),this.dropdownEl.removeEventListener("click",this._handleDropdownClickBound),this.options.hover?(this.el.removeEventListener("mouseenter",this._handleMouseEnterBound),this.el.removeEventListener("mouseleave",this._handleMouseLeaveBound),this.dropdownEl.removeEventListener("mouseleave",this._handleMouseLeaveBound)):this.el.removeEventListener("click",this._handleClickBound)}},{key:"_setupTemporaryEventHandlers",value:function(){document.body.addEventListener("click",this._handleDocumentClickBound,!0),document.body.addEventListener("touchend",this._handleDocumentClickBound),document.body.addEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.addEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_removeTemporaryEventHandlers",value:function(){document.body.removeEventListener("click",this._handleDocumentClickBound,!0),document.body.removeEventListener("touchend",this._handleDocumentClickBound),document.body.removeEventListener("touchmove",this._handleDocumentTouchmoveBound),this.dropdownEl.removeEventListener("keydown",this._handleDropdownKeydownBound)}},{key:"_handleClick",value:function(e){e.preventDefault(),this.open()}},{key:"_handleMouseEnter",value:function(){this.open()}},{key:"_handleMouseLeave",value:function(t){var n=t.toElement||t.relatedTarget,o=!!e(n).closest(".dropdown-content").length,i=!1,s=e(n).closest(".dropdown-trigger");s.length&&s[0].M_Dropdown&&s[0].M_Dropdown.isOpen&&(i=!0),i||o||this.close()}},{key:"_handleDocumentClick",value:function(t){var n=this,o=e(t.target);this.options.closeOnClick&&o.closest(".dropdown-content").length&&!this.isTouchMoving?setTimeout(function(){n.close()},0):!o.closest(".dropdown-trigger").length&&o.closest(".dropdown-content").length||setTimeout(function(){n.close()},0),this.isTouchMoving=!1}},{key:"_handleTriggerKeydown",value:function(e){e.which!==M.keys.ARROW_DOWN&&e.which!==M.keys.ENTER||this.isOpen||(e.preventDefault(),this.open())}},{key:"_handleDocumentTouchmove",value:function(t){e(t.target).closest(".dropdown-content").length&&(this.isTouchMoving=!0)}},{key:"_handleDropdownClick",value:function(t){if("function"==typeof this.options.onItemClick){var n=e(t.target).closest("li")[0];this.options.onItemClick.call(this,n)}}},{key:"_handleDropdownKeydown",value:function(t){if(t.which===M.keys.TAB)t.preventDefault(),this.close();else if(t.which!==M.keys.ARROW_DOWN&&t.which!==M.keys.ARROW_UP||!this.isOpen)if(t.which===M.keys.ENTER&&this.isOpen){var n=this.dropdownEl.children[this.focusedIndex],o=e(n).find("a, button").first();o.length?o[0].click():n&&n.click()}else t.which===M.keys.ESC&&this.isOpen&&(t.preventDefault(),this.close());else{t.preventDefault();var i=t.which===M.keys.ARROW_DOWN?1:-1,s=this.focusedIndex,l=!1;do{if(s+=i,this.dropdownEl.children[s]&&-1!==this.dropdownEl.children[s].tabIndex){l=!0;break}}while(s<this.dropdownEl.children.length&&s>=0);l&&(this.focusedIndex=s,this._focusFocusedItem())}var r=String.fromCharCode(t.which).toLowerCase();if(r&&-1===[9,13,27,38,40].indexOf(t.which)){this.filterQuery.push(r);var a=this.filterQuery.join(""),d=e(this.dropdownEl).find("li").filter(function(){return 0===e(this).text().toLowerCase().indexOf(a)})[0];d&&(this.focusedIndex=e(d).index(),this._focusFocusedItem())}this.filterTimeout=setTimeout(this._resetFilterQueryBound,1e3)}},{key:"_resetFilterQuery",value:function(){this.filterQuery=[]}},{key:"_resetDropdownStyles",value:function(){this.$dropdownEl.css({display:"",width:"",height:"",left:"",top:"","transform-origin":"",transform:"",opacity:""})}},{key:"_makeDropdownFocusable",value:function(){this.dropdownEl.tabIndex=0,e(this.dropdownEl).children().each(function(){this.getAttribute("tabindex")||this.setAttribute("tabindex",0)})}},{key:"_focusFocusedItem",value:function(){this.focusedIndex>=0&&this.focusedIndex<this.dropdownEl.children.length&&this.options.autoFocus&&this.dropdownEl.children[this.focusedIndex].focus()}},{key:"_getDropdownPosition",value:function(){this.el.offsetParent.getBoundingClientRect();var e=this.el.getBoundingClientRect(),t=this.dropdownEl.getBoundingClientRect(),n=t.height,o=t.width,i=e.left-t.left,s=e.top-t.top,l={left:i,top:s,height:n,width:o},r=this.dropdownEl.offsetParent?this.dropdownEl.offsetParent:this.dropdownEl.parentNode,a=M.checkPossibleAlignments(this.el,r,l,this.options.coverTrigger?0:e.height),d="top",c=this.options.alignment;if(s+=this.options.coverTrigger?0:e.height,this.isScrollable=!1,a.top||(a.bottom?d="bottom":(this.isScrollable=!0,a.spaceOnTop>a.spaceOnBottom?(d="bottom",n+=a.spaceOnTop,s-=a.spaceOnTop):n+=a.spaceOnBottom)),!a[c]){var u="left"===c?"right":"left";a[u]?c=u:a.spaceOnLeft>a.spaceOnRight?(c="right",o+=a.spaceOnLeft,i-=a.spaceOnLeft):(c="left",o+=a.spaceOnRight)}return"bottom"===d&&(s=s-t.height+(this.options.coverTrigger?e.height:0)),"right"===c&&(i=i-t.width+e.width),{x:i,y:s,verticalAlignment:d,horizontalAlignment:c,height:n,width:o}}},{key:"_animateIn",value:function(){var e=this;t.remove(this.dropdownEl),t({targets:this.dropdownEl,opacity:{value:[0,1],easing:"easeOutQuad"},scaleX:[.3,1],scaleY:[.3,1],duration:this.options.inDuration,easing:"easeOutQuint",complete:function(){e.options.autoFocus&&e.dropdownEl.focus(),"function"==typeof e.options.onOpenEnd&&e.options.onOpenEnd.call(e,e.el)}})}},{key:"_animateOut",value:function(){var e=this;t.remove(this.dropdownEl),t({targets:this.dropdownEl,opacity:{value:0,easing:"easeOutQuint"},scaleX:.3,scaleY:.3,duration:this.options.outDuration,easing:"easeOutQuint",complete:function(){e._resetDropdownStyles(),"function"==typeof e.options.onCloseEnd&&e.options.onCloseEnd.call(e,e.el)}})}},{key:"_placeDropdown",value:function(){var e=this.options.constrainWidth?this.el.getBoundingClientRect().width:this.dropdownEl.getBoundingClientRect().width;this.dropdownEl.style.width=e+"px";var t=this._getDropdownPosition();this.dropdownEl.style.left=t.x+"px",this.dropdownEl.style.top=t.y+"px",this.dropdownEl.style.height=t.height+"px",this.dropdownEl.style.width=t.width+"px",this.dropdownEl.style.transformOrigin=("left"===t.horizontalAlignment?"0":"100%")+" "+("top"===t.verticalAlignment?"0":"100%")}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el),this._resetDropdownStyles(),this.dropdownEl.style.display="block",this._placeDropdown(),this._animateIn(),this._setupTemporaryEventHandlers())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.focusedIndex=-1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._animateOut(),this._removeTemporaryEventHandlers(),this.options.autoFocus&&this.el.focus())}},{key:"recalculateDimensions",value:function(){this.isOpen&&(this.$dropdownEl.css({width:"",height:"",left:"",top:"","transform-origin":""}),this._placeDropdown())}}],[{key:"init",value:function(e,t){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,e,t)}},{key:"getInstance",value:function(e){return(e.jquery?e[0]:e).M_Dropdown}},{key:"defaults",get:function(){return n}}]),o}();o._dropdowns=[],M.Dropdown=o,M.jQueryLoaded&&M.initializeJqueryWrapper(o,"dropdown","M_Dropdown")}(jQuery,M.anime);_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),_get=function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var s=Object.getPrototypeOf(t);return null===s?void 0:e(s,n,o)}if("value"in i)return i.value;var l=i.get;return void 0!==l?l.call(o):void 0};!function(e,t){"use strict";var n={opacity:.5,inDuration:250,outDuration:250,onOpenStart:null,onOpenEnd:null,onCloseStart:null,onCloseEnd:null,preventScrolling:!0,dismissible:!0,startingTop:"4%",endingTop:"10%"},o=function(){function o(t,n){_classCallCheck(this,o);var i=_possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,o,t,n));return i.el.M_Modal=i,i.options=e.extend({},o.defaults,n),i.isOpen=!1,i.id=i.$el.attr("id"),i._openingTrigger=void 0,i.$overlay=e('<div class="modal-overlay"></div>'),i.el.tabIndex=0,i._nthModalOpened=0,o._count++,i._setupEventHandlers(),i}return _inherits(o,Component),_createClass(o,[{key:"destroy",value:function(){this.isOpen&&this._releaseScrollLock(),o._count--,this._removeEventHandlers(),this.el.removeAttribute("style"),this.$overlay.remove(),this.el.M_Modal=void 0}},{key:"_releaseScrollLock",value:function(){this.isOpen=!1,this._nthModalOpened=0,o._modalsOpen=Math.max(0,o._modalsOpen-1),0===o._modalsOpen&&(document.body.style.overflow="",document.body.style.paddingRight=o._bodyPaddingRight||""),this.options.dismissible&&(document.removeEventListener("keydown",this._handleKeydownBound),document.removeEventListener("focus",this._handleFocusBound,!0))}},{key:"_setupEventHandlers",value:function(){this._handleOverlayClickBound=this._handleOverlayClick.bind(this),this._handleModalCloseClickBound=this._handleModalCloseClick.bind(this),1===o._count&&document.body.addEventListener("click",this._handleTriggerClick),this.$overlay[0].addEventListener("click",this._handleOverlayClickBound),this.el.addEventListener("click",this._handleModalCloseClickBound)}},{key:"_removeEventHandlers",value:function(){0===o._count&&document.body.removeEventListener("click",this._handleTriggerClick),this.$overlay[0].removeEventListener("click",this._handleOverlayClickBound),this.el.removeEventListener("click",this._handleModalCloseClickBound)}},{key:"_handleTriggerClick",value:function(t){var n=e(t.target).closest(".modal-trigger");if(n.length){var o=M.getIdFromTrigger(n[0]),i=document.getElementById(o).M_Modal;i&&i.open(n),t.preventDefault()}}},{key:"_handleOverlayClick",value:function(){this.options.dismissible&&this.close()}},{key:"_handleModalCloseClick",value:function(t){e(t.target).closest(".modal-close").length&&this.close()}},{key:"_handleKeydown",value:function(e){27===e.keyCode&&this.options.dismissible&&this.close()}},{key:"_handleFocus",value:function(e){e.target&&e.target.closest&&e.target.closest(".assistant-chat")||this.el.contains(e.target)||this._nthModalOpened!==o._modalsOpen||this.el.focus()}},{key:"_animateIn",value:function(){var n=this;e.extend(this.el.style,{display:"block",opacity:0}),e.extend(this.$overlay[0].style,{display:"block",opacity:0}),t({targets:this.$overlay[0],opacity:this.options.opacity,duration:this.options.inDuration,easing:"easeOutQuad"});var o={targets:this.el,duration:this.options.inDuration,easing:"easeOutCubic",complete:function(){"function"==typeof n.options.onOpenEnd&&n.options.onOpenEnd.call(n,n.el,n._openingTrigger)}};this.el.classList.contains("bottom-sheet")?(e.extend(o,{bottom:0,opacity:1}),t(o)):(e.extend(o,{top:[this.options.startingTop,this.options.endingTop],opacity:1,scaleX:[.8,1],scaleY:[.8,1]}),t(o))}},{key:"_animateOut",value:function(){var n=this;t({targets:this.$overlay[0],opacity:0,duration:this.options.outDuration,easing:"easeOutQuart"});var o={targets:this.el,duration:this.options.outDuration,easing:"easeOutCubic",complete:function(){n.el.style.display="none",n.$overlay.remove(),"function"==typeof n.options.onCloseEnd&&n.options.onCloseEnd.call(n,n.el)}};this.el.classList.contains("bottom-sheet")?(e.extend(o,{bottom:"-100%",opacity:0}
1),t(o)):(e.extend(o,{top:[this.options.endingTop,this.options.startingTop],opacity:0,scaleX:.8,scaleY:.8}),t(o))}},{key:"open",value:function(e){if(!this.isOpen){if(this.isOpen=!0,o._modalsOpen++,this._nthModalOpened=o._modalsOpen,this.$overlay[0].style.zIndex=1e3+2*o._modalsOpen,this.el.style.zIndex=1e3+2*o._modalsOpen+1,this._openingTrigger=e?e[0]:void 0,"function"==typeof this.options.onOpenStart&&this.options.onOpenStart.call(this,this.el,this._openingTrigger),this.options.preventScrolling){var n=window.innerWidth-document.documentElement.clientWidth;n>0&&o._modalsOpen<=1&&(o._bodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=n+"px"),document.body.style.overflow="hidden"}return this.el.classList.add("open"),this.el.insertAdjacentElement("afterend",this.$overlay[0]),this.options.dismissible&&(this._handleKeydownBound=this._handleKeydown.bind(this),this._handleFocusBound=this._handleFocus.bind(this),document.addEventListener("keydown",this._handleKeydownBound),document.addEventListener("focus",this._handleFocusBound,!0)),t.remove(this.el),t.remove(this.$overlay[0]),this._animateIn(),this.el.focus(),this}}},{key:"close",value:function(){if(this.isOpen)return this.isOpen=!1,"function"==typeof this.options.onCloseStart&&this.options.onCloseStart.call(this,this.el),this._releaseScrollLock(),this.el.classList.remove("open"),t.remove(this.el),t.remove(this.$overlay[0]),this._animateOut(),this}}],[{key:"init",value:function(e,t){return _get(o.__proto__||Object.getPrototypeOf(o),"init",this).call(this,this,e,t)}},{key:"getInstance",value:function(e){return(e.jquery?e[0]:e).M_Modal}},{key:"defaults",get:function(){return n}}]),o}();if(o._modalsOpen=0,o._count=0,M.Modal=o,!e.cleanData.__sbModalPatched){var i=e.cleanData;e.cleanData=function(e){for(var t=0;void 0!==e[t];t++){var n=e[t]&&e[t].M_Modal;n&&Promise.resolve(n).then(function(e){if(!e.el.isConnected&&e.el.M_Modal===e)try{e.destroy()}catch(e){console.error(e)}})}return i.apply(this,arguments)},e.cleanData.__sbModalPatched=!0}if(M.jQueryLoaded){M.initializeJqueryWrapper(o,"modal","M_Modal");var s=jQuery.fn.modal;jQuery.fn.modal=function(e){if(!e){var t=[];if(this.each(function(){var e=this.M_Modal;e&&e.isOpen&&this.classList.contains("open")||t.push(this)}),t.length!==this.length)return t.length&&s.call(jQuery(t)),this}return"string"==typeof e&&o.prototype[e]&&this.each(function(){this.M_Modal||o.init(this)}),s.apply(this,arguments)}}}(jQuery,M.anime),function(e){function t(){var t=e("#materialbox-overlay"),n=e(".sb-materialbox-preview");t.css("opacity",0),n.css("opacity",0),e(".materialboxed.active").removeClass("active"),e(window).off("keydown.sbMaterialbox"),setTimeout(function(){t.remove(),n.remove()},200)}
1function n(n){if(!e("#materialbox-overlay").length){var o=n.attr("data-materialbox-src")||n.attr("src");if(o){var i=e('<div id="materialbox-overlay"></div>').css({position:"fixed",top:0,left:0,right:0,bottom:0,"background-color":"#292929","z-index":1e3,opacity:0,transition:"opacity .2s ease",cursor:"zoom-out"}),s=e('<img class="sb-materialbox-preview">').attr("src",o).attr("alt",n.attr("alt")||"").css({position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)","max-width":"92vw","max-height":"92vh","object-fit":"contain","z-index":1001,opacity:0,transition:"opacity .2s ease",cursor:"zoom-out"});i.on("click",t),s.on("click",t),e("body").append(i).append(s),n.addClass("active"),requestAnimationFrame(function(){i.css("opacity",1),s.css("opacity",1)}),e(window).on("keydown.sbMaterialbox",function(e){"Escape"===e.key&&t()})}}}e.fn.materialbox=function(){return this.each(function(){var t=e(this);t.data("sbMaterialbox")||(t.data("sbMaterialbox",!0),t.on("click",function(e){e.preventDefault(),n(t)}))})}}(jQuery),function(e){M.updateTextFields=function(){e("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea").each(function(){var t=this,n=e(this);t.value.length>0||e(t).is(":focus")||t.autofocus||null!==n.attr("placeholder")?n.siblings("label").addClass("active"):t.validity?n.siblings("label").toggleClass("active",!0===t.validity.badInput):n.siblings("label").removeClass("active")})},M.validate_field=function(e){var t=null!==e.attr("data-length"),n=parseInt(e.attr("data-length")),o=e[0].value.length;0!==o||!1!==e[0].validity.badInput||e.is(":required")?e.hasClass("val
1idate")&&(e.is(":valid")&&t&&o<=n||e.is(":valid")&&!t?(e.removeClass("invalid"),e.addClass("valid")):(e.removeClass("valid"),e.addClass("invalid"))):e.hasClass("validate")&&(e.removeClass("valid"),e.removeClass("invalid"))},M.textareaAutoResize=function(t){if(t instanceof Element&&(t=e(t)),t.length){var n=e(".hiddendiv").first();n.length||(n=e('<div class="hiddendiv common"></div>'),e("body").append(n));var o=t.css("font-family"),i=t.css("font-size"),s=t.css("line-height"),l=t.css("padding-top"),r=t.css("padding-right"),a=t.css("padding-bottom"),d=t.css("padding-left");i&&n.css("font-size",i),o&&n.css("font-family",o),s&&n.css("line-height",s),l&&n.css("padding-top",l),r&&n.css("padding-right",r),a&&n.css("padding-bottom",a),d&&n.css("padding-left",d),t.data("original-height")||t.data("original-height",t.height()),"off"===t.attr("wrap")&&n.css("overflow-wrap","normal").css("white-space","pre"),n.text(t[0].value+"\n");var c=n.html().replace(/\n/g,"<br>");n.html(c),t[0].offsetWidth>0&&t[0].offsetHeight>0?n.css("width",t.width()+"px"):n.css("width",window.innerWidth/2+"px"),t.data("original-height")<=n.innerHeight()?t.css("height",n.innerHeight()+"px"):t[0].value.length<t.data("previous-length")&&t.css("height",t.data("original-height")+"px"),t.data("previous-length",t[0].value.length)}else console.error("No textarea element found")},e(document).ready(function(){var t="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], textarea";e(document).on("change",t,function(){0===this.value.length&&null===e(this).attr("placeholder")||e(this).siblings("label").addClass("active"),M.validate_field(e(this))}),e(document).ready(function(){M.updateTextFields()}),e(document).on("reset",function(n){var o=e(n.target);o.is("form")&&(o.find(t).removeClass("valid").removeClass("invalid"),o.find(t).each(function(){this.value.length&&e(this).siblings("label").removeClass("active")}),setTimeout(function(){o.find("select").each(function(){this.M_FormSelect&&this.dispatchEvent(new Event("change",{bubbles:!0}))})},0))}),document.addEventListener("focus",function(n){e(n.target).is(t)&&e(n.target).siblings("label, .prefix").addClass("active")},!0),document.addEventListener("blur",function(n){var o=e(n.target);if(o.is(t)){var i=".prefix";0===o[0].value.length&&!0!==o[0].validity.badInput&&null===o.attr("placeholder")&&(i+=", label"),o.siblings(i).removeClass("active"),M.validate_field(o)}},!0);var n="input[type=radio], input[type=checkbox]";e(document).on("keyup",n,function(t){if(t.which===M.keys.TAB)return e(this).addClass("tabbed"),void e(this).one("blur",function(){e(this).removeClass("tabbed")})});var o=".materialize-textarea";e(o).each(function(){var t=e(this);t.data("original-height",t.height()),t.data("previous-length",this.value.length),M.textareaAutoResize(t)}),e(document).on("keyup",o,function(){M.textareaAutoResize(e(this))}),e(document).on("keydown",o,function(){M.textareaAutoResize(e(this))}),e(document).on("change",'.file-field input[type="file"]',function(){for(var t=e(this).closest(".file-field").find("input.file-path"),n=e(this)[0].files,o=[],i=0;i<n.length;i++)o.push(n[i].name);t[0].value=o.join(", "),t[0].dispatchEvent(new Event("change",{bubbles:!0}))})})}(jQuery),"function"!=typeof window.resolveSelectColor&&(window.resolveSelectColor=function(e){return e?"brand"===e?"var(--brand-500)":/^--/.test(e)?"var("+e+")":e:""}),"function"!=typeof window.buildSelectMark&&(window.buildSelectMark=function(e){e=e||{};const t=window.resolveSelectColor(e.color),n=t?"color:"+t+" !important;":"";if(e.iconUrl){return'<span class="select-option-mark select-option-mark--icon" style="'+n+("-webkit-mask:url('"+e.iconUrl+"') center/contain no-repeat;mask:url('"+e.iconUrl+"') center/contain no-repeat;")+'"></span>'}return e.color?'<span class="select-option-mark select-option-mark--dot" style="'+n+'"></span>':""}),"function"!=typeof window.getSelectOptionMarkData&&(window.getSelectOptionMarkData=function(e){if(!e)return null;const t=e.getAttribute("data-color");return t?{color:t,iconUrl:e.getAttribute("data-icon")}:null}),function(e){"use strict";let t={classes:"",dropdownOptions:{}};const n=e=>!(!e||!document.documentElement.contains(e));class o extends Component{constructor(t,i){super(o,t,i),n(this.el)&&(this.$el.hasClass("browser-default")||(this._unwrapStaleWrapper(),this.el.M_FormSelect=this,this.options=e.extend({},o.defaults,i),this.isMultiple=this.$el.prop("multiple"),this.el.tabIndex=-1,this._keysSelected={},this._valueDict={},this._setupDropdown(),this._setupEventHandlers()))}static get defaults(){return t}static init(e,t){return super.init(this,e,t)}static getInstance(e){let t=e&&e.jquery?e[0]:e;return t?t.M_FormSelect:void 0}destroy(){this._removeEventHandlers(),this._removeDropdown(),this.el.M_FormSelect=void 0}_unwrapStaleWrapper(){const e=this.el.parentNode;if(!e||!e.classList.contains("hide-select"))return;const t=e.parentNode;t&&t.hasAttribute("data-form-select-wrapper")&&(t.parentNode.insertBefore(this.el,t),t.parentNode.removeChild(t))}_setupEventHandlers(){this._handleSelectChangeBound=this._handleSelectChange.bind(this),this._handleOptionClickBound=this._handleOptionClick.bind(this),
2this._handleInputClickBound=this._handleInputClick.bind(this),e(this.dropdownOptions).find("li:not(.optgroup):not(.select-dropdown__empty)").each((e,t)=>{t.removeEventListener("click",this._handleOptionClickBound),t.addEventListener("click",this._handleOptionClickBound)}),this.el.addEventListener("change",this._handleSelectChangeBound),this.input.addEventListener("click",this._handleInputClickBound)}_removeEventHandlers(){e(this.dropdownOptions).find("li:not(.optgroup):not(.select-dropdown__empty)").each((e,t)=>{t.removeEventListener("click",this._handleOptionClickBound)}),this.el.removeEventListener("change",this._handleSelectChangeBound),this.input.removeEventListener("click",this._handleInputClickBound)}_handleSelectChange(e){this._setValueToInput()}_handleOptionClick(t){"input"!==t.target.tagName.toLowerCase()&&t.preventDefault();let n=e(t.target).closest("li")[0];this._selectOption(n),t.stopPropagation()}_selectOption(t){let n=t.id;if(!e(t).hasClass("disabled")&&!e(t).hasClass("optgroup")&&n.length){let o=!0;if(this.isMultiple){let t=e(this.dropdownOptions).find("li.disabled.selected");t.length&&(t.removeClass("selected"),t.find('input[type="checkbox"]').prop("checked",!1),this._toggleEntryFromArray(t[0].id)),o=this._toggleEntryFromArray(n)}else e(this.dropdownOptions).find("li").removeClass("selected"),e(t).toggleClass("selected",o),this._keysSelected={},this._keysSelected[t.id]=!0;e(this._valueDict[n].el).prop("selected")!==o&&(e(this._valueDict[n].el).prop("selected",o),this.el.dispatchEvent(new Event("change",{bubbles:!0})))}this.isMultiple||this.dropdown.close()}_handleInputClick(){this._setValueToInput(),this._setSelectedStates()}_setupDropdown(){this.wrapper=document.createElement("div"),e(this.wrapper).addClass("select-wrapper "+this.options.classes),this.wrapper.setAttribute("data-form-select-wrapper","1"),this.$el.before(e(this.wrapper));let t=e('<div class="hide-select"></div>');e(this.wrapper).append(t),t[0].appendChild(this.el),this.el.disabled&&this.wrapper.classList.add("disabled");var o=window.location.href.includes("lesson_edit");this.$selectOptions=this.$el.children("option, optgroup"),this.dropdownOptions=document.createElement("ul"),this.dropdownOptions.id=`select-options-${M.guid()}`,e(this.dropdownOptions).addClass("dropdown-content select-dropdown "+(this.isMultiple?"multiple-select-dropdown":"")+(o?" pos-relative":"")),o&&console.log("lessons"),this.$selectOptions.length&&this.$selectOptions.each((t,n)=>{if(e(n).is("option")){if(n.disabled&&""===n.value)return;let e;e=this.isMultiple?this._appendOptionWithIcon(this.$el,n,"multiple"):this._appendOptionWithIcon(this.$el,n),this._addOptionToValueDict(n,e)}else if(e(n).is("optgroup")){let t=e(n).children("option");e(this.dropdownOptions).append(e('<li class="optgroup"></li>').append(e("<span></span>").text(n.getAttribute("label")||""))[0]),t.each((e,t)=>{let n=this._appendOptionWithIcon(this.$el,t,"optgroup-option");this._addOptionToValueDict(t,n)})}}),"function"==typeof window.ensureSelectEmptyState&&window.ensureSelectEmptyState(this.dropdownOptions),e(this.wrapper).append(this.dropdownOptions),this.input=document.createElement("input");const i="js"===this.options.classVariant?"select-dropdown--css select-dropdown--js":"select-dropdown";if(e(this.input).addClass(i+" dropdown-trigger"),this.input.setAttribute("type","text"),this.input.setAttribute("readonly","true"),this.input.setAttribute("data-target",this.dropdownOptions.id),this.el.disabled&&e(this.input).prop("disabled","true"),e(this.wrapper).prepend(this.input),this._setValueToInput(),!this.el.disabled){let t=e.extend({coverTrigger:!1},this.options.dropdownOptions),o=t.onOpenEnd;t.onOpenEnd=()=>{o&&"function"==typeof o&&o.call(this.dropdown,this.el)};let i=t.onOpenStart,s=t.onCloseStart;t.onOpenStart=e=>{this.wrapper.classList.add("select-wrapper--open"),"function"==typeof i&&i.call(this.dropdown,e)},t.onCloseStart=e=>{this.wrapper.classList.remove("select-wrapper--open"),"function"==typeof s&&s.call(this.dropdown,e)},t.closeOnClick=!1,n(this.input)&&document.getElementById(this.dropdownOptions.id)&&(this.dropdown=M.Dropdown.init(this.input,t),this._patchDropdownOpen())}this._setSelectedStates();let s=this.$el.find("option:disabled").eq(0);s.length&&""===s[0].value?(this.input.setAttribute("placeholder",s.text()),this.$el.val()||e(this.input).val("")):this.el.dataset.placeholder&&this.input.setAttribute("placeholder",this.el.dataset.placeholder)}_patchDropdownOpen(){let e=this.dropdown;if(!e||e._selectScrollPatched)return;e._selectScrollPatched=!0;let t=e.open.bind(e);e.open=()=>{t(),this._scrollToSelectedOption()}}_scrollToSelectedOption(){let t=e(this.dropdownOptions).find(".selected").first();if(t.length&&(M.keyDown=!0,this.dropdown.focusedIndex=t.index(),this.dropdown._focusFocusedItem(),M.keyDown=!1,this.dropdown.isScrollable)){let e=t[0].getBoundingClientRect().top-this.dropdownOptions.getBoundingClientRect().top;e-=this.dropdownOptions.clientHeight/2,this.dropdownOptions.scrollTop=e}}_addOptionToValueDict(e,t){let n=Object.keys(this._valueDict).length,o=this.dropdownOptions.id+n,i={};t.id=o,i.el=e,i.optionEl=t,this._valueDict[o]=i}_removeDropdown(){e(this.wrapper).find(".caret").remove(),e(this.input).remove(),e(this.dropdownOptions).remove(),this.wrapper&&this.wrapper.parentNode&&e(this.wrapper).before(this.$el),e(this.wrapper).remove()}_appendOptionWithIcon(t,n,o){let i=n.disabled?"disabled ":"",s="optgroup-option"===o?"optgroup-option ":"",l=this.isMultiple?`<label class="salebot-checkbox"><input type="checkbox"${i}"/><span>${n.innerHTML}</span></label>`:n.innerHTML,r=e("<li></li>"),a=e("<span></span>");a.html(l),r.addClass(`${i} ${s}`);let d=(n.textContent||"").trim();d&&r.attr("title",d),r.addClass(n.classList.value),r.append(a);let c=n.getAttribute("data-icon"),u=n.getAttribute("data-color");
2if(!this.isMultiple&&u){let t=window.buildSelectMark({color:u,iconUrl:c});t&&a.prepend(e(t)[0])}else if(c){let t=e(`<img alt="" src="${c}">`);r.prepend(t)}return e(this.dropdownOptions).append(r[0]),r[0]}_toggleEntryFromArray(t){let n=!this._keysSelected.hasOwnProperty(t),o=e(this._valueDict[t].optionEl);return n?this._keysSelected[t]=!0:delete this._keysSelected[t],o.toggleClass("selected",n),o.find('input[type="checkbox"]').prop("checked",n),o.prop("selected",n),n}_setValueToInput(){let t=[],n=this.$el.find("option"),o=null;if(n.each((n,i)=>{let s=e(i);if(s.prop("selected")&&!s.prop("disabled")&&""!==s.val()){let e=s.text();t.push(e),this.isMultiple||o||(o=window.getSelectOptionMarkData(i))}}),this.input.value=t.join(", "),!this.isMultiple&&o){const t=window.resolveSelectColor(o.color);this.input.style.setProperty("--select-current-mark-color",t||"transparent"),e(this.wrapper).addClass("select-wrapper--with-mark")}else this.input.style.removeProperty("--select-current-mark-color"),e(this.wrapper).removeClass("select-wrapper--with-mark")}_setSelectedStates(){this._keysSelected={};for(let t in this._valueDict){let n=this._valueDict[t],o=e(n.el).prop("selected");e(n.optionEl).find('input[type="checkbox"]').prop("checked",o),o?(this._activateOption(e(this.dropdownOptions),e(n.optionEl)),this._keysSelected[t]=!0):e(n.optionEl).removeClass("selected")}}_activateOption(t,n){if(n){this.isMultiple||t.find("li.selected").removeClass("selected"),e(n).addClass("selected")}}getSelectedValues(){let e=[];for(let t in this._keysSelected)e.push(this._valueDict[t].el.value);return e}}M.FormSelect=o,M.jQueryLoaded&&M.initializeJqueryWrapper(o,"formSelect","M_FormSelect")}(jQuery),function(e){e.fn.searchableFormSelect||e.fn.extend({searchableFormSelect:function(t){const n=e.extend({allowCustomText:!1},t);return this.each(function(){const t=e=>!(!e||!document.documentElement.contains(e)),o=e(this),i=o.find(".select-wrapper"),s=i.find("input.select-dropdown"),l=o.find("select");if(!(i.length&&s.length&&l.length&&t(l[0])&&t(s[0])))return;let r="";s.removeAttr("readonly");let a=l.find('option[data-custom="true"]');0===a.length&&(a=e("<option></option>").attr("data-custom","true").hide(),l.append(a));const d=M.FormSelect.getInstance(l[0]);if(d){if(!(d.input&&d.dropdown&&d.dropdownOptions&&t(d.input)&&t(d.dropdownOptions)))return;let e=d.dropdown.options,n=e.onOpenEnd;e.onOpenEnd=function(){n&&"function"==typeof n&&n.call(this),setTimeout(()=>{s.focus()},100)},d.dropdown.el&&d.dropdown.dropdownEl?d.dropdown.destroy():d.input.M_Dropdown=void 0,d.dropdown=M.Dropdown.init(d.input,e)}s.on("input",function(){if(!t(s[0])||!t(l[0]))return;const o=s.val().toLowerCase();i.find("ul.select-dropdown li").each(function(){const t=e(this);t.text().toLowerCase().includes(o)?t.show():t.hide()}),n.allowCustomText&&(r=s.val())}),s.on("blur",function(){if(!(d&&t(s[0])&&t(l[0])&&t(d.dropdownOptions)))return;const o=s.val();if(i.find("ul.select-dropdown li:visible").filter(function(){return e(this).text().trim().toLowerCase()===o.trim().toLowerCase()}).length>0)r="";else if(n.allowCustomText){a.text(o).attr("value",o).prop("selected",!0);let t=i.find('ul.select-dropdown li[data-custom="true"]');if(0===t.length){const t=d._appendOptionWithIcon(l[0],a[0]);e(t).attr("data-custom","true"),d._addOptionToValueDict(a[0],t),e(t).on("click",d._handleOptionClickBound)}else t.find("span").text(o);d._setSelectedStates(),s.val(o),r=o}else d._setValueToInput()}),l.on("change",function(){if(!t(s[0])||!t(l[0]))return;const e=l.find("option:selected").text(),n=s.val();e.toLowerCase()===n.toLowerCase()?(s.val(e),r=""):r=""}),s.on("focus",function(){if(!t(s[0])||!t(l[0]))return;i.find("ul.select-dropdown li").show()})})}})}(jQuery),function(e){e.fn.sbToast=function(t,n){let o={};o=t&&"object"==typeof t?t:{text:t,displayLength:n};let i=e("#sb-toast-container");0===i.length&&(i=e('<div id="sb-toast-container"></div>'),"function"==typeof sbRtlDir&&i.attr("dir",sbRtlDir()),e("body").append(i));const s=e('<div class="sb-toast"></div>');void 0!==o.html&&null!==o.html?s.html(o.html):s.text(o.text),o.classes&&s.addClass(o.classes),e("#sb-toast-container").append(s),s.addClass("sb-toast-show"),setTimeout(function(){s.removeClass("sb-toast-show").addClass("sb-toast-hide"),setTimeout(function(){s.remove(),"function"==typeof o.completeCallback&&o.completeCallback()},300)},o.displayLength||3e3)},e.fn.idDisplayCopy=function(t){e(this).off("click").on("click",function(){const n=e(this).data("c
2opy");copyToClipboard(n),e(this).sbToast(t,2e3)})}}(jQuery);

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.