PageSourceSearch

https://www.vectorstock.com/cache/v2/js/9920.e58ac3fbc73dbdfe45a4.min.js

js vectorstock.com collected 2026-09-27 20:56:14 UTC 12,185 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkVectorStockWebsite=self.webpackChunkVectorStockWebsite||[]).push([[9920],{49920(t,e,n){n.d(e,{t:()=>_});var r=n(15297),o=n(20307),i=n(7546);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function f(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d(r.key),r)}}function d(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function h(t,e,n){return e=y(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(b=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var g=null,w=0,_=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=h(this,e))._onScrimPointerDown=n._onScrimPointerDown.bind(n),n._onKeyDown=n._onKeyDown.bind(n),n._onScroll=n._onScroll.bind(n),n._onResize=n._onResize.bind(n),n.pageState=o.B,n.data=r,n.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?p(Object(n),!0).forEach(function(e){f(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({ariaLabel:"",autoFocus:!1,placement:"auto",variant:""},i),n.isOpen=!0,n.target=t,n.menuID="vs-contextmenu-".concat(++w),n.targetAttributes=n._getTargetAttributes(),g&&g.close(),g=n,n.container=document.createElement("div"),n.container.className="vs-contextmenu",n.scrim=document.createElement("div"),n.scrim.className="scrim",n.scrim.addEventListener("pointerdown",n._onScrimPointerDown),n.menu=document.createElement("div"),n.menu.className="menu",n.menu.id=n.menuID,n.menu.setAttribute("role","menu"),n.menu.setAttribute("tabindex","-1"),n.options.ariaLabel&&n.menu.setAttribute("aria-label",n.options.ariaLabel),n.options.variant&&(n.menu.dataset.variant=n.options.variant),n.container.appendChild(n.scrim),n.container.appendChild(n.menu),document.body.appendChild(n.container),n._setTargetExpanded(!0),n._updatePosition(),document.addEventListener("keydown",n._onKeyDown,!0),document.addEventListener("scroll",n._onScroll,!0),window.addEventListener("resize",n._onResize,!0),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,r=[{key:"_updatePosition",value:function(){var t=this.target;if(t){var e=t.getBoundingClientRect(),n=document.documentElement,r=n.clientWidth,o=n.clientHeight,i=this.menu.getBoundingClientRect(),a=i.width||0,u=i.height||0,c=e.left,l=r-e.right,s=e.top,p=o-e.bottom;if("auto"===this.options.placement){if(this.menu.style.left="",this.menu.style.right="",this.menu.style.top="",this.menu.style.bottom="",c>l){var f=r-e.left;a&&(f=Math.min(f,r-a)),this.menu.style.right="".concat(f,"px")}else{var m=e.right;a&&(m=Math.min(m,r-a)),this.menu.style.left="".concat(m,"px")}if(s>p){var d=o-e.bottom;u&&(d=Math.min(d,o-u)),this.menu.style.bottom="".concat(d,"px")}else{var h=e.top;u&&(h=Math.min(h,o-u)),this.menu.style.top="".concat(h,"px")}}else this._updatePreferredPosition(e,a,u,r,o)}}},{key:"_updatePreferredPosition",value:function(t,e,n,r,o){var i=c(this.options.placement.split("-"),2),a="top"===i[0],u="end"===i[1],l=u?t.right-e:t.left,s=l,p=a?t.top-n:t.bottom;a&&p<0&&t.bottom+n<=o?p=t.bottom:!a&&p+n>o&&t.top-n>=0&&(p=t.top-n),s=Math.max(0,Math.min(s,r-e)),p=Math.max(0,Math.min(p,o-n));var f=u&&s===l;this.menu.style.left=f?"":"".concat(s,"px"),this.menu.style.top="".concat(p,"px"),this.menu.style.right=f?"".concat(r-t.right,"px"):"",this.menu.style.bottom=""}},{key:"_getTargetAttributes",value:function(){return this.target?{ariaControls:this.target.getAttribute("aria-controls"),ariaExpanded:this.target.getAttribute("aria-expanded"),ariaHasPopup:this.target.getAttribute("aria-haspopup")}:{}}},{key:"_setTargetExpanded",value:function(t){this.target&&(this.target.setAttribute("aria-controls",this.menuID),this.target.setAttribute("aria-expanded",String(t)),this.target.setAttribute("aria-haspopup","menu"))}},{key:"_restoreTargetAttributes",value:function(){if(this.target)for(var t=0,e=Object.entries({"aria-controls":this.targetAttributes.ariaControls,"aria-expanded":this.targetAttributes.ariaExpanded,"aria-haspopup":this.targetAttributes.ariaHasPopup});t<e.length;t++){var n=c(e[t],2),r=n[0],o=n[1];null===o?this.target.removeAttribute(r):this.target.setAttribute(r,o)}}},{key:"_focusFirstItem",value:function(){var t=this._getItems(),e=t.find(function(t){return"true"===t.getAttribute("aria-checked")})||t[0];null==e||e.focus()}},{key:"_getItems",value:function(){return function(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.menu.querySelectorAll('[role^="menuitem"]')).filter(function(t){return!t.disabled&&"true"!==t.getAttribute("aria-disabled")})}},{key:"_prepareItems",value:function(){var t,e=u(this.menu.querySelectorAll(".cm-actions button"));try{for(e.s();!(t=e.n()).done;){var n=t.value;n.hasAttribute("role")||n.setAttribute("role","menuitem"),n.tabIndex=-1}}catch(t){e.e(t)}finally{e.f()}}},{key:"_focusItem",value:function(t){var e,n=this._getItems();if(n.length){var r=n.indexOf(document.activeElement),o=r;"Home"===t?o=0:"End"===t?o=n.length-1:"ArrowDown"===t?o=r<0?0:(r+1)%n.length:"ArrowUp"===t&&(o=r<0?n.length-1:(r-1+n.length)%n.length),null===(e=n[o])||void 0===e||e.focus()}}},{key:"_onScrimPointerDown",value:function(){this.close()}},{key:"_onKeyDown",value:function(t){if(this.isOpen){if("Escape"===t.key)return t.preventDefault(),t.stopPropagation(),void this.close({restoreFocus:!0});var e=document.activeElement,n=this.menu.contains(e);"Tab"!==t.key?(e===this.target||n)&&["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._focusItem(t.key)):this.close({restoreFocus:n})}}},{key:"_onScroll",value:function(t){t.target instanceof Node&&this.menu.contains(t.target)||this.close()}},{key:"_onResize",value:function(t){this.close()}},{key:"populate",value:function(t){var e=this;this.menu.replaceChildren(t),this._prepareItems(),requestAnimationFrame(function(){e.isOpen&&(e._updatePosition(),e.options.autoFocus&&e._focusFirstItem())})}},{key:"populateOptions",value:function(t){var e,n=document.createDocumentFragment(),r=u(t);try{for(r.s();!(e=r.n()).done;){var o,i=e.value;if(null!=i&&null!==(o=i.options)&&void 0!==o&&o.length){var a=document.createElement("div");
1if(a.className="cm-group",i.label){var c=document.createElement("h4");c.textContent=i.label,a.appendChild(c)}var l=document.createElement("div");l.className="cm-actions";var s,p=u(i.options);try{for(p.s();!(s=p.n()).done;){var f=s.value;l.appendChild(this._createOption(f))}}catch(t){p.e(t)}finally{p.f()}a.appendChild(l),n.appendChild(a)}}}catch(t){r.e(t)}finally{r.f()}this.populate(n)}},{key:"_createOption",value:function(t){var e,n=this,r=document.createElement("button");if(r.type="button",r.className="button cm-option",r.setAttribute("role",t.role||"menuitem"),t.action&&(r.dataset.action=t.action),t.title&&(r.title=t.title),t.disabled&&(r.disabled=!0),"boolean"==typeof t.checked&&r.setAttribute("aria-checked",String(t.checked)),null!==(e=t.icon)&&void 0!==e&&e.cloneNode){var o=document.createElement("span");o.className="icon",o.appendChild(t.icon.cloneNode(!0)),r.appendChild(o)}var a=document.createElement("span");if(a.className="label",a.textContent=t.label||"",r.appendChild(a),"boolean"==typeof t.checked){var u=document.createElement("span");u.className="cm-state mark",u.setAttribute("aria-hidden","true"),u.innerHTML=i.H.generateSVGIcon("global","tick"),r.appendChild(u)}return r.addEventListener("click",function(e){var r;!1!==(null===(r=t.onSelect)||void 0===r?void 0:r.call(t,e,t,n))&&!1!==t.closeOnSelect&&n.close()}),r}},{key:"close",value:function(){var t,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).restoreFocus,n=void 0!==e&&e;this.isOpen&&(this.isOpen=!1,this.container.setAttribute("aria-hidden","true"),this.container.remove(),this._restoreTargetAttributes(),g===this&&(g=null),this.scrim.removeEventListener("pointerdown",this._onScrimPointerDown),document.removeEventListener("keydown",this._onKeyDown,!0),document.removeEventListener("scroll",this._onScroll,!0),window.removeEventListener("resize",this._onResize,!0),n&&null!==(t=this.target)&&void 0!==t&&t.isConnected&&this.target.focus(),this.triggerEvent("close"))}}],r&&m(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.b)}}]);

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.