{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getShadowRoot = getShadowRoot;\nexports.inShadow = inShadow;\nfunction getRoot(ele) {\n var _ele$getRootNode;\n return ele === null || ele === void 0 || (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);\n}\n\n/**\n * Check if is in shadowRoot\n */\nfunction inShadow(ele) {\n return getRoot(ele) instanceof ShadowRoot;\n}\n\n/**\n * Return shadowRoot if possible\n */\nfunction getShadowRoot(ele) {\n return inShadow(ele) ? getRoot(ele) : null;\n}","map":{"version":3,"names":["Object","defineProperty","exports","value","getShadowRoot","inShadow","getRoot","ele","_ele$getRootNode","getRootNode","call","ShadowRoot"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/rc-util/lib/Dom/shadow.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getShadowRoot = getShadowRoot;\nexports.inShadow = inShadow;\nfunction getRoot(ele) {\n var _ele$getRootNode;\n return ele === null || ele === void 0 || (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);\n}\n\n/**\n * Check if is in shadowRoot\n */\nfunction inShadow(ele) {\n return getRoot(ele) instanceof ShadowRoot;\n}\n\n/**\n * Return shadowRoot if possible\n */\nfunction getShadowRoot(ele) {\n return inShadow(ele) ? getRoot(ele) : null;\n}"],"mappings":"AAAA,YAAY;;AAEZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAC3CC,KAAK,EAAE;AACT,CAAC,CAAC;AACFD,OAAO,CAACE,aAAa,GAAGA,aAAa;AACrCF,OAAO,CAACG,QAAQ,GAAGA,QAAQ;AAC3B,SAASC,OAAOA,CAACC,GAAG,EAAE;EACpB,IAAIC,gBAAgB;EACpB,OAAOD,GAAG,KAAK,IAAI,IAAIA,GAAG,KAAK,KAAK,CAAC,IAAI,CAACC,gBAAgB,GAAGD,GAAG,CAACE,WAAW,MAAM,IAAI,IAAID,gBAAgB,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,gBAAgB,CAACE,IAAI,CAACH,GAAG,CAAC;AAC7J;;AAEA;AACA;AACA;AACA,SAASF,QAAQA,CAACE,GAAG,EAAE;EACrB,OAAOD,OAAO,CAACC,GAAG,CAAC,YAAYI,UAAU;AAC3C;;AAEA;AACA;AACA;AACA,SAASP,aAAaA,CAACG,GAAG,EAAE;EAC1B,OAAOF,QAAQ,CAACE,GAAG,CAAC,GAAGD,OAAO,CAACC,GAAG,CAAC,GAAG,IAAI;AAC5C","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}