axp-ui/docs/assets/OverlayScrollbars-GZGLA7DL-1612b709.js.map

1 line
106 KiB
Plaintext
Raw Normal View History

2023-10-11 10:29:52 +03:00
{"version":3,"file":"OverlayScrollbars-GZGLA7DL-1612b709.js","sources":["../../node_modules/@storybook/components/dist/OverlayScrollbars-GZGLA7DL.mjs"],"sourcesContent":["import './chunk-JRLSWQMA.mjs';\nimport b2, { forwardRef, useRef, useEffect, useImperativeHandle, useMemo } from 'react';\n\nfunction each(t2,n2){if(isArrayLike(t2))for(let o2=0;o2<t2.length&&n2(t2[o2],o2,t2)!==!1;o2++);else t2&&each(Object.keys(t2),o2=>n2(t2[o2],o2,t2));return t2}function style(t2,n2){let o2=isString(n2);if(isArray(n2)||o2){let s3=o2?\"\":{};if(t2){let e2=window.getComputedStyle(t2,null);s3=o2?getCSSVal(t2,e2,n2):n2.reduce((n3,o3)=>(n3[o3]=getCSSVal(t2,e2,o3),n3),s3);}return s3}t2&&each(keys(n2),o3=>setCSSVal(t2,o3,n2[o3]));}var createCache=(t2,n2)=>{let{o:o2,u:s2,_:e2}=t2,c2=o2,r2,cacheUpdateContextual=(t3,n3)=>{let o3=c2,i2=t3,l2=n3||(s2?!s2(o3,i2):o3!==i2);return (l2||e2)&&(c2=i2,r2=o3),[c2,l2,r2]};return [n2?t3=>cacheUpdateContextual(n2(c2,r2),t3):cacheUpdateContextual,t3=>[c2,!!t3,r2]]},isClient=()=>typeof window<\"u\",t=isClient()&&Node.ELEMENT_NODE,{toString:n,hasOwnProperty:o}=Object.prototype,isUndefined=t2=>t2===void 0,isNull=t2=>t2===null,type=t2=>isUndefined(t2)||isNull(t2)?`${t2}`:n.call(t2).replace(/^\\[object (.+)\\]$/,\"$1\").toLowerCase(),isNumber=t2=>typeof t2==\"number\",isString=t2=>typeof t2==\"string\",isBoolean=t2=>typeof t2==\"boolean\",isFunction=t2=>typeof t2==\"function\",isArray=t2=>Array.isArray(t2),isObject=t2=>typeof t2==\"object\"&&!isArray(t2)&&!isNull(t2),isArrayLike=t2=>{let n2=!!t2&&t2.length,o2=isNumber(n2)&&n2>-1&&n2%1==0;return isArray(t2)||!isFunction(t2)&&o2?n2>0&&isObject(t2)?n2-1 in t2:!0:!1},isPlainObject=t2=>{if(!t2||!isObject(t2)||type(t2)!==\"object\")return !1;let n2,s2=\"constructor\",e2=t2[s2],c2=e2&&e2.prototype,r2=o.call(t2,s2),i2=c2&&o.call(c2,\"isPrototypeOf\");if(e2&&!r2&&!i2)return !1;for(n2 in t2);return isUndefined(n2)||o.call(t2,n2)},isHTMLElement=n2=>{let o2=HTMLElement;return n2?o2?n2 instanceof o2:n2.nodeType===t:!1},isElement=n2=>{let o2=Element;return n2?o2?n2 instanceof o2:n2.nodeType===t:!1},indexOf=(t2,n2,o2)=>t2.indexOf(n2,o2),push=(t2,n2,o2)=>(!o2&&!isString(n2)&&isArrayLike(n2)?Array.prototype.push.apply(t2,n2):t2.push(n2),t2),from=t2=>{let n2=Array.from,o2=[];return n2&&t2?n2(t2):(t2 instanceof Set?t2.forEach(t3=>{push(o2,t3);}):each(t2,t3=>{push(o2,t3);}),o2)},isEmptyArray=t2=>!!t2&&t2.length===0,runEachAndClear=(t2,n2,o2)=>{each(t2,t3=>t3&&t3.apply(void 0,n2||[])),!o2&&(t2.length=0);},hasOwnProperty=(t2,n2)=>Object.prototype.hasOwnProperty.call(t2,n2),keys=t2=>t2?Object.keys(t2):[],assignDeep=(t2,n2,o2,s2,e2,c2,r2)=>{let i2=[n2,o2,s2,e2,c2,r2];return (typeof t2!=\"object\"||isNull(t2))&&!isFunction(t2)&&(t2={}),each(i2,n3=>{each(keys(n3),o3=>{let s3=n3[o3];if(t2===s3)return !0;let e3=isArray(s3);if(s3&&(isPlainObject(s3)||e3)){let n4=t2[o3],c3=n4;e3&&!isArray(n4)?c3=[]:!e3&&!isPlainObject(n4)&&(c3={}),t2[o3]=assignDeep(c3,s3);}else t2[o3]=s3;});}),t2},isEmptyObject=t2=>{for(let n2 in t2)return !1;return !0},getSetProp=(t2,n2,o2,s2)=>{if(isUndefined(s2))return o2?o2[t2]:n2;o2&&(isString(s2)||isNumber(s2))&&(o2[t2]=s2);},attr=(t2,n2,o2)=>{if(isUndefined(o2))return t2?t2.getAttribute(n2):null;t2&&t2.setAttribute(n2,o2);},removeAttr=(t2,n2)=>{t2&&t2.removeAttribute(n2);},attrClass=(t2,n2,o2,s2)=>{if(o2){let e2=attr(t2,n2)||\"\",c2=new Set(e2.split(\" \"));c2[s2?\"add\":\"delete\"](o2);let r2=from(c2).join(\" \").trim();attr(t2,n2,r2);}},hasAttrClass=(t2,n2,o2)=>{let s2=attr(t2,n2)||\"\";return new Set(s2.split(\" \")).has(o2)},scrollLeft=(t2,n2)=>getSetProp(\"scrollLeft\",0,t2,n2),scrollTop=(t2,n2)=>getSetProp(\"scrollTop\",0,t2,n2),s=isClient()&&Element.prototype,find=(t2,n2)=>{let o2=[],s2=n2?isElement(n2)?n2:null:document;return s2?push(o2,s2.querySelectorAll(t2)):o2},findFirst=(t2,n2)=>{let o2=n2?isElement(n2)?n2:null:document;return o2?o2.querySelector(t2):null},is=(t2,n2)=>isElement(t2)?(s.matches||s.msMatchesSelector).call(t2,n2):!1,contents=t2=>t2?from(t2.childNodes):[],parent=t2=>t2?t2.parentElement:null,closest=(t2,n2)=>{if(isElement(t2)){let o2=s.closest;if