shadow-dom-testing-library
Version:
An extension of DOM-testing-library to provide hooks into the shadow dom
6 lines (5 loc) • 18.2 kB
JavaScript
var Re=Object.defineProperty;var He=(e,t)=>{for(var l in t)Re(e,l,{get:t[l],enumerable:!0})};import{configure as ho,getConfig as io}from"@testing-library/dom";var S={};He(S,{findAllByShadowAltText:()=>oe,findAllByShadowDisplayValue:()=>K,findAllByShadowLabelText:()=>I,findAllByShadowPlaceholderText:()=>C,findAllByShadowRole:()=>q,findAllByShadowTestId:()=>ie,findAllByShadowText:()=>k,findAllByShadowTitle:()=>de,findByShadowAltText:()=>ae,findByShadowDisplayValue:()=>Z,findByShadowLabelText:()=>j,findByShadowPlaceholderText:()=>G,findByShadowRole:()=>Q,findByShadowTestId:()=>ue,findByShadowText:()=>X,findByShadowTitle:()=>ye,getAllByShadowAltText:()=>ee,getAllByShadowDisplayValue:()=>Y,getAllByShadowLabelText:()=>O,getAllByShadowPlaceholderText:()=>F,getAllByShadowRole:()=>H,getAllByShadowTestId:()=>Te,getAllByShadowText:()=>W,getAllByShadowTitle:()=>ne,getByShadowAltText:()=>te,getByShadowDisplayValue:()=>J,getByShadowLabelText:()=>D,getByShadowPlaceholderText:()=>N,getByShadowRole:()=>b,getByShadowTestId:()=>he,getByShadowText:()=>U,getByShadowTitle:()=>re,queryAllByShadowAltText:()=>A,queryAllByShadowDisplayValue:()=>x,queryAllByShadowLabelText:()=>p,queryAllByShadowPlaceholderText:()=>B,queryAllByShadowRole:()=>c,queryAllByShadowTestId:()=>E,queryAllByShadowText:()=>f,queryAllByShadowTitle:()=>M,queryByShadowAltText:()=>v,queryByShadowDisplayValue:()=>z,queryByShadowLabelText:()=>_,queryByShadowPlaceholderText:()=>V,queryByShadowRole:()=>R,queryByShadowTestId:()=>se,queryByShadowText:()=>$,queryByShadowTitle:()=>le});import{buildQueries as h,queryAllByRole as Oe,queryAllByLabelText as De,queryAllByPlaceholderText as Ie,queryAllByText as je,queryAllByDisplayValue as Ve,queryAllByAltText as Fe,queryAllByTitle as Ne,queryAllByTestId as Ce}from"@testing-library/dom";qe();function be(){Qe()}function ce(){HTMLSlotElement.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll}function y(e){be();try{let t=e();return typeof t=="object"&&"finally"in t&&typeof t.finally=="function"&&t.finally(()=>ce()),t}finally{ce()}}function qe(){if(typeof ShadowRoot>"u")throw"Your environment does not support shadow roots.";ShadowRoot.prototype.matches==null&&Object.defineProperties(ShadowRoot.prototype,{matches:{get(){return function(e){return e.trim()==="*"?!0:Boolean(this.querySelector(e))}}}}),ShadowRoot.prototype.outerHTML==null&&Object.defineProperties(ShadowRoot.prototype,{outerHTML:{get(){return this.innerHTML}}})}function Qe(){HTMLSlotElement.prototype.querySelectorAll=function(e){let t=HTMLElement.prototype.querySelectorAll,l=[];return this.assignedElements({flatten:!0}).forEach(a=>{let o=a,n=document.createElement("div");n.appendChild(o.cloneNode(!1)),n.querySelector(e)&&l.push(o),l=l.concat(Array.from(o.querySelectorAll(e)))}),l.length==0&&(l=Array.from(t.call(this,e))),[...new Set(l)]}}function g(e){return e.shallow!=null&&(console.warn('The "shallow" option will be removed in the next major release. Please use "{depth: 1}" to maintain the same functionality.'),e.shallow===!0&&(e.depth=1)),e.depth||(e.depth=1/0),e}function _e(e,t,l={shallow:!1,depth:1/0}){l=g(l);let a=pe(e,t,l);return Array.isArray(a)&&a.length>0?a[0]:null}function pe(e,t,l={shallow:!1,depth:1/0}){return l=g(l),y(()=>{let o=T(e,l).map(n=>Array.from(n.querySelectorAll(t))).flat(1/0);return[...new Set(o)]})}function T(e,t={shallow:!1,depth:1/0}){return t=g(t),Be(e,"*",t)}function Be(e,t,l={shallow:!1,depth:1/0},a=[],o=[],n=1){return e instanceof Document&&(e=document.documentElement),a=[e],o.push(e),e instanceof HTMLElement&&e.shadowRoot!=null&&e.shadowRoot.mode!=="closed"&&(o.push(e.shadowRoot),a.push(e.shadowRoot)),a.forEach(d=>{d.querySelectorAll(t).forEach(r=>{if(r.shadowRoot==null||r.shadowRoot.mode==="closed"){o.push(r);return}if(o.push(r.shadowRoot),l.depth&&l.depth<=n){r.shadowRoot.querySelectorAll(t).forEach(s=>{o.push(s)});return}n++,r.shadowRoot.querySelectorAll(t).forEach(s=>{o.push(s),a.push(s)}),Be(r.shadowRoot,t,l,a,o,n)})}),[...new Set(o)]}function i(e){return e.map(t=>(...l)=>{let[a,o,n,...d]=l;return n==null&&(n={}),n.suggest=!1,t(a,o,n,...d)})}function c(...e){let[t,l,a]=e;return a==null&&(a={}),a.suggest=!1,[...new Set(y(()=>T(t,a).map(o=>Oe(o,l,a)).flat(1/0)))]}var Ge=(e,t)=>`Found multiple elements with the role of: ${t}`,$e=(e,t)=>`Unable to find an element with the role of: ${t}`,[We,Ue,ke,Xe,ze]=i(h(c,Ge,$e)),R=(...e)=>We(...e),H=(...e)=>Ue(...e),b=(...e)=>ke(...e),q=(...e)=>Xe(...e),Q=(...e)=>ze(...e);function p(...e){let[t,l,a]=e;return a==null&&(a={}),a.suggest=!1,[...new Set(y(()=>T(t,a).map(o=>De(o,l,a)).flat(1/0)))]}var Ye=(e,t)=>`Found multiple elements with the label text of: ${t}`,Je=(e,t)=>`Unable to find an element with the label text of: ${t}`,[Ke,Ze,ve,et,tt]=i(h(p,Ye,Je)),_=(...e)=>Ke(...e),O=(...e)=>Ze(...e),D=(...e)=>ve(...e),I=(...e)=>et(...e),j=(...e)=>tt(...e);function B(...e){let[t,l,a]=e;return a==null&&(a={}),a.suggest=!1,[...new Set(y(()=>T(t,a).map(o=>Ie(o,l,a)).flat(1/0)))]}var ot=(e,t)=>`Found multiple elements with the placeholder text of: ${t}`,at=(e,t)=>`Unable to find an element with the placeholder text of: ${t}`,[lt,nt,rt,dt,yt]=i(h(B,ot,at)),V=(...e)=>lt(...e),F=(...e)=>nt(...e),N=(...e)=>rt(...e),C=(...e)=>dt(...e),G=(...e)=>yt(...e);function f(...e){let[t,l,a]=e;return a==null&&(a={}),a.suggest=!1,[...new Set(y(()=>T(t,a).map(o=>je(o,l,a)).flat(1/0)))]}var st=(e,t)=>`Found multiple elements with the text of: ${t}`,Tt=(e,t)=>`Unable to find an element with the text of: ${t}`,[ht,it,ut,wt,mt]=i(h(f,st,Tt)),$=(...e)=>ht(...e),W=(...e)=>it(...e),U=(...e)=>ut(...e),k=(...e)=>wt(...e),X=(...e)=>mt(...e);function x(...e){let[t,l,a]=e;return a==null&&(a={}),a.suggest=!1,[...new Set(y(()=>T(t,a).map(o=>Ve(o,l,a)).flat(1/0)))]}var St=(e,t)=>`Found multiple elements with the display value of: ${t}`,ct=(e,t)=>`Unable to find an element with the display value of: ${t}`,[pt,Bt,ft,xt,At]=i(h(x,St,ct)),z=(...e)=>pt(...e),Y=(...e)=>Bt(...e),J=(...e)=>ft(...e),K=(...e)=>xt(...e),Z=(...e)=>At(...e);function A(...e){let[t,l,a]=e;return a==null&&(a={}),a.suggest=!1,[...new Set(y(()=>T(t,a).map(o=>Fe(o,l,a)).flat(1/0)))]}var Mt=(e,t)=>`Found multiple elements with the alt text of: ${t}`,Et=(e,t)=>`Unable to find an element with the alt text of: ${t}`,[Lt,Pt,gt,Rt,Ht]=i(h(A,Mt,Et)),v=(...e)=>Lt(...e),ee=(...e)=>Pt(...e),te=(...e)=>gt(...e),oe=(...e)=>Rt(...e),ae=(...e)=>Ht(...e);function M(...e){let[t,l,a]=e;return a==null&&(a={}),a.suggest=!1,[...new Set(y(()=>T(t,a).map(o=>Ne(o,l,a)).flat(1/0)))]}var bt=(e,t)=>`Found multiple elements with the title of: ${t}`,qt=(e,t)=>`Unable to find an element with the title of: ${t}`,[Qt,_t,Ot,Dt,It]=i(h(M,bt,qt)),le=(...e)=>Qt(...e),ne=(...e)=>_t(...e),re=(...e)=>Ot(...e),de=(...e)=>Dt(...e),ye=(...e)=>It(...e);function E(...e){let[t,l,a]=e;return a==null&&(a={}),a.suggest=!1,[...new Set(y(()=>T(t,a).map(o=>Ce(o,l,a)).flat(1/0)))]}var jt=(e,t)=>`Found multiple elements with the test id of: ${t}`,Vt=(e,t)=>`Unable to find an element with the test id of: ${t}`,[Ft,Nt,Ct,Gt,$t]=i(h(E,jt,Vt)),se=(...e)=>Ft(...e),Te=(...e)=>Nt(...e),he=(...e)=>Ct(...e),ie=(...e)=>Gt(...e),ue=(...e)=>$t(...e);import{logDOM as ao}from"@testing-library/dom";import{prettyDOM as Wt,getConfig as Ut}from"@testing-library/dom";var fe=/([^\S(\r\n|\r|\n)]*[\f\n\r\t\v]+)/.source;function kt(e){return e.replace(new RegExp(`${fe}.*${fe}{2,}`,"g"),"")}function Ae(...e){let[t,l,a]=e,o=L((a==null?void 0:a.filterNode)||we);return a==null&&(a={}),a.plugins==null&&(a.plugins=[]),a.plugins.push(o),y(()=>Wt(t,l,{...a,plugins:[o]}))}function Me(e){return e.replace(/</g,"<").replace(/>/g,">")}function we(e){return e.nodeType!==me&&(e.nodeType!==Le||!e.matches(Ut().defaultIgnore))}var Xt=(e,t,l,a,o,n,d)=>{let r=a+l.indent,s=l.colors;return e.map(u=>{let m=t[u],w=d(m,l,r,o,n);return typeof m!="string"&&(w.indexOf(`
`)!==-1&&(w=l.spacingOuter+r+w+l.spacingOuter+a),w="{"+w+"}"),l.spacingInner+a+s.prop.open+u+s.prop.close+"="+s.value.open+w+s.value.close}).join("")},zt=3,Yt=(e,t,l,a,o,n)=>kt(e.map(d=>{let r=typeof d=="string"?Ee(d,t):n(d,t,l,a,o);return r===""&&typeof d=="object"&&d!=null&&d.nodeType!==zt?"":t.spacingOuter+l+r}).join("")),Ee=(e,t)=>{let l=t.colors.content;return l.open+Me(e)+l.close},Jt=(e,t)=>{let l=t.colors.comment;return l.open+"<!--"+Me(e)+"-->"+l.close},Kt=(e,t,l,a,o)=>{let n=a.colors.tag;return n.open+"<"+e+(t&&n.close+t+a.spacingOuter+o+n.open)+(l?">"+n.close+l+a.spacingOuter+o+n.open+"</"+e:(t&&!a.min?"":" ")+"/")+">"+n.close},Zt=(e,t)=>{let l=t.colors.tag;return l.open+"<"+e+l.close+" \u2026"+l.open+" />"+l.close},Le=1,Pe=3,me=8,ge=11,vt=/^((HTML|SVG)\w*)?Element$/,eo=e=>{var n;let t=((n=e==null?void 0:e.constructor)==null?void 0:n.name)||"",{nodeType:l,tagName:a}=e,o=typeof a=="string"&&a.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is")||e instanceof HTMLElement;return l===Le&&(vt.test(t)||o)||l===Pe&&t==="Text"||l===me&&t==="Comment"||l===ge};function to(e){return e.nodeType===Pe}function oo(e){return e.nodeType===me}function xe(e){return e.nodeType===ge}function L(e){function t(l){let a=Array.prototype.slice.call(l.childNodes||l.children);return"shadowRoot"in l&&l.shadowRoot!=null&&l.shadowRoot.mode!=="closed"&&a.unshift(l.shadowRoot),a.filter(e)}return{test:l=>(l==null?void 0:l.constructor)&&eo(l),serialize:(l,a,o,n,d,r)=>{if(to(l))return Ee(l.data,a);if(oo(l))return Jt(l.data,a);let s="DocumentFragment";return"tagName"in l&&l.tagName?s=l.tagName.toLowerCase():l instanceof ShadowRoot&&(s="ShadowRoot"),++n>a.maxDepth?Zt(s,a):Kt(s,Xt(xe(l)?[]:Array.from(l.attributes).map(u=>u.name).sort(),xe(l)?{}:Array.from(l.attributes).reduce((u,m)=>(u[m.name]=m.value,u),{}),a,o+a.indent,n,d,r),Yt(t(l),a,o+a.indent,n,d,r),a,o)}}}function P(...e){let[t,l,a]=e,o=L((a==null?void 0:a.filterNode)||we);a==null&&(a={}),a.plugins==null&&(a.plugins=[]),a.plugins.push(o),y(()=>ao(t,l,a))}function Se(...e){let[t,l,a]=e;Array.isArray(t)?t.forEach(o=>P(o,l,a)):P(t,l,a)}import{screen as lo}from"@testing-library/dom";var no={...lo,debug:Se,queryAllByShadowRole:(...e)=>c(document.documentElement,e[0],e[1]),queryByShadowRole:(...e)=>R(document.documentElement,e[0],e[1]),getAllByShadowRole:(...e)=>H(document.documentElement,e[0],e[1]),getByShadowRole:(...e)=>b(document.documentElement,e[0],e[1]),findAllByShadowRole:(...e)=>q(document.documentElement,e[0],e[1],e[2]),findByShadowRole:(...e)=>Q(document.documentElement,e[0],e[1],e[2]),queryAllByShadowLabelText:(...e)=>p(document.documentElement,e[0],e[1]),queryByShadowLabelText:(...e)=>_(document.documentElement,e[0],e[1]),getAllByShadowLabelText:(...e)=>O(document.documentElement,e[0],e[1]),getByShadowLabelText:(...e)=>D(document.documentElement,e[0],e[1]),findAllByShadowLabelText:(...e)=>I(document.documentElement,e[0],e[1],e[2]),findByShadowLabelText:(...e)=>j(document.documentElement,e[0],e[1],e[2]),queryAllByShadowPlaceholderText:(...e)=>B(document.documentElement,e[0],e[1]),queryByShadowPlaceholderText:(...e)=>V(document.documentElement,e[0],e[1]),getAllByShadowPlaceholderText:(...e)=>F(document.documentElement,e[0],e[1]),getByShadowPlaceholderText:(...e)=>N(document.documentElement,e[0],e[1]),findAllByShadowPlaceholderText:(...e)=>C(document.documentElement,e[0],e[1],e[2]),findByShadowPlaceholderText:(...e)=>G(document.documentElement,e[0],e[1],e[2]),queryAllByShadowText:(...e)=>f(document.documentElement,e[0],e[1]),queryByShadowText:(...e)=>$(document.documentElement,e[0],e[1]),getAllByShadowText:(...e)=>W(document.documentElement,e[0],e[1]),getByShadowText:(...e)=>U(document.documentElement,e[0],e[1]),findAllByShadowText:(...e)=>k(document.documentElement,e[0],e[1],e[2]),findByShadowText:(...e)=>X(document.documentElement,e[0],e[1],e[2]),queryAllByShadowDisplayValue:(...e)=>x(document.documentElement,e[0],e[1]),queryByShadowDisplayValue:(...e)=>z(document.documentElement,e[0],e[1]),getAllByShadowDisplayValue:(...e)=>Y(document.documentElement,e[0],e[1]),getByShadowDisplayValue:(...e)=>J(document.documentElement,e[0],e[1]),findAllByShadowDisplayValue:(...e)=>K(document.documentElement,e[0],e[1],e[2]),findByShadowDisplayValue:(...e)=>Z(document.documentElement,e[0],e[1],e[2]),queryAllByShadowAltText:(...e)=>A(document.documentElement,e[0],e[1]),queryByShadowAltText:(...e)=>v(document.documentElement,e[0],e[1]),getAllByShadowAltText:(...e)=>ee(document.documentElement,e[0],e[1]),getByShadowAltText:(...e)=>te(document.documentElement,e[0],e[1]),findAllByShadowAltText:(...e)=>oe(document.documentElement,e[0],e[1],e[2]),findByShadowAltText:(...e)=>ae(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTitle:(...e)=>M(document.documentElement,e[0],e[1]),queryByShadowTitle:(...e)=>le(document.documentElement,e[0],e[1]),getAllByShadowTitle:(...e)=>ne(document.documentElement,e[0],e[1]),getByShadowTitle:(...e)=>re(document.documentElement,e[0],e[1]),findAllByShadowTitle:(...e)=>de(document.documentElement,e[0],e[1],e[2]),findByShadowTitle:(...e)=>ye(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTestId:(...e)=>E(document.documentElement,e[0],e[1]),queryByShadowTestId:(...e)=>se(document.documentElement,e[0],e[1]),getAllByShadowTestId:(...e)=>Te(document.documentElement,e[0],e[1]),getByShadowTestId:(...e)=>he(document.documentElement,e[0],e[1]),findAllByShadowTestId:(...e)=>ie(document.documentElement,e[0],e[1],e[2]),findByShadowTestId:(...e)=>ue(document.documentElement,e[0],e[1],e[2])};import{queries as ro,within as yo}from"@testing-library/dom";var so={...ro,...S};function To(e){let t=yo(e,so);return{...t,...{queryAllByShadowRole:(...o)=>t.queryAllByShadowRole(...o),queryByShadowRole:(...o)=>t.queryByShadowRole(...o),getAllByShadowRole:(...o)=>t.getAllByShadowRole(...o),getByShadowRole:(...o)=>t.getByShadowRole(...o),findAllByShadowRole:(...o)=>t.findAllByShadowRole(...o),findByShadowRole:(...o)=>t.findByShadowRole(...o),queryAllByShadowLabelText:(...o)=>t.queryAllByShadowLabelText(...o),queryByShadowLabelText:(...o)=>t.queryByShadowLabelText(...o),getAllByShadowLabelText:(...o)=>t.getAllByShadowLabelText(...o),getByShadowLabelText:(...o)=>t.getByShadowLabelText(...o),findAllByShadowLabelText:(...o)=>t.findAllByShadowLabelText(...o),findByShadowLabelText:(...o)=>t.findByShadowLabelText(...o),queryAllByShadowPlaceholderText:(...o)=>t.queryAllByShadowPlaceholderText(...o),queryByShadowPlaceholderText:(...o)=>t.queryByShadowPlaceholderText(...o),getAllByShadowPlaceholderText:(...o)=>t.getAllByShadowPlaceholderText(...o),getByShadowPlaceholderText:(...o)=>t.getByShadowPlaceholderText(...o),findAllByShadowPlaceholderText:(...o)=>t.findAllByShadowPlaceholderText(...o),findByShadowPlaceholderText:(...o)=>t.findByShadowPlaceholderText(...o),queryAllByShadowText:(...o)=>t.queryAllByShadowText(...o),queryByShadowText:(...o)=>t.queryByShadowText(...o),getAllByShadowText:(...o)=>t.getAllByShadowText(...o),getByShadowText:(...o)=>t.getByShadowText(...o),findAllByShadowText:(...o)=>t.findAllByShadowText(...o),findByShadowText:(...o)=>t.findByShadowText(...o),queryAllByShadowDisplayValue:(...o)=>t.queryAllByShadowDisplayValue(...o),queryByShadowDisplayValue:(...o)=>t.queryByShadowDisplayValue(...o),getAllByShadowDisplayValue:(...o)=>t.getAllByShadowDisplayValue(...o),getByShadowDisplayValue:(...o)=>t.getByShadowDisplayValue(...o),findAllByShadowDisplayValue:(...o)=>t.findAllByShadowDisplayValue(...o),findByShadowDisplayValue:(...o)=>t.findByShadowDisplayValue(...o),queryAllByShadowAltText:(...o)=>t.queryAllByShadowAltText(...o),queryByShadowAltText:(...o)=>t.queryByShadowAltText(...o),getAllByShadowAltText:(...o)=>t.getAllByShadowAltText(...o),getByShadowAltText:(...o)=>t.getByShadowAltText(...o),findAllByShadowAltText:(...o)=>t.findAllByShadowAltText(...o),findByShadowAltText:(...o)=>t.findByShadowAltText(...o),queryAllByShadowTitle:(...o)=>t.queryAllByShadowTitle(...o),queryByShadowTitle:(...o)=>t.queryByShadowTitle(...o),getAllByShadowTitle:(...o)=>t.getAllByShadowTitle(...o),getByShadowTitle:(...o)=>t.getByShadowTitle(...o),findAllByShadowTitle:(...o)=>t.findAllByShadowTitle(...o),findByShadowTitle:(...o)=>t.findByShadowTitle(...o),queryAllByShadowTestId:(...o)=>t.queryAllByShadowTestId(...o),queryByShadowTestId:(...o)=>t.queryByShadowTestId(...o),getAllByShadowTestId:(...o)=>t.getAllByShadowTestId(...o),getByShadowTestId:(...o)=>t.getByShadowTestId(...o),findAllByShadowTestId:(...o)=>t.findAllByShadowTestId(...o),findByShadowTestId:(...o)=>t.findByShadowTestId(...o)}}}ho({getElementError(e,t){let l=Ae(t),a=new Error([e,`Ignored nodes: comments, ${io().defaultIgnore}
${l}`].filter(Boolean).join(`
`));return a.name="ShadowDOMTestingLibraryElementError",a}});export{L as createDOMElementFilter,Se as debug,_e as deepQuerySelector,pe as deepQuerySelectorAll,oe as findAllByShadowAltText,K as findAllByShadowDisplayValue,I as findAllByShadowLabelText,C as findAllByShadowPlaceholderText,q as findAllByShadowRole,ie as findAllByShadowTestId,k as findAllByShadowText,de as findAllByShadowTitle,ae as findByShadowAltText,Z as findByShadowDisplayValue,j as findByShadowLabelText,G as findByShadowPlaceholderText,Q as findByShadowRole,ue as findByShadowTestId,X as findByShadowText,ye as findByShadowTitle,ee as getAllByShadowAltText,Y as getAllByShadowDisplayValue,O as getAllByShadowLabelText,F as getAllByShadowPlaceholderText,H as getAllByShadowRole,Te as getAllByShadowTestId,W as getAllByShadowText,ne as getAllByShadowTitle,T as getAllElementsAndShadowRoots,te as getByShadowAltText,J as getByShadowDisplayValue,D as getByShadowLabelText,N as getByShadowPlaceholderText,b as getByShadowRole,he as getByShadowTestId,U as getByShadowText,re as getByShadowTitle,P as logShadowDOM,Ae as prettyShadowDOM,A as queryAllByShadowAltText,x as queryAllByShadowDisplayValue,p as queryAllByShadowLabelText,B as queryAllByShadowPlaceholderText,c as queryAllByShadowRole,E as queryAllByShadowTestId,f as queryAllByShadowText,M as queryAllByShadowTitle,v as queryByShadowAltText,z as queryByShadowDisplayValue,_ as queryByShadowLabelText,V as queryByShadowPlaceholderText,R as queryByShadowRole,se as queryByShadowTestId,$ as queryByShadowText,le as queryByShadowTitle,no as screen,S as shadowQueries,To as within};
//# sourceMappingURL=index.js.map