wrapito 12.2.0-beta1 → 13.0.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +10 -11
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13
13
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return l=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!l&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Ac(e,t){if(e){if(typeof e=="string")return wc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wc(e,t)}}function wc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ye=[],xc=Oc.default.keys();for(ya=0;ya<xc.length;ya++)if(ha=xc[ya],ga=Oc.default.get(ha),ga)for(co=[].concat(ga.baseConcepts,ga.relatedConcepts),Ra=0;Ra<co.length;Ra++)po=co[Ra],po.module==="HTML"&&function(){var e=po.concept;if(e){var t=ye.find(function(l){return(0,Tc.dequal)(l,e)}),r;t?r=t[1]:r=[];for(var n=!0,a=0;a<r.length;a++)if(r[a]===ha){n=!1;break}n&&r.push(ha),ye.push([e,r])}}();var ha,ga,co,po,Ra,ya,fo={entries:function(){return ye},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=jq(ye),a;try{for(n.s();!(a=n.n()).done;){var l=uo(a.value,2),o=l[0],s=l[1];t.call(r,s,o,ye)}}catch(i){n.e(i)}finally{n.f()}},get:function(t){var r=ye.find(function(n){return t.name===n[0].name&&(0,Tc.dequal)(t.attributes,n[0].attributes)});return r&&r[1]},has:function(t){return!!fo.get(t)},keys:function(){return ye.map(function(t){var r=uo(t,1),n=r[0];return n})},values:function(){return ye.map(function(t){var r=uo(t,2),n=r[1];return n})}},Fq=(0,Nq.default)(fo,fo.entries());Ea.default=Fq});var jc=c(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.default=void 0;var Dq=Lc(ke()),Bc=Lc(va());function Lc(e){return e&&e.__esModule?e:{default:e}}function mo(e,t){return Wq(e)||Uq(e,t)||kc(e,t)||Hq()}function Hq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
14
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,l=!1,o,s;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(i){l=!0,s=i}finally{try{!a&&r.return!=null&&r.return()}finally{if(l)throw s}}return n}}function Wq(e){if(Array.isArray(e))return e}function Vq(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=kc(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
15
15
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return l=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!l&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function kc(e,t){if(e){if(typeof e=="string")return Ic(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ic(e,t)}}function Ic(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ce=[],Nc=Bc.default.keys();for(qa=0;qa<Nc.length;qa++)if(bo=Nc[qa],Ca=Bc.default.get(bo),_a=[],Ca){for(vo=[].concat(Ca.baseConcepts,Ca.relatedConcepts),Pa=0;Pa<vo.length;Pa++)yo=vo[Pa],yo.module==="HTML"&&(ho=yo.concept,ho!=null&&_a.push(ho));_a.length>0&&Ce.push([bo,_a])}var bo,Ca,_a,vo,yo,ho,Pa,qa,go={entries:function(){return Ce},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=Vq(Ce),a;try{for(n.s();!(a=n.n()).done;){var l=mo(a.value,2),o=l[0],s=l[1];t.call(r,s,o,Ce)}}catch(i){n.e(i)}finally{n.f()}},get:function(t){var r=Ce.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!go.get(t)},keys:function(){return Ce.map(function(t){var r=mo(t,1),n=r[0];return n})},values:function(){return Ce.map(function(t){var r=mo(t,2),n=r[1];return n})}},$q=(0,Dq.default)(go,go.entries());wa.default=$q});var Fc=c(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.roles=G.roleElements=G.elementRoles=G.dom=G.aria=void 0;var zq=dt(js()),Gq=dt(Hs()),Yq=dt(va()),Qq=dt(Sc()),Kq=dt(jc());function dt(e){return e&&e.__esModule?e:{default:e}}var Xq=zq.default;G.aria=Xq;var Jq=Gq.default;G.dom=Jq;var Zq=Yq.default;G.roles=Zq;var eC=Qq.default;G.elementRoles=eC;var tC=Kq.default;G.roleElements=tC});var Dc=c((OO,xa)=>{"use strict";var Ro=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function a(o,s){if(!n[o]){n[o]={};for(var i=0;i<o.length;i++)n[o][o.charAt(i)]=i}return n[o][s]}var l={compressToBase64:function(o){if(o==null)return"";var s=l._compress(o,6,function(i){return t.charAt(i)});switch(s.length%4){default:case 0:return s;case 1:return s+"===";case 2:return s+"==";case 3:return s+"="}},decompressFromBase64:function(o){return o==null?"":o==""?null:l._decompress(o.length,32,function(s){return a(t,o.charAt(s))})},compressToUTF16:function(o){return o==null?"":l._compress(o,15,function(s){return e(s+32)})+" "},decompressFromUTF16:function(o){return o==null?"":o==""?null:l._decompress(o.length,16384,function(s){return o.charCodeAt(s)-32})},compressToUint8Array:function(o){for(var s=l.compress(o),i=new Uint8Array(s.length*2),u=0,d=s.length;u<d;u++){var f=s.charCodeAt(u);i[u*2]=f>>>8,i[u*2+1]=f%256}return i},decompressFromUint8Array:function(o){if(o==null)return l.decompress(o);for(var s=new Array(o.length/2),i=0,u=s.length;i<u;i++)s[i]=o[i*2]*256+o[i*2+1];var d=[];return s.forEach(function(f){d.push(e(f))}),l.decompress(d.join(""))},compressToEncodedURIComponent:function(o){return o==null?"":l._compress(o,6,function(s){return r.charAt(s)})},decompressFromEncodedURIComponent:function(o){return o==null?"":o==""?null:(o=o.replace(/ /g,"+"),l._decompress(o.length,32,function(s){return a(r,o.charAt(s))}))},compress:function(o){return l._compress(o,16,function(s){return e(s)})},_compress:function(o,s,i){if(o==null)return"";var u,d,f={},m={},E="",_="",R="",w=2,p=3,g=2,q=[],b=0,h=0,C;for(C=0;C<o.length;C+=1)if(E=o.charAt(C),Object.prototype.hasOwnProperty.call(f,E)||(f[E]=p++,m[E]=!0),_=R+E,Object.prototype.hasOwnProperty.call(f,_))R=_;else{if(Object.prototype.hasOwnProperty.call(m,R)){if(R.charCodeAt(0)<256){for(u=0;u<g;u++)b=b<<1,h==s-1?(h=0,q.push(i(b)),b=0):h++;for(d=R.charCodeAt(0),u=0;u<8;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1}else{for(d=1,u=0;u<g;u++)b=b<<1|d,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=0;for(d=R.charCodeAt(0),u=0;u<16;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1}w--,w==0&&(w=Math.pow(2,g),g++),delete m[R]}else for(d=f[R],u=0;u<g;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1;w--,w==0&&(w=Math.pow(2,g),g++),f[_]=p++,R=String(E)}if(R!==""){if(Object.prototype.hasOwnProperty.call(m,R)){if(R.charCodeAt(0)<256){for(u=0;u<g;u++)b=b<<1,h==s-1?(h=0,q.push(i(b)),b=0):h++;for(d=R.charCodeAt(0),u=0;u<8;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1}else{for(d=1,u=0;u<g;u++)b=b<<1|d,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=0;for(d=R.charCodeAt(0),u=0;u<16;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1}w--,w==0&&(w=Math.pow(2,g),g++),delete m[R]}else for(d=f[R],u=0;u<g;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1;w--,w==0&&(w=Math.pow(2,g),g++)}for(d=2,u=0;u<g;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1;for(;;)if(b=b<<1,h==s-1){q.push(i(b));break}else h++;return q.join("")},decompress:function(o){return o==null?"":o==""?null:l._decompress(o.length,32768,function(s){return o.charCodeAt(s)})},_decompress:function(o,s,i){var u=[],d,f=4,m=4,E=3,_="",R=[],w,p,g,q,b,h,C,y={val:i(0),position:s,index:1};for(w=0;w<3;w+=1)u[w]=w;for(g=0,b=Math.pow(2,2),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;switch(d=g){case 0:for(g=0,b=Math.pow(2,8),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;C=e(g);break;case 1:for(g=0,b=Math.pow(2,16),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;C=e(g);break;case 2:return""}for(u[3]=C,p=C,R.push(C);;){if(y.index>o)return"";for(g=0,b=Math.pow(2,E),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;switch(C=g){case 0:for(g=0,b=Math.pow(2,8),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;u[m++]=e(g),C=m-1,f--;break;case 1:for(g=0,b=Math.pow(2,16),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;u[m++]=e(g),C=m-1,f--;break;case 2:return R.join("")}if(f==0&&(f=Math.pow(2,E),E++),u[C])_=u[C];else if(C===m)_=p+p.charAt(0);else return null;R.push(_),u[m++]=p+_.charAt(0),f--,p=_,f==0&&(f=Math.pow(2,E),E++)}}};return l}();typeof define=="function"&&define.amd?define(function(){return Ro}):typeof xa<"u"&&xa!=null?xa.exports=Ro:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return Ro})});var tw={};ap(tw,{assertions:()=>ew,configure:()=>_P,getConfig:()=>re,matchers:()=>ew,wrap:()=>kP});module.exports=op(tw);var xd=X(require("react"),1);var Oe=X(require("chalk"),1);var zo=X(require("object-hash"),1);var te=X(require("react")),yd=X(require("react-dom/test-utils")),mt=X(require("react-dom")),La=X(require("react-dom/client"));var Aa=X(ps());var Hf=Object.prototype.toString;function fs(e){return typeof e=="function"||Hf.call(e)==="[object Function]"}function Uf(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var Wf=Math.pow(2,53)-1;function Vf(e){var t=Uf(e);return Math.min(Math.max(t,0),Wf)}function U(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!fs(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var a=Vf(n.length),l=fs(r)?Object(new r(a)):new Array(a),o=0,s;o<a;)s=n[o],t?l[o]=t(s,o):l[o]=s,o+=1;return l.length=a,l}function ot(e){"@babel/helpers - typeof";return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(e)}function $f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ms(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bs(n.key),n)}}function zf(e,t,r){return t&&ms(e.prototype,t),r&&ms(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gf(e,t,r){return t=bs(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bs(e){var t=Yf(e,"string");return ot(t)==="symbol"?t:String(t)}function Yf(e,t){if(ot(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ot(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qf=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];$f(this,e),Gf(this,"items",void 0),this.items=t}return zf(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(a){return a!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(a){r(a,a,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),vs=typeof Set>"u"?Set:Qf;function B(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Kf={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},Xf={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function Jf(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=Xf[t])!==null&&n!==void 0&&n.has(r))})}function ys(e,t){return Jf(e,t)}function Ot(e){var t=em(e);if(t===null||t==="presentation"){var r=Zf(e);if(t!=="presentation"||ys(e,r||""))return r}return t}function Zf(e){var t=Kf[B(e)];if(t!==void 0)return t;switch(B(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!ys(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function em(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function I(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Ja(e){return I(e)&&B(e)==="caption"}function lt(e){return I(e)&&B(e)==="input"}function hs(e){return I(e)&&B(e)==="optgroup"}function gs(e){return I(e)&&B(e)==="select"}function Rs(e){return I(e)&&B(e)==="table"}function Es(e){return I(e)&&B(e)==="textarea"}function qs(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Cs(e){return I(e)&&B(e)==="fieldset"}function _s(e){return I(e)&&B(e)==="legend"}function Ps(e){return I(e)&&B(e)==="slot"}function tm(e){return I(e)&&e.ownerSVGElement!==void 0}function ws(e){return I(e)&&B(e)==="svg"}function xs(e){return tm(e)&&B(e)==="title"}function Le(e,t){if(I(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(a){return n.getElementById(a)}).filter(function(a){return a!==null})}return[]}function ee(e,t){return I(e)?t.indexOf(Ot(e))!==-1:!1}function rm(e){return e.trim().replace(/\s\s+/g," ")}function nm(e,t){if(!I(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function am(e){return ee(e,["button","combobox","listbox","textbox"])||Ms(e,"range")}function Ms(e,t){if(!I(e))return!1;switch(t){case"range":return ee(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Ts(e,t){var r=U(e.querySelectorAll(t));return Le(e,"aria-owns").forEach(function(n){r.push.apply(r,U(n.querySelectorAll(t)))}),r}function om(e){return gs(e)?e.selectedOptions||Ts(e,"[selected]"):Ts(e,'[aria-selected="true"]')}function lm(e){return ee(e,["none","presentation"])}function sm(e){return Ja(e)}function im(e){return ee(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function um(e){return!1}function cm(e){return lt(e)||Es(e)?e.value:e.textContent||""}function Os(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function As(e){var t=B(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function Ss(e){if(As(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&I(r)){var n=Ss(r);n!==null&&(t=n)}}),t}function dm(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):Ss(e)}function pm(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return U(t);if(!As(e))return null;var r=e.ownerDocument;return U(r.querySelectorAll("label")).filter(function(n){return dm(n)===e})}function fm(e){var t=e.assignedNodes();return t.length===0?U(e.childNodes):t}function Mt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new vs,n=qs(e),a=t.compute,l=a===void 0?"name":a,o=t.computedStyleSupportsPseudoElements,s=o===void 0?t.getComputedStyle!==void 0:o,i=t.getComputedStyle,u=i===void 0?n.getComputedStyle.bind(n):i,d=t.hidden,f=d===void 0?!1:d;function m(p,g){var q="";if(I(p)&&s){var b=u(p,"::before"),h=Os(b);q="".concat(h," ").concat(q)}var C=Ps(p)?fm(p):U(p.childNodes).concat(Le(p,"aria-owns"));if(C.forEach(function(k){var V=w(k,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),H=I(k)?u(k).getPropertyValue("display"):"inline",Q=H!=="inline"?" ":"";q+="".concat(Q).concat(V).concat(Q)}),I(p)&&s){var y=u(p,"::after"),W=Os(y);q="".concat(q," ").concat(W)}return q.trim()}function E(p,g){var q=p.getAttributeNode(g);return q!==null&&!r.has(q)&&q.value.trim()!==""?(r.add(q),q.value):null}function _(p){return I(p)?E(p,"title"):null}function R(p){if(!I(p))return null;if(Cs(p)){r.add(p);for(var g=U(p.childNodes),q=0;q<g.length;q+=1){var b=g[q];if(_s(b))return w(b,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Rs(p)){r.add(p);for(var h=U(p.childNodes),C=0;C<h.length;C+=1){var y=h[C];if(Ja(y))return w(y,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(ws(p)){r.add(p);for(var W=U(p.childNodes),k=0;k<W.length;k+=1){var V=W[k];if(xs(V))return V.textContent}return null}else if(B(p)==="img"||B(p)==="area"){var H=E(p,"alt");if(H!==null)return H}else if(hs(p)){var Q=E(p,"label");if(Q!==null)return Q}if(lt(p)&&(p.type==="button"||p.type==="submit"||p.type==="reset")){var Se=E(p,"value");if(Se!==null)return Se;if(p.type==="submit")return"Submit";if(p.type==="reset")return"Reset"}var T=pm(p);if(T!==null&&T.length!==0)return r.add(p),U(T).map(function(Ee){return w(Ee,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Ee){return Ee.length>0}).join(" ");if(lt(p)&&p.type==="image"){var $=E(p,"alt");if($!==null)return $;var j=E(p,"title");return j!==null?j:"Submit Query"}if(ee(p,["button"])){var K=m(p,{isEmbeddedInLabel:!1,isReferenced:!1});if(K!=="")return K}return null}function w(p,g){if(r.has(p))return"";if(!f&&nm(p,u)&&!g.isReferenced)return r.add(p),"";var q=I(p)?p.getAttributeNode("aria-labelledby"):null,b=q!==null&&!r.has(q)?Le(p,"aria-labelledby"):[];if(l==="name"&&!g.isReferenced&&b.length>0)return r.add(q),b.map(function(H){return w(H,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var h=g.recursion&&am(p)&&l==="name";if(!h){var C=(I(p)&&p.getAttribute("aria-label")||"").trim();if(C!==""&&l==="name")return r.add(p),C;if(!lm(p)){var y=R(p);if(y!==null)return r.add(p),y}}if(ee(p,["menu"]))return r.add(p),"";if(h||g.isEmbeddedInLabel||g.isReferenced){if(ee(p,["combobox","listbox"])){r.add(p);var W=om(p);return W.length===0?lt(p)?p.value:"":U(W).map(function(H){return w(H,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(Ms(p,"range"))return r.add(p),p.hasAttribute("aria-valuetext")?p.getAttribute("aria-valuetext"):p.hasAttribute("aria-valuenow")?p.getAttribute("aria-valuenow"):p.getAttribute("value")||"";if(ee(p,["textbox"]))return r.add(p),cm(p)}if(im(p)||I(p)&&g.isReferenced||sm(p)||um(p)){var k=m(p,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!1});if(k!=="")return r.add(p),k}if(p.nodeType===p.TEXT_NODE)return r.add(p),p.textContent||"";if(g.recursion)return r.add(p),m(p,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!1});var V=_(p);return V!==null?(r.add(p),V):(r.add(p),"")}return rm(w(e,{isEmbeddedInLabel:!1,isReferenced:l==="description",recursion:!1}))}function st(e){"@babel/helpers - typeof";return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},st(e)}function Is(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ns(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Is(Object(r),!0).forEach(function(n){mm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Is(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mm(e,t,r){return t=bm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e){var t=vm(e,"string");return st(t)==="symbol"?t:String(t)}function vm(e,t){if(st(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(st(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function At(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Le(e,"aria-describedby").map(function(a){return Mt(a,Ns(Ns({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function ym(e){return ee(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function it(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ym(e)?"":Mt(e,t)}var F=X(Fc()),Gc=X(Dc());function Yc(e){return e.replace(/</g,"<").replace(/>/g,">")}var rC=(e,t,r,n,a,l,o)=>{let s=n+r.indent,i=r.colors;return e.map(u=>{let d=t[u],f=o(d,r,s,a,l);return typeof d!="string"&&(f.indexOf(`
|
|
16
|
-
`)!==-1&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+i.prop.open+u+i.prop.close+"="+i.value.open+f+i.value.close}).join("")},nC=3,aC=(e,t,r,n,a,l)=>e.map(o=>{let s=typeof o=="string"?Qc(o,t):l(o,t,r,n,a);return s===""&&typeof o=="object"&&o!==null&&o.nodeType!==nC?"":t.spacingOuter+r+s}).join(""),Qc=(e,t)=>{let r=t.colors.content;return r.open+Yc(e)+r.close},oC=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+Yc(e)+"-->"+r.close},lC=(e,t,r,n,a)=>{let l=n.colors.tag;return l.open+"<"+e+(t&&l.close+t+n.spacingOuter+a+l.open)+(r?">"+l.close+r+n.spacingOuter+a+l.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+l.close},sC=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" \u2026"+r.open+" />"+r.close},iC=1,Kc=3,Xc=8,Jc=11,uC=/^((HTML|SVG)\w*)?Element$/,Zc=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},cC=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===iC&&(uC.test(t)||Zc(e))||r===Kc&&t==="Text"||r===Xc&&t==="Comment"||r===Jc&&t==="DocumentFragment"};function dC(e){return e.nodeType===Kc}function pC(e){return e.nodeType===Xc}function Eo(e){return e.nodeType===Jc}function fC(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||Zc(t))&&cC(t)},serialize:(t,r,n,a,l,o)=>{if(dC(t))return Qc(t.data,r);if(pC(t))return oC(t.data,r);let s=Eo(t)?"DocumentFragment":t.tagName.toLowerCase();return++a>r.maxDepth?sC(s,r):lC(s,rC(Eo(t)?[]:Array.from(t.attributes).map(i=>i.name).sort(),Eo(t)?{}:Array.from(t.attributes).reduce((i,u)=>(i[u.name]=u.value,i),{}),r,n+r.indent,a,l,o),aC(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,a,l,o),r,n)}}}var ed=null,No=null,Bo=null;try{let e=module&&module.require;No=e.call(module,"fs").readFileSync,Bo=e.call(module,"@babel/code-frame").codeFrameColumns,ed=e.call(module,"
|
|
16
|
+
`)!==-1&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+i.prop.open+u+i.prop.close+"="+i.value.open+f+i.value.close}).join("")},nC=3,aC=(e,t,r,n,a,l)=>e.map(o=>{let s=typeof o=="string"?Qc(o,t):l(o,t,r,n,a);return s===""&&typeof o=="object"&&o!==null&&o.nodeType!==nC?"":t.spacingOuter+r+s}).join(""),Qc=(e,t)=>{let r=t.colors.content;return r.open+Yc(e)+r.close},oC=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+Yc(e)+"-->"+r.close},lC=(e,t,r,n,a)=>{let l=n.colors.tag;return l.open+"<"+e+(t&&l.close+t+n.spacingOuter+a+l.open)+(r?">"+l.close+r+n.spacingOuter+a+l.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+l.close},sC=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" \u2026"+r.open+" />"+r.close},iC=1,Kc=3,Xc=8,Jc=11,uC=/^((HTML|SVG)\w*)?Element$/,Zc=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},cC=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===iC&&(uC.test(t)||Zc(e))||r===Kc&&t==="Text"||r===Xc&&t==="Comment"||r===Jc&&t==="DocumentFragment"};function dC(e){return e.nodeType===Kc}function pC(e){return e.nodeType===Xc}function Eo(e){return e.nodeType===Jc}function fC(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||Zc(t))&&cC(t)},serialize:(t,r,n,a,l,o)=>{if(dC(t))return Qc(t.data,r);if(pC(t))return oC(t.data,r);let s=Eo(t)?"DocumentFragment":t.tagName.toLowerCase();return++a>r.maxDepth?sC(s,r):lC(s,rC(Eo(t)?[]:Array.from(t.attributes).map(i=>i.name).sort(),Eo(t)?{}:Array.from(t.attributes).reduce((i,u)=>(i[u.name]=u.value,i),{}),r,n+r.indent,a,l,o),aC(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,a,l,o),r,n)}}}var ed=null,No=null,Bo=null;try{let e=module&&module.require;No=e.call(module,"fs").readFileSync,Bo=e.call(module,"@babel/code-frame").codeFrameColumns,ed=e.call(module,"picocolors")}catch{}function mC(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),a=n.split(":"),[l,o,s]=[a[0],parseInt(a[1],10),parseInt(a[2],10)],i="";try{i=No(l,"utf-8")}catch{return""}let u=Bo(i,{start:{line:o,column:s}},{highlightCode:!0,linesBelow:0});return ed.dim(n)+`
|
|
17
17
|
`+u+`
|
|
18
18
|
`}function bC(){if(!No||!Bo)return"";let t=new Error().stack.split(`
|
|
19
19
|
`).slice(1).find(r=>!r.includes("node_modules/"));return mC(t)}var td=3;function qo(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function Lo(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function rd(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function oe(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var vC=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=process.env)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:yC}=Aa.plugins,hC=1,gC=8;function RC(e){return e.nodeType!==gC&&(e.nodeType!==hC||!e.matches(O().defaultIgnore))}function Pe(e,t,r){if(r===void 0&&(r={}),e||(e=Lo().body),typeof t!="number"&&(t=typeof process<"u"&&typeof process.env<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:a=RC,...l}=r,o=Aa.format(e,{plugins:[fC(a),yC],printFunctionName:!1,highlight:vC(),...l});return t!==void 0&&e.outerHTML.length>t?o.slice(0,t)+"...":o}var Hc=function(){let e=bC();console.log(e?Pe(...arguments)+`
|
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13
13
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return l=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!l&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Oc(e,t){if(e){if(typeof e=="string")return _c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _c(e,t)}}function _c(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ve=[],Pc=xc.default.keys();for(ma=0;ma<Pc.length;ma++)if(ba=Pc[ma],va=xc.default.get(ba),va)for(uo=[].concat(va.baseConcepts,va.relatedConcepts),ya=0;ya<uo.length;ya++)co=uo[ya],co.module==="HTML"&&function(){var e=co.concept;if(e){var t=ve.find(function(l){return(0,wc.dequal)(l,e)}),r;t?r=t[1]:r=[];for(var n=!0,a=0;a<r.length;a++)if(r[a]===ba){n=!1;break}n&&r.push(ba),ve.push([e,r])}}();var ba,va,uo,co,ya,ma,po={entries:function(){return ve},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=Nq(ve),a;try{for(n.s();!(a=n.n()).done;){var l=io(a.value,2),o=l[0],s=l[1];t.call(r,s,o,ve)}}catch(i){n.e(i)}finally{n.f()}},get:function(t){var r=ve.find(function(n){return t.name===n[0].name&&(0,wc.dequal)(t.attributes,n[0].attributes)});return r&&r[1]},has:function(t){return!!po.get(t)},keys:function(){return ve.map(function(t){var r=io(t,1),n=r[0];return n})},values:function(){return ve.map(function(t){var r=io(t,2),n=r[1];return n})}},Bq=(0,Mq.default)(po,po.entries());ha.default=Bq});var Lc=c(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=void 0;var Lq=Nc(Be()),Ic=Nc(fa());function Nc(e){return e&&e.__esModule?e:{default:e}}function fo(e,t){return Fq(e)||jq(e,t)||Bc(e,t)||kq()}function kq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
14
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,l=!1,o,s;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(i){l=!0,s=i}finally{try{!a&&r.return!=null&&r.return()}finally{if(l)throw s}}return n}}function Fq(e){if(Array.isArray(e))return e}function Dq(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Bc(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
15
15
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return l=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!l&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Bc(e,t){if(e){if(typeof e=="string")return Ac(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ac(e,t)}}function Ac(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var qe=[],Sc=Ic.default.keys();for(ga=0;ga<Sc.length;ga++)if(mo=Sc[ga],Ra=Ic.default.get(mo),Ea=[],Ra){for(bo=[].concat(Ra.baseConcepts,Ra.relatedConcepts),qa=0;qa<bo.length;qa++)vo=bo[qa],vo.module==="HTML"&&(yo=vo.concept,yo!=null&&Ea.push(yo));Ea.length>0&&qe.push([mo,Ea])}var mo,Ra,Ea,bo,vo,yo,qa,ga,ho={entries:function(){return qe},forEach:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=Dq(qe),a;try{for(n.s();!(a=n.n()).done;){var l=fo(a.value,2),o=l[0],s=l[1];t.call(r,s,o,qe)}}catch(i){n.e(i)}finally{n.f()}},get:function(t){var r=qe.find(function(n){return n[0]===t});return r&&r[1]},has:function(t){return!!ho.get(t)},keys:function(){return qe.map(function(t){var r=fo(t,1),n=r[0];return n})},values:function(){return qe.map(function(t){var r=fo(t,2),n=r[1];return n})}},Hq=(0,Lq.default)(ho,ho.entries());Ca.default=Hq});var kc=c(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.roles=G.roleElements=G.elementRoles=G.dom=G.aria=void 0;var Uq=ct(Ls()),Wq=ct(Fs()),Vq=ct(fa()),$q=ct(Mc()),zq=ct(Lc());function ct(e){return e&&e.__esModule?e:{default:e}}var Gq=Uq.default;G.aria=Gq;var Yq=Wq.default;G.dom=Yq;var Qq=Vq.default;G.roles=Qq;var Kq=$q.default;G.elementRoles=Kq;var Xq=zq.default;G.roleElements=Xq});var jc=c((CO,_a)=>{"use strict";var go=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function a(o,s){if(!n[o]){n[o]={};for(var i=0;i<o.length;i++)n[o][o.charAt(i)]=i}return n[o][s]}var l={compressToBase64:function(o){if(o==null)return"";var s=l._compress(o,6,function(i){return t.charAt(i)});switch(s.length%4){default:case 0:return s;case 1:return s+"===";case 2:return s+"==";case 3:return s+"="}},decompressFromBase64:function(o){return o==null?"":o==""?null:l._decompress(o.length,32,function(s){return a(t,o.charAt(s))})},compressToUTF16:function(o){return o==null?"":l._compress(o,15,function(s){return e(s+32)})+" "},decompressFromUTF16:function(o){return o==null?"":o==""?null:l._decompress(o.length,16384,function(s){return o.charCodeAt(s)-32})},compressToUint8Array:function(o){for(var s=l.compress(o),i=new Uint8Array(s.length*2),u=0,d=s.length;u<d;u++){var f=s.charCodeAt(u);i[u*2]=f>>>8,i[u*2+1]=f%256}return i},decompressFromUint8Array:function(o){if(o==null)return l.decompress(o);for(var s=new Array(o.length/2),i=0,u=s.length;i<u;i++)s[i]=o[i*2]*256+o[i*2+1];var d=[];return s.forEach(function(f){d.push(e(f))}),l.decompress(d.join(""))},compressToEncodedURIComponent:function(o){return o==null?"":l._compress(o,6,function(s){return r.charAt(s)})},decompressFromEncodedURIComponent:function(o){return o==null?"":o==""?null:(o=o.replace(/ /g,"+"),l._decompress(o.length,32,function(s){return a(r,o.charAt(s))}))},compress:function(o){return l._compress(o,16,function(s){return e(s)})},_compress:function(o,s,i){if(o==null)return"";var u,d,f={},m={},E="",_="",R="",w=2,p=3,g=2,q=[],b=0,h=0,C;for(C=0;C<o.length;C+=1)if(E=o.charAt(C),Object.prototype.hasOwnProperty.call(f,E)||(f[E]=p++,m[E]=!0),_=R+E,Object.prototype.hasOwnProperty.call(f,_))R=_;else{if(Object.prototype.hasOwnProperty.call(m,R)){if(R.charCodeAt(0)<256){for(u=0;u<g;u++)b=b<<1,h==s-1?(h=0,q.push(i(b)),b=0):h++;for(d=R.charCodeAt(0),u=0;u<8;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1}else{for(d=1,u=0;u<g;u++)b=b<<1|d,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=0;for(d=R.charCodeAt(0),u=0;u<16;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1}w--,w==0&&(w=Math.pow(2,g),g++),delete m[R]}else for(d=f[R],u=0;u<g;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1;w--,w==0&&(w=Math.pow(2,g),g++),f[_]=p++,R=String(E)}if(R!==""){if(Object.prototype.hasOwnProperty.call(m,R)){if(R.charCodeAt(0)<256){for(u=0;u<g;u++)b=b<<1,h==s-1?(h=0,q.push(i(b)),b=0):h++;for(d=R.charCodeAt(0),u=0;u<8;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1}else{for(d=1,u=0;u<g;u++)b=b<<1|d,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=0;for(d=R.charCodeAt(0),u=0;u<16;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1}w--,w==0&&(w=Math.pow(2,g),g++),delete m[R]}else for(d=f[R],u=0;u<g;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1;w--,w==0&&(w=Math.pow(2,g),g++)}for(d=2,u=0;u<g;u++)b=b<<1|d&1,h==s-1?(h=0,q.push(i(b)),b=0):h++,d=d>>1;for(;;)if(b=b<<1,h==s-1){q.push(i(b));break}else h++;return q.join("")},decompress:function(o){return o==null?"":o==""?null:l._decompress(o.length,32768,function(s){return o.charCodeAt(s)})},_decompress:function(o,s,i){var u=[],d,f=4,m=4,E=3,_="",R=[],w,p,g,q,b,h,C,y={val:i(0),position:s,index:1};for(w=0;w<3;w+=1)u[w]=w;for(g=0,b=Math.pow(2,2),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;switch(d=g){case 0:for(g=0,b=Math.pow(2,8),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;C=e(g);break;case 1:for(g=0,b=Math.pow(2,16),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;C=e(g);break;case 2:return""}for(u[3]=C,p=C,R.push(C);;){if(y.index>o)return"";for(g=0,b=Math.pow(2,E),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;switch(C=g){case 0:for(g=0,b=Math.pow(2,8),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;u[m++]=e(g),C=m-1,f--;break;case 1:for(g=0,b=Math.pow(2,16),h=1;h!=b;)q=y.val&y.position,y.position>>=1,y.position==0&&(y.position=s,y.val=i(y.index++)),g|=(q>0?1:0)*h,h<<=1;u[m++]=e(g),C=m-1,f--;break;case 2:return R.join("")}if(f==0&&(f=Math.pow(2,E),E++),u[C])_=u[C];else if(C===m)_=p+p.charAt(0);else return null;R.push(_),u[m++]=p+_.charAt(0),f--,p=_,f==0&&(f=Math.pow(2,E),E++)}}};return l}();typeof define=="function"&&define.amd?define(function(){return go}):typeof _a<"u"&&_a!=null?_a.exports=go:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return go})});import*as wd from"react";import We from"chalk";import hd from"object-hash";import*as ee from"react";import*as bd from"react-dom/test-utils";import Aa from"react-dom";import*as Na from"react-dom/client";var Ta=Da(cs());var kf=Object.prototype.toString;function ds(e){return typeof e=="function"||kf.call(e)==="[object Function]"}function jf(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var Ff=Math.pow(2,53)-1;function Df(e){var t=jf(e);return Math.min(Math.max(t,0),Ff)}function U(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!ds(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var a=Df(n.length),l=ds(r)?Object(new r(a)):new Array(a),o=0,s;o<a;)s=n[o],t?l[o]=t(s,o):l[o]=s,o+=1;return l.length=a,l}function at(e){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(e)}function Hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ps(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fs(n.key),n)}}function Uf(e,t,r){return t&&ps(e.prototype,t),r&&ps(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wf(e,t,r){return t=fs(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fs(e){var t=Vf(e,"string");return at(t)==="symbol"?t:String(t)}function Vf(e,t){if(at(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(at(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $f=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Hf(this,e),Wf(this,"items",void 0),this.items=t}return Uf(e,[{key:"add",value:function(r){return this.has(r)===!1&&this.items.push(r),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(r){var n=this.items.length;return this.items=this.items.filter(function(a){return a!==r}),n!==this.items.length}},{key:"forEach",value:function(r){var n=this;this.items.forEach(function(a){r(a,a,n)})}},{key:"has",value:function(r){return this.items.indexOf(r)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),ms=typeof Set>"u"?Set:$f;function B(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var zf={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},Gf={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function Yf(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=Gf[t])!==null&&n!==void 0&&n.has(r))})}function bs(e,t){return Yf(e,t)}function wt(e){var t=Kf(e);if(t===null||t==="presentation"){var r=Qf(e);if(t!=="presentation"||bs(e,r||""))return r}return t}function Qf(e){var t=zf[B(e)];if(t!==void 0)return t;switch(B(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!bs(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function Kf(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function I(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function Xa(e){return I(e)&&B(e)==="caption"}function ot(e){return I(e)&&B(e)==="input"}function vs(e){return I(e)&&B(e)==="optgroup"}function ys(e){return I(e)&&B(e)==="select"}function hs(e){return I(e)&&B(e)==="table"}function gs(e){return I(e)&&B(e)==="textarea"}function Rs(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function Es(e){return I(e)&&B(e)==="fieldset"}function qs(e){return I(e)&&B(e)==="legend"}function Cs(e){return I(e)&&B(e)==="slot"}function Xf(e){return I(e)&&e.ownerSVGElement!==void 0}function _s(e){return I(e)&&B(e)==="svg"}function Ps(e){return Xf(e)&&B(e)==="title"}function Ne(e,t){if(I(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(a){return n.getElementById(a)}).filter(function(a){return a!==null})}return[]}function Z(e,t){return I(e)?t.indexOf(wt(e))!==-1:!1}function Jf(e){return e.trim().replace(/\s\s+/g," ")}function Zf(e,t){if(!I(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function em(e){return Z(e,["button","combobox","listbox","textbox"])||Ts(e,"range")}function Ts(e,t){if(!I(e))return!1;switch(t){case"range":return Z(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function ws(e,t){var r=U(e.querySelectorAll(t));return Ne(e,"aria-owns").forEach(function(n){r.push.apply(r,U(n.querySelectorAll(t)))}),r}function tm(e){return ys(e)?e.selectedOptions||ws(e,"[selected]"):ws(e,'[aria-selected="true"]')}function rm(e){return Z(e,["none","presentation"])}function nm(e){return Xa(e)}function am(e){return Z(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function om(e){return!1}function lm(e){return ot(e)||gs(e)?e.value:e.textContent||""}function xs(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function Os(e){var t=B(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function Ms(e){if(Os(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&I(r)){var n=Ms(r);n!==null&&(t=n)}}),t}function sm(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):Ms(e)}function im(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return U(t);if(!Os(e))return null;var r=e.ownerDocument;return U(r.querySelectorAll("label")).filter(function(n){return sm(n)===e})}function um(e){var t=e.assignedNodes();return t.length===0?U(e.childNodes):t}function xt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new ms,n=Rs(e),a=t.compute,l=a===void 0?"name":a,o=t.computedStyleSupportsPseudoElements,s=o===void 0?t.getComputedStyle!==void 0:o,i=t.getComputedStyle,u=i===void 0?n.getComputedStyle.bind(n):i,d=t.hidden,f=d===void 0?!1:d;function m(p,g){var q="";if(I(p)&&s){var b=u(p,"::before"),h=xs(b);q="".concat(h," ").concat(q)}var C=Cs(p)?um(p):U(p.childNodes).concat(Ne(p,"aria-owns"));if(C.forEach(function(k){var V=w(k,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),H=I(k)?u(k).getPropertyValue("display"):"inline",Q=H!=="inline"?" ":"";q+="".concat(Q).concat(V).concat(Q)}),I(p)&&s){var y=u(p,"::after"),W=xs(y);q="".concat(q," ").concat(W)}return q.trim()}function E(p,g){var q=p.getAttributeNode(g);return q!==null&&!r.has(q)&&q.value.trim()!==""?(r.add(q),q.value):null}function _(p){return I(p)?E(p,"title"):null}function R(p){if(!I(p))return null;if(Es(p)){r.add(p);for(var g=U(p.childNodes),q=0;q<g.length;q+=1){var b=g[q];if(qs(b))return w(b,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(hs(p)){r.add(p);for(var h=U(p.childNodes),C=0;C<h.length;C+=1){var y=h[C];if(Xa(y))return w(y,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(_s(p)){r.add(p);for(var W=U(p.childNodes),k=0;k<W.length;k+=1){var V=W[k];if(Ps(V))return V.textContent}return null}else if(B(p)==="img"||B(p)==="area"){var H=E(p,"alt");if(H!==null)return H}else if(vs(p)){var Q=E(p,"label");if(Q!==null)return Q}if(ot(p)&&(p.type==="button"||p.type==="submit"||p.type==="reset")){var Me=E(p,"value");if(Me!==null)return Me;if(p.type==="submit")return"Submit";if(p.type==="reset")return"Reset"}var T=im(p);if(T!==null&&T.length!==0)return r.add(p),U(T).map(function(Re){return w(Re,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Re){return Re.length>0}).join(" ");if(ot(p)&&p.type==="image"){var $=E(p,"alt");if($!==null)return $;var j=E(p,"title");return j!==null?j:"Submit Query"}if(Z(p,["button"])){var K=m(p,{isEmbeddedInLabel:!1,isReferenced:!1});if(K!=="")return K}return null}function w(p,g){if(r.has(p))return"";if(!f&&Zf(p,u)&&!g.isReferenced)return r.add(p),"";var q=I(p)?p.getAttributeNode("aria-labelledby"):null,b=q!==null&&!r.has(q)?Ne(p,"aria-labelledby"):[];if(l==="name"&&!g.isReferenced&&b.length>0)return r.add(q),b.map(function(H){return w(H,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var h=g.recursion&&em(p)&&l==="name";if(!h){var C=(I(p)&&p.getAttribute("aria-label")||"").trim();if(C!==""&&l==="name")return r.add(p),C;if(!rm(p)){var y=R(p);if(y!==null)return r.add(p),y}}if(Z(p,["menu"]))return r.add(p),"";if(h||g.isEmbeddedInLabel||g.isReferenced){if(Z(p,["combobox","listbox"])){r.add(p);var W=tm(p);return W.length===0?ot(p)?p.value:"":U(W).map(function(H){return w(H,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(Ts(p,"range"))return r.add(p),p.hasAttribute("aria-valuetext")?p.getAttribute("aria-valuetext"):p.hasAttribute("aria-valuenow")?p.getAttribute("aria-valuenow"):p.getAttribute("value")||"";if(Z(p,["textbox"]))return r.add(p),lm(p)}if(am(p)||I(p)&&g.isReferenced||nm(p)||om(p)){var k=m(p,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!1});if(k!=="")return r.add(p),k}if(p.nodeType===p.TEXT_NODE)return r.add(p),p.textContent||"";if(g.recursion)return r.add(p),m(p,{isEmbeddedInLabel:g.isEmbeddedInLabel,isReferenced:!1});var V=_(p);return V!==null?(r.add(p),V):(r.add(p),"")}return Jf(w(e,{isEmbeddedInLabel:!1,isReferenced:l==="description",recursion:!1}))}function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function As(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ss(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?As(Object(r),!0).forEach(function(n){cm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):As(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cm(e,t,r){return t=dm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dm(e){var t=pm(e,"string");return lt(t)==="symbol"?t:String(t)}function pm(e,t){if(lt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ne(e,"aria-describedby").map(function(a){return xt(a,Ss(Ss({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function fm(e){return Z(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function st(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return fm(e)?"":xt(e,t)}var F=Da(kc()),$c=Da(jc());function zc(e){return e.replace(/</g,"<").replace(/>/g,">")}var Jq=(e,t,r,n,a,l,o)=>{let s=n+r.indent,i=r.colors;return e.map(u=>{let d=t[u],f=o(d,r,s,a,l);return typeof d!="string"&&(f.indexOf(`
|
|
16
|
-
`)!==-1&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+i.prop.open+u+i.prop.close+"="+i.value.open+f+i.value.close}).join("")},Zq=3,eC=(e,t,r,n,a,l)=>e.map(o=>{let s=typeof o=="string"?Gc(o,t):l(o,t,r,n,a);return s===""&&typeof o=="object"&&o!==null&&o.nodeType!==Zq?"":t.spacingOuter+r+s}).join(""),Gc=(e,t)=>{let r=t.colors.content;return r.open+zc(e)+r.close},tC=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+zc(e)+"-->"+r.close},rC=(e,t,r,n,a)=>{let l=n.colors.tag;return l.open+"<"+e+(t&&l.close+t+n.spacingOuter+a+l.open)+(r?">"+l.close+r+n.spacingOuter+a+l.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+l.close},nC=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" \u2026"+r.open+" />"+r.close},aC=1,Yc=3,Qc=8,Kc=11,oC=/^((HTML|SVG)\w*)?Element$/,Xc=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},lC=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===aC&&(oC.test(t)||Xc(e))||r===Yc&&t==="Text"||r===Qc&&t==="Comment"||r===Kc&&t==="DocumentFragment"};function sC(e){return e.nodeType===Yc}function iC(e){return e.nodeType===Qc}function Ro(e){return e.nodeType===Kc}function uC(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||Xc(t))&&lC(t)},serialize:(t,r,n,a,l,o)=>{if(sC(t))return Gc(t.data,r);if(iC(t))return tC(t.data,r);let s=Ro(t)?"DocumentFragment":t.tagName.toLowerCase();return++a>r.maxDepth?nC(s,r):rC(s,Jq(Ro(t)?[]:Array.from(t.attributes).map(i=>i.name).sort(),Ro(t)?{}:Array.from(t.attributes).reduce((i,u)=>(i[u.name]=u.value,i),{}),r,n+r.indent,a,l,o),eC(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,a,l,o),r,n)}}}var Jc=null,Io=null,No=null;try{let e=module&&module.require;Io=e.call(module,"fs").readFileSync,No=e.call(module,"@babel/code-frame").codeFrameColumns,Jc=e.call(module,"
|
|
16
|
+
`)!==-1&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+i.prop.open+u+i.prop.close+"="+i.value.open+f+i.value.close}).join("")},Zq=3,eC=(e,t,r,n,a,l)=>e.map(o=>{let s=typeof o=="string"?Gc(o,t):l(o,t,r,n,a);return s===""&&typeof o=="object"&&o!==null&&o.nodeType!==Zq?"":t.spacingOuter+r+s}).join(""),Gc=(e,t)=>{let r=t.colors.content;return r.open+zc(e)+r.close},tC=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+zc(e)+"-->"+r.close},rC=(e,t,r,n,a)=>{let l=n.colors.tag;return l.open+"<"+e+(t&&l.close+t+n.spacingOuter+a+l.open)+(r?">"+l.close+r+n.spacingOuter+a+l.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+l.close},nC=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" \u2026"+r.open+" />"+r.close},aC=1,Yc=3,Qc=8,Kc=11,oC=/^((HTML|SVG)\w*)?Element$/,Xc=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},lC=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===aC&&(oC.test(t)||Xc(e))||r===Yc&&t==="Text"||r===Qc&&t==="Comment"||r===Kc&&t==="DocumentFragment"};function sC(e){return e.nodeType===Yc}function iC(e){return e.nodeType===Qc}function Ro(e){return e.nodeType===Kc}function uC(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||Xc(t))&&lC(t)},serialize:(t,r,n,a,l,o)=>{if(sC(t))return Gc(t.data,r);if(iC(t))return tC(t.data,r);let s=Ro(t)?"DocumentFragment":t.tagName.toLowerCase();return++a>r.maxDepth?nC(s,r):rC(s,Jq(Ro(t)?[]:Array.from(t.attributes).map(i=>i.name).sort(),Ro(t)?{}:Array.from(t.attributes).reduce((i,u)=>(i[u.name]=u.value,i),{}),r,n+r.indent,a,l,o),eC(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,a,l,o),r,n)}}}var Jc=null,Io=null,No=null;try{let e=module&&module.require;Io=e.call(module,"fs").readFileSync,No=e.call(module,"@babel/code-frame").codeFrameColumns,Jc=e.call(module,"picocolors")}catch{}function cC(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),a=n.split(":"),[l,o,s]=[a[0],parseInt(a[1],10),parseInt(a[2],10)],i="";try{i=Io(l,"utf-8")}catch{return""}let u=No(i,{start:{line:o,column:s}},{highlightCode:!0,linesBelow:0});return Jc.dim(n)+`
|
|
17
17
|
`+u+`
|
|
18
18
|
`}function dC(){if(!Io||!No)return"";let t=new Error().stack.split(`
|
|
19
19
|
`).slice(1).find(r=>!r.includes("node_modules/"));return cC(t)}var Zc=3;function Eo(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function Bo(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function ed(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function ne(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var pC=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=process.env)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:fC}=Ta.plugins,mC=1,bC=8;function vC(e){return e.nodeType!==bC&&(e.nodeType!==mC||!e.matches(O().defaultIgnore))}function _e(e,t,r){if(r===void 0&&(r={}),e||(e=Bo().body),typeof t!="number"&&(t=typeof process<"u"&&typeof process.env<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:a=vC,...l}=r,o=Ta.format(e,{plugins:[uC(a),fC],printFunctionName:!1,highlight:pC(),...l});return t!==void 0&&e.outerHTML.length>t?o.slice(0,t)+"...":o}var Fc=function(){let e=dC();console.log(e?_e(...arguments)+`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrapito",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0-beta1",
|
|
4
4
|
"description": "🌯 🌯 Wrap you tests so that you can test both behaviour and components with less effort.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -60,15 +60,14 @@
|
|
|
60
60
|
"whatwg-fetch": "^3.6.20"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@testing-library/dom": "^10.4.
|
|
64
|
-
"@testing-library/jest-dom": "^6.4
|
|
65
|
-
"@testing-library/react": "^16.0
|
|
63
|
+
"@testing-library/dom": "^10.4.1",
|
|
64
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
65
|
+
"@testing-library/react": "^16.3.0",
|
|
66
66
|
"@types/deep-equal": "^1.0.4",
|
|
67
67
|
"@types/history": "^4.7.11",
|
|
68
68
|
"@types/node": "^20.10.5",
|
|
69
69
|
"@types/object-hash": "^3.0.6",
|
|
70
|
-
"@types/react": "^19.1.
|
|
71
|
-
"@types/react-dom": "^19.1.0",
|
|
70
|
+
"@types/react": "^19.1.8",
|
|
72
71
|
"@vitest/coverage-istanbul": "^1.1.0",
|
|
73
72
|
"eslint": "^8.56.0",
|
|
74
73
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -79,10 +78,10 @@
|
|
|
79
78
|
"prettier": "^3.1.1",
|
|
80
79
|
"react": "^19.1.0",
|
|
81
80
|
"react-dom": "^19.1.0",
|
|
82
|
-
"react-redux": "^
|
|
81
|
+
"react-redux": "^9.2.0",
|
|
83
82
|
"react-router-dom": "^5.3.4",
|
|
84
|
-
"redux": "^
|
|
85
|
-
"redux-thunk": "^
|
|
83
|
+
"redux": "^5.0.1",
|
|
84
|
+
"redux-thunk": "^3.1.0",
|
|
86
85
|
"rollup": "^4.9.1",
|
|
87
86
|
"tinyspy": "^2.2.1",
|
|
88
87
|
"tsup": "^8.0.1",
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
"vitest": "^1.1.0"
|
|
91
90
|
},
|
|
92
91
|
"peerDependencies": {
|
|
93
|
-
"react": "
|
|
94
|
-
"react-dom": "
|
|
92
|
+
"react": ">=18.0.0",
|
|
93
|
+
"react-dom": ">=18.0.0"
|
|
95
94
|
}
|
|
96
95
|
}
|